cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
590 stars 7 forks source link

Symbols as test constants in a case expression are labeled as unable to be resolved. #2943

Open matj1 opened 3 months ago

matj1 commented 3 months ago

If I use symbols as test constants in a case expression, they are not quoted because the constants are not evaluated. But Cursive doesn't realize that and labels them as unable to be resolved (like “a cannot be resolved”), although there is not anything to be resolved.

Example

(case 'a
  a 1
  b 2
  c 3
  0)
; => 1

A screenshot from Cursive with a case expression with symbols shown as unable to be resolved

Proposed solution

Exclude case's test constants from name resolution in Cursive.