Skip to content

Latest LS fails to find document file #4783

Closed
@Astrantia

Description

@Astrantia

Files that start with shebang and dont end with.py
Spam in the output log and extension not working at all:

[Info  - 1:57:57 AM] Microsoft Python Language Server version 0.2.23.0
[Info  - 1:57:57 AM] Initializing for C:\Python37\python.exe
[Error - 1:58:01 AM] Unable to find document file:///c:/Users/A/Desktop/file
[Error - 1:58:01 AM] Unable to find document file:///c:/Users/A/Desktop/file
[Error - 1:58:01 AM] Unable to find document file:///c:/Users/A/Desktop/file
[Error - 1:59:49 AM] Unable to find document file:///c:/Users/A/Desktop/file

Console log:

ERR Cannot read property 'map' of undefined: TypeError: Cannot read property 'map' of undefined
	at asCompletionResult (C:\Users\A\.vscode\extensions\ms-python.python-2019.2.5558\node_modules\vscode-languageclient\lib\protocolConverter.js:145:51)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions