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
155 views

Where is the "Hello world" going to be printed after following shadow-cljs documentation to watch the app?

I am following shadow-cljs Quick Start documentation on a minimal example of a project. Here is the link. I have this shadow-cljs.edn file: ;; shadow-cljs configuration {:source-paths ["src/dev&...
Pedro Delfino's user avatar
1 vote
1 answer
415 views

How to make the connection between Emacs, Cider, and shadow-cljs be less repetitive per project?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Usually, I build the project by executing ...
Pedro Delfino's user avatar
0 votes
1 answer
326 views

How to make the browser connection to the shadow-cljs nREPL be longer?

I have been using Clojure, ClojureScript, lein, shadow-cljs, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Usually, I build the project executing command cider-jack-in-...
Pedro Delfino'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
70 views

ClojureScript Setup from book

I am following the learning ClojurScript book from Packt, and I am a little lost on something. I have a project.clj file with the following configuration (defproject piggieback_project "0.5.2&...
Anders Kitson'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
1 vote
0 answers
234 views

Re-frame dispatches and subscribes not working in the repl and test files

I have a re-frame project, and my events, subs and db cljs files are populated. I use these three in my project and it works well. But I created a test file, and called subscribe and dispatch in it ...
zendevil.eth's user avatar
  • 1,102
1 vote
0 answers
558 views

Unable to launch shadow-cljs with cider

I installed shadow-cljs as follows: npm install -g shadow-cljs Then I created a shadow-cljs.edn file, with the following: [{:id "app" :source-paths ["src/cljs" "src/cljc" "dev"] ...
zendevil's user avatar
  • 999

15 30 50 per page