Now that was an interesting bug :) Fixed....are you sure? Because with the current version (1534) out of the repository it still does not work for me. I wish I could try the old version of "codecompletion/nativeparser.cpp" but I'm fighting with svn to give me this revision only for this file. Although it seems to be strange but there are changes related to custom compiler variable expansion... Thanks for your quick (!) reply and help anyway!
codecompletion has *NOTHING* to do with compiler variables... these belong to the compile plugin / macrosmanager.Alright, I trust you. I was just curious because look at the diff: The following lines are commented (to be removed?) in the current revision compared to the previous one:
// // apply compiler global vars
// compiler->GetCustomVars().ApplyVarsToEnvironment();
// project->GetCustomVars().ApplyVarsToEnvironment();
// target->GetCustomVars().ApplyVarsToEnvironment();
This is because custom vars are replaced now without getting applied to the environment.Alright, I got the point. Thanks, Rick.
Morten: Thomas is telling me that he only added debug output and suddenly it works again. Can you try to reproduce the exact steps you took to compile? Were you rebuilding, building all, workspace, only one target, or what? What exact variables were you replacing, and what values did they have? What project were you trying to compile? (CB? what revision?)The time you were writing this I was already asleep... I hope you guys had some sleep, too. :shock:
Something that is still being worked on is per-target variables. These indeed still have a problem.Do you really mean per-target and not per-project? If so, then it sounds like an interesting new feature! :P
Do you really mean per-target and not per-project? If so, then it sounds like an interesting new feature! :P...sorry, I have been an idiot. Of course there is the possibility for per-project and per-target variables. I got that part wrong... The other things I mentioned still apply.
WXVER = 26
WXREL = 1
WXVERREL = $(WXVER)$(WXREL)
WXDIR = d:\wx$(WXVERRREL)
WXDLL = wxmsw$(WXVER)
...
Yep, you must know, these days macro expansion brokes very often :):(