-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cursive support #5
Comments
I've actually been using better-cond from Cursive for the past couple of weeks, and have it working well enough that I find it usable. The key is to put the cursor on the constructs, for example, This at least gets the indentation working and gets symbols created in defnc and the if-let and when-let bodies handled correctly. Main issue still is that Cursive really isn't aware of symbols bound by Are there other issues you've encountered? |
Oh, and it's worth mentioning that you only have to teach it about indenting and resolution once, and then it remembers it across all projects. |
I don't currently use Cursive or clj-kondo. I'll need to reach out to @borkdude who supplied the pull request for better-cond to support clj-kondo to see if he knows why it is conflicting with Cursive. In the meantime, try going back to version 2.1.0, which is functionally identical but without the clj-kondo piece. |
I guess Cursive scans all the code in the dependency and discovers the clj-kondo hook that has the same namespace/name as the original, which is intended. Note that the clj-kondo hook is not loaded by clojure itself, there is no conflict there. Perhaps Cursive can be changed to not prefer code in a |
Btw, we can rename the clj-kondo hook name (in both the code and clj-kondo config), that's not a problem, if that helps to cause less confusion. |
Would renaming the hook resolve this issue? |
Thanks for your answers, yes renaming would resolve the Cursive issue |
I'll make a PR |
See #20 |
OK, I pushed @borkdude's pull request as version 2.1.2. Hopefully this will provide a better experience on Cursive. Let us know how it works out. |
Hey @Engelberg, I completely agree with your rationale, and tried porting some of my code to use better-cond. It became better.
The only problem I had was with Cursive support. It was bad enough to stop me from actually using better-cond. I know there's not much you can do about it, just wanted to add a note of support for what you're doing :)
The text was updated successfully, but these errors were encountered: