Closed
Description
Opening non-Python projects in IntelliJ with the plugin enabled yields an “IDE Internal Error” like this one:
java.lang.IllegalArgumentException: PythonSDK is not defined or robot version is not valid for project FOOBAR
at dev.robotcode.robotcode4ij.RobotCodeHelpersKt.buildRobotCodeCommandLine(RobotCodeHelpers.kt:101)
at dev.robotcode.robotcode4ij.RobotCodeHelpersKt.buildRobotCodeCommandLine$default(RobotCodeHelpers.kt:92)
at dev.robotcode.robotcode4ij.testing.RobotCodeTestManager.refresh$lambda$14(RobotCodeTestManager.kt:229)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$executeOnPooledThread$2.call(AnyThreadWriteThreadingSupport.kt:195)
at com.intellij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:85)
at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:94)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:109)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:103)
at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
at java.base/java.lang.Thread.run(Thread.java:1583)
A comment on #400 recommends configuring a Python interpreter, however, that doesn’t seem to make sense for non-Python projects.
Even if a Python SDK should be needed for RobotCode, it should not be mandatory for IDE projects which don’t use the Robot Framework.
- RobotCode Version: 1.0.3
- OS: Linux
- Python Version: N/A
- RobotFramework Version: N/A