vscode-live-server icon indicating copy to clipboard operation
vscode-live-server copied to clipboard

live server not reloading automatically

Open hillar10n opened this issue 5 years ago • 191 comments

I'm submitting a...

[x] 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
[x] Documentation issue or request

## Current behavior

live server not reloading automatically

## Expected behavior

it reload without manually reloading the browser

## Environment

```html
Browser:

- [x] Chrome (desktop) version 
- [x] Firefox version 

For Tooling issues:

- Live Server: 5.6.1
- Platform:  Windows
- Visual Studio Code: 1.33.1

hillar10n avatar Apr 26 '19 05:04 hillar10n

Can anybody please answer me???

hillar10n avatar Apr 27 '19 00:04 hillar10n

Same goes for me. I noticed it recently. Live server would serve the file in the browser, but it would not refresh the browser automatically upon saving the file.

What I've tried:

  • Unistalled live server
  • Unistalled VSCode
  • Deleted ritwickdey.liveserver-5.6.1 from C:\Users\USERNAME\extensions\ritwickdey.liveserver-5.6.1

pordemoni avatar May 01 '19 15:05 pordemoni

SOLVED

In my case: I had my HTML file inside a folder, which name starts with a period .

Don't do this 👇

http://127.0.0.1:5500/.folder/index.html

pordemoni avatar May 09 '19 17:05 pordemoni

I'm experiencing the same problem here. I think the recent VSCode update made it unworking as expected. Before updating, it worked well.

alfarians avatar May 11 '19 10:05 alfarians

I'm experiencing the same problem here. I think the recent VSCode update made it unworking as expected. Before updating, it worked well.

Yes, the recent update has broken it

jeffus07 avatar Jun 03 '19 11:06 jeffus07

Hi, I have the same problems. Auto-refreshing isn´t working.

My enviroment: Windows 10. VSCode 1.35.1 (I have also tried in 1.34 and it didn't work either) Live server: 5.6.1 Browser: Chrome aor Firefox (I have tried in both of them)

I have tried re-installing, and deleting the files from extension file for a completed resetting. Any solution?

eletitos avatar Jun 27 '19 09:06 eletitos

I too have the same problem . Live reload not working

Chrome Version: 75.0.3770.100 (Official Build) (64-bit) Vscode version 1.36 Live server version 5.6.1

dijiflex avatar Jul 14 '19 14:07 dijiflex

I had the same issue and my problem was that my html file wasn't encoded in utf8

stevekb avatar Jul 24 '19 03:07 stevekb

I had the same issue. Until now, i couldn't figure out what's the problem. My environment: Windows 10 Chrome Version: 76.0.3809.100 (Official Build) (64-bit) VSCode 1.36.1 Live Server 5.6.1

So far, it's been a random occurrence for me when i encounter this "page doesn't reload automatically". I sometimes have it working after i click save, but only after a couple of minutes until the "auto-reload" doesn't work anymore. When i restarted my computer, it's a 50/50 chance that LiveServer will work correctly. Right now, i dont have a reliable solution as what may causing this problem. I think it could be my Windows 10, but i don't know how to check it.

ghost avatar Aug 07 '19 03:08 ghost

Make sure to save your workspace configuration then it will work.

anemish1996 avatar Sep 06 '19 07:09 anemish1996

Having the same problem after updating to 1.37.1, tried deleting ritwickdey.liveserver-5.6.1 from C:\Users\USERNAME\extensions\ritwickdey.liveserver-5.6.1, and re-installing VS CODE, but not working yet as well.

ghost avatar Sep 07 '19 14:09 ghost

It only refreshes after I save the doc for me.

donnyv avatar Sep 27 '19 03:09 donnyv

It only refreshes after I save the doc for me.

Had the same issue. Was solved by changing autosave option in setting to afterDelay.

positesitesite avatar Oct 02 '19 07:10 positesitesite

Make sure meta charset = "UTF-8" is in the head.

StarBright3 avatar Oct 11 '19 06:10 StarBright3

Make sure meta charset = "UTF-8" is in the head.

Worked For Me, Thanks Man

moghaazi avatar Oct 30 '19 05:10 moghaazi

Works on my work computer, not my personal computer. , refreshed, reloaded, uninstalled & re-installed several different ways. Still not auto-refreshing. Console says "live reload enabled"... I've narrowed my open folders to just one,...

tyler-ray avatar Nov 03 '19 22:11 tyler-ray

I had the same issue and my problem was that my html file wasn't encoded in utf8

thanks bro, it worked

tjbulick avatar Dec 01 '19 23:12 tjbulick

I was having the same issue.

It seems to work fine if I open a specific file with Live Server by either the Ctrl-Shift-P Command Pallet, Right-click menu, or Alt-L Alt-O key command. It doesn't work properly if I start Live Server by clicking "Go Live" in the status bar at the bottom.

Hope this helps someone!

jefflundberg avatar Dec 03 '19 23:12 jefflundberg

I was having the same issue.

It seems to work fine if I open a specific file with Live Server by either the Ctrl-Shift-P Command Pallet, Right-click menu, or Alt-L Alt-O key command. It doesn't work properly if I start Live Server by clicking "Go Live" in the status bar at the bottom.

Hope this helps someone!

This really works.

kottuzik avatar Dec 04 '19 08:12 kottuzik

Anyone able to get Live Server to update in Chrome?

vronney avatar Dec 24 '19 18:12 vronney

Mine is working.

On Tue, Dec 24, 2019, 20:32 Ronney Vargas [email protected] wrote:

Anyone able to get Live Server to update in Chrome?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ritwickdey/vscode-live-server/issues/452?email_source=notifications&email_token=AGIN2DIXLPG5S34G3ZF2Y53Q2JITLA5CNFSM4HISWZDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHTQP3Y#issuecomment-568788975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGIN2DNZ4VHVWVRB2UEKIWLQ2JITLANCNFSM4HISWZDA .

kottuzik avatar Dec 24 '19 19:12 kottuzik

I really like this extension and have used it for a long time. Tonight it does not reload and I need to a hard refresh to get current page.

Reinstalled and checked for updates to no avail.

Would love to get it back working as I really like it!

Thanks for all the work you have put in.

Craig

Python-Test-Engineer avatar Jan 03 '20 21:01 Python-Test-Engineer

Was having the same issue. Looks like it was as simple as how I was opening the file. When I go to File > Open Folder, it seems to work every time. When I open the individual files, it doesn't work. This thread was the key, Thank you!

ArrestedMango avatar Jan 08 '20 02:01 ArrestedMango

I just found this, and then randomly at the same time I noticed a notification in vscode telling me that live reload isn't possible without head and body (I was editing a file that's just an html fragment)

hcientist avatar Jan 12 '20 21:01 hcientist

I've been having the issues on two different computers, both using Windows 10.

Both times, my CSS file was not updating. My html file was updated, but oddly enough, not CSS.

This was fixed by hard refreshing to show changes.

sonicemma avatar Jan 16 '20 19:01 sonicemma

There's one thing that resolves the issue. • Open settings. • Search for 'autosave'. • Set it to 'afterDelay'. • Just below that, set the AutoSaveDelay to anything very less like 5 (I have set it to 1) • Now search for 'Wait' in settings. • In LiveServer > Settings:Wait, set the value very low (e.g. 3). This should help regardless of platforms :)

sntoshx avatar Feb 02 '20 17:02 sntoshx

SOLVED I have the same problem, like @pordemoni , the name of my folder starts with '#', change the start character for a letter and the problem was solved.

ceign avatar Feb 20 '20 12:02 ceign

@yednaphsotnas Thanks, dude.

yuri117 avatar Feb 25 '20 19:02 yuri117

I NGINX server and able to load my website using proxy, but it does reload if i make change & save in a html.twig file. Please help!

10times-remote avatar Mar 03 '20 10:03 10times-remote

Live Server não atualiza após salvar arquivo html via vscode

Versões:

  • Live Server v5.6.1
  • VSCode v1.42.1

Tentativas de reparo:

  • Desativado "onSave" para "off"

  • Reinstalado Live Server

  • Restart no VSCode

  • salvamento automático: afterDelay

  • AutoSaveDelay: 1

  • LiveServer Wait: 1

  • Removido a pasta: .vscode/ritwickdey.liveserver-5.6.1

Alguém tem uma solução por favor?

wilsonrg avatar Mar 04 '20 11:03 wilsonrg