Skip to content
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

Lots of error notifications in Kubernetes remote development session #622

Open
itssimon opened this issue Sep 30, 2024 · 1 comment
Open

Comments

@itssimon
Copy link

When working on a notebook in a Kubernetes remote development session, the Ruff extension spams the notifications in VSCode with the message "Ruff failed to handle a notification from the editor. Check the logs for more details."

Logs:

2024-09-30 11:33:54.798 [info] [Error - 11:33:54 am] Request textDocument/codeAction failed.
2024-09-30 11:33:54.798 [info]   Message: JSON parsing failure:
Invalid request
Method: textDocument/codeAction
 error: invalid value: string "vscode-notebook-cell://k8s-container%2Bcontext%3Darn:aws:eks:ap-southeast-2:xxx:cluster%2Fdatascience%2Bpodname%3Djupyter-itssimon%2Bnamespace%3Djupyterhub%2Bname%3Dnotebook%2Bimage%3Dxxx.dkr.ecr.ap-southeast-2.amazonaws.com%2Fjupyterhub-singleuser:491efcc04768ea611f8268384dcd624e77eb24e9/home/jovyan/xxx/notebooks/test.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D", expected invalid port number
  Code: -32603

Versions:
VSCode: 1.93.1
Ruff extension: v2024.50.0

@dhruvmanila
Copy link
Member

Hi, thanks for the report. I'm not aware of what Kubernetes remote development looks like, is it a VS Code extension? So, you must be connected to a remote machine via the Kubernetes extension and you're opening a Jupyter Notebook which is in the remote machine, is that correct?

So, what seems to be happening is that the library that we're using for implementing the LSP protocol over at Ruff uses this url parsing library which is failing to parse this URL. I think it's because of the multiple colons.

Can you confirm if any other extensions work in this context or do they error as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants