Skip to content

Application unresponsive after opening a file system provider based python file #17048

@FrankBlabu

Description

@FrankBlabu

Situation

When using a vscode.FileSystemProvider based file system and opening a python file, the extension stalls permanently and an error message is displayed on the console. Other file types provided by the same file system provider are working fine.

Reproduce

The console will display the following message:

Lintings failed on open
File: memfs:/file.py
Message: TypeError: Cannot read property 'uri' of undefined

A stacktrace is not provided. The extension host output will show this message in the 'Log (Window)' output:

 [warning] UNRESPONSIVE extension host, 'ms-python.python' took 100% of 5246.583ms, saved PROFILE here: 'file:///c%3A/Users/User/AppData/Local/Temp/1/exthost-6c0e65.cpuprofile' [{"id":"ms-python.python","total":5246261,"percentage":100}]

The extension is then stalled, the extension host does not react properly anymore and has to be terminated. The same effect happens with another file system provider implementation which has been heavily debugged and all other file types except python files are working fine.

Versions

  • VSCode 1.56.2
  • ms-python.python V2021.5.926500501

Metadata

Metadata

Assignees

Labels

area-editor-*User-facing catch-allbugIssue identified by VS Code Team member as probable buginvestigatingWe are looking into the cause of the issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions