-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The cider-error-hoover overlay gets applied to random logging statements in the REPL #3539
Comments
Thanks! We haven't touched this area in quite a while I believe, so probably you have found a corner case. Regardless, it's worth fixing and I'll be looking into it. |
I fixed what I consider to be the main issue, namely that we could try jumping to non-existing files (mislead from bad regex matches) For those cases we'll throw a The regexes themselves are controlled by the
Cheers - V |
Great, thanks!
Speaking for myself, I'd rather just disable the clicking. I often have the REPL buffer open and when switching back to emacs from e.g. the browser by clicking (yes, I use the mouse, please don't hate me) on the emacs window, I would often accidentally click on one of these overlay lines in the REPL which would a) move the focus to emacs, b) open dired, and c) leave me confused :) |
You can always set |
Expected behavior
Accidentally clicking on a line in the REPL should not open
dired
😅Actual behavior
The logging framework (
com.taoensso/timbre
) of our app logs stuff in the REPL. Sometimes, some subsegments of these log lines get thecider-error-hoover
overlay. If you accidentally click on such line segment, adired
buffer opens in the project root folder.Full line in the REPL:
The section of the above line which acts as a link:
In other words, the rest of the line (
ms, 1 db calls took totally 2 ms
) does not get the overlay and does not act as a link.The
describe-text-properties
on such a line segment produces.Steps to reproduce the problem
Hard to say. I think this might have something to do with the
[] []
segment of the line. I think that this problem only affects lines which contain that part.Environment & Version information
CIDER version information
Lein / Clojure CLI version
Leiningen 2.10.0 on Java 17.0.8.1 OpenJDK 64-Bit Server VM
Emacs version
GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2023-09-30
Operating system
Arch Linux
JDK distribution
The text was updated successfully, but these errors were encountered: