hawk icon indicating copy to clipboard operation
hawk copied to clipboard

Hawk does not detect file changes in WSL-2

Open ghost opened this issue 5 years ago • 2 comments

Hawk is not 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 avatar Jun 22 '20 19:06 ghost

I'm having the same issue, but it works for a time and then I get a stack trace after which it stop working:

Exception in thread "Thread-7" java.lang.NullPointerException
	at java.base/sun.nio.fs.UnixPath.toUnixPath(UnixPath.java:196)
	at java.base/sun.nio.fs.UnixPath.resolve(UnixPath.java:410)
	at java.base/sun.nio.fs.UnixPath.resolve(UnixPath.java:43)
	at java.base/jdk.internal.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:167)
	at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:102)
	at hawk.watcher$handle_watch_event_BANG_.invokeStatic(watcher.clj:51)
	at hawk.watcher$handle_watch_event_BANG_.invoke(watcher.clj:50)
	at clojure.core$partial$fn__5860.invoke(core.clj:2633)
	at clojure.core$map$fn__5885.invoke(core.clj:2757)
	at clojure.lang.LazySeq.sval(LazySeq.java:42)
	at clojure.lang.LazySeq.seq(LazySeq.java:51)
	at clojure.lang.RT.seq(RT.java:535)
	at clojure.core$seq__5420.invokeStatic(core.clj:137)
	at clojure.core$apply.invokeStatic(core.clj:660)
	at clojure.core$mapcat.invokeStatic(core.clj:2785)
	at clojure.core$mapcat.doInvoke(core.clj:2785)
	at clojure.lang.RestFn.invoke(RestFn.java:423)
	at hawk.watcher$fn__115.invokeStatic(watcher.clj:83)
	at hawk.watcher$fn__115.invoke(watcher.clj:76)
	at hawk.watcher$fn__64$G__31__69.invoke(watcher.clj:24)
	at hawk.core$watch_BANG_$fn__4838.invoke(core.clj:89)
	at clojure.lang.AFn.run(AFn.java:22)
	at java.base/java.lang.Thread.run(Thread.java:834)

skynet-gh avatar Dec 13 '20 21:12 skynet-gh

Same problem here (WSL2, Ubuntu 20.04, uname -a is Linux COMPUTERNAME 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_

jdittrich avatar Jul 24 '21 14:07 jdittrich