-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yesod project haskell-language-server crashes #1839
Comments
Not 100% sure if this is related or not, though I also have an issue with yesod/sqlite.
After I saw the last assertion error, I tried to reproduce it with macOS, but on macOS, Next, I changed the Stackage version to lts-17.13 (ghc-8.10.4). I added
|
I got the same issue. OS: ubuntu20.04, haskell-language-server: 1.5.1, installed by ghcup, ghc: 8.8.4 lsp-haskell::stderr: Found "/home/lulin/projects/summersun/hie.yaml" for "/home/lulin/projects/summersun/a" Tool versions found on the $PATH Consulting the cradle to get project GHC version... Process lsp-haskell stderr finished |
Just for your information. |
Hi, thanks for confirming it, i think it is related with the use of th and linking issues so it confirms the troubleshooting guide: https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html#static-binaries |
HLS rarely works with Yesod for me so I tried this little test by not using the Yesod Template, instead just using plain Stack and I was pleasantly surprised to see HLS working. https://github.com/risingBirdSong/yesodHLStest maybe give it a try and see if it works for you? |
I am gonna close this issue as all compiler crashes seems to have the same root cause:
If any of you think the issue should not be included generically feel free to reopen it (with a brief explanation if possible) |
Module "/Users/liu/my-project/a" is loaded by Cradle: Cradle {cradleRootDir = "/Users/liu/my-project", cradleOptsProg = CradleAction: Stack}
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.1.0.0, Git revision f1c0969 (dirty) x86_64 ghc-8.10.4
Current directory: /Users/liu/my-project
Operating system: darwin
Arguments: ["--lsp","-d","-l","/var/folders/fh/69nshvzd2h98d99cmytnx9nm0000gn/T/hls.log"]
Cradle directory: /Users/liu/my-project
Cradle type: Stack
Tool versions found on the $PATH
cabal: 3.2.0.0
stack: 2.5.1
ghc: 8.8.3
Consulting the cradle to get project GHC version...
Project GHC version: 8.8.4
haskell-language-server exe candidates: ["haskell-language-server-8.8.4","haskell-language-server-8.8","haskell-language-server"]
Launching haskell-language-server exe at:/Users/liu/bin/haskell-language-server-8.8.4
haskell-language-server version: 1.1.0.0 (GHC: 8.8.4) (PATH: /Users/liu/bin/haskell-language-server-8.8.4) (GIT hash: f1c0969)
Starting (haskell-language-server)LSP server...
with arguments: GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = True, argsLogFile = Just "/var/folders/fh/69nshvzd2h98d99cmytnx9nm0000gn/T/hls.log", argsThreads = 0, argsProjectGhcVersion = False}
with plugins: [PluginId "pragmas",PluginId "floskell",PluginId "fourmolu",PluginId "tactics",PluginId "ormolu",PluginId "stylish-haskell",PluginId "retrie",PluginId "brittany",PluginId "class",PluginId "haddockComments",PluginId "eval",PluginId "importLens",PluginId "moduleName",PluginId "hlint",PluginId "splice",PluginId "ghcide-hover-and-symbols",PluginId "ghcide-code-actions",PluginId "ghcide-completions",PluginId "ghcide-type-lenses",PluginId "ghcide-core"]
in directory: /Users/liu/my-project
Starting LSP server...
If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option!
Started LSP server in 0.00s
setInitialDynFlags cradle: Cradle {cradleRootDir = "/Users/liu/my-project", cradleOptsProg = CradleAction: Stack}
Output from setting up the cradle Cradle {cradleRootDir = "/Users/liu/my-project", cradleOptsProg = CradleAction: Stack}
my-project.zip
The text was updated successfully, but these errors were encountered: