This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-16
Channels
- # aleph (2)
- # beginners (68)
- # boot (25)
- # bristol-clojurians (5)
- # cider (10)
- # cljs-dev (60)
- # cljsrn (1)
- # clojure (138)
- # clojure-austin (1)
- # clojure-france (2)
- # clojure-greece (11)
- # clojure-italy (4)
- # clojure-russia (16)
- # clojure-spec (4)
- # clojure-uk (75)
- # clojurescript (26)
- # core-async (28)
- # cursive (25)
- # data-science (4)
- # datomic (16)
- # defnpodcast (2)
- # devops (2)
- # docs (10)
- # duct (11)
- # emacs (1)
- # events (1)
- # figwheel (8)
- # fulcro (61)
- # garden (2)
- # hoplon (6)
- # java (6)
- # jobs-discuss (1)
- # lein-figwheel (14)
- # leiningen (86)
- # luminus (11)
- # off-topic (8)
- # parinfer (9)
- # pedestal (2)
- # re-frame (19)
- # reagent (1)
- # ring (3)
- # ring-swagger (8)
- # shadow-cljs (278)
- # spacemacs (13)
- # sql (5)
- # testing (7)
- # unrepl (8)
- # yada (25)
I open localhost:9000/other.html in browser and it doesn't connect. My code runs and there is an iframe in the dom which has loaded the index and the clojure.browser.repl.client.start("
Not sure if it’s the problem you’re seeing, but I think there’s race condition that causes it to miss the server once in a while.
One of the things that threw me was the lack of a default for :output-to
. I thought main.js
was the default for that
the lack of connection was caused by a previous launched cljs.main browser repl that didn't connect in another terminal tab, i had forgotten about it and it of course stopped me from getting anywhere in another terminal
any bad option --o
with be tried as a script, a file existence check with a message would be fantastic here, "the file --o
doesn't exist"
-w
could happen on a thread with then could either launch the repl or join the watch thread
something else that happened right away is that the watcher died while loading a clj file (mytry/core.clj) that referenced an undefined var
It is nice to see that Ambly works fine.
$ clj -m cljs.main -re ambly -e '(+ 1 2)' -r
[1] Ambly Demo on iPhone (mikes-imac-2)
[R] Refresh
Choice: 1
Connecting to Ambly Demo on iPhone (mikes-imac-2) ...
3
To quit, type: :cljs/quit
cljs.user=> (map inc [1 2 3])
(2 3 4)
cljs.user=> :cljs/quit
The only change needed was to ensure that cljs.repl.ambly/repl-env
is def
d to be ambly.core/repl-env
in order to follow the naming pattern.I am puzzled, is this a bug?
self-host.test=> (def m {foo.with_underscore 1})
#'self-host.test/m
self-host.test=> (get m foo.with_underscore)
self-host.test=> 1
self-host.test=> (get m 'foo.with_underscore)
self-host.test=> nil
note the abscence of '
in the m
definition
@richiardiandrea one is the value of the symbol the other is the symbol itself
I expected a "cannot find foo.with_underscore
" warning or something on line 1
Attached a new patch to https://dev.clojure.org/jira/browse/CLJS-2492, now the append-source-map
function correctly munges the key name to :source-maps
@richiardiandrea Can't repro this way:
$ java -jar cljs.jar -re node
To quit, type: :cljs/quit
cljs.user=> (require 'cljs.js)
nil
cljs.user=> (cljs.js/eval-str (cljs.js/empty-state)
"(def m {foo.with_underscore 1})" nil {:eval cljs.js/js-eval :context :expr} prn)
{:error #error {:message "ERROR", :data {:tag :cljs/analysis-error}, :cause #object[ReferenceError ReferenceError: foo is not defined]}}
give me a sec
uhm interesting
$ clj -J-Dclojure.server.repl='{:port 5044 :accept clojure.core.server/repl}' -C:test -m cljs.main -re node -r
To quit, type: :cljs/quit
cljs.user=> (def m {'foo.with_underscore 1})
#'cljs.user/m
(trying alternatives)
uhm at some point i was getting the error as well
now I cannot repro the error
so @mfikes the behavior above happens only when I do clj -C:test -m cljs.main -r
in the current clojurescript
folder on master
maybe I have some garbage, in any case I will dig more, I am more interested in your opinion on CLJS-2492
, which solves for me the stacktrace mapping issue
Damn. Add a second failure that only occurs when using Java 9: https://dev.clojure.org/jira/browse/CLJS-2530 (First was https://dev.clojure.org/jira/browse/CLJS-2400)
woah that's weird
Yeah, AFAICT, cljs.js.empty_state.cljs$core$IFn$_invoke$arity$0
contains JavaScript that Nashorn under Java 9 can't execute.
Yeah, I was surprised it all still works, given how different Ambly is about starting up!
hi performance JS engine in the JDK would mean we could really be standalone - Node support would just be a great target not otherwise essential