vscode: Reloading extension host results in "Unable to open polyfills.js" error notification
Issue Type: Bug
Steps to reproduce:
- Start up the extension development host.
- Press
ctrl+r
to reload. - The debugging window reports the following notification, and the extension host does not load the extension. This only happens on every other reload, so it alternates between loading correctly and throwing this error.
Unable to open 'polyfills.js': Unable to read file 'c:\Users\Matt\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\graceful-fs\polyfills.js' (Error: Unable to resolve non-existing file 'c:\Users\Matt\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\graceful-fs\polyfills.js').
VS Code version: Code - Insiders 1.49.0-insider (f694b07825a23005985b470e767a68927a83a553, 2020-08-19T05:47:42.278Z) OS version: Windows_NT x64 10.0.19041
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 8
- Comments: 25 (20 by maintainers)
Commits related to this issue
- fix: don't verify files inside .asar archives Refs https://github.com/microsoft/vscode/issues/105047 — committed to microsoft/vscode-js-debug by connor4312 4 years ago
- #105047 simplify — committed to microsoft/vscode by sandy081 4 years ago
- fix: extension host debugging pausing in internals Fixes https://github.com/microsoft/vscode/issues/105047 — committed to microsoft/vscode-js-debug by connor4312 4 years ago
I get this quite often while trying F5 our extension as well. Same error as the OP.
I’m facing the same issue. How can it be solved?
Same here