Open cloudcrypt opened 4 years ago
haskell-debug-adapter does not switch exes dynamicaly. Could you install haskell-debug-adapter in the stack project folder ? It will switch global exe files to suitable version from snapshots.
stack_project> stack install haskell-dap ghci-dap haskell-debug-adapter
Regards.
haskell-debug-adapter does not switch exes dynamicaly. Could you install haskell-debug-adapter in the stack project folder ? It will switch global exe files to suitable version from snapshots.
stack_project> stack install haskell-dap ghci-dap haskell-debug-adapter
Regards.
This does work, it copies the suitable version from the snapshots into the global bin directory.
So is this the way then, that when switching between projects that use different resolvers, one has to run stack install haskell-dap ghci-dap haskell-debug-adapter
in the current directory before debugging, every time one switches projects? And if so, any way this type of thing can be automatic, perhaps in the VSCode extension?
Could you set full path to the ghci-dap with "--with-ghc" option in the launch.json ?
--with-ghc=C:\\Users\\phoityne\\AppData\\Roaming\\stack\\snapshots\\xxxxxxxx\\bin\\ghci-dap
You can use suitable ghci-dap for each project.
Yeah, that can certainly work. Might there be any way to make this more automatic though?
Scenario:
STACK_ROOT\global-project\stack.yaml contains
resolver: lts-15.9
current_project_directory\stack.yaml contains
resolver: lts-14.27
ghci-dap is installed by stack globally, installing ghci-dap.exe in the bin folder.
Issue: Occurs whenever
--with-ghc=ghci-dap
is usedI tested this by creating a new stack project, using
resolver: lts-15.9
, and the issue did not occur.(OS: Windows 10)