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

Clojure LSP incorrectly marks [\!\@] as an error <form> expected, got '\!\@' #54

Open
devurandom opened this issue Jul 7, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@devurandom
Copy link

devurandom commented Jul 7, 2024

Describe the bug

When I write in a *.clj file:

 [\!\@]

Clojure LSP IntelliJ marks \!\@ as an error: <form> expected, got '\!\@'

This appears to be independent of the actual values (\! and \@ in this case; e.g. \a\b or \.\: behaves the same way).

The vector [] is not necessary either. Given a file containing:

\a\b

Clojure LSP IntellJ will mark \a\b as an error: '\a\b' unexpected

Expected behavior

\a\b is valid syntax. [\a\b] is a vector containing char values \a and \b.

User details

  • OS: Fedora Linux 40
  • Editor: IntelliJ 2024.1.1 with Clojure LSP plugin 2.4.5
  • Version: clojure-lsp 2024.04.22-11.50.26, clj-kondo 2024.03.13

Originally reported as clojure-lsp/clojure-lsp#1816.

@ericdallo
Copy link
Member

That's a bug on our Language grammar parser, but I don't know exactly how to solve it, help welcome for this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

2 participants