Reputation: 2366
I have seen in some tutorials where an existing Maven project can be opened in IntelliJ from terminal. (open terminal; cd < folder containing pom.xml >; idea pom.xml
)
When I do this I am getting the following error:
The file /private/var/folders/vx/g0dkgs9s7wg7bz8q3yplhwxh0000gn/T/AppTranslocation/A27A814D-1A7C-45BB-88E0-E2ACCA590517/d/IntelliJ IDEA.app does not exist.
I am using macOS High Sierra 10.13.2.
I tried uninstalling and reinstalling, but no luck.
Can somebody help me figure out what the problem is?
Upvotes: 3
Views: 4275
Reputation: 686
Simpler solution.
You need to recreate the CLI scripts from within the tool/application. Probably you update IntelliJ and still pointing to non-existing version >
/private/var/folders/vx/g0dkgs9s7wg7bz8q3yplhwxh0000gn/T/AppTranslocation/A27A814D-1A7C-45BB-88E0-E2ACCA590517 .....
In IntelliJ running go to Tools -> Tools -> Create Command Line Launcher..., The file '/usr/local/bin/idea' already exists Would you like to overwrite it? Open a new console and should work.
Upvotes: 4
Reputation: 1356
This happened to me from time to time when upgrade to a new version of IntelliJ or when upgrade my OS (Mojave). These are the steps that I did to fix it in macOS:
which idea
(probably will be
/usr/local/bin/idea
) Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/182.4129.33/IntelliJ
IDEA.app does not exist.
error so I lookup into the ch-0 folder and
get 182.5107.16 183.4284.148
. This is the issue, Intellij is still
pointing to a previous version which does not exist.Opening the idea executable in step 1 and check the following section
RUN_PATH = u'/Users/robertomoreno/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/182.4129.33/IntelliJ IDEA.app' CONFIG_PATH = u'/Users/robertomoreno/Library/Preferences/IntelliJIdea2018.2' SYSTEM_PATH = u'/Users/robertomoreno/Library/Caches/IntelliJIdea2018.2'
Change it with the proper version:
RUN_PATH = u'/Users/robertomoreno/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/183.4284.148/IntelliJ IDEA.app' CONFIG_PATH = u'/Users/robertomoreno/Library/Preferences/IntelliJIdea2018.3' SYSTEM_PATH = u'/Users/robertomoreno/Library/Caches/IntelliJIdea2018.3'
idea path/to/file.is
should work now
Upvotes: 5
Reputation: 2366
I don't know if this is how Intellij behaves. I did the following:
Without launching Intellij if I try idea pom.xml from terminal, I am getting this error:
The file /private/var/folders/vx/g0dkgs9s7wg7bz8q3yplhwxh0000gn/T/AppTranslocation/A27A814D-1A7C-45BB-88E0-E2ACCA590517/d/IntelliJ IDEA.app does not exist.
Upvotes: 0