cursive
cursive copied to clipboard
Cannot add custom indentation rules in form parameters
Description
I'm unable to add custom indentation rules in Settings → Editor → Code Style → Clojure → Form Parameters.
- The "+" button does nothing when clicked.
- The "-" button does not remove existing entries.
- Right-clicking on an existing entry does not show any options.
- Right-clicking on a macro (e.g.,
clojure.core/some->) in the editor does not provide an option to configure its indentation.
Additionally, accessing Configure Indents for Clojure... from the status bar does not resolve the issue.
This makes it impossible to properly format code that uses macros like some->, cond->, ->, and ->>.
Steps to Reproduce
- Open Settings → Editor → Code Style → Clojure → Form Parameters.
- Click the
+button to add a new form parameter. - Observe that nothing happens.
- Select an existing form parameter and click
-to remove it. - Observe that nothing happens.
- Try right-clicking on a macro like
some->in the editor. - Observe that no context menu appears for configuring indentation.
- Alternatively, click on indentation settings in the status bar and select Configure Indents for Clojure....
- The issue persists - modifications cannot be made.
Expected Behavior
- The
+button should allow adding new indentation rules. - The
-button should allow removing existing rules. - Right-clicking on a macro in the editor should provide an option to configure its indentation.
Environment
- OS: macOS Sequoia 15.3.1
- IntelliJ IDEA: 2024.3.4.1 (Ultimate Edition)
- Cursive Version: 1.14.1-eap2-2024.3
- EditorConfig Support: Disabled
- Reproduced in a fresh project: Yes
- Tried Workarounds:
- Invalidating caches and restarting IDE
- Reinstalling Cursive
- Resetting code style settings
- Trying indentation settings via Configure Indents for Clojure... from the status bar
Screenshots
I can provide screenshots if needed.
Additional Notes
This issue prevents proper configuration of macro indentation, which significantly impacts code formatting in Cursive.
Please let me know if there are any workarounds or fixes available.