ritwickdey / vscode-live-server

Launch a development local Server with live reload feature for static & dynamic pages.
https://ritwickdey.github.io/vscode-live-server
MIT License
5.72k stars 1.26k forks source link

Throws 'extension host terminated unexpectedly' error #2348

Open rablinz opened 2 years ago

rablinz commented 2 years ago

I'm submitting a...

[x ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

I took a few months off from coding. (Dec to Feb). Prior, version 5.6.1 worked beautifully. I started coding again this week, Live Server updated itself to version 5.7.4. Since, whenever I run the server (click 'Go Live' or 'Open with Live Server' from the context menu) I get the 'extension host terminated unexpectedly' error. It is only resolved when I uninstalled the latest version and manually installed version 5.6.1. One problem remains - Live Server wants to restart Visual Studio Code to update to the latest version.

Expected behavior

Run without crashing the extension host.

Environment

Browser:

- [x ] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: <!-- Check which version is installed --> 
- Platform:  Windows
- Visual Studio Code: 1.64.2

Others

ritwickdey commented 2 years ago

Hi, can you please install the latest version of LiveServer? Before starting the live Server, please open Developer Console (Help -> Toogle Developer Menu). Clear the console. Now start the live server. Can send me the crashlog or share a screenshot?

rablinz commented 2 years ago

This is the log. I use Live Sass Compiler as well and it looks like it might play a part. vscode-app-1644955791765.log

ritwickdey commented 2 years ago

Seems like it's an issue of LiveSassCompiler. Closing here.

rablinz commented 2 years ago

Why would it only crash when using the newest version of live-server?

ritwickdey commented 2 years ago

Oh!!. Ok I'll try to debug.

ritwickdey commented 2 years ago

Hey, I tried. It's working for me. Can pls confirm, if you uninstall LiveSassCompiler and install the newer version of LiveServer, Is everything working fine?

ritwickdey commented 2 years ago

and one more thing, can you pls check if %SystemRoot%\system32 is in your PATH? and %SystemRoot% is defined? https://stackoverflow.com/a/61449354

ritwickdey commented 2 years ago

if that doesn't works, can you please set liveServer.settings.NoBrowser:true. After applying this setting, browser will not be opened but you can manually open browser and go to http://localhost:5500.

Looking for your responses. Thanks.