Haskero loading of Intero backend causes issues
-
Bug description: When opening/loading a Haskell file in VSCode using the
Haskero
plugin -> getting an error in the OUTPUT tab of the console. See also the discussion withintero
developement team here: https://github.com/commercialhaskell/stack/issues/3921. -
Observed behaviour: The following error message is displayed:
Initializing Haskero... Spawning process 'stack' with command 'stack ghci --with-ghc intero "--ghci-options=-ignore-dot-ghci -Wall" --no-build --no-load' [Error - 10:44:18] Server initialization failed. Message: Request initialize failed with message: process exited with code 1
stdout:
stderr: Invalid option `-Wall'
Usage: stack ghci [TARGET/FILE] [--ghci-options OPTIONS] [--ghc-options OPTIONS] -flag PACKAGE:[FLAG] -with-ghc GHC] [--[noload] [--package ARG] [--main-is TARGET] [--load-local-deps] -[nopackage-hiding] [--only-main] [--trace] [--profile] -no-strip] [--[notest] -[nobench] [--help] Run ghci in the context of package(s) (experimental)
Code: -32603
-
Expected behaviour:
Haskero
plugin loaded and connected to theintero
backend correctly. -
OS: macOS High Sierra
-
Plugin (ghc, stack, intero and haskero) version and VSCode version used:
Haskell 8.2.2
(installed using theasdf
version manager, updated daily);Stack: 1.6.5
(updated daily);Haskero: latest
(updated daily);VSCode: latest
(updated daily, both the plugin and the core IDE) -
Steps to reproduce:
- Open a new Haskell file OR open a Haskell file inside a project (i.e. created by
stack init
, including all necessary.yml
and whatnot files). The issue happens when theHaskero
plugin tries to connect to theintero
backend.
-
Note:
Again, see ongoing discussion with
intero
dev team here: https://github.com/commercialhaskell/stack/issues/3921