question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m trying to use the ghcide LSP server for Haskell with this extension, with these Language Server User Preferences:

{                                     
  "language_servers": {                    
    "ghcide-language-server": {            
      "version": 1,                        
      "argv": ["/opt/bin/ghcide", "--lsp", "--verbose"],
      "languages": ["Haskell"]             
    }                                      
  }
}

After the message LSP: Untitled1.ipynb ready for connection, an error is thrown from this line:

https://github.com/krassowski/jupyterlab-lsp/blob/f305ab4e1d8ff6b62daffe1460636175406a00df/packages/jupyterlab-lsp/src/adapters/jupyterlab/jl_adapter.ts#L212

this is of type NotebookAdapter, and this.mime_type is undefined, and the error says:

react_devtools_backend.js:2273 TypeError: Cannot read property 'split' of undefined
   at NotebookAdapter.get language [as language] (jl_adapter.js:126)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesdbrockcommented, Aug 13, 2020

Thanks @krassowski and @bollwyvl , This is a really nice JupyterLab extension, I hope we can get it working for IHaskell.

1reaction
jamesdbrockcommented, Aug 12, 2020

As you guessed @bollwyvl , .hs files seem to work but Haskell notebooks not so much.

Screenshot from 2020-08-13 00-47-05_jupyter-lsp-file

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Haskell kernel for the Jupyter project. - GitHub
IHaskell does not support Windows, however it can be used on Windows 10 via Windows Subsystem for Linux (WSL). If WSL is not...
Read more >
IHaskell Notebook
IHaskell supports most GHC extensions via the :extension directive (or any ... However, unlike GHCi, which simply prints info, the IHaskell notebook brings ......
Read more >
ihaskell: A Haskell backend kernel for the Jupyter project.
IHaskell is a Haskell backend kernel for the Jupyter project. This allows using Haskell via a console or notebook interface.
Read more >
GHC version support - haskell-language-server - Read the Docs
The current support for different GHC versions is given in the following table. Last supporting HLS version: “next”: this GHC version is supported...
Read more >
Yes, IHaskell Can Do That! - YouTube
Compose NYC 2019Speaker: Vaibhav SagarIHaskell is a Haskell kernel for the Jupyter notebook project. As one of its most enthusiastic users, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found