I'm getting this error. It seems that it's happening inside the transpiled core.async sources. The error carrot at line 1444 points at the semicolon, pretty strange.
Feb 24, 2017 8:38:19 PM com.google.javascript.jscomp.LoggerErrorManager println
SEVERE: /Users/raspasov/projects/project123/target/ios/cljs/core/async.js:1444: ERROR - Parse error. No newline allowed before '=>'
var inst_33727 = async(inst_33726); (^ points at the semicolon)
Feb 24, 2017 8:38:19 PM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 1 error(s), 4 warning(s)
ERROR: JSC_PARSE_ERROR. Parse error. No newline allowed before '=>' at /Users/raspasov/projects/project123/target/ios/cljs/core/async.js line 1444 : 34
I tried both :parallel-build true/false but it doesn't make a difference. It works fine on [org.clojure/clojurescript "1.9.473"]
Here's how the async.js source looks like around line 1444.
return cljs.core.cst$kw$recur;
} else {
if((state_val_33738 === (2))){
var state_33737__$1 = state_33737;
return cljs.core.async.impl.ioc_helpers.take_BANG_(state_33737__$1,(4),jobs);
} else {
if((state_val_33738 === (3))){
var inst_33735 = (state_33737[(2)]);
var state_33737__$1 = state_33737;
return cljs.core.async.impl.ioc_helpers.return_chan(state_33737__$1,inst_33735);
} else {
if((state_val_33738 === (4))){
var inst_33726 = (state_33737[(2)]);
var inst_33727 = async(inst_33726); <<<<<<<<<<<<<<<< This is the error line number 1444
var state_33737__$1 = state_33737;
if(cljs.core.truth_(inst_33727)){
var statearr_33743_33989 = state_33737__$1;
(statearr_33743_33989[(1)] = (5));
} else {
var statearr_33744_33990 = state_33737__$1;
(statearr_33744_33990[(1)] = (6));
}
return cljs.core.cst$kw$recur;
} else {
if((state_val_33738 === (5))){
var state_33737__$1 = state_33737;
var statearr_33745_33992 = state_33737__$1;
(statearr_33745_33992[(2)] = null);
(statearr_33745_33992[(1)] = (2));
return cljs.core.cst$kw$recur;
} else {
if((state_val_33738 === (6))){
var state_33737__$1 = state_33737;
var statearr_33746_33993 = state_33737__$1;
(statearr_33746_33993[(2)] = null);
(statearr_33746_33993[(1)] = (7));
return cljs.core.cst$kw$recur;
} else {
if((state_val_33738 === (7))){
var inst_33733 = (state_33737[(2)]);
var state_33737__$1 = state_33737;
var statearr_33747_33994 = state_33737__$1;
(statearr_33747_33994[(2)] = inst_33733);
(statearr_33747_33994[(1)] = (3));
return cljs.core.cst$kw$recur;
} else {
return null;
{:output-to "index.ios.js"
:main "env.ios.main"
:output-dir "target/ios"
:static-fns true
:optimize-constants true
:parallel-build true
;:pretty-print true
;:pseudo-names true
:source-map "cljs-source-map.js"
:optimizations :advanced
:externs ["externs/externs.js"]
:closure-defines {"goog.DEBUG" false}}
It seems that any core.async code with the latest version of ClojureScript does not compile under :advanced. I suspect the problem lies with the bump of Google Closure dependency and/or core.async.
I made a repo showing a minimal case:
https://github.com/raspasov/cljs-1.9.494-core-async-broken
--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscribe@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.