Visual Studio Code - Windows 11
I wasn’t able to run the debug with the newer versions installed of stack. The installation remains incredibly complex on my point of view. I don’t know also the command lines normally used, the Linux enviroment and also all the Haskell enviroment. I’ve found also the informations on plug in unuseful, there isn’t a unique sure way or ways of steps to follow, considering the needing of all plugin installed on Visual Studio Code, enviroment variables to set, and commands to execute on PowerShell, and configuration files on the project, and the server links needed. All these things together make the path impossible to follow and the errors simply indecipherable.
It is needed a simple guide of steps to follow and things to do with one or more ways if the auto configuration isn’t possible.
For the project i’ve used the auto created laungh.json for haskell debug and the standard project created directly from stack with “stack new sample” on PowerShell to create automatically the first hs files and the files yaml needed.
The installations of GHCup all done.
There are also problems with npm and node.js launching the debugger extension for Visual Studio Code, with node already installed.
The Copilot AI isn’t able to fix all the problems encountered. It tries to make better configurations or to give tips asking informations without any result.
This is the error reported for debug stack:
start debugging failed. user error (ExecResult not found.)
HasCallStack backtrace:
collectBacktraces, called at libraries\ghc-internal\src\GHC\Internal\Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception
toExceptionWithBacktrace, called at libraries\ghc-internal\src\GHC\Internal\IO.hs:260:11 in ghc-internal:GHC.Internal.IO
throwIO, called at app\GHCi\DAP\Utility.hs:191:23 in ghci-dap-0.0.26.0-IWRnVWFJmsXKimZZG5XAVQ-ghci-dap:GHCi.DAP.Utility
: Left “user error (ExecResult not found.)\nHasCallStack backtrace:\n collectBacktraces, called at libraries\\ghc-internal\\src\\GHC\\Internal\\Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception\n toExceptionWithBacktrace, called at libraries\\ghc-internal\\src\\GHC\\Internal\\IO.hs:260:11 in ghc-internal:GHC.Internal.IO\n throwIO, called at app\\GHCi\\DAP\\Utility.hs:191:23 in ghci-dap-0.0.26.0-IWRnVWFJmsXKimZZG5XAVQ-ghci-dap:GHCi.DAP.Utility\n\n”


