Closed rvmaurelli closed 3 years ago
My vscode cannot wrok too.
When I open vsocde the first minute, it can work well.
But after that, it cannot autocomplete anything.
And always show the error:
SyntaxError: invalid syntaxjedi
I change the LSP to Pylance
. It work well.
@rvmaurelli Please tell us what you have for this setting python.languageServer
? Try setting it to wither JediLSP
or Pylance
.
@ManWingloeng Please tell us what you have for this setting python.languageServer
?
We plan on replacing Jedi
with JediLSP
and MPLS with Pylance
so please let us know which one you are using.
@rvmaurelli Please tell us what you have for this setting
python.languageServer
? Try setting it to witherJediLSP
orPylance
.@ManWingloeng Please tell us what you have for this setting
python.languageServer
?We plan on replacing
Jedi
withJediLSP
and MPLS withPylance
so please let us know which one you are using.
I don't know what the problem is. I have been using Jedi
before, and it works normally, regardless of torch or numpy. During this period of time, it has been unable to prompt, and the settings have not been modified. Trying to switch to JediLSP
after it fails to work is the same problem. Currently using Pylance
can work normally
@karthiknadig I don't know if this is helpful, but my experience with the switch to Pylance as the default is that it doesn't work for my Django projects. None of the imports resolve anymore and I cannot jump to definitions nor get any autocomplete support.
If I override the setting to be JediLSP it goes back to working as it did before the update. I'm not clear whether Jedi, JediLSP, or something else was the prior default.
@ryancausey Jedi
or JediLSP
is picked based on version of python. So, if you set language server as JediLSP
it will use it for python versions 3.6+, and will use Jedi
for <=3.5 and 2.7.
If you use Jedi
as the language server setting, it will use Jedi
for all version. But, Jedi
is outdated and uses an old version of jedi
library. I recommend using JediLSP
. We plan on replacing Jedi
with JediLSP
soon.
As for any issues with pylance
please file a bug on https://github.com/microsoft/pylance-release
@rvmaurelli Please tell us what you have for this setting
python.languageServer
? Try setting it to witherJediLSP
orPylance
.@ManWingloeng Please tell us what you have for this setting
python.languageServer
?We plan on replacing
Jedi
withJediLSP
and MPLS withPylance
so please let us know which one you are using.
Hello. Sorry for my delay. I'm using the extension using Pylance for Intellisence. I noticed that it usually stops working when I use something of the "control" library on my code.
@rvmaurelli Please file the issue on Pylance.
Closing this here. The issue has to handled in the pylance extension. /cc @jakebailey
Environment data
Expected behaviour
Dialog box for autocomplete names of functions, libraries, variables, etc
Actual behaviour
It doesn't show any dialog box for autocomplete at all