vscode: VS Code Will Not Open reason: launch-failed, code: 65
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.84.2
- OS Version: Windows 11
Steps to Reproduce:
- Try to open VS Code. Screen flashes, nothing happens. Error logs show:
2023-12-06 15:36:51.807 [info] update#setState idle 2023-12-06 15:36:51.816 [error] CodeWindow: renderer process gone (reason: launch-failed, code: 65) 2023-12-06 15:36:51.820 [error] [uncaught exception in main]: Error: Render frame was disposed before WebFrameMain could be accessed 2023-12-06 15:36:51.820 [error] Error: Render frame was disposed before WebFrameMain could be accessed at Ue (C:\Users\MyUserName\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:106:50321) at Function.<anonymous> (C:\Users\MyUserName\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-main\main.js:106:50860)
I have tried un-installing and reinstalling with no success. Opening VS Code in Administrator mode does appear to work and then it opens.
How can I determine where the issue is? This just started happening. Everything was working fine until yesterday.
About this issue
- Original URL
- State: open
- Created 7 months ago
- Reactions: 3
- Comments: 39 (7 by maintainers)
So, after some further analysis it seems like InTune Endpoint Privilege Management might be the issue? We had had an elevation policy configured (been several months now) that would allow users to elevate running VS Code for certain scenarios. This was all working fine. Analysis now revealed that the file hash for code.exe might have changed?
OLD value 8DA7D5E5D6719997BB149C1681E44DE4D955A6DAD4965991557AC70DC913B289 New Value A632FA9D1A2B6E1BFEC57F8D9732A12FB5903F5119870FA1B03618B05095BE43
Once we disabled this elevation policy in InTune, now it appears to be working. We are still going to try configuring the new file hash in Intune and see if it continues to work. More to come.
We use Microsoft Defender and @jrmegatron mentioned that too 😃