Fork me on GitHub
#emacs
<
2023-09-20
>
Sam06:09:24

A while ago cider/emacs stopped giving me as useful error notifications as it did before. I tried to debug my init.el but couldn't find anything (I guess this is on the emacs side and not cider). For example, evaluating

(defn foo [] undefined-thing)
creates a red line under the expression and jumps the marker to the start. However, there is no error information. I can see the error info in the repl buffer or by calling cider-jump-to-compilation-error which shows it in the modeline:
Syntax error compiling at (dev/user.clj:37:1).
Unable to resolve symbol: undefined-thing in this context
but it used to show up as a nice popup right in the buffer. Is there a way to auto-call cider-jump-to-compilation-error in this case, or get the window back? I really can't find what the issue is.

1
vemv10:09:38

There's defcustom cider-auto-jump-to-error , default t, perhaps you have it changed? Besides from that, CIDER's 'jump to error' feature isn't as sophisticated as other of its error-related capabilities. It may or may not have to do with your problem. (I actually have a wip branch for modernizing this feature) If you create a GH issue, it sounds like we'll be happy to attend it when we have the chance.

❤️ 1
Sam11:09:05

It's t :thinking_face:

Sam11:09:37

I'd be happy to start an issue but I'll need to do some more digging first. Again, I'm sure this used to work sensibly, I just can't find what the issue is.

🍀 1
jcd21:09:23

This is also happening for me.

vemv21:09:37

Could you create a detailed github issue? (and link to it so that Sam can also contribute any extra info) Thanks 🙂

jcd21:09:53

Yeap; I’ll do that in the morning. This is on my work machine. I’m gonna nuke my packages and tweak some things because I’m having a ton of performance issues with LSP, and after I finish with that if the no error pop up is still happening I’ll create a ticket.

🙌 1
pablore18:09:18

Any tips on integrating seancorfield’s `clj-new` deps-new with emacs so I can, for example, do M-x clj-new to create a new project without leaving emacs? I know I could just use shell within emacs, but having a special function would be nicer.

pablore18:09:20

trying it out, thanks!

practicalli-johnny19:09:19

https://github.com/jpe90/emacs-clj-deps-new is the emacs integration with clj-new and deps-edn projects by Sean Corfield