Code Monkey home page Code Monkey logo

Comments (4)

emezeske avatar emezeske commented on June 24, 2024

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.

djhworld avatar djhworld commented on June 24, 2024

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.

cocodrino avatar cocodrino commented on June 24, 2024

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.

emezeske avatar emezeske commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.