lsp

teodorlu 2024-07-11T20:03:54.233549Z

Hi 🙂 For the following code, I’d expect a warning and not an error from Clojure-lsp—since the code runs fine, though it doesn’t do anything useful.

(let [x (or)]
  (str x))
;; => ""

âś… 1
borkdude 2024-07-11T20:14:30.914769Z

seems a bug in clj-kondo, feel free to post an issue there

👍 1
teodorlu 2024-07-11T20:42:02.890809Z

Wrote an issue: https://github.com/clj-kondo/clj-kondo/issues/2352

👍 1
2024-07-12T00:26:38.209779Z

The error report also looks broken, it is taking nil as the type of nil, and pass it to print or something, which results in the empty string

👍 1