-
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
JSON and YAML lsp #572
Comments
Have you tried vscode-json-languageserver-bin and yaml-language-server documented in Language servers section of our docs? We do test against them and they work well AFAIK. |
You only need to install them with a findable node_modules. Though it is a pain that they require Node.js though... |
Thanks a lot for the pointers, I will look into them.
Which |
A discoverable one in a standard location, see node_roots. You can also add custom paths see extra_node_roots. But I would love to be able to ship it without the node requirement. I think there are some options to package things as standalone (some kind of compilation that ships a stripped version of node), but I am slightly worried about the maintenance burden. |
The default in docs might not be clear, here is the code: |
Things like YAML and JSON can probably live (and be faster than) a multi-hop round-trip to a proxy then server and back again. The biggest win for supporting core jupyter functionality would be something that provided completion/better linting in the Advanced Settings editor, as there is already an a-priori schema. Anyhow, to really start moving the ball forward in that space, we need some prototype approaches to #184. Re: the other approach mentioned, personally, I won't be shipping/supporting a custom node or v8, that's for darned sure... but it's possible we could use |
And yet another approach: In another direction entirely: it's probably worth (somebody) investigating whether language server for language |
This looks to me like the more appealing approach. |
You write it, we'll ship a spec as an alternative to the nodejs one! Behavior if both available: But seriously: if we ever get that top-level org (even naming it is hard), having "jupyter native" language servers (read: pure python, no |
Semi-related: on some not-yet-open-source stuff for #551, we did have some success wrapping some existing well-packaged (1 or 2 files, no import sys, subprocess
def main():
p = subprocess.Popen([NODE, PATH_TO_BIN_JS, *sys.argv[1:]], stdin=sys.stdin, stdout=sys.stdout)
sys.exit(p.wait())
if __name__ == "__main__":
main() As the project we're doing that for is mostly interested in I don't have a good feel for how many of the current |
That looks like a good quick solution. Thanks a lot for sharing this. |
I'd be happy to start something on my side (whether it's the |
The sub-org is a long story, I wouldn't hold your breath there! Again, from my personal perspective, I'd very much like to see the pygls one happen, though! |
I mean we could do it right now, it is just better to finish the JEP started in #238 mostly to figure out if there are any suggestions on name of the organization and its scope. My passion for writing long pieces was diverted towards several academic things last month and I do not foresee myself having much time to work on this this month either, but anyone who wants to drive it in meantime have my full blessing. |
I just created https://github.com/martinRenou/json-lsp which implements the wrapping of the npm package into a Python package. It seems to work as intended! Would you have time to give it a quick look? Also, do you have an opinion on the Python package name?
I agree! I needed a quick win though. |
Hello there,
We are interested in JSON-lsp and YAML-lsp that would work with the JupyterLab text editor.
I am opening an issue just to say that we might work on this, but I would like to know if folks here have some ideas/pointers to a starting point for this.
After a quick search I couldn't find an implementation for JSON-lsp, but I might not have searched properly. I only found this extension that is for SublimeText, I wonder if this could work out-of-the-box.
The text was updated successfully, but these errors were encountered: