dundalek / closh

Bash-like shell based on Clojure
Eclipse Public License 1.0
1.61k stars 65 forks source link

Require and quoted values in the repl broken #107

Open dundalek opened 5 years ago

dundalek commented 5 years ago

For example following gives syntax error:

$ (require 'lumo.classpath)
missing ) after argument list
     (new)
     createScript (vm.cljs:136:10)
     Object.runInThisContext (vm.cljs:197:10)
     (Object.yt)
     (Object.lumo.repl.caching_node_eval)
     (NO_SOURCE_FILE <embedded>:5824:287)
     z (NO_SOURCE_FILE <embedded>:5825:306)
     (NO_SOURCE_FILE <embedded>:5820:508)
     Function.cljs.core.trampoline.cljs$core$IFn$_invoke$arity$1 (NO_SOURCE_FILE <embedded>:1916:142)
     Function.cljs.core.trampoline.cljs$core$IFn$_invoke$arity$variadic (NO_SOURCE_FILE <embedded>:1916:280)

It seems it related to the require only since following works:

$ (println 'hello)
hello

There seems to be a workaround, my head is spinning:

$ (eval '(require 'lumo.classpath))