Closed dewijones92 closed 2 years ago
To me it sounds like your project is problematic for the server, @michaelpj is more familiar with haskell ls.
Yes, please consult the HLS troubleshooting page and open an issue if that doesn't help: https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html
Closing the issue for now, please reopen if you discover something to be fixed on lsp-mode side.
@michaelpj @yyoncho Hello, thanks for your response. It doesn't seem to be a problem with the server side of things. The process does not exit when running on the command line.
haskell-language-server-wrapper --lsp --debug
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.7.0.0, Git revision a32db0b296d16611def15fb1d7d377fa0505beea (dirty) (2835 commits) x86_64 ghc-9.2.3
Current directory: /home/dewi/code/haskell-language-server
Operating system: linux
Arguments: ["--lsp","--debug"]
Cradle directory: /home/dewi/code/haskell-language-server
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.6.2.0
stack: 2.7.5
ghc: 9.2.3
Consulting the cradle to get project GHC version...
Project GHC version: 9.2.3
haskell-language-server exe candidates: ["haskell-language-server-9.2.3","haskell-language-server"]
Launching haskell-language-server exe at:/home/dewi/.local/bin/haskell-language-server
2022-07-07T05:47:51.835218Z | Info | No log file specified; using stderr.
2022-07-07T05:47:51.835765Z | Info | haskell-language-server version: 1.7.0.0 (GHC: 9.2.3) (PATH: /home/dewi/.local/bin/haskell-language-server) (GIT hash: a32db0b296d16611def15fb1d7d377fa0505beea)
2022-07-07T05:47:51.836403Z | Info | Directory: /home/dewi/code/haskell-language-server
2022-07-07T05:47:51.836692Z | Info | Starting (haskell-language-server) LSP server...
GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = True, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False}
PluginIds: [ pragmas
, floskell
, fourmolu
, ormolu
, stylish-haskell
, rename
, callHierarchy
, class
, eval
, importLens
, qualifyImportedNames
, refineImports
, moduleName
, hlint
, alternateNumberFormat
, selectionRange
, changeTypeSignature
, gadt
, ghcide-hover-and-symbols
, ghcide-code-actions-imports-exports
, ghcide-code-actions-type-signatures
, ghcide-code-actions-bindings
, ghcide-code-actions-fill-holes
, ghcide-completions
, ghcide-type-lenses
, ghcide-core
, LSPRecorderCallback ]
2022-07-07T05:47:51.839520Z | Info | Logging heap statistics every 60.00s
2022-07-07T05:47:51.846751Z | Info | Staring LSP server...
If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option!
The problem is seemingly only apparent when trying to get emacs to work with it. It seems to be a problem client-side. Any suggestions? thanks :)
@dewijones92 the server does not infer project dir - it receives it through initialize message.
@dewijones92 the server does not infer project dir - it receives it through initialize message.
is there a working combination of a stack project and HLS you can link me to? ideally where the versions are explicit thanks v much
@dewijones92 please follow the troubleshooting guide I linked.
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
Thanks for this amazing project 😊 I am banging my head against a brick wall here 😔 When I run "haskell-mode" I expect it to run the associated language server. But it is not.
Steps to reproduce
haskell project
haskell-mode
Expected behavior
Spacemacs should run
haskell-language-server
Which Language Server did you use?
haskell-language-server
OS
Linux
Error callstack
Anything else?
No response