deraen / boot-cljx Goto Github PK
View Code? Open in Web Editor NEWBoot task to compile Cljx
License: MIT License
Boot task to compile Cljx
License: MIT License
Hi,
I'm experiencing issues whereby my .cljx namespaces can't be found in my Clojure or CLJS code.
I'm told No such namespace blah blah...
upon issuing boot dev.
Could this be down to the following?
My build.boot can be found here: https://gist.github.com/triss/b6104c6be3df6e132fc0
https://github.com/boot-clj/boot/wiki/Repl-reloading works fine for adding the src paths to .clj files to be reloaded, but doesn't pick up changed .cljx files since they are compiled to a tmp directory. Is there a way to get a reference to the tmp directory, or maybe to set-refresh-dirs to be (conj src-paths cljx-target-dir) inside the cljx task?
I wonder what happens if a .cljx file is removed. I think resulting .clj and .cljs files are left on fileset.
I should test this.
I get the following exception when running cljx
task with boot-cljx
version 2.1.2
:
clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate boot/repl__init.class or boot/repl.clj on classpath: , compiling:(deraen/boot_cljx.clj:1:1)
java.io.FileNotFoundException: Could not locate boot/repl__init.class or boot/repl.clj on classpath:
...
clojure.core/load/fn core.clj: 5641
clojure.core/load core.clj: 5640
...
clojure.core/load-one core.clj: 5446
clojure.core/load-lib/fn core.clj: 5486
clojure.core/load-lib core.clj: 5485
This is with latest boot rc9
.
I can reproduce this issue with saapas.
Everything works fine with boot-cljx
version 2.1.1
.
this isn't an issue with the boot task persay, but would you add middleware between the repl and cider to compile cljx?
i have
(swap! boot.repl/*default-dependencies*
concat '[[cider/cider-nrepl "0.8.1"]])
(swap! boot.repl/*default-middleware*
conj 'cider.nrepl/cider-middleware)
in .profile.boot
assuming something similar could be done with cljx?
It'd be nice to have some basic validation of the output files.
Not sure how that could be done without a significant performance penalty.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.