robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[QUESTION] Does Robotcode IntelliJ support running under WSL?

Open apallier opened this issue 10 months ago • 3 comments

Please describe. Does Robotcode IntelliJ support running under WSL?

I have a WSL project under Pycharm and Robotcode doesn't seem to work properly but it might be my setup. I only have the syntax hightlighting working but no other features like the hyperlink navigation on keywords.

Desktop (please complete the following information):

  • Pycharm Version: 2024.3.5
  • RobotCode Version: 1.0.3
  • OS: Windows 11 Professionnel
  • Python Version: 3.10
  • RobotFramework Version: 7.2.2

apallier avatar Apr 24 '25 20:04 apallier

Here the error I see at opening:

java.lang.IllegalArgumentException: PythonSDK is not defined or robot version is not valid for project test-automation
	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)

apallier avatar Apr 28 '25 07:04 apallier

I am not sure, did not tried it. But if this error appears, then you need to set your python interpreter correctly see here https://github.com/robotcodedev/robotcode/issues/400#issuecomment-2722778246

d-biehl avatar Apr 29 '25 17:04 d-biehl

Thanks for your response. My Python interpreter is configured as described in #400, and my Python code in the same project is working well. My other projects using Robotcode without WSL don't have the same problem, so I guess it's a WSL-specific issue.

apallier avatar Apr 30 '25 10:04 apallier

Hi, I've got the same issue, error that python interpreter is not set. I'm using PyCharm 2025.2.4 with WSL2 Also using another robotframework plugin for my IDE -> https://plugins.jetbrains.com/plugin/16382-hyper-robotframework-support which is working fine on my setup Checked also WSL2 + vscode which also works fine.

MarcinGmurczyk avatar Feb 20 '26 10:02 MarcinGmurczyk