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

Parinfer broken cases #2945

Open
cursive-ide opened this issue Aug 10, 2024 · 3 comments
Open

Parinfer broken cases #2945

cursive-ide opened this issue Aug 10, 2024 · 3 comments

Comments

@cursive-ide
Copy link
Owner

This issue serves to capture various parinfer cases which don't work well:

  output_tokens (do
                  (print (str "<output:" output_tokens ">"))
                  (flush))

Here, if the caret is right before output_tokens and that symbol is wrapped in parens, the indentation breaks.

@cursive-ide
Copy link
Owner Author

Also:

        (.offer queue {:type :content
                       :text text
                       :role role}))

Similarly, wrapping queue in parens breaks.

@N-litened
Copy link

Also:

(let [a 1
      b 2
      c 3]
  a)

Splitting after 1 breaks indentation like this:

(let [a 1] [b 2
      c 3]
  a)

@cursive-ide
Copy link
Owner Author

(p/let [response (get-session dynamo session-id)]
       (if-let [item (some-> (:Item response) from-item)]))

Here, deleting a char from p/let breaks.

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

No branches or pull requests

2 participants