Application unresponsive after opening a file system provider based python file
See original GitHub issueSituation
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
- Install VSCode file system provider example from here: https://github.com/microsoft/vscode-extension-samples/tree/main/fsprovider-sample
- Enable it as described in the sample code documentation.
- Open and edit a python file originating from that provider.
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
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
debugging - How can I tell where my python script is hanging?
I'm new to profiling but from what I know a profiler can only provide you with information about a program that has successfully...
Read more >Open Folder and open file cause application to freeze ...
Application freezes upon opening file using ctrl-o. After freeze application becomes unresponsive and has to be closed using task manager.
Read more >Python 3.8.2 Mac freezing/not responding when saving new ...
My process of saving a program: - I'll open IDLE (Python 3.8.2) - write anything at all - I'll either hit command>s or...
Read more >Troubleshooting mount issues - Amazon Elastic File System
An Amazon EFS file system mount fails on a Transmission Control Protocol (TCP) reconnection event with "nfs: server_name still not responding" . Action...
Read more >Troubleshoot Azure Files problems in Windows (SMB)
Cause. This problem can occur if you are using Encrypting File System (EFS). BitLocker-encrypted files can be copied to Azure Files. However, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, #17781 fixed that ! Working fine now, thank you very much.
Should be fixed with https://github.com/microsoft/vscode-python/pull/17781. Use
Extension: Install from VSIX
command to install the following VSIX: https://github.com/microsoft/vscode-python/suites/4087722570/artifacts/104116878, and let me know if that doesn’t the fix for you.