Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException: Running command 'intellij' with arguments 'D:\projects\IDEasy\workspaces\test' failed: Cannot run program "intellij": CreateProcess error=2, The system cannot find the file specified #626

Closed
hohwille opened this issue Sep 17, 2024 · 2 comments
Labels
bug Something isn't working invalid This doesn't seem right
Milestone

Comments

@hohwille
Copy link
Member

$ ide intellij
Updates are available for the settings repository. If you want to pull the latest changes, call ide update.
Configuring workspace test for IDE intellij
Step 'ide (intellij)' failed: java.lang.IllegalStateException: Running command 'intellij' with arguments 'D:\projects\IDEasy\workspaces\test' failed: Cannot run program "intellij": CreateProcess error=2, The system cannot find the file specified
1 step(s) failed out of 3 steps.
An unexpected error occurred!
We are sorry for the inconvenience.
Please check the error below, resolve it and try again.
If the error is not on your end (network connectivity, lack of permissions, etc.) please file a bug:
https://github.com/devonfw/IDEasy/issues/new?assignees=&labels=bug&projects=&template=bug.md&title=IllegalStateException%3A+Running+command+%27intellij%27+with+arguments+%27D%3A%5Cprojects%5CIDEasy%5Cworkspaces%5Ctest%27+failed%3A+Cannot+run+program+%22intellij%22%3A+CreateProcess+error%3D2%2C+The+system+cannot+find+the+file+specified
java.lang.IllegalStateException: Running command 'intellij' with arguments 'D:\projects\IDEasy\workspaces\test' failed: Cannot run program "intellij": CreateProcess error=2, The system cannot find the file specified
        at com.devonfw.tools.ide.process.ProcessContextImpl.run(ProcessContextImpl.java:173)
        at com.devonfw.tools.ide.tool.intellij.Intellij.runTool(Intellij.java:44)
        at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.runIde(IdeToolCommandlet.java:58)
        at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.run(IdeToolCommandlet.java:48)
        at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:856)
        at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:765)
        at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:89)
        at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:52)
        at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:29)
        at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.io.IOException: Cannot run program "intellij": CreateProcess error=2, The system cannot find the file specified
        at [email protected]/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
        at [email protected]/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
        at com.devonfw.tools.ide.process.ProcessContextImpl.run(ProcessContextImpl.java:147)
        ... 9 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$NewObjectWithObjectArrayArgFunctionPointer.invoke(JNIFunctions.java)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions.ThrowNew(JNIFunctions.java:907)
        at [email protected]/java.lang.ProcessImpl.create(Native Method)
        at [email protected]/java.lang.ProcessImpl.<init>(ProcessImpl.java:500)
        at [email protected]/java.lang.ProcessImpl.start(ProcessImpl.java:159)
        at [email protected]/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
        ... 11 more


Error: IDEasy failed with exit code 255
@hohwille hohwille added the bug Something isn't working label Sep 17, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Sep 17, 2024
@hohwille
Copy link
Member Author

The folder D:\projects\IDEasy\workspaces\test surely exists.
I am clueless what file the system cannot find. IMHO it is the intellij command since the script was not created on installation.
So my guess is this is caused by #366
Do I have to delete all my IntelliJ installations from software folder and reinstall?

While we are in BETA we can work this way but be aware that once we are out of BETA we cannot cause such bugs in official releases so we have to learn to care & think more about the impact of our changes.

@hohwille
Copy link
Member Author

OK. Confirmed. This was due to issue #366 and PR #540.
Workaround: Delete ${IDE_ROOT}/_ide/software/default/intellij (after closing all IntelliJ instances) and reinstall IntelliJ with latest IDEasy.

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in IDEasy board Sep 17, 2024
@hohwille hohwille added this to the internal milestone Sep 17, 2024
@hohwille hohwille added the invalid This doesn't seem right label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant