lambdaisland / lambdaisland/garden-watcher
(cp/classpath) not working on W10
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 25
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I just added garden-watcher as a component to my system-map, got everything setup but on system start I get this error message:
(start-dev-system)
Garden: compiling #'de.sveri.estar.styles/main
Wrote: resources/public/css/main.css
Garden: watching
NullPointerException hawk.core/extract-paths-by-type/fn--35330 (core.clj:15)
You can see that it does not watch any files. I debugged into this and in https://github.com/plexus/garden-watcher/blob/7d241e5234a9ec57dee8af03706fd45dc04ac37b/src/garden_watcher/core.clj#L24 it calls the classpath function. On my system this one returns an empty list.
By switching to the system-classpath function I can make it work and the watcher watches the corresponding file.
Garden: stopped watching namespaces.
Garden: watcher not running
Garden: compiling #'de.sveri.estar.styles/main
Wrote: resources/public/css/main.css
Garden: watching C:\Users\sveri\IdeaProjects\clojure\estar\src\clj\de\sveri\estar\styles.clj
=> #<SystemMap>
Garden: compiling #'de.sveri.estar.styles/main
Wrote: resources/public/css/main.css
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/garden_watcher/core.clj at the classpath call around line 24, then inspect hawk.core/extract-paths-by-type. Reproduce the Windows 10 case and compare the classpath and system-classpath results. Done means the watcher discovers and watches the relevant source file without the NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100