vscode-ruff icon indicating copy to clipboard operation
vscode-ruff copied to clipboard

Issue when using VS Code REPL

Open micdonato opened this issue 10 months ago • 2 comments

With VS Code version 1.97.x, I can launch a native REPL from the terminal. When I do that, however, I get a Ruff error every time I type any (and every) character:

1409.454579s ERROR ruff_server::server::api An error occurred while running notebookDocument/didChange: No document found for untitled:Untitled-1.ipynb?jupyter-notebook

This does not happen when I open an interactive window with the command palette.

Is there a way I can silence it?

micdonato avatar Feb 19 '25 21:02 micdonato

I set python.terminal.shellIntegration.enabled to true but I'm not getting a way to open the VS Code REPL from the Python REPL as shown in the link. Does it require insiders build?

Image

Opening it via "Python: Start Native Python REPL" works fine.

dhruvmanila avatar Feb 20 '25 06:02 dhruvmanila

@dhruvmanila You might have to switch your setting. Looks for "send to native repl", this way it will send shift+enter command to your VS Code Native REPL instead of terminal.

anthonykim1 avatar Apr 02 '25 19:04 anthonykim1

It seems to be working fine:

https://github.com/user-attachments/assets/92081d75-37a7-49df-b1e9-6767096b413b

I'll close this issue for now, happy to re-open if there's a reliable way to reproduce this error or more information is provided.

dhruvmanila avatar Apr 25 '25 17:04 dhruvmanila