Erik De Bonte

Results 347 comments of Erik De Bonte

> Is there a way to restart pylance every time the interpreter changes? No. It shouldn't be necessary to restart the process. Pylance will be notified of the config change....

I haven't been able to repro this. Every time I think it has repro'd, I wait a little bit and it recovers. I'm curious if the same would happen for...

> > That exists already actually -- "Python: Restart Language Server" > > I don't see this command, but will try to find it as that would be helpful for...

> Ah, one problem I'm seeing with the workspaces solution is that you can't refactor across project roots. When using python envy refactors propogate Yeah, it would have that limitation....

> 2024-06-21 05:55:33.235 [info] [Trace - 5:55:33 AM] Received response 'textDocument/semanticTokens/full - (600)' in 2ms. 2024-06-21 05:55:33.235 [info] Result: { "data": [] } Given the empty semantic tokens response, my...

> Are you finding this to be slow currently? Semantic highlighting is slow, and that's also on the background thread. But the real issue is that sometimes, after a venv...

> One thing I noticed is that the notebook begins to highlight if you switch to a different venv / out of that notebook. I can show you what I...

> It seems that if I import tqdm it becomes a lot easier to reproduce the issue. Good clue! I'm out of town this week, so i won't be able...

Related vscode issues: - https://github.com/microsoft/vscode/issues/138783 - https://github.com/microsoft/vscode/issues/181320 And Bill has a prototype: https://github.com/bschnurr/pyrx/commit/3ae67a89e8ea85910792b8fcf91bead4b7daf470 Java extension does something similar here: https://github.com/redhat-developer/vscode-java/blob/5f2d266cd7fe41dbe851b4ff7af283b66affe1d7/src/standardLanguageClient.ts#L878

I believe the log you provided above is for the Jupyter extension. Could you please provide Pylance's log. It's called "Python Language Server" in the Output pane.