Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Reload, or Rebuild, doesn't work with WSL #23

Closed
Zageron opened this issue Sep 7, 2020 · 8 comments
Closed

Live Reload, or Rebuild, doesn't work with WSL #23

Zageron opened this issue Sep 7, 2020 · 8 comments

Comments

@Zageron
Copy link

Zageron commented Sep 7, 2020

Go Live or hq doesn't actually rebuild the project when making changes and saving.

  • Is any output supposed to show up after hq announce when saving files? I get no output.
❯ hq
(c) hqjs @ 0.0.21
Start time: 0.1 s

Visit http://localhost:8081
or http://172.25.7.63:8081 within local network
@hqjs
Copy link
Owner

hqjs commented Sep 9, 2020

You can try to run it like this hq --verbose for debugging. Livereload script attaches to index.html file. If you don't have it - you can try to install separate Live reload plugin for a browser.

@Zageron
Copy link
Author

Zageron commented Sep 10, 2020

So I am running in verbose now, thanks for that. I get all of the outputs on first opening.

My folder structure is effectively:

src

index.html
index.ts

  • Launch hq, open in browser.
  • full set of build stats, etag, and resolves for everything.
  • Make a change in index.html or index.ts
  • No output from HQ.
  • Refresh the webpage.
  • All output lists version 0 - 304 Not Modified

Here's the repository: https://github.com/zageron/zux

@Zageron
Copy link
Author

Zageron commented Sep 10, 2020

image

@hqjs
Copy link
Owner

hqjs commented Sep 10, 2020

If you have index.html it should work out of the box. hq listens for fs changes with chokidar, if version is not changing - that means change events are being lost. That should be something WSL specific, may be some problems with chokidar.

@hqjs
Copy link
Owner

hqjs commented Sep 10, 2020

Without WSL it works without any problems. I can't test WSL so may be it is worth to post an issue to chokidar repository.

@Zageron
Copy link
Author

Zageron commented Sep 10, 2020

Yeah so I installed node on windows and switched out of wsl, works now. Interestingly, HTTPS stopped working. (.22)

Anyway I will probably stop fiddling with this and just work on my project. This tool absolutely simplifies everything so I am very pleased. Thanks for making this. :)

@Zageron
Copy link
Author

Zageron commented Nov 21, 2020

This issue is caused by using the windows mounted drives in WSL. This is a known issue.
Easy workaround, clone into ~ instead of /mnt/some/windows/folder

microsoft/WSL#4417

@stackchain
Copy link

It is cloned into ~ and still not working.

@Zageron Zageron closed this as completed Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants