IntelliJ Idea: can't create new project from cli if Idea is started

Answered

I'm opening a maven project (new for idea) from the cli, using following command:

$ idea pom.xml

That works perfect when there's no starting instances of IntelliJ Idea -> Idea starts up and  generates a new project, 

If Idea is started up, it would not react on the command -> no new project would be generated.

0
2 comments

What IDE version and OS do you use?

Works fine for me with 2018.1.5: with already started IDE I execute idea <path/to/pom.xml> and get prompted with the dialog:


0
Avatar
Permanently deleted user

Andrey, thanks for checking.

My env: Idea 2018.1.5 Ultimate edition, Mac OS X High Sierra version 10.13.4.

I don't have the prompt message that you've attached at all :(

 

I checked more carefully and it turns out that the launcher ( /usr/local/bin/idea ) was referencing to wrong config folders. E.g.

     CONFIG_PATH = u'/Users/e3cmea/Library/Preferences/IntelliJIdea2017.3'

     SYSTEM_PATH = u'/Users/e3cmea/Library/Caches/IntelliJIdea2017.3'

In /Users/e3cmea/Library/Preferences there are two folders: IntelliJIdea2017.3 and IntelliJIdea2018.1

 

Re-creating the command-line launcher from Idea fixes the issue.

 

Thanks for the help anyway!

 

 

0

Please sign in to leave a comment.