Skip to main content

All Questions

0 votes
1 answer
102 views

What difference between syntax-quote in Clojure and syntax-quote in Clojurescript?

In Clojure REPL: (macroexpand-1 `(sum 2 1)) ; (user/sum 2 1) In Clojurescript REPL: (macroexpand-1 `(sum 2 1)) ; AssertionError: Assert failed: Argument to macroexpand-1 must be quoted Why it ...
rusfrompiter's user avatar
0 votes
1 answer
313 views

Why I can start CIDER's Clojure REPL without a project (no error message) but starting CIDER's clojureScript REPL without a project returns an error?

I have been using with some success the stack of Clojure, ClojureScript, lein, shadow-cljs, Emacs, and CIDER. Usually, inside a project and for ClojureScript projects, I do: cider-jack-in-cljs, I ...
Pedro Delfino's user avatar
0 votes
1 answer
131 views

Why does CIDER's REPL some times start as "shadow.user>" and in others it starts as "cljs.user>"?

I am using Clojure, ClojureScript, shadow-cljs, Emacs, Cider, and Lein to develop a web app project. This is the usual workflow: inside a project and for ClojureScript projects, execute cider-jack-in-...
Pedro Delfino's user avatar
0 votes
1 answer
437 views

Why is CIDER's REPL's behavior inconsistent? How to understand shadow-cljs' error message "No available JS runtime"?

I am using Clojure, ClojureScript, shadow-cljs, Emacs, Cider, and Lein to develop a web app project. The web application has been successfully built. I can access the interface on http://localhost:...
Pedro Delfino's user avatar
1 vote
1 answer
107 views

Is there a way to store and retrieve the history of shadow-cljs' REPL over different sessions? How to use commands used in previous sessions?

I am using Emacs, CIDER, and shadow-clj/shadow-cljs to develop a project in Clojure/ClojureScript. All this in a macOS Monterey 12.5. Before that, I was used to programming with Emacs, Slime, Common ...
Pedro Delfino's user avatar
1 vote
1 answer
277 views

Whenever I start a project, an error occurs :main namespace specified in project.clj

Whichever github project I run I get the same error. Now I have started a simple example from the book clojure for brave and true and the same program appears. (ns clojure-noob.core (:gen-class)) (...
MissCatarinaV's user avatar
0 votes
1 answer
210 views

How do I start clojurescript repl with lein mies?

I'm trying to learn clojurescript. In my terminal (on Mac) I typed lein new mies js-practice cd ~/js-practice scripts/repl Then I get this error: Exception in thread "main" java.io....
JasonXuNAlasfjdao's user avatar
0 votes
1 answer
261 views

java.lang.ClassNotFoundException: sun.misc.Launcher when running boot repl

I'm trying to run boot repl and I get the following error. java.lang.Thread.run Thread.java: 832 ...
Likepineapple's user avatar
1 vote
1 answer
751 views

How to setup full Clojure/ClojureScript stack?

I need to make web app with clojure/clojurescript but i can't setup them properly. I don't know how to start clojure and clojurescript REPLes in one port. Or how should i do that? Clojure backend ...
Alex Stoyanov's user avatar
2 votes
1 answer
544 views

No application has connected to the REPL server

I am trying to evaluate some Clojure forms in VS Code using the Calva REPL. When I run any of these commands, I get the error: No application has connected to the REPL server. Make sure your JS ...
Mr. Robot's user avatar
  • 1,864
2 votes
0 answers
598 views

Why some namespaces can not be loaded by clojurescript browser repl?

I wrote some tests, I found that: Only namespaces which is a dependency of my compiled clojurescript can be required in repl. Namespaces which not refered by any compiled clojurescript can NOT be ...
Shark's user avatar
  • 93
3 votes
2 answers
143 views

RuntimeException when using queue literal in REPL

So I'm just beginning my clojurescript experience, and following along with the clojurescript-unraveled web book to get down the basics. Been a smooth process mostly, but I've hit a snag using the #...
jchaffin's user avatar
4 votes
1 answer
178 views

Clojure and ClojureScript REPL produce different output

Using the following recursive definition of a depth first search a Clojure (JVM) and ClojureScript (tested with both browser connected repl and lumo) REPL produce two different outputs, i.e. order in ...
mac's user avatar
  • 10.1k
0 votes
1 answer
81 views

REPL session for a ClojureScript library in the vein of `lein try`

Sometimes I want to try out a library in a REPL. For example when I need to know the date 100 days from now, I do: lein try clj-time (require '[clj-time.core :as t]) (t/plus (t/today) (t/days 100)) ...
Michiel Borkent's user avatar
11 votes
2 answers
2k views

What is the specific difference between Clojure 1.8's socket repl and nREPL?

I've been reading this, but there seems to be no tutorial/doc about the difference between these two or whatnot. Is socket repl going to replace nrepl?
Shiva Wu's user avatar
  • 1,094

15 30 50 per page