Skip to content

[QUESTION] Does Robotcode IntelliJ support running under WSL? #433

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

Open
apallier opened this issue Apr 24, 2025 · 3 comments
Open

[QUESTION] Does Robotcode IntelliJ support running under WSL? #433

apallier opened this issue Apr 24, 2025 · 3 comments
Labels
question Further information is requested

Comments

@apallier
Copy link

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 apallier added the question Further information is requested label Apr 24, 2025
@apallier
Copy link
Author

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)

@d-biehl
Copy link
Member

d-biehl commented Apr 29, 2025

I am not sure, did not tried it. But if this error appears, then you need to set your python interpreter correctly see here #400 (comment)

@apallier
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants