Lots of error notifications in Kubernetes remote development session
itssimon opened this issue · 1 comments
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
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?