<< Back to previous view

[CLJS-649] External JavaScript files are not compiled by CLJS Created: 31/Oct/13  Updated: 01/Nov/13  Resolved: 01/Nov/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Pierre Allix Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None

Linux, java version "1.7.0_07"


External JS files are not compiled by ClojureScript as they used to be.

The project available at https://github.com/pallix/cljs-bug illustrated this.

:libs ["src-js/libs"] is specified in project.clj but the files it contained will not be compiled when calling "lein cljsbuild once".

The scripts/test_bug.sh file can be runned and will return a non-zero value when the test fails.

Comment by David Nolen [ 31/Oct/13 4:52 PM ]

As far as I know the :libs option does not take directories, it must be paths to specific JavaScript files.

Comment by Chas Emerick [ 01/Nov/13 1:09 PM ]

I think this has trickled up from https://github.com/emezeske/lein-cljsbuild/issues/203. David is right that filesystem entries in :libs need to be paths to files, but they can also be classpath prefixes (which is why the workaround discussed in CLJS-526 works).

Pierre, if you add "src-js/libs" to your project.clj's :source-paths vector, I think that might fix the problem.

There's probably a good argument to be made that the different types of :libs entries should be separated out into different options…

Generated at Fri Jan 19 17:36:29 CST 2018 using JIRA 4.4#649-r158309.