hi friends, I don't know if it is a right channel to post this question or not. Please forgive me if it is not. I m unable to start cider-jack-in-clojurescript for my shadowcljs project in spaceemacs but cider-jack-in works fine. Please help me know what i m missing to make it work! Here are the logs that I m getting. Note: I m following practicalli spacemacs guide Bundle of thanks
A session with the same parameters exists (clojure-projects/reviews:localhost:56442). You can connect a sibling instead. Proceed? (y or n) y
[nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.8.0"} cider/piggieback {:mvn/version "0.5.1"} refactor-nrepl {:mvn/version "2.5.0"} cider/cider-nrepl {:mvn/version "0.25.3"}}}' -m nrepl.cmdline --middleware '["refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware", "cider.piggieback/wrap-cljs-repl"]'
[nREPL] server started on 57396
[nREPL] Establishing direct connection to localhost:57396 ...
[nREPL] Direct connection to localhost:57396 established
error in process filter: user-error: The shadow-cljs ClojureScript REPL is not available. Please check <https://docs.cider.mx/cider/basics/clojurescript> for details
error in process filter: The shadow-cljs ClojureScript REPL is not available. Please check <https://docs.cider.mx/cider/basics/clojurescript> for details
Review this guide to Clojurescript and cider for details on how to configure a shadow-cljs project https://docs.cider.mx/cider/0.26/cljs/shadow-cljs.html
thanks John I will give it another go. I worked me with emacs, but stop working when changed my configs to spaceemacs. thank you so much for practicalli 🙏
I don't believe there is any difference between using Emacs and Spacemacs, as the ClojureScript all goest through CIDER. It could be a change in CIDER version, or some settings you had in the Emacs config. Looking at the #cider channel, many people have issues getting Shadow-cljs working, I think is just a matter of reading all the docs as there are more moving parts than with just a Clojure project.
@jr0cket I noticed you have SPC /
mapped to helm swoop, that is very useful !
just a nitpicking, I get these warnings when using the config -
Auto-evilification could not remap these functions in map 'org-agenda-mode-map':
- 'org-agenda-next-line' originally mapped on 'C-n'
Auto-evilification could not remap these functions in map 'org-agenda-mode-map':
- 'org-agenda-toggle-time-grid' originally mapped on 'G'
Auto-evilification could not remap these functions in map 'org-agenda-mode-map':
- 'org-agenda-filter-remove-all' originally mapped on '|’
Auto-evilification could not remap these functions in map 'org-agenda-mode-map':
- 'org-agenda-filter-by-tag' originally mapped on '\'
Package cl is deprecated
is there a way to prevent same command showing up multiple times in the emacs command history ?
Package cl is due to Emacs 27 dropping cl package as it was deprecated several years ago. There are a few community packages that still use cl instead of the new one, which I think is called cl-lib
The others are warnings about remapping that have been around for ages. I've not experienced any issues so never looked into them.
I was able to solve make it work be running my shadow server by running
npx shadow-cljs server
and then running cider-connect-cljs to it
thanks again for help @jr0cket
There were some issues raise on the Spacemacs GitHub repository about duplicate commands in the helm popup.
I had the same issue. I think I deleted the helm packages and cleared the .emacs.d/cache
. I believe it's the savehist
file that contains the duplicates