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.
This could possibly be an issue with ClojureScript itself but I figured I'd start here. I'm trying to use the ShellJS library, specifically shelljs.exec, in a Lumo script and I'm receiving this error:
> lumo-shelljs-repro@1.0.0 start /home/daviwil/Projects/Code/lumo-shelljs-repro
> lumo repro.cljs
WARNING: Use of undeclared Var cljs.user/var at line 1
WARNING: Use of undeclared Var cljs.user/child at line 1
WARNING: Can't take value of macro cljs.core/require at line 1
WARNING: Use of undeclared Var cljs.user/fs at line 2
WARNING: Can't take value of macro cljs.core/require at line 2
WARNING: Use of undeclared Var cljs.user/var at line 3
WARNING: Use of undeclared Var cljs.user/childProcess at line 3
⬆
/tmp/shelljs_2b64e6d0015dc597a80c [line 3, col 78] Invalid keyword: :. at line 3 /tmp/shelljs_2b64e6d0015dc597a80c
(new)
Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:1928:72)
Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$2 (NO_SOURCE_FILE <embedded>:1927:449)
Function.cljs.tools.reader.impl.errors.throw_ex.cljs$core$IFn$_invoke$arity$variadic (NO_SOURCE_FILE <embedded>:2095:303)
Function.cljs.tools.reader.impl.errors.reader_error.cljs$core$IFn$_invoke$arity$variadic (NO_SOURCE_FILE <embedded>:2098:141)
Object.cljs.tools.reader.impl.errors.throw_invalid (NO_SOURCE_FILE <embedded>:2113:365)
cljs.tools.reader.read_keyword (NO_SOURCE_FILE <embedded>:2197:405)
Object.cljs.tools.reader.read_STAR__internal (NO_SOURCE_FILE <embedded>:2269:407)
Function.cljs.tools.reader.read_STAR_.cljs$core$IFn$_invoke$arity$6 (NO_SOURCE_FILE <embedded>:2272:111)
Object.cljs.tools.reader.read_delimited_internal (NO_SOURCE_FILE <embedded>:2171:427)
exec: internal error
It seems that ShellJS is generating a script and executing it in the same runtime, causing ClojureScript to get tripped up. Have you ever seen this before?
I've put together a very simple project that reproduces the issue, you can find it here:
This could possibly be an issue with ClojureScript itself but I figured I'd start here. I'm trying to use the ShellJS library, specifically
shelljs.exec
, in a Lumo script and I'm receiving this error:It seems that ShellJS is generating a script and executing it in the same runtime, causing ClojureScript to get tripped up. Have you ever seen this before?
I've put together a very simple project that reproduces the issue, you can find it here:
https://github.com/daviwil/lumo-shelljs-repro
Happy to move this issue elsewhere if it doesn't belong here.
Thanks!
The text was updated successfully, but these errors were encountered: