Load error: undefined path variables: MESSAGE is undefined.

The message is shown after I activated a file watcher for scss files in PhpStorm 2019.2.

Settings: Tools: File Watchers: SCSS: Advanced Options

To show reasonable error messages you define output filters. In the hint $MESSAGE$ is explicitly mentioned.

But if you do use $MESSAGE$ PhpStorm shows that load error.

 

Any workaround for that bug?

 

 

 

2
7 comments
Avatar
Permanently deleted user

Following Fix it link to the dialog configure path variables shows something like MESSAGE;FILE_PATH;LINE;COLUMN already under Ignored Variables. 

Workaround:

Add MESSAGE, so it reads: MESSAGE;FILE_PATH;LINE;COLUMN;MESSAGE

 

I hardly can believe this is working, but it does. Definetly something wrong here.

1

Do you mean you've added it here?

 

Please attach your SCSS file watcher config similarly to mine:

0

Same problem here. Just a pain. Have wasted over an hour trying to get rid of it. Hopefully in some future version you will have a more helpful message and I will be able to get rid of the bloody thing!!

Then if you click on fix you get:

I have unticked the SASS plugin but still get this. I even searched my project for an uppercase MESSAGE but nothing. Just ugly and intrusive but seems to have no impact on the project.

But as per usual, despite this small annoyance, I LOVE PhpStorm. It picks me up on so many errors that I would otherwise wish.

ATB
Steve

0

Thanks for mentioning this problem, this was also actually driving me mad for quite some time.

While checking it I've found a comment that explained one of the reasons why this is happening: https://youtrack.jetbrains.com/issue/IDEA-195187#focus=streamItem-27-2946820.0-0

> All the $XXX$ entries [in project configuration files] are handled as the Path Variables

So, you can open the "Project Files" view, select your .idea folder and invoke Find in Path on it to search for the env variable that bothers you, $MESSAGE$ in your case:

Find it & remove corresponding xml child tree as advised here: https://youtrack.jetbrains.com/issue/IDEA-195187#focus=streamItem-27-2946820.0-0

 

Related bug reports:

- https://youtrack.jetbrains.com/issue/IDEA-195187

- https://youtrack.jetbrains.com/issue/WI-36546

- https://youtrack.jetbrains.com/issue/WI-43673

1

Dmirty thanks for that ... I think!

I am significantly outside my comfort zone funurgling around in the .idea folder.

I have remmed out the what I think needs to go. 

Basically the problem has gone (thank you) but I am not 100% sure what eactly I should be deleting? The remmed out bit, less, more the whole file? I will await you instructions on this now non-urgent, non-annoying matter.

Once again thanks!

0

Sorry for a delay.

So, this comes from a "Less" task that you can find at File | Settings | Tools | File Watchers. You've removed "Output filters" value for this configuration.

The task is disabled so if you're not using it you can leave it as it is or even delete the whole configuration from File | Settings | Tools | File Watchers.

0

Hi, 
I got a similar problem today.

Instead of  $Message the undefined path variable was $select. 

I fixed it in workspace.xml. There was a  watch expression from last debugging left called
<watch expression="$select.$from.$where"> which caused this problem. 

Solution: Closing the IDE, removing the expression in workspace.xml with notepad solved my problem.

0

Please sign in to leave a comment.