You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
It doesn't seem to be a lumo bug. Here's what I was able to reproduce:
JVM Clojurescript with (cljs.repl/repl (cljs.repl.node/repl-env)):
ClojureScript 1.10.758
cljs.user=> (when true (require '[clojure.set :refer [union]]))
goog.require could not find: clojure.set
Execution error (Error) at (<cljs repl>:1).
goog.require could not find: clojure.set
cljs.user=> (node:22086) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
cljs.user=> (identity (require '[clojure.set :refer [union]]))
Execution error (SyntaxError) at (<cljs repl>:1).
missing ) after argument list
cljs.user=> union
Execution error (TypeError) at (<cljs repl>:1).
Cannot read property 'union' of undefined
cljs.user=> (require '[clojure.set :refer [union]])
nil
cljs.user=> (union #{1 2} #{2 3})
#{1 2 3}
JVM Clojurescript with (cljs.repl/repl (cljs.repl.browser/repl-env)):
ClojureScript 1.10.758
cljs.user=> (when true (require '[clojure.set :refer [union]]))
Execution error (Error) at (<cljs repl>:1).
goog.require could not find: clojure.set
cljs.user=> (identity (require '[clojure.set :refer [union]]))
Execution error (SyntaxError) at (<cljs repl>:1).
missing ) after argument list
cljs.user=> union
Execution error (TypeError) at (<cljs repl>:1).
Cannot read property 'union' of undefined
cljs.user=> (require '[clojure.set :refer [union]])
nil
cljs.user=> (union #{1 2} #{2 3})
#{1 2 3}
However, it doesn't look like a design decision to me, especially the SyntaxError.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm not sure if this is a Lumo or ClojureScript bug or if it's expected behavior:
These all work in Clojure.
I noticed this problem because the editor plugin I'm trying to use wraps the expression to be evaluated causing
require
andns
to not work.https://github.com/mauricioszabo/repl-tooling/blob/f7ed777fb66613df82c3e6783ba3bc159c2803ec/src/repl_tooling/repl_client/clojurescript.cljs#L15-L17.
The text was updated successfully, but these errors were encountered: