User forums > Help
Problem with $(ACTIVE_EDITOR_FILENAME) in Tools
Pecan:
Tools used to substitue $(ACTIVE_EDITOR_FILENAME) in Tools.
I cannot get it to do so since the latest SVN 3222.
Has this been deprecated since %s etc work in abbreviations?
thomas:
Not on purpose. Will look at it tomorrow (actually today).
thomas:
Input:
Output:
-------------- Build: default in activeeditorfilename ---------------
mingw32-g++.exe -Wall -O2 -DD:\Desktop\activeeditorfilename\main.cpp -IC:\MinGW\include -c main.cpp -o obj\main.o
<command line>:1:2: warning: ISO C requires whitespace after the macro name
mingw32-g++.exe -LC:\MinGW\lib -o .\activeeditorfilename.exe obj\main.o -s
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 1 warnings
Don't see anything unusual? Seems to work just fine for me.
EDIT:
Yes, this is the compiler, not tools, I know ;) That's because I never use tools, so I don't even know where to find the menu entry :lol:
But seriously: Compiler, tools, and everything else call the very same function to expand variables, so it either works for all, or it works for none.
thomas:
But... you're right.
I tried tools and configured this:
... and got:
$(ACTIVE_EDITOR_NAME) 15728 2006-11-16 D:\wxWidgets-2.6.3
Process returned 0 (0x0) execution time : 0.031 s
Press any key to continue.
Everything is expanded correctly, except $(ACTIVE_EDITOR_NAME).
thomas:
I've implemented a partial fix so far. Partial as in "fixes the problem you observed", but it still doesn't work.
The problem that you observed is peculiar insofar as $(ACTIVE_EDITOR_NAME) is not recognised as variable at all. And more, this is true for any other variable being at the beginning of a string, too. That's because the regex matching the variables was too simple (worked fine for the compiler, which I tested with). This is fixed now.
However, now I see another issue. $(ACTIVE_EDITOR_NAME) is recognised as variable, but it seems to be empty.
Navigation
[0] Message Index
[#] Next page
Go to full version