You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Switching language mode to Python on an unsaved file throws "Module path should be rooted" #598
Opening document untitled:Untitled-1
[Error - 10:48:38 AM] Request textDocument/completion failed.
Message: unknown document
Code: -32000
at Microsoft.Python.LanguageServer.Implementation.ProjectFiles.GetEntry(Uri documentUri, Boolean throwIfMissing) in C:\Users\jabaile\python-language-server\src\LanguageServer\Impl\Implementation\ProjectFiles.cs:line 53
at Microsoft.Python.LanguageServer.Implementation.ProjectFiles.GetEntry(TextDocumentIdentifier document, Nullable`1 expectedVersion, ProjectEntry& entry, PythonAst& tree) in C:\Users\jabaile\python-language-server\src\LanguageServer\Impl\Implementation\ProjectFiles.cs:line 59
at Microsoft.Python.LanguageServer.Implementation.Server.Completion(CompletionParams params, CancellationToken cancellationToken) in C:\Users\jabaile\python-language-server\src\LanguageServer\Impl\Implementation\Server.Completion.cs:line 34
at Microsoft.Python.LanguageServer.Implementation.LanguageServer.Completion(JToken token, CancellationToken cancellationToken) in C:\Users\jabaile\python-language-server\src\LanguageServer\Impl\LanguageServer.cs:line 301
The file gets opened, but doesn't seem to get added anywhere, nor analyzed. This may also be causing exceptions on file updates which I'm not sure are logged in the output panel.
On the old LS in
release:The file gets opened, but doesn't seem to get added anywhere, nor analyzed. This may also be causing exceptions on file updates which I'm not sure are logged in the output panel.
To reproduce (same as #597):