Open b-ncMN opened 2 years ago
I noticed the same problem (current version)
The event log shows, that intellij-haskell tries to use it as a windows executeable:
15:01 Cannot run program "\\wsl$\Ubuntu.20.04\usr\local\bin\stack" (in directory "C:\Users\Joshua"): CreateProcess error=193, %1 ist keine zulässige Win32-Anwendung
15:01 Executing `\\wsl$\Ubuntu.20.04\usr\local\bin\stack --numeric-version` failed: \\wsl$\Ubuntu.20.04\usr\local\bin\stack --numeric-version:
I have no knowledge of WSL. Is the path to stack
the problem?
Hm, I'm not actually sure, it would be very worth to investigate this though :+1:
I have no knowledge of WSL. Is the path to
stack
the problem?
The path is correct. The problem is that the plugin tries to call this file from Windows terminal because it thinks that we're on Windows.
In the case of WSL, IDE runs on Windows, whereas the project and Haskell binaries are in Linux.
To fix the issue, one probably has to:
intellij.haskell.external.execution.CommandLine
calls to run commands in WSL terminal, when needed,SystemInfo.isWindows
/ SystemInfo.isLinux
checks to account for WSLP.S. WSL is just a special case of Remote Development, so ideally there should be a general fix (covering WSL, SSH etc).
Hi, I'm opening an issue because I'm not sure if this plugin supports WSL 2.
I'm trying to setup a project SDK from windows into WSL, so selecting a stack executable into WSL, but the plugin states that
maybe the plugin does not know how to work with WSL ? And if it doesn't, it would be great to implement a way to use this with WSL.