Clojurians
#cljs-dev
<
2015-07-22
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

bensu22:07:36

I'm reading cljs.analyze/analyze-file, it states: "does not return a meaningful value"

bensu22:07:53

did it return a meaningful value in the past?

dnolen22:07:33

@bensu: it may have returned IJavaScript, but I don’t remember anymore

dnolen22:07:48

would have to go through the git history

bensu22:07:56

dnolen: ok thanks, I'll look at it then.

bensu22:07:18

@dnolen: in any case, I should see it's side effects from env/*compiler* right?

dnolen22:07:35

@bensu: yes

bensu23:07:16

when analyzing files with cljs.analyzer/analyze-file it is necessary to load them in dependency order right?

dnolen23:07:05

@bensu it depends

dnolen23:07:12

there flags for this stuff

dnolen23:07:21

analyze-deps is optional

dnolen23:07:46

but if you enable that, then it will visit the deps in order before proceed to analyze the current file to avoid warnings

bensu23:07:37

ok, what about cljs.core and goog.{}?

bensu23:07:55

will it analyze those as well in order to avoid warnings?

bensu23:07:32

I'm asking because it seems to be analyzing cljs.core and then throws an Exception because it can't find goog.string

bensu23:07:14

solved. Using the analyzer from the REPL is very fun

dnolen23:07:28

@bensu analyzer can’t analyze JS yet it skips JS stuff

dnolen23:07:00

@bensu cljs.compiler has with-core helper to analyze cljs.core first so the compiler state is populated

bensu23:07:57

@dnolen: thanks, it makes sense, I'll read the helpers then.