clojure-lsp-intellij icon indicating copy to clipboard operation
clojure-lsp-intellij copied to clipboard

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

Open devurandom opened this issue 1 year ago • 1 comments
trafficstars

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 https://github.com/clojure-lsp/clojure-lsp/issues/1816.

devurandom avatar Jul 07 '24 21:07 devurandom