ghcSimple.replCommand is ignored when Haskell file is opened without workspace
EduardSergeev opened this issue · 0 comments
EduardSergeev commented
Status
- A workaround is available
- A fix is written
- A fix is released
- The fixed version is on the marketplace.
- Version of vscode-ghc-simple: 0.1.22
- Version of VSCode: 1.49.1
- Version of Haskell-related tools:
- GHC: 8.10.2
- Stack: 2.3.3
- Cabal: 3.2.0.0
Steps to reproduce
- Start VSCode without a workspace (Close Folder if needed)
- Set
ghcSimple.replCommand
to some custom command in User (global) settings, i.e. plainghci
- Open a Haskell source file
- Check GHC logs
Expected
Starting GHCi with: "ghci"
(Under default cwd)
-> :set prompt ""
|> :set prompt-cont ""
ghci | GHCi, version 8.10.2: https://www.haskell.org/ghc/ :? for help
Actual
Starting GHCi with: "stack --no-terminal --color never exec ghci"
(Under default cwd)
-> :set prompt ""
|> :set prompt-cont ""
ghci | GHCi, version 8.8.4: https://www.haskell.org/ghc/ :? for help
Workspace
There should be no workspace opened
GHC log
Starting GHCi with: "stack --no-terminal --color never exec ghci"
(Under default cwd)
-> :set prompt ""
|> :set prompt-cont ""
ghci | GHCi, version 8.8.4: https://www.haskell.org/ghc/ :? for help