lein-garden icon indicating copy to clipboard operation
lein-garden copied to clipboard

Support for CLJC files

Open lorddoig opened this issue 10 years ago • 7 comments

I'm not sure if you're deliberately holding off on Clojure 1.7 support until it lands officially, but in using the release candidates it's been useful to me to keep styles in CLJC files so they can be pulled directly into ClojureScript components as well as used to generate stylesheets. Unfortunately this doesn't work with lein-garden, which will run happily enough but won't pickup changes in auto-build mode.

lorddoig avatar Jun 12 '15 14:06 lorddoig

I'm not deliberately holding off I just haven't had a chance to get to it yet. Garden has a similar issue already open here. I'd be willing to bump the version of Clojure for this plugin though if it means the support will be available for CLJC.

noprompt avatar Jun 12 '15 17:06 noprompt

@lorddoig Could you investigate this and get back to me with more information or patch?

noprompt avatar Jun 12 '15 17:06 noprompt

Yeah, I suspect it's probably in ns-tracker as I encountered an almost identical issue with another namespace tracking lib. Nothing obvious jumping out at me yet. I'll get back to you when I've had a chance to look properly.

lorddoig avatar Jun 12 '15 17:06 lorddoig

Any updates on this? I'd love for this to work!

den1k avatar Jun 19 '16 00:06 den1k

@den1k I'm waiting for a patch at this point.

noprompt avatar Jul 08 '16 06:07 noprompt

ns-tracker works with cljc now so it should be possible to get this working. I did a quick version bump of ns-tracker and got FileNotFoundException's, so it isn't working out of the box, but I'll try to dive in at some point and see if I can figure out a patch.

If anyone reading this issue needs work arounds you can use garden-watcher and just change line 18 to cljc https://github.com/plexus/garden-watcher/blob/7d241e5234a9ec57dee8af03706fd45dc04ac37b/src/garden_watcher/core.clj#L18. And if you are using boot, boot-garden supports cljc files.

k2052 avatar May 16 '18 16:05 k2052

@k2052 you wanna dump the stack trace here?

noprompt avatar May 16 '18 18:05 noprompt