This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-05
Channels
- # announcements (1)
- # aws (6)
- # babashka (8)
- # beginners (22)
- # cider (12)
- # clj-kondo (1)
- # cljdoc (15)
- # clojure (109)
- # clojure-dev (6)
- # clojure-europe (40)
- # clojure-losangeles (5)
- # clojure-uk (1)
- # clojurescript (28)
- # data-oriented-programming (3)
- # datahike (9)
- # datalevin (9)
- # holy-lambda (2)
- # juxt (5)
- # lsp (4)
- # malli (2)
- # meander (1)
- # missionary (5)
- # nextjournal (3)
- # off-topic (17)
- # reagent (1)
- # reitit (8)
- # releases (1)
- # sci (16)
- # shadow-cljs (7)
- # sql (9)
- # tools-deps (9)
- # transit (1)
I have a bb.edn file {:paths ["scripts"]}
and my scripts/core.clj file (shell {:extra-env {"FOO" "BAR"}} "printenv FOO")
i successfully used emacs to start a babashka repl and can eval expressions. where does the "shell" command come from? I get an error that clojure.land.ExceptionInfo could not resolve symbol: shell when i try to eval that expression.
Is there a way to get the same dedicated window showing a log of the process? Like if i run (shell "node" "main.js") i assume it will correctly execute the process, but i won't have a terminal window that i can print output to or see any log info. Is there any easy way to get this back? Not really a big deal, maybe it just means this isn't a good fit for long running processes?
I don't get your question. (shell "node" "main.js") will do the same as if you launched it from bash basically.
If you want this to appear in a dedicated window, then execute the task from a dedicated window
you could of course use tee
or so to split the output to both the terminal and a file and then tail the file in another window
In the context where i evaluate the expression while communicating with a nrepl server, then it doesn't give me a way to see the output. Overall isn't an issue, i can execute it like a bash script and then it will likely work. I was just trying to figure out the limits. Ill look into using "tee"