Problem: IntelliJ isn't loading second project from command line after recent update.
Answered
I usually start intelliJ with CLI command "idea ." It worked well till recent time, before I updated to the latest version.
I'd like ask somebody to check if you also face the same problem as I do, before filing a bug/request.
Eventually it works now as well, but only with the first project. Though it doesn't work anymore if I go to another directory and try opening another project. Running the CLI command only leads to appearing existing IntelliJ window from background, but the new project isn't opening.
Please sign in to leave a comment.
Update the command line launcher: Tools | Create Command-line Launcher.
If the IDE is managed by Toolbox, delete the existing launcher and configure Toolbox to create a new one.
Thanks! It works
I ran the update and Idea CLI tool is working better! It focuses Idea and on the first and second open projects, it works great. However if Iopen a third project with `idea .` it does not bring that third window to the front. I have to swap windows to bring it to the front. I can live with this as at least Idea is focused now, but it's not doing what I would expect it to on opening the third project.
I'm having the exact same issue. I'm on Windows with the latest 2019.1.4. The first project loads fine through the command line, but subsequent ones do not. Opening from within Intellij is fine. Unfortunately "Tools | Create Command-line Launcher" doesn't seem to exist anyone and I'm not installed through Toolbox. Any ideas? Thanks!
Hello Jefffan24,
Do you use the latest IDE build? I tried to recreate this issue on IntelliJ IDEA 2019.2.2 (build #IU-192.6603.28), the third project is opened in the foreground, as expected. You can copy that information from "Help | About".
In case you do, could you please create a few sample projects and check if the problem persists with them?
Hello Mark,
On Windows "Create Command-line Launcher" option is missing, however you can create it from Toolbox (in Settings | Generate shell scripts): https://www.jetbrains.com/toolbox/app/
> The first project loads fine through the command line, but subsequent ones do not
Do you pass project name as an argument to IDE launcher?
What exactly happens when you try to open the second project?
Thanks Arseniy. Don't worry about the creat command-line launcher. I don't really need it. I only mentioned it since it was a solution for the other poster.
There are three ways that I have tried to open the second project (which I believe are all equivalent in windows):
1) double clicking on the ipr file
2) running the IDE exe and passing the ipr file as an argument
3) just typing the ipr in a command prompt
All 3 work on the first project. On the second project you get a spinning wheel for a split second and then nothing happens. This was working in previous versions and also works in 2019.2.2. So it seems to be just 2019.1.4. If you try it on 2019.1.4 you should have no problem replicating.
Just so wires don't get crossed I have already put in a youtrack ticket : https://youtrack.jetbrains.com/issue/IDEA-222164