Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Latest LS fails to find document file #778

Closed

Description

Astrantia commented on Fri Mar 15 2019

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)

Activity

  1. jakebailey commented on Mar 18, 2019

    @jakebailey
    Member

    I'm going to roll this one into #736; files without .py at the end should also be handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions