-
Notifications
You must be signed in to change notification settings - Fork 133
Error on importing time #726
Comments
I think the |
Absolutely no exceptions, reloaded VSC and started working again... Note while this failed everything else worked with the language server.. |
Most probably #700 then |
I think I know whats wrong. I think the problem is, the problems are listed before the module resolution completes. |
Identified in version |
@DonJayamanne - is is just a squiggle or completion is missing too? |
Just replicated for
Here are the logs:
|
Set you |
Left it on, next time I see it i'll post more information. Try to retrace my steps. |
Managed to replicate, though not sure when it stopped working, either way, here are the logs an other info:
|
I haven't been experiencing this issue lately. |
Its back, saw this a number of times today. Here are the logs: |
May be related. The following test is unpredictable. Sometimes public async Task File() {
const string code = @"
import sys
sys.
";
var uri = await TestData.CreateTestSpecificFileAsync("a.py", code);
await CreateServicesAsync(PythonVersions.LatestAvailable3X, uri.AbsolutePath);
var rdt = Services.GetService<IRunningDocumentTable>();
var doc = rdt.OpenDocument(uri, null, uri.AbsolutePath);
var analysis = await doc.GetAnalysisAsync(Timeout.Infinite);
var cs = new CompletionSource(new PlainTextDocumentationSource(), ServerSettings.completion);
var completions = cs.GetCompletions(analysis, new SourceLocation(3, 5));
completions.Should().HaveLabels("argv", "path", "exit");
} |
See also #779 |
is suspicious. Looks like something is detected and changed and modules getting reloaded triggering the issue. |
@AlexanderSher - I think #871 addressed this? |
Yes |
This needs to be reopened. I see this problem today - #1430 Version: 1.37.0 (user setup) |
I agree this needs to be re-opened. I have the problem as well. i am on the latest version of vscode on a mac. |
Same problem here. Apparently happening only in python native libs (sys, traceback, pdb, logging).
|
Same problem |
If it happens after "analysis restarted", see #1156. |
Still failing for me on "import sys"... |
This fails in the latest version of Language server
The text was updated successfully, but these errors were encountered: