thheller/shadow-cljs

Deno repl

Open

#923 opened on Aug 17, 2021

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Clojure (2,396 stars) (187 forks)batch import
help wanted

Description

I am trying to develop an application with clojurescript and deno. The trivial sources are here. It works great until I tried to run a repl.

To run the repl, I..

  1. Run the shadow-cljs repl via node_modules/.bin/shadow-cljs clj-repl
  2. The I start the deno repl using a command such as
    (shadow/node-repl {:build-id :app ;; my application
                   :node-command "/home/didier/.bin/deno"  ;; the deno bin directly 
                   :node-args ["repl"]  ;; `deno repl` is very similar to `node`
                   :verbose true})
    

Result: The underlying deno program exit and I have the following error.

[2021-08-17 16:59:18.741 - INFO] :shadow.cljs.devtools.server.repl-impl/node-repl-exit - {:code 0}

Expected: The repl should switch to deno process.

My two cents..

I believe the stdin of the deno process is closed. If I manually tail -f main.js | deno repl it works.

Contributor guide