Comments (4)
Hey, are you using the exact (defproject ...) form from the tutorial that you linked? If not, please post your project.clj file.
I don't have a windows box to test against, so I might not be too much help. :(
The only time that I've seen errors deep in the com.google.javascript.jscomp stuff before was when a JAR was included in a project that conflicted with the Google Closure library. I think the offending library was closure-templates-clj. No idea if that problem has the same root as yours, though...
from lein-cljsbuild.
The OP raised this with me on some example code I've developed, two people have raised the same issue, both on Windows boxes.
https://github.com/djhworld/djhworld.github.com/issues/1
djhworld/testproject#1
Running the compiler on any *nix box or using Cygwin works fine.
I have a feeling this may be an issue with filepaths. Is there a step in the compiler where it copies the compiled JS to its destination?
from lein-cljsbuild.
hi emezeske..yes I've used the same code from the example... and now (I've upgrade my leinigen version to the latests) using :plugins [[lein-cljsbuild "0.0.14"]] ..neither work...In linux this work fine and I can run it well..but I don't know what happen with windows.....
from lein-cljsbuild.
@djhworld: The lein-cljsbuild plugin only copies files when you have the :crossovers feature enabled. With a simple configuration like that found in your blog post, lein-cljsbuild really shouldn't be doing much other than passing those options straight through to cljs.closure.build
.
By default, the :compiler/:output-dir option is set to ".clojurescript-output". Would there be any problem creating a dotfile directory? It might be worth fiddling with that option.
It's quite possible that the ClojureScript compiler does copy files internally, but if that was a problem, one would assume it would not work at all under Windows (which I believe is not the case).
The only other thing I can think to suggest would be to try changing :optimizations from :simple to :whitespace. I have no idea if this will have an effect, but the stack trace does seem to be bubbling up from the heart of the optimizer, so it's worth trying to see if it makes any difference.
from lein-cljsbuild.
Related Issues (20)
- Custom tagged literals cause build failure HOT 1
- Fails on Java 9? HOT 2
- :asset-path isn't documented HOT 1
- Circular dependencies : Warn user when a namespace requires itself HOT 2
- Adding 'monger' dependency breaks cljsbuild. HOT 2
- Possibility to add cli options to closure compiler. HOT 2
- reload-clojure causes compilation failure in portable projects HOT 4
- Could not write JavaScript nil HOT 1
- Exception (...)/objectutil.js is not a relative path HOT 7
- Consider exposing :watch-fn compiler option? HOT 1
- :prep-tasks dont work when running `lein cljsbuild ...`
- Miraculously disappearing dependencies when using lein cljsbuild auto. HOT 2
- warning-handlers: clojure.lang.PersistentList cannot be cast to clojure.lang.IFn HOT 2
- Duplicate input error HOT 1
- Recompiling compiled app with different optimization type
- Simple example project does not compile HOT 1
- `lein trampoline cljsbuild repl-rhino` fails with jdk 11 HOT 1
- cljsbuild-example-simple didnt run with lein 2.9.5 and Java version > 11 & 15 HOT 1
- cljsbuild cannot find reagent HOT 1
- Fails with ClojureScript newer than 1.10.764 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lein-cljsbuild.