What is path.macros.xml and why is it missing MESSAGE
I reinstalled PhpStorm after some problem with the old installation(installed using toolbox) and deleted the old .PhpStorm2018.2 catalog in my home(ubuntu 18.04)
After I opened my project I got:
09:29 Load error: undefined path variables
MESSAGE is undefined. Fix it
Path variables are used to substitute absolute paths in PhpStorm project files and allow project file sharing in version control systems.
Some of the files describing the current project settings contain unknown path variables and PhpStorm cannot restore those paths.
No idea what that is or so I just typed some random just to get find where it was trying to be defined.
So I found it inside: .PhpStorm2018.2/config/options/path.macros.xml and not under .idea in the project as I would expect where project files would be set.
Checking my old ./PhpStorm2018.2 i saw that the file contained:
<application><component name="PathMacrosImpl">
<ignoredMacro name="MESSAGE"/>
<ignoredMacro name="FILE_PATH"/>
<ignoredMacro name="LINE"/>
<ignoredMacro name="COLUMN"/>
</component></application>
The new file contains:
<application><component name="PathMacrosImpl">
<macro name="MESSAGE" value="I LIEK MUDKIPS"/>
</component></application>
So I was wondering:
1. What is that file for
2. If it is a project file, why is it under ".PhpStorm2018.2"and not under ".idea" in the project
3. Why doest the file exits until I had defined it, I did a reinstall again, removed ".PhpStorm2018.2", when I looked for that file after opening the project again after reinstallation I got the error that MESSAGE was undefined but no file existed,it was created when I defined it
4. When defining in PhpStorm, it doesnt say what in what file the path variable is, would be nice if it said that:
Please sign in to leave a comment.
In various project settings, you can use those variables instead of hard-coded paths.
Path variables are kept globally, keeping them within the project wouldn't make any sense: https://www.jetbrains.com/help/phpstorm/absolute-path-variables.html
That file exists by default, but it does not contain any path variables, only declare some of them to be ignored. The issue you are seeing is caused by the MESSAGE path variable being used somewhere in your project. It should be possible to find the use with case-sensitive text search within
.idea.You can press F1 in the window to get help there.
I guess then its from watcherTasks.xml, is it for watches in running debug mode?
<option name="regExp" value="$MESSAGE$$FILE_PATH$?:$LINE$:$COLUMN$" />
Can I remove the whole file?, the project doesnt run from phpstorm so I will never get the watches pane up
Yeah, it should be fine to remove the node