-
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
XText Language Servers Support #578
Comments
I'm sorry that it is not working as intended. In general, if this language server is popular enough we could consider including in our testing pipeline (and auto-detect by default) to avoid such regressions in the future. What do you think? I usually debug by setting a debug flag on the language server, but indeed only some of the servers support it. If you want to peek the content of the message you could modify: e.g.
I think it would be fine to have that by default actually - feel free to send a PR.
Just to be extra sure: this modifies the web developer console output; It should show quite a lot of information. Not all messages, but things related to completion etc. Did you check the developer console in the browser? |
Other things to check:
|
Thank you for your feedback.
As for this language it is not popular. And as for XText it is not a language but a framework for the language development.
Yes, it is. Otherwise, as I think, it wouldn't run on the older version too, because it also required stdio mode.
|
I found a workaround for my problem. First of all thank you again, @krassowski because your feedback inspired me to write a Pipe-Intercept-Skript. With its help I could log the LSP communication between server and client. 'Input.log' contains the messages sent from Jupyter to LS and the 'output.log' contains the LS responses. As you can see, the language server sends empty messages to the client. That was the reason for missing feedback in the notebooks.
My LS expected the file extension to be ".oconf". So I renamed "Untitled7.ipynb" to "Untitled7.oconf" and it started working. And this point I ask if it could be possible to implement some "fake mode", so that clinet sends a URI with an appropriate extension? Or is there an existing workaround? |
We do that automatically already, assuming that the In past we saw quite a few kernels failing to comply with specs here:
So we should probably document this requirement it better. |
Here is some output in terminal running Jupyterlab
So, |
Thanks for the update. Hmm.... So it looks like a problem at out end too. I thought that we were adding the file extension ( which was introduced by myself in krassowski@5eb345b. I think that instead we should keep adding them if the |
Description
A year ago I used this plugin (version 0.7.1) with the XText language servers. In that old version, there were no problems and everything worked as expected (diagnostics, completion, etc.). The latest version, however, seems not to work with XText LS anymore. On the first look, I managed to make it seemingly work following the latest installation and configuration guides. The status of the language server in the bottom shows "Fully Initialized" and the terminal log shows messages like "Handling a message" every time I type something in the cell. But the diagnostics and autocompletion do not work.
I think that the problem on the LS side can be ruled out since it works with LSP plugins of other text editors.
Is there a way to see the complete message exchange between LS and Jupyter?
The console output via 'Language Server Setting -> loggingLevel: "debug" does not provide this kind of information.
The terminal output in debug mode prints only the fact, that messages are handled and not their content.
Is there generally a better way to debug the communication between the language server and Jupyter?
Context
jupyterlab-lsp
version: 3.4.1The text was updated successfully, but these errors were encountered: