-
Notifications
You must be signed in to change notification settings - Fork 149
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
IHaskell + HLS support #1065
Comments
Thanks @AJMC2002. It looks related to haskell/haskell-language-server#3821
What is the notebook name? This percent encoding looks odd. Based on haskell/haskell-language-server#3821 (comment):
I understand that haskell-language-server tries to infer the type from file URI (so basically from extension). If I see this correctly, it will not infer much from If the haskell language server requires |
It's "Практика 2.ipynb". I assume it's just changing the Cyrillic alphabet into utf-8 hex codes. So I'll put my attempts below using the following base test file in -- /IHaskell/notebooks/test.hs
main = sumSomething genSomething
genSomething = replicate 5 10
sumSomething = sum
doSomething = do
return $ sumSomething genSomething Only opening the test file in Jupyter Lab and not doing anything elseJupyter Lab output
First try + Error messageAfter loading the file, there's an error present, since
in the output log. Here's the error message: When hovering over it, the LSP outputs the following:
Autocompletion works with locally defined functions and bindings. Nonetheless for dependencies installed in the directory, it doesn't autocomplete anything. Using tab in an empty function shows common keywords. Jumping to definition and showing references doesnt work. The output of the LSP doens't mention much about autocompletion or other requests, mainly showing output of hovering and rebuilding everytime the file is modified. Complete output
In some time I'm gonna check out what happens if I add the test file to the cabal file. |
Description
I'm trying to make haskell-language-server work with the following configuration
See config
I'm running jupyter lab in the clone of IHaskell repository and the LSP isn't working properly since it isn't receiving configuration from the client. After running
jupyter lab --ContentsManager.allow_hidden=True
I get:Output
Basically the server does nothing, is there some way to fix this or is it some issue with jupyterlab-lsp, or even with hls settings?
Reproduce
.lsp_symlink
directing to/
.cabal.project
.jupyter lab --ContentsManager.allow_hidden=True
.Expected behavior
The language server should provide it's functionality but instead it returns a warning:
Warning | No plugin handles this "..." request.
I assume the established configuration doesn't get to the lsp since it shows:
The text was updated successfully, but these errors were encountered: