Skip to content
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

Support ClojureDart catch arity with stacktrace #2230

Open
daveliepmann opened this issue Dec 4, 2023 · 0 comments · Fixed by Tensegritics/ClojureDart#294
Open

Support ClojureDart catch arity with stacktrace #2230

daveliepmann opened this issue Dec 4, 2023 · 0 comments · Fixed by Tensegritics/ClojureDart#294

Comments

@daveliepmann
Copy link

daveliepmann commented Dec 4, 2023

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Is your feature request related to a problem? Please describe.
ClojureDart catch clauses have a separate arity which binds to the stacktrace.

(try
  ...
  (catch io/HttpException e ; no stack trace binding
    ...)
  (catch Exception e st ; stack trace binding
    ...))

Without it, the stacktrace would be inaccessible. See Differences: try/catch.

Describe the solution you'd like
Teach clj-kondo to recognize this arity in .cljd files

Describe alternatives you've considered
Currently I ignore the "unresolved symbol" error.

Additional context
I'm happy to help implementing this, but I have no idea where to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants