Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

Closure Compiler snapshot integration tests started failing a few days ago in Canary.

It appears that the root cause (looking at the Travis logs) might be related to this

`
Unexpected module type: SCRIPT
Node(NAME calc): /home/travis/build/mfikes/closurecomp/clojurescript/src/test/cljs/es6_dep.js:3:24
export var calculator = calc;
Parent(NAME calculator): /home/travis/build/mfikes/closurecomp/clojurescript/src/test/cljs/es6_dep.js:3:11
export var calculator = calc;
Node(SCRIPT): /home/travis/build/mfikes/closurecomp/clojurescript/src/test/cljs/es6_dep.js:1:0
import {default as calc} from './calculator';
Parent(ROOT): [source unknown]
, compiling:(/home/travis/build/mfikes/closurecomp/clojurescript/bin/../bin/cljsc.clj:22:1)

at clojure.lang.Compiler.load(Compiler.java:7526)
at clojure.lang.Compiler.loadFile(Compiler.java:7452)
at clojure.main$load_script.invokeStatic(main.clj:278)
at clojure.main$script_opt.invokeStatic(main.clj:338)
at clojure.main$script_opt.invoke(main.clj:333)
at clojure.main$main.invokeStatic(main.clj:424)
at clojure.main$main.doInvoke(main.clj:387)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:702)
at clojure.main.main(main.java:37)

Caused by: java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
`

and other errors indicating

Caused by: java.lang.IllegalStateException: Unexpected module type: SCRIPT

To repro locally:

script/clean script/bootstrap --closure-compiler-snapshot script/test

2 Answers

0 votes
by

Comment made by: mfikes

Regressed with this upstream commit https://github.com/google/closure-compiler/commit/0393c80ca01b6b861376dad7f91043a38bb37dc0

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-3064 (reported by mfikes)
...