User forums > General (but related to Code::Blocks)
Three minor bugs
shajunxing:
When I first tried CB I deeply loved it and moved all my jobs from fat slow VS.NET to CB. Since I am a teacher of programming, it is my duty to popularize it to my students and report bugs here in order to make CB better and better, I think. :D
I reported a minor bug long ago and to my surprise it was fixed immediately. These days I found some little bugs again. My OS is XP chinese version and I use CB with MinGW. Some times my project's path contains chinese characters. Editing, compiling and linking is OK but while debugging, it will prompt that "xxx/xxx/xxx.c" can not found. It seems that the chinese path can not be recognized. Maybe japanese and korean characters also have this problem. I am not sure whether this problem due to CB or MinGW.
Second bug is about the "Symbol" window. When a project is opened from menu, tool bar or by dragging it to an active CB window, All the symbols are parsed correctly. But when it is opened by dragging it to a CB shortcut, symbols can't be parsed.
Last bug I found is about building. After I changed some positions of source files and pressed "build" button, it should rebuild but actually it only prompted that nothing to be done. I have do delete ".depend" and ".layout" file and rebuild. I checked ".depend" file and found it contained absolute path, not relative path. Is it the reason?
Thanks. :lol:
Morphius Faydal:
I believe the first one will be a bug with GDB not handling CJK languages correctly.
The second; no idea.
The third; none of the source files have actually *changed*. Your executable would be exactly the same if you moved some of the source around. If you really want to force a rebuild, go to "Build" --> "Rebuild" or "Rebuild Workspace". Also; the fourth icon on the compilation toolbar (the button that looks like a little window with two arrows circling round on it), will initiate a complete rebuild. ALSO! You can hit Ctrl-F11 (assuming you haven't changed keymapping) and that tool will start a rebuild.
MortenMacFly:
--- Quote from: shajunxing on October 31, 2007, 05:12:13 am ---It seems that the chinese path can not be recognized. Maybe japanese and korean characters also have this problem. I am not sure whether this problem due to CB or MinGW.
--- End quote ---
As you might know using non-ANSI characters in development projects (for files and /or paths) is usually bad practice. But yes - this is surely a bug. Unfortunately I can't reproduce (obviously). Could you try with a very simple console project (not using C::B) whether it's actually MinGW or C::B, please?
--- Quote from: shajunxing on October 31, 2007, 05:12:13 am ---Second bug is about the "Symbol" window.
--- End quote ---
I will try to reproduce...
--- Quote from: shajunxing on October 31, 2007, 05:12:13 am ---I checked ".depend" file and found it contained absolute path, not relative path. Is it the reason?
--- End quote ---
If you move files without updating the project it won't work and C::B will report exactly what you say. The reason: The files that are not existing anymore cannot be build, files that have been moved keep their date stamp and don't need to be build. So IMHO C::B behaves fully correct. (...or do I miss something...?!)
With regards, Morten.
shajunxing:
Thanks, and I'll try it. :P
shajunxing:
I tried GDB and it worked well, see my snapshot. Is it because that GDB uses relative path? Or C::B is using unicode instead of ansi? But as I know that in CJK version windows, disk label and path use ansi code. CJK words just extend ansi and each takes two bytes. :?
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
Go to full version