Fork me on GitHub
#spacemacs
<
2020-03-31
>
Joe14:03:00

Hi, In clojure mode my ', e' menu seems to be missing few options mentioned here https://practicalli.github.io/spacemacs/evaluating-clojure/. I have cider-eval-buffer, last-sexp, defun-at-point, and a couple of others, but not the one which outputs the results as a comment (, e ; in the link) and not the two that print to a new buffer. Am I missing a plugin or is this some custom configuration?

OrdoFlammae14:03:28

@allaboutthatmace1789, my spacemacs config had , e ; straight off, so I'd double check your list of plugins.

practicalli-johnny16:03:42

@allaboutthatmace1789 my first guess is you are on Spacemacs version 0.200, rather than version 0.300 by switching to the Spacemacs develop branch. Most people are on develop branch. If you need to switch... https://practicalli.github.io/spacemacs/install-spacemacs/switch-to-develop.html

Joe16:03:36

@jr0cket I am on 0.200, thanks!

Joe16:03:48

(I also had to upgrade from emacs 25 to 26, otherwise I got errors downloading packages)

practicalli-johnny18:03:08

@allaboutthatmace1789 Emacs versions earlier that 26 require an updated key, but its a better to use Emacs 26.3 if you can anyway. Emacs 27 should be out this year There are a lot new features and keybindings in the Clojure layer when using the develop branch, they are covered in the https://github.com/syl20bnr/spacemacs/tree/develop/layers/+lang/clojure readme (which I updated recently so let me know if you have any questions) Hopefully the rest of the book should also help, but feel free to ask about anything you dont understand. Thanks.

👍 4
OrdoFlammae18:03:20

I'm trying to get Spacemacs working with a boot webserver that I set up from the modern-cljs tutorial. How can I get CIDER to jack in cljs in the correct way?

OrdoFlammae18:03:45

If someone could at least point to some documentation or something.

OrdoFlammae18:03:20

I can't just use cider-jack-cljs with the default boot option because it fails with a null pointer exception.

practicalli-johnny18:03:54

@ordoflammae I thought that CIDER could start a repl from Boot, with just a working boot.build file, however its been so long since I did boot stuff. Otherwise, if you can start a boot on the command line, then this section should help you connect to a Boot repl from CIDER https://github.com/syl20bnr/spacemacs/tree/develop/layers/+lang/clojure#connecting-to-a-clojure-repl-outside-of-emacs (sorry, after reviewing this seems a little dated now, especially if using Spacemacs develop)

practicalli-johnny18:03:52

One thing to watch out for is versions of libraries you are including, they may need to be changed to newer versions (you may see warnings in the repl buffer)

OrdoFlammae19:03:18

OK, thanks @jr0cket. I found a few resources, so I'll see if I can get it to work.

practicalli-johnny19:03:35

Let us know if you find something that works and I'll update the Spacemacs Clojure docs. Thanks

OrdoFlammae21:03:03

@jr0cket, I don't know why it wasn't working, since when I replicate everything from the terminal it works fine, but I fixed it by changing my default boot target to my custom dev task, rather than the default repl -s -b localhost wait. I'm not sure why the second didn't work in Spacemacs, since it worked fine in the terminal, but I wanted to use the custom task anyway.

OrdoFlammae21:03:24

Although, now I have all default boot targets set to dev, is there a way to only set the default boot target for a certain project?

OrdoFlammae21:03:46

The variable is cider-boot-parameters

practicalli-johnny22:03:15

@ordoflammae I am assuming there is some CIDER variable you can set, using a .dir-locals.el file. Try SPC p e and see if there is an obvious variable to set for boot. Or search for the variable name on http://docs.cider.mx or ask on #cider channel (it's past my bedtime now)