Skip to content

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

Open
@devurandom

Description

@devurandom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions