Load error: undefined path variables every time project opens

When I open a project, I get the popup "Load error: undefined path variables: cacheChecklistUpdateKeyPrefix. is undefined".

The text "cacheChecklistUpdateKeyPrefix." does not exist at all in my project (it actually exists in a different project).

When I open the project, I get this prompt and the ability to "fix it". Even when I delete the empty path variable that shows up in the "fix it" popup, it shows up the next time I open the project again. How can I make this go away forever?

11 comments
Comment actions Permalink

Hi there,

1) Can you please show a screenshot of such message?

2) As well as screenshot where such path variable is used in another project?

0
Comment actions Permalink

Here is the first screenshot of the message1.jpg

This is a screenshot of the "fix it" window 2.jpg

I do not use the path variable in another project, it is simply a PHP variable in one of my scripts in the other project.

0
Comment actions Permalink
I do not use the path variable in another project, it is simply a PHP variable in one of my scripts in the other project.

That looks odd for me...

Maybe you are having it defined it on another computer (you .. or another user that works on the same project)?

In case if you did not know: Path Variables are used to point to the same folder/file on different computers. Instead of the actual path (or part of it) IDE actually saves the path variable instead .. and then silently expands to a proper path. This way you can point to some folder/file/tool that is physically located in different folders on different computers which makes such paths more portable.

---

In any case: please do full file search for it in all files in .idea subfolder (your project settings) while project is closed. It should be somewhere there since IDE complains about it.

If you found it -- see what context is that and remove it (the reference; obviously -- backup that file first). Once done -- check that setting in IDE -- it may point to a wrong/missing folder etc.

0
Comment actions Permalink

I am having this problem for an sbt project where one module has a hyphen in the name.  

 

sbt.imports="$c3a15599af292dd684e6.aux$minusclients, …"

Keep getting an error that "c3a15599af292dd684e6.aux" doesn't exist.  So clearly the $minus or the real hyphen / minus are causing a parsing issue.

0
Comment actions Permalink

I had similar bug (and googled my way here), but I found the possible culprit myself: In my case those variables were being WATCHed in the debugger, so I ran the debugger, removed all watches, and restarted PhpStorm - problem went away!

1
Comment actions Permalink

I also ran into this bug. I am using IntelliJ IDEA Ultimate 2017.1 with Scala. Every time I open the project, IDEA complains about an undefined path variable with a name that is clearly not defined by myself. In this case it is "fc257d061cf7bd475ef2.hello".

I can open the "Configure Path Variables" window and remove the variable, but when I open the project again, the same thing will happen.

A full text search inside of .idea revealed the culprit (similar to what Ted Rust found: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206337779/comments/204198964). It is in the file "hello-grpc-build.iml". In there the tag "module" has an attribute "sbt.imports" which contains the string:

sbt.imports="$fc257d061cf7bd475ef2.hello$minusgrpc, 

The beginning of the first two lines of the file are below the attached screenshots.

Beginning of the .iml file containing what IDEA thinks is an "unknown path variable":

<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="hello-grpc-build" external.linked.project.path="$MODULE_DIR$/../../project" external.root.project.path="$MODULE_DIR$/../.." external.system.id="SBT" sbt.imports="$fc257d061cf7bd475ef2.hello$minusgrpc, AutomateScalafmtPlugin.autoImport._, _root_.org.ensime.EnsimePlugin.autoImport._,

0
Comment actions Permalink

@Ted Rust, @Phd Doerfler

That looks like https://youtrack.jetbrains.com/issue/SCL-10691 -- please watch that ticket (star/vote/comment) to get notified on any progress.

0
Comment actions Permalink

Phd Doerfler: Try checking (and removing all) your debug-watches, they seem to somehow leak into this.

0
Comment actions Permalink

@Andriy Bazanov thanks for pointing out that issue. I voted for it.

@Riku Nevala I don't even have a debug run configuration, so no debug watches either.

0
Comment actions Permalink

@Riku Nevala - Thank you for your advice. I had been debugging some AngularJS based JavaScript. I had peformed "evaluate expression" for variables with names such as "$scope.user" and "$scope.draggableObjects" (for my "expression strings"). IntelliJ added these dollar-sign strings to my "debuggerHistoryManager" component of my workspace.xml file.

I had no idea that these dollar-sign strings would cause me to get the error message: Load error: undefined path variables: scope is undefined. Fix it.

After manually editing my .idea/workspace.xml file to remove those dollar-sign based strings from the "evaluateExpression" part of the "debuggerHistoryManager" section, the error message went away. So, again, I say thanks to you.

0
Comment actions Permalink

This bug came up just today: Yesterday I debugged some sql-queries in my php-project, and added a watch that had concatenated string variables like "$sql5.$where". Today, PHPStorm started with "Load error: undefined path variables: sql5. is undefined".

To my surprise, I could not even find it inside the .idea/workspace.xml -file, and removing debugger watches and restarting did not help at all. Finally, I clicked "Fix it", assigned a path to the sql5. -variable, and restarted. The problem went away, and then I went to remove said variable so it wont bother anymore.

 

I did experience a crash on PHPStorm yesterday, I wonder if it could have left the variable in some other file that "leaked" into the project path variables...

 

PhpStorm 2019.2.2
Build #PS-192.6603.42, built on September 12, 2019

0

Please sign in to leave a comment.