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-06-14T15:31:32.422600Z

with cider and cljr enabled, assuming you have evaled a namespace, isn't their functionality to auto recongnize the namespace by the filename and auto insert the require. E.g if i'm in drewverlee.core and drewverlee.helper contains a fn bar wont typing helper/ in core insert the require statment? i feel like this was happening for me and now its not. but maybe thats wishful thinking.

Yehonathan Sharvit 2020-06-14T15:45:50.423900Z

When cider fails to launch the REPL, an error is displayed in the bottom of the screen. (See screenshot below) but the error is cut. How can I see the full error?

Yehonathan Sharvit 2020-06-14T15:46:00.424100Z

2020-06-14T15:51:13.424800Z

i believe the menu in that window has an "all" option. These are the docs: https://docs.cider.mx/cider/usage/navigating_stacktraces.html

practicalli-john 2020-06-14T15:56:46.425600Z

Put the cursor on the name of a function from a different namespace and , r a m in clojure-mode with the REPL running. If you put the alias you want to use before the function name, , r a m will also add the alias to the require.

2020-06-14T16:26:58.426300Z

i must have had to much to drink last night, i could have sworn it was magically adding the requires to my namespace. 😆

2020-06-14T16:27:02.426500Z

but yes that works

2020-06-14T16:33:20.426700Z

there. it just did it. i didnt run ,ram and it aut filled it. maybe its when there arent clashes.

practicalli-john 2020-06-14T16:38:36.426900Z

Perhaps its one of the magic requires you are using... https://github.com/clojure-emacs/clj-refactor.el/wiki#magic-requires

cjsauer 2020-06-14T16:39:46.428500Z

@viebel for that I usually navigate to the messages buffer by doing SPC b b and searching *Messages*. The error can be read more easily from there.

2020-06-14T16:40:23.428800Z

nope. its just a ns i created. ill give this another round then give up. its a bit weird.

2020-06-14T16:53:04.429Z

ok once you use refactor to include a lib once it will include it automaically past that. it must add it to the magic requires list or something.

2020-06-14T17:00:34.429200Z

scratch that, like the docs say it adds them if you define the alias somewhere else that you have evaled.

Yehonathan Sharvit 2020-06-14T17:56:52.429900Z

Indeed the error is fully logged in the *Messages* buffer

Yehonathan Sharvit 2020-06-14T17:57:32.430800Z

Not sure how to read the error as a stack trace as @drewverlee suggested

2020-06-14T18:13:18.433800Z

as i understand it, cider classifies the ST by a couple categories (clojure, java, repl) and it lets you filter them out:

Show: Project-Only All 
  Hide: Clojure Java REPL Tooling Duplicates  (39 frames hidden)
it seems to just hide them in the buffer. I assume "more..." indicated some where hidde, but that doesn't seem to be the case.

2020-06-14T18:13:26.434100Z

you can't just scroll down in the buffer?

Yehonathan Sharvit 2020-06-14T18:28:25.435100Z

I can scroll the buffer and read the whole error. Is there a way to navigate errors in *Message* buffer as a stacktrace?

cjsauer 2020-06-14T21:58:33.437800Z

Not that I’m aware of. I’ve always assumed that stacktrace navigation required a running cider REPL, which is why exceptions on start appear in this raw form. No clue if that’s true tho.