Load error: undefined path variables

After migration of a project I'm getting this message:

 
    
Load error: undefined path variables


url is undefined. Fix it


Path variables are used to substitute absolute paths in IDEA 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 IDEA cannot restore those paths.


I don't have this variable in "Path Variables" and nothing happens when I click "Fix it"

11 comments
Comment actions Permalink

One of the project files may contain something like $url$.

Provide your project files if you can't find the problem.

0
Comment actions Permalink

I found file with "$url$" like
String message = "$url$";

What can I do to resolve my problem?

0
Comment actions Permalink

It would matter only for project files, not your code.

0
Comment actions Permalink

I use this variable by running my projects (VM options) and therefore workspace.xml contains this key. I changed it to $url$ but when I close the project it will be rewrited in $url$.
I can fix it only if I remove this string

0
Comment actions Permalink

Sorry, I don't understand what's happening. How exactly does the string $url$ appear in workspace.xml? Where does it appear there, could you please attach the text of the surrounding XML?

0
Comment actions Permalink
  ...
      <option name="VM_PARAMETERS" value="-Xmx512M -DTRACE=info -DGenBrowser=&quot;c:\Programme\Internet explorer\iexplore.exe $url$&quot; ..." />  ...
0
Comment actions Permalink

Actually "Fix it" opens "Configure Path Variables" dialog but when you remove the key with no association and close the dialog, 'guilty' Run Configuration stays the same.
Maybe, the certain problem with 'url' is specific for project import, but if one adds some $awkward_key$ in VM Options somewhere, this warning (Load error: undefined path variables) will appear every time at project loading and it's absolutely useless (unless you cannot understand WHERE the wrong key lives!).

So it's a new usability issue to be reported in YouTrack.

0
Comment actions Permalink

Is there any reason we process workspace.xml for path variables? This file is supposed to be local to the user machine and should not be shared. What's the purpose of handling path variables in this file?

However, if this run configuration will be configured as Shared, the issue reamins valid.

0
Comment actions Permalink

>> Is there any reason we process workspace.xml for path variables?
No particulal reason. Just because it is store file (we process it as any other).

I will investige this issue.

0
Comment actions Permalink

Any update on this? Each time I open play/scala project, I get this error. Very annoying!

1
Comment actions Permalink

For updates on this issue in Scala/sbt projects, please follow the issue https://youtrack.jetbrains.com/issue/SCL-10691

0

Please sign in to leave a comment.