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.66k stars 1.23k forks source link

Live Reload not working #211

Open timoyo93 opened 5 years ago

timoyo93 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

Everytime I save my html file it won't reload in the browser. The extension injects the code for reloading the page, but with no effect.

Expected behavior

It should autoreload when I save my html file. It worked like a charm 2 weeks ago.

Environment

Browser:

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

For Tooling issues:

- Live Server: 5.1.1
- Platform:  Mac
- Visual Studio Code: 1.27.2

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 all stacks.

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…

Mojave - VS Code(1.28.1) - Chrome (69.0.3497...) - Does NOT Live Reload Mojave - VS Code(1.28.1) - Safari (12.0.14606...) - Does NOT Live Reload High Sierra - VS Code(1.28.1) - Safari (12.0.13606...) - Live Reload Works! 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.

ghukahr commented 5 years ago

I have a fresh installation of Mojave and it does not auto-reload.

Re9iNee commented 5 years ago

My live Server (auto reload) won't work. but I Can go live And Refresh manually. Versions : Version: 1.33.0 (system setup) Electron: 3.1.6 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.16299 i have tried these and nothing changes : Change Default port. Close Antivirus (Kaspersky) and allow access to the firewall. open UDP and TCP ports. nothing has happened till now, Can u guys help me I really need this Auto Reload. @ritwickdey

leejohnh22 commented 5 years ago

Was this ever fixed?

noobato1 commented 4 years ago

SOLVED (For me at least)

In settings search for "useWebExt" en check you DON'T have it enabled. I just unchecked this and now it's working!

georgehowell commented 3 years ago

image

Re9iNee commented 3 years ago

so I'm asking this out of curiosity, do you open your project as a folder, or you launch Auto Reload on a single file. cause the live reload only works if you open directory in a VSCode. (I didn't know this and found out by accident)

georgehowell commented 3 years ago

thanks for comment.... I'll give it a try from within VS Code. I was using LiveReload years ago on my Mac, independently of any IDE, which worked fine back then