question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application unresponsive after opening a file system provider based python file

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
FrankBlabucommented, Oct 19, 2021

Yes, #17781 fixed that ! Working fine now, thank you very much.

0reactions
karrtikrcommented, Oct 18, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found