spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
Joe 2020-03-31T14:02:00.073900Z

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?

OrdoFlammae 2020-03-31T14:15:28.075300Z

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

practicalli-john 2020-03-31T16:01:42.079Z

@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

Joe 2020-03-31T16:12:36.079600Z

@jr0cket I am on 0.200, thanks!

Joe 2020-03-31T16:52:48.080100Z

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

practicalli-john 2020-03-31T18:06:08.083200Z

@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.

👍 1
OrdoFlammae 2020-03-31T18:34:20.084100Z

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?

OrdoFlammae 2020-03-31T18:34:45.084500Z

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

OrdoFlammae 2020-03-31T18:36:20.085100Z

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

practicalli-john 2020-03-31T18:41:54.088300Z

@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-john 2020-03-31T18:42:52.089200Z

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)

practicalli-john 2020-03-31T18:45:17.089600Z

Actually it seems this is a better guide for Boot https://docs.cider.mx/cider-nrepl/0.24/usage.html#_via_boot

OrdoFlammae 2020-03-31T19:00:18.090200Z

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

practicalli-john 2020-03-31T19:15:35.091400Z

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

OrdoFlammae 2020-03-31T21:02:03.094300Z

@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.

OrdoFlammae 2020-03-31T21:02:24.094800Z

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?

OrdoFlammae 2020-03-31T21:02:46.095100Z

The variable is cider-boot-parameters

practicalli-john 2020-03-31T22:20:15.099600Z

@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)