spacemacs

Drew Verlee 2023-01-24T17:31:33.245979Z

When i get an java exception the cursor jumps to the top of the page. How do i make that not happen? why is it happening?

Drew Verlee 2023-02-03T16:40:32.888359Z

I was wrong before when i said an error caused the cursor to jump to the top of the page. It happens right now when i try to auto-complete. 😢

practicalli-johnny 2023-02-03T18:17:42.166609Z

Curious. I sometimes get the cursor jump to the bottom of the buffer when the autocompletion popup appears. It seems to be most prevalent when the cursor is something like last 10-15 lines from the bottom. It's happened on Spacemacs and a couple of time on Emacs Doom. So assume it's either a package or something built into Emacs that is the cause

practicalli-johnny 2023-01-24T18:27:31.320459Z

Do you mean the cursor jumps to the buffer that shows the exception instead of staying in the source code buffer (where I assume the code was evaluated and caused the exception to occur)? I am sure that is a cider variable, something like jump to exception...

practicalli-johnny 2023-01-24T18:31:49.397429Z

If I understand correctly, its probably one of these CIDER eval variables that can be set to disable the behaviour that is not required (not sure which one exactly) https://practical.li/spacemacs/reference/cider/configuration-variables/#cider-evalel

practicalli-johnny 2023-01-24T18:32:09.187739Z

There may be some more useful information in these cider docs https://docs.cider.mx/cider/usage/dealing_with_errors.html

Drew Verlee 2023-01-24T18:32:32.964059Z

No I mean it jumps to the top of the namespace. I can't imagine why this would be desirable or what's causing it to happen.

practicalli-johnny 2023-01-24T18:33:56.891939Z

Oh, then something seems very broken.... You could try adding this to the dotspaceamcs/user-config

(setq cider-auto-select-error-buffer nil)

practicalli-johnny 2023-01-24T18:35:09.556549Z

but might help narrow the issue down to CIDER if it stops the jumping... and then a bug can be reported with CIDER or Clojure-mode. If its still jumps then its probably not cider.... but I dont know enough to be definate

👀 1
practicalli-johnny 2023-01-24T18:35:59.896779Z

Or disable the Error popup all together and see if its still happens...

(setq cider-show-error-buffer nil)

practicalli-johnny 2023-01-24T18:36:55.606149Z

I'd also switch of clj-refactor if its on and stop the clojure lsp server as other possible things to make the cursor jump