Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate input error #495

Open
reeFridge opened this issue Nov 14, 2018 · 1 comment
Open

Duplicate input error #495

reeFridge opened this issue Nov 14, 2018 · 1 comment

Comments

@reeFridge
Copy link

reeFridge commented Nov 14, 2018

Problem description

We have two files with identical names input.js but in separate namespaces and dirs but build script does not distinguish them and puts by the same path in the target/cljsbuild-compiler-0 dir.

Log

Compiling ClojureScript...
Compiling ["/<path-to-project>/lighthouse/target/cljsbuild-main.js"] from ["src"]...
Nov 14, 2018 1:15:42 PM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: ERROR - Duplicate input: /<path-to-project>/lighthouse/target/cljsbuild-compiler-0/input.js

Nov 14, 2018 1:15:42 PM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 1 error(s), 0 warning(s)
ERROR: JSC_DUPLICATE_INPUT. Duplicate input: /<path-to-project>/lighthouse/target/cljsbuild-compiler-0/input.js at (unknown source) line (unknown line) : (unknown column)
Compiling ["/<path-to-project>/lighthouse/target/cljsbuild-main.js"] failed.
java.lang.Exception: Closure compilation failed

More info (project structure, sources and way to reproduce) can be found in bug-repo

Supposed place for modification:

js-files (let [output-dir-str

@reeFridge
Copy link
Author

I also try to use boot and do the same thing in it and encounter the same problem. Probably the real cause of this issue could be not in the build tool?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant