clojure-lsp / clojure-lsp/clojure-lsp-intellij
Clojure LSP incorrectly marks `[\!\@]` as an error `<form> expected, got '\!\@'`
- Dominant language
- Clojure
- Stars
- 122
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When I write in a `*.clj` file:
```clj
[\!\@]
```
Clojure LSP IntelliJ marks `\!\@` as an error: ` 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:
```clj
\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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the diagnostic in a *.clj file using the reported snippets, first checking the IntelliJ plugin behavior against the original clojure-lsp issue 1816. Trace where the plugin reports the parser or linter error, and verify completion by ensuring standalone character sequences and vectors of character values are no longer marked as errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100