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

Slurp and barf not working as expected #62

Open
DaniloCharantola opened this issue Jan 23, 2025 · 2 comments
Open

Slurp and barf not working as expected #62

DaniloCharantola opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels
bug Something isn't working depends on server Depends on a implementation in clojure-lsp itself

Comments

@DaniloCharantola
Copy link

Describe the bug
Slurp and barf are not working for some cases, and in other cases it works but leave the cursor at an unexpected position

To Reproduce
Steps to reproduce the behavior:

Test slurp forward (| indicates the cursor position)
(get {}|) :a => nothing happens
(get {} |) :a => works as expected
(get []|) 0 => nothing happens
(get [] |) 0 => works as expected

Test barf forward
(get [] |:a) becomes (get [])| :a, but I expected: (get []|) :a
(get []| :a) becomes (get []|) :a as expected

Desktop (please complete the following information):

  • OS: macOS
  • Intellij version: 2024.3 (Community Edition)
  • Plugin version: 2.6.4
@DaniloCharantola DaniloCharantola added the bug Something isn't working label Jan 23, 2025
@ericdallo ericdallo moved this to Ready for development in clojure-lsp-intellij Jan 29, 2025
@ericdallo
Copy link
Member

I confirmed this is something to be fixed on clojure-lsp side, moving the caret to proper position and supporting when cursor is on colls

@ericdallo ericdallo moved this from Ready for development to 🏗 In progress in clojure-lsp-intellij Jan 31, 2025
@afucher afucher self-assigned this Jan 31, 2025
@afucher
Copy link
Collaborator

afucher commented Feb 4, 2025

Caused by clj-commons/rewrite-clj#333

@ericdallo ericdallo added the depends on server Depends on a implementation in clojure-lsp itself label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working depends on server Depends on a implementation in clojure-lsp itself
Projects
Status: 🏗 In progress
Development

No branches or pull requests

3 participants