dramforever/vscode-ghc-simple

ghcSimple.replCommand is ignored when Haskell file is opened without workspace

EduardSergeev opened this issue · 0 comments

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

  1. Start VSCode without a workspace (Close Folder if needed)
  2. Set ghcSimple.replCommand to some custom command in User (global) settings, i.e. plain ghci
  3. Open a Haskell source file
  4. 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