spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
2020-08-30T09:27:10.002100Z

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

practicalli-john 2020-08-30T09:49:33.002200Z

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

2020-08-30T10:14:37.002400Z

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 🙏

practicalli-john 2020-08-30T11:14:07.002600Z

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.

murtaza52 2020-08-30T11:54:34.004700Z

@jr0cket I noticed you have SPC / mapped to helm swoop, that is very useful !

murtaza52 2020-08-30T11:56:23.004800Z

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

murtaza52 2020-08-30T12:02:42.006Z

is there a way to prevent same command showing up multiple times in the emacs command history ?

practicalli-john 2020-08-30T13:34:40.006100Z

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

practicalli-john 2020-08-30T13:36:03.006300Z

The others are warnings about remapping that have been around for ages. I've not experienced any issues so never looked into them.

2020-08-30T17:27:11.007100Z

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

👍 1
practicalli-john 2020-08-30T18:52:42.007400Z

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