Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: cleanrock on January 21, 2009, 11:16:14 pm

Title: previous include file opened after global variable changed
Post by: cleanrock on January 21, 2009, 11:16:14 pm
I use svn 5414 on linux.

If i change a global variable and then opens a include file in editor by right-clicking, it opens the header file in the previous global variable directory.
A restart of codeblocks fixes this but i dont think it should be necessary to restart codeblocks for it to open the correct file.

Here is how it happened to me :
- open project
- change GV glm from glm-0.8.1 to glm-0.8.2 (glm-0.8.1 directory still exists)
- rebuild used new files in glm-0.8.2
- open header file by right-click -> i get file from glm-0.8.1

Title: Re: previous include file opened after global variable changed
Post by: stahta01 on January 21, 2009, 11:39:49 pm
After you rename or create an GV; it does not changed to the new or renamed global varible.
If you leave the GV form and go back in and select the new GV it works for me.
The renaming seems to be more troublesome.
Tim S