Skip to content

[stacktrace] Stop sending compile-like flag #323

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

Merged
merged 1 commit into from
Mar 13, 2025
Merged

Conversation

alexander-yakushev
Copy link
Member

I found this confusing while I was redoing the the exception handling subsystem. This flag gives an impression that such exceptions (with "compile-like" being true) are handled differently by CIDER, e.g. they don't pop up cider-error buffer and only displayed inline with overlays. That's not true – this flag is not used anywhere in CIDER, cider-nrepl, or Calva. And I don't think it is a good idea to do that either – reflection errors are not compile-time errors and it's misleading to present them so.

To avoid the confusion, I propose to remove this unused flag. Changelog update does not feel necessary since orchard.stacktrace is still new.

@bbatsov
Copy link
Member

bbatsov commented Mar 13, 2025

I recall this was added as part of the changes to support Clojure 1.10 error data, but perhaps it became irrelevant at some point. Let me do a bit of digging in our archive to check what it was supposed to do.

@bbatsov
Copy link
Member

bbatsov commented Mar 13, 2025

Took me a while to find it out, but it was introduced because of clojure-emacs/cider#3423

are handled differently by CIDER, e.g. they don't pop up cider-error buffer and only displayed inline with overlays.

Well, the PR shows they were treated differently at some point. Now I have to check what happened with this configuration. 😅

@alexander-yakushev
Copy link
Member Author

I mean, this separation of compile-time and runtime exceptions is still there — it indeed works like that. But this "compile-like" is not looked at, only the presence of "phase".

@bbatsov
Copy link
Member

bbatsov commented Mar 13, 2025

Ah, yeah. Now I see what you mean - I see that in CIDER's tests there are a couple of mentions of compile-like, but it's indeed not check for anywhere in the actual code. Seems this can be removed.

@alexander-yakushev alexander-yakushev merged commit f4aae69 into master Mar 13, 2025
20 checks passed
@alexander-yakushev alexander-yakushev deleted the compile-like branch March 13, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants