bhauman / figwheel-main

Figwheel Main provides tooling for developing ClojureScript applications
https://figwheel.org
Eclipse Public License 1.0
640 stars 93 forks source link

Figwheel does not detect file changes in WSL-2 #251

Open ghost opened 4 years ago

ghost commented 4 years ago

Figwheel does not seem to be detecting file changes in Linux running in WSL-2

I am running Clojure 1.10.1 in Debian in WSL 2

uname -a:

Linux ... 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 GNU/Linux
ghost commented 4 years ago

The problem seems to be with the hawk library.

ghost commented 4 years ago

Created an issue in hawk repo

Folcon commented 4 years ago

@Rawieo Do you have the project within the windows filesystem or the linux one? I've had a lot of success with watchers using the linux filesystem.

ghost commented 4 years ago

The project was (I switched to linux since) within windows filesystem. I should note that it worked in WSL-1 (which, as far as I know, did not virtualize linux)

Folcon commented 4 years ago

As I mentioned I had the same issue on the windows side, I think the linux filesystem manages to work perfectly =)...

jdittrich commented 3 years ago

Same problem here; Connection to the browser works fine, but file changes are not recognized.

bhauman commented 3 years ago

@jdittrich have you tried the latest 0.2.14-SNAPSHOT?

jdittrich commented 3 years ago

not yet! (For others who read along: 0.2.14 would make these changes and use a different library than hawk to watch for changes)

deflexor commented 2 years ago

Hi, currently using 0.2.15 and issue is still there, think it related with this: https://ma.rcbla.se/blog/2020/08/gulp-watch-not-firing-with-changed-files-when-run-in-wsl/

nwbvt commented 2 years ago

I'm seeing this on 0.2.17 when the project is in the windows filesystem. It works when under the native linux filesystem.

Outrovurt commented 2 years ago

This was posted on ClojureVerse a while ago, I don't recall 100% but I think the OP had similar issues with file changes on WSL2, it may be of some help:

https://clojureverse.org/t/trying-to-setup-a-clj-s-dev-envirionment-with-wsl2/8496