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.65k stars 1.22k forks source link

Cannot run live server in either browser #216

Open Leeoku opened 5 years ago

Leeoku commented 5 years ago

I'm submitting a...

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

Current behavior

Installed addon, rightclick html and ran live server. Firefox/chrome gets "Page not working, invalid response. ERR_INVALID_HTTP_RESPONSE". I tried changing the settings to load in both firefox and chrome

Expected behavior

HTML page should be displayed, works fine if I click my html page manually

Environment

Browser:

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

For Tooling issues:

- Live Server: <!-- Check which version is installed --> 
- Platform:  <!-- Mac, Linux, Windows -->
- Visual Studio Code: <!-- `code --version` --> 5.1.1

Others

BJSebastian commented 5 years ago

I'm also experiencing the same problem and decided to do some testing across a few setups to see if it was consistent across different hardware setups.

I've isolated the problem down to MacOS Mojave as the culprit. I upgraded to Mojave from High Sierra, so I'm not sure if the upgrade causes the liver server auto-reload problem, meaning it maybe okay on a fresh install of Mojave.

Here's what I tested…

  1. Mojave - VS Code(1.28.1) - Chrome (69.0.3497...) - Does NOT Live Reload
  2. Mojave - VS Code(1.28.1) - Safari (12.0.14606...) - Does NOT Live Reload
  3. High Sierra - VS Code(1.28.1) - Safari (12.0.13606...) - Live Reload Works!
  4. Windows 10 - VS Code(1.28.1) - Chrome - Live Reload Works!

Not sure why Mojave would be blocking live reload, but it seems to be doing something.

10/17/2018 Follow Up

I was able to get Live Server Reload to work on my Mac w/Mojave by uninstalling everything and re-installing. This means doing a “full un-install” and not simply deleting the application. To do this I followed the following instructions…

https://medium.com/@jimkang/complete-uninstall-remove-vscode-mac-5e48bef3bdec

After completely removing everything and re-installing Vs Code and the Live Server extension, the automatic reload was working again. Not sure if its a Mojave issue or an issue with my vs code setup with extensions etc. I re-installed the extensions that I used and live reload is working fine.

NOTE: If you do this you will need to backup and preferences/settings you have set if you want to re-establish them after you re-install.