lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
bringe 2021-01-13T00:44:49.260300Z

Is there a way to make clojure-lsp not send a specific file to clj-kondo for linting? Specifically, with Calva, when using kondo through clojure-lsp, I get this diagnostics error.

ericdallo 2021-01-13T00:45:51.261700Z

Hum, I don't think so, maybe we could add a ignore-lint-file option

bringe 2021-01-13T00:47:21.261900Z

Maybe that is needed, not sure. Currently in Calva, which uses the kondo extension, we create the .clj-kondo directory in the .calva/output-window directory and replace the linters in the kondo config with an empty map, which seems to make it ignore the output file.

bringe 2021-01-13T00:47:52.262100Z

But with this change I'm working on, clojure-lsp creates the kondo directory at the top, so doing the same there results in no linting at all

ericdallo 2021-01-13T01:01:15.262300Z

Oh it could work for kondo diagnostics indeed, but we have few clojure-lsp custom diagnostics yet, but I don't think it'd be a problem

ericdallo 2021-01-13T14:04:37.263Z

Hum, what was the expected?

Karol W贸jcik 2021-01-13T17:03:30.263400Z

@ericdallo Now

(ns core.example
  (:require 
     [core.ab :as ab]))

ab ab/ <-- now autocomplete works
Expected
(ns core.example
  (:require 
     [core.ab :as ab]))

ab/ <-- Here it should work as well

ericdallo 2021-01-13T17:04:13.263700Z

Oh, so it only works when it has something before the token to complete

Karol W贸jcik 2021-01-13T17:04:54.263900Z

Yup

ericdallo 2021-01-13T17:05:52.264100Z

Weird behavior indeed, I just confirmed that for me it works :thinking-face:

ericdallo 2021-01-13T17:06:18.264300Z

Maybe some conflict with cider? is CIDER connected?

Karol W贸jcik 2021-01-13T17:07:05.264500Z

Nope. It's not. Maybe gccemacs?

ericdallo 2021-01-13T17:07:27.264800Z

Hum, I use gccemacs with doom-emacs too 馃槙

ericdallo 2021-01-13T17:07:37.265Z

let me try with the same code as you

ericdallo 2021-01-13T17:09:48.265200Z

It seems to work for me:

Karol W贸jcik 2021-01-13T17:11:20.265600Z

Will try reinstalling emacs & doom

1馃
Karol W贸jcik 2021-01-13T23:15:15.266500Z

@ericdallo lul. Works after reinstall

ericdallo 2021-01-13T23:15:41.266700Z

:man-shrugging: hahah