As the subject says. I thought the idea of macros is so you can use them all over in the IDE. A quick test revealed that macros are limited to only a few locations in the IDE. :-(
http://bugs.freepascal.org/view.php?id=16698

Mailing lists / lazarus / 2010-06
5 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
As the subject says. I thought the idea of macros is so you can use them all over in the IDE. A quick test revealed that macros are limited to only a few locations in the IDE. :-(
http://bugs.freepascal.org/view.php?id=16698
Graeme Geldenhuys wroteAs the subject says. I thought the idea of macros is so you can use them all over in the IDE. A quick test revealed that macros are limited to only a few locations in the IDE. :-(
What should I search for if "$(ProjPath)" must be found (rather than project path)?
thanks,
dmitry
I don't understand your question, but let me explain my issue.
I tried to use Find in File, and normally specify a directory location, and it must search recursively in that directory. No instead of specifying a directory I wanted to use the macro which should resolve to the directory where the .lpi file is located. But the Find in Files don't resolve the macro in the directory editbox.
I could use Find in Files and then select "all files in project", because there are other files and directories that are not part of the project.
eg:
/opt/MyProject
/Source
/Components
/Help
/ProtoType
util1.lpi
util2.lpi
util3.lpi
If the $(ProjPath) macro was resolved, then the path in the Directory editbox would actually be: /opt/MyProject
But IDE simply complains and says it doesn't know what $(ProjPath) is.
Graeme Geldenhuys wroteI don't understand your question, but let me explain my issue.
Sorry, I can now see that you use the macros in "Directory" field, rather than "Text to Find".
thanks,
dmitry
dmitry boyarintsev wroteSorry, I can now see that you use the macros in "Directory" field, rather than "Text to Find".
Yes, that's correct. I updated the image in the Mantis report.