Fork me on GitHub
#spacemacs
<
2020-08-30
>
Umar Daraz09:08:10

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  for details
error in process filter: The shadow-cljs ClojureScript REPL is not available.  Please check  for details

practicalli-johnny09:08:33

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

Umar Daraz10:08:37

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-johnny11:08:07

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.

Umar Daraz17:08:11

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

👍 3
murtaza5211:08:34

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

murtaza5211:08:23

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

practicalli-johnny13:08:40

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-johnny13:08:03

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

murtaza5212:08:42

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

practicalli-johnny18:08:42

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