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.

Support for jedi-language-server code diagnostics configuration

See original GitHub issue

Description

Dear @krassowski , after the improvements achieved with jedi-language-server for autocompletion (#272), I am looking forward to configuring it to work with the code diagnostics features.

Unfortunately the latter doesn’t work out of the box and I can’t find any useful debugging/troubleshooting message to share.

Would it be possible to get some help to understand what code diagnostics expects and how to include its configuration? Many thanks

Reproduce

  1. Install jedi-language-server as described in https://github.com/pappasam/jedi-language-server
  2. Create a minimal server setting (See #272 for example)
  3. Make a PEP8 mistake in the code

Expected behavior

Expecting seeing the Diagnostic Panel getting populated. Instead nothing happens.

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
krassowskicommented, Jan 31, 2021

This is expected, jedi-language-server only provides syntax errors. Good to have a confirmation that it is working well. We still intend to allow for having two different language servers per document (so that you could use completions from jedi-language-server and diagnostics from another language server) but this has no ETA (it would require some back-and-forth with design and thorough testing so it might happen during one of the future holidays unless someone will contribute earlier).

We just released jupyterlab-lsp 3.3.0 and jupyter-lsp 1.1.2 which bring more stability and performance improvements.

0reactions
sntglucacommented, Jan 31, 2021

@krassowski,

I actually didn’t answer your question below, did I? In my setup, I am using jupyterlab-lsp==3.2.0, jedi-language-server==0.21.0 and pygls==0.9.1, which seem to be the newest public releases (at least with conda).

The diagnostics panel only shows syntax errors. Do I have to change anything? Dependencies, configurations, updates? Is there some documentation I missed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

pappasam/jedi-language-server - GitHub
A Language Server for the latest version(s) of Jedi. If using Neovim/Vim, we recommend using with coc-jedi. Supports Python versions 3.7 and newer....
Read more >
jedi-language-server - PyPI
jedi -langugage-server provides diagnostics about syntax errors, powered by Jedi. If you would like additional diagnostics, we suggest using the ...
Read more >
Language Server Extension Guide - Visual Studio Code
With Language Servers, you can implement autocomplete, error-checking (diagnostics), jump-to-definition, and many other language features supported in VS Code.
Read more >
Language Server
Language Maintainer Repository Ada AdaCore github.com/AdaCore/ada_language_server ANTLR Ken Domino github.com/kaby76/AntlrVSIX Apache Camel Camel Tooling github.com/camel‑tooling/camel‑language‑server
Read more >
LSP Mode - Language Server Protocol support for Emacs ...
Flexible - choose between full-blown IDE with flashy UI or minimal distraction free. ⚙ Easy to configure - works out of the box...
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