Fork me on GitHub
#cider
<
2018-02-04
>
bozhidar00:02:44

Yeah, you were right - the error was coming from rlwrap. I didn’t know about that difference between clj and clojure.

bozhidar07:02:19

@ag Many of were configurable, but I don’t remember which ones.

bozhidar07:02:53

Feel free to open a ticket about this. At least we can finally document this better.

bozhidar07:02:19

Unfortunately the manual was created after most of the code and doesn’t many of the configuration options, just because I din’t have enough time to do it right.

tianshu07:02:59

Is there a feature that inspect the spec at current point?

dominicm09:02:14

@bozhidar

[email protected] ~/s/g/j/m/c/fatjar (master)> cat /usr/bin/clj
#!/usr/bin/env bash
if type -p rlwrap >/dev/null 2>&1; then
  rlwrap -r -q '\"' -b "(){}[],^%[email protected]\";:'" clojure "[email protected]"
else
  echo "Please install rlwrap for command editing or use \"clojure\" instead."
fi
yeah, clj is lightweight to say the least 😄

bozhidar12:02:59

> Is there a feature that inspect the spec at current point?

bozhidar12:02:04

Inspect in what sense?

bozhidar12:02:24

@dominicm Yeah, I went over the entire repo. 🙂

kingcode14:02:13

@bozhidar Is it possible to do form-wise navigation? I couldn’t find an answer in Cider manual..e.g. from the current cursor, how do I ask to “go to the start of the previous global form”, or “go 2 sibling forms down”? I have looked at paredit commands, but they seem quite primitive, as I can never get past the end of the current form when trying to jump.. Thanks for any advice, and for all your fabulous work!

bozhidar16:02:41

@kingcode What you need is not generally in the scope of CIDER, as it doesn’t require REPL connection. You can take a look at some built-in commands (which are also available in clojure-mode).

matan18:02:01

Hi Guys, I've acclimated (for the first time) with emacs, and cider. Is it normal that the cider menu doesn't always show? I currently only get a Clojure menu at the menu bar. How would I troubleshoot this?

matan18:02:48

And second question if I may, when I run tests or a main from within emacs (how?) will it jump to the crashed line of code if the code crashes?

matan19:02:37

I tried reinstalling the package, which didn't produce any error. But now it is no longer showing for me in the package list, and it even seems no longer available to me through package-install although I do have melpa-stable in my .emacs

matan19:02:05

All I did in between was install dark-theme packages and make minor changes through the Options menu

matan19:02:03

the messages buffer looks benign. it includes Contacting host:

gonewest81819:02:20

What happens if you M-x cider-mode in that clojure buffer?

matan19:02:43

works like wonder

matan19:02:47

CIDER menu shows

matan19:02:17

but when I restart emacs, I need to retype that command again to get the menu

matan19:02:22

is that very normal?

matan19:02:02

can't this be perpetualized somehow? 🙂

matan19:02:33

without this command I am not in Clojure cider mode but only in clojure mode when opening a .clj file as a buffer

gonewest81820:02:31

Yes, you can persist that in your config.

gonewest81820:02:40

Um, let me dig up a link.

gonewest81820:02:49

(add-hook 'clojure-mode-hook #'cider-mode)

matan20:02:52

@gonewest818 just add that to the .emacs file as a new line?

matan20:02:06

I wonder why it is not the default, but thanks!

gonewest81821:02:45

Most likely to avoid tight coupling where it isn’t strictly necessary. There is code in CIDER that anticipates having clojure-mode without cider-mode. In that case a small subset of autoloaded CIDER commands apparently get added to the Clojure menu.

matan23:02:33

Sounds like a design issue, if I get you right, some stuff will fail if clojure mode entails cider mode

xiongtx22:02:42

CIDER doesn’t (and shouldn’t) presume that the user will want CIDER whenever they use clojure-mode. This is why CIDER does not modify clojure-mode-hook itself, but leaves it up to the user.