Comments (7)
from jupyterlab-lsp.
This is still a work in progress. Where did you get the code, how did you install the code, what os are you on, those kinds of things, would help.
…
I use Mac OS, I do everything in order as it is written in readme:
install the extension:
jupyter labextension install @krassowski/jupyterlab-lsp
install servers for languages of your choice. Below are examples for Python (with pyls) and R (with languageserver):
pip install python-language-server[all]
next, I go to the folder
/Users/sergejsuhinin/anaconda 3/lib/python 3.7/site-packages/jupyterlab/staging
create servers.yml file:
langservers:
python:
- pyls
R:
- R
- --slave
- -e
- languageserver::run()
and execute the following commands
npm install
npm run build
jupyter labextension link .
this is where the problems arise
node_modules/jsonrpc-ws-proxy/dist/server.js: No such file or directory
from jupyterlab-lsp.
from jupyterlab-lsp.
For normal installation (jupyter labextension install @krassowski/jupyterlab-lsp
) you should not execute the following commands:
npm install
npm run build
jupyter labextension link .
These are for development install (please take a careful look at the instructions in the readme).
The readme does not say that you should go to the staging directory, but rather that the node_modules/jsonrpc-ws-proxy/dist/server.js
is likely to be located there. The servers.yml
should not be created in the staging directory but in your current project directory.
And, finally, as @bollwyvl, mentioned the next version (due to be published next month) will remove the necessity to configure the servers.yml
- stay tuned.
from jupyterlab-lsp.
For normal installation (
jupyter labextension install @krassowski/jupyterlab-lsp
) you should not execute the following commands:npm install npm run build jupyter labextension link .
These are for development install (please take a careful look at the instructions in the readme).
The readme does not say that you should go to the staging directory, but rather that the
node_modules/jsonrpc-ws-proxy/dist/server.js
is likely to be located there. Theservers.yml
should not be created in the staging directory but in your current project directory.And, finally, as @bollwyvl, mentioned the next version (due to be published next month) will remove the necessity to configure the
servers.yml
- stay tuned.
Thanks, figured it out. But now the error crashes
Listening to http and ws requests on 3000
Invalid language server /yaml
internal/validators.js:125
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
at validateString (internal/validators.js:125:11)
at normalizeSpawnArguments (child_process.js:411:3)
at Object.spawn (child_process.js:545:16)
at Object.createServerProcess (/Users/sergejsuhinin/anaconda3/share/jupyter/lab/staging/node_modules/@sourcegraph/vscode-ws-jsonrpc/lib/server/launch.js:12:30)
at WebSocketServer.wss.on (/Users/sergejsuhinin/anaconda3/share/jupyter/lab/staging/node_modules/jsonrpc-ws-proxy/dist/server.js:59:37)
at WebSocketServer.emit (events.js:198:13)
at handleUpgrade (/Users/sergejsuhinin/anaconda3/share/jupyter/lab/staging/node_modules/jsonrpc-ws-proxy/node_modules/ws/lib/websocket-server.js:92:18)
at WebSocketServer.completeUpgrade (/Users/sergejsuhinin/anaconda3/share/jupyter/lab/staging/node_modules/jsonrpc-ws-proxy/node_modules/ws/lib/websocket-server.js:324:5)
at WebSocketServer.handleUpgrade (/Users/sergejsuhinin/anaconda3/share/jupyter/lab/staging/node_modules/jsonrpc-ws-proxy/node_modules/ws/lib/websocket-server.js:247:10)
at Server.upgrade (/Users/sergejsuhinin/anaconda3/share/jupyter/lab/staging/node_modules/jsonrpc-ws-proxy/node_modules/ws/lib/websocket-server.js:91:16)
from jupyterlab-lsp.
Could you please paste the exact command you used and the contents of your servers.yml
file - this might help to decipher the error message.
from jupyterlab-lsp.
Closing, as we no longer use jsonrpc-ws-proxy
.
from jupyterlab-lsp.
Related Issues (20)
- Set up problems with python-lsp-ruff HOT 5
- Could not determine npm prefix: [WinError 2] The system cannot find the file specified HOT 4
- jump-to-definition gives File Load Error when using pyright as the language server even if the file is inside the root contents directory HOT 5
- no completion for console
- Renaming symbol empties all Markdown cells HOT 3
- tab-key code completion with julia HOT 1
- Continuous hinting doesn't work HOT 6
- [Feature request] Implement LSP 3.17 notebook document support HOT 1
- IPython kernel autocompletions (some) stop working after installing LSP HOT 4
- The `jlpm bootstrap` looks not to be working. HOT 1
- `smoke windows pypypy-3.8` fails
- Notebook jumps back to previous cell on execution HOT 3
- Language server keeps waiting HOT 1
- LSP for slow-starting (remote) kernels HOT 4
- 5.0.1: pytest fails on scanning units with call trace
- Add `_jupyter_server_extension_points` in `__init__.py`
- Support for Autocomplete in JupyterLab Real-Time Collaboration (RTC) Environment HOT 1
- Feature request: GitLab Duo Code Suggestions via gitlab-lsp HOT 2
- Coverage calculation has degraded? HOT 5
- What is "python-markdown" and how to install it? HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyterlab-lsp.