Stack couldn't be found even with the stackPath property haskero.intero.stackPath property set in VSCode
- Bug description :
Tried installing Haskero, but the stack is not detected.
- Observed behaviour :
Following is the output:
Initializing Haskero...
Spawning process 'stack' with command '/usr/bin/stack ghci --with-ghc intero "--ghci-options=-ignore-dot-ghci -Wall" --no-build --no-load'
[Error - 1:27:48 PM] Server initialization failed.
Message: Request initialize failed with message: Failed to start process 'stack', Haskero must be used on stack projects only. Details: Error: spawn /usr/bin/stack ENOENT
Code: -32603
The above command /usr/bin/stack ghci --with-ghc intero "--ghci-options=-ignore-dot-ghci -Wall" --no-build --no-load
executes in bash just fine, so the path is definitely correct.
- Expected behaviour :
On a VSCode with Haskero installed, when opened a stack project Haskero should work as expected (i.e., support types on hover, and other features). The only feature that worked here was the syntax highlighting that comes from another plugin.
-
OS: windows | linux | macos Linux System
uname
output:Linux <hostname> 4.15.0-24-generic #26~16.04.1-Ubuntu SMP Fri Jun 15 14:35:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
-
Plugin (ghc, stack, intero and haskero) version and VSCode version used : GHC 7.10.13, Stack 1.7.1, Intero 0.1.32, Haskero 1.3.1, VSCode 1.25.1
-
Steps to reproduce:
-
Install VSCode on Linux Mint/Ubuntu. Install Haskell IDE Engine, stack, hlint, intero as described in the readme file of the corresponding project.
-
Find the stack path using
which stack
orwhereis stack
on Linux. Update thehaskero.intero.stackPath
property in VSCode for user and workspace. -
Open a Hello World stack project.
- If the issue is hard to repeat on an empty haskell project, a link to a repository containing a sample repeating the issue