kotest / kotest-intellij-plugin

The official Kotest plugin for Intellij and Android Studio
Apache License 2.0
181 stars 25 forks source link

`%1 is not a valid Win32 application` when running with WSL backend #136

Closed Strum355 closed 3 years ago

Strum355 commented 3 years ago

22:37 Error running 'AnalyzerTest: basic test': Cannot run program "\\wsl$\Arch\home\noah\.cache\coursier\jvm\adopt@1.11.0-11\bin\java" (in directory "\\wsl$\Arch\home\noah\Sourcegraph\lsif-kotlin\semanticdb-kotlinc"): CreateProcess error=193, %1 is not a valid Win32 application

Repro repo can be found here, with the particular test file located here. Gradle is configured to use the Java distribution in WSL.

Let me know if you need any more specific information 🙂

franzvezuli commented 3 years ago

Thanks for reporting, just came here to say the same. I flip between OSX and Windows (using WSL) often, and would be great to have the ability to run a single unit test in Windows.

Also related, I had to update to IntelliJ 2021.2 EAP because of this issue as well: https://youtrack.jetbrains.com/issue/KTIJ-11628#focus=Comments-27-4918500.0-0

sksamuel commented 3 years ago

Is this only happening with Kotest?

franzvezuli commented 3 years ago

Is this only happening with Kotest?

I don't run that many plugins, but I can verify that IntelliJ 2021.2 EAP with Kotlin on Windows (WSL2) works with JUnit. But I really like Kotest! For now compiling and running tests through the command line works, just not in the idea. Again, only an issue with Windows using WSL2

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

buzoherbert commented 2 years ago

I have the same issue, does anyone know if there is a fix for using this plugin and WSL?

msttmms commented 2 years ago

Hello everyone, I am experiencing the same issue.

pacdouglas commented 2 years ago

Hello! I have got the same issue...

DragonString commented 2 years ago

Hello, I have got the same issue too..

talhademir4 commented 1 year ago

Hello! I have got the same issue...

meechew commented 8 months ago

The latest update to PHPstorm caused this error to pop up for all attempts to run any PHP code in WSL with PHPstorm.