Fork me on GitHub
#clj-kondo
<
2024-02-19
>
Petar Radosevic07:02:06

I keep seeing unresolved namespace warnings in my Conjure REPL log. It only happens when I run Conjure after Clojure LSP in Vim. When I restart the LSP and Conjure is already running, the warnings no longer appear in my Conjure REPL. I’m not sure if this is a Conjure or Kondo thing, but I thought I might ask here if this is something somebody saw before.

borkdude10:02:30

Sorry, I don't know what the right buffer is doing. Perhaps this is more a question for #CK143P6D7? If you can make a repro using just text files and clj-kondo on the command line, I'd be happy to take a look but the interaction with vim makes this unfortunately hard for me to reason about

Dmytro Bunin11:02:36

{:output {:exclude-files ["conjure.log..*.cljc"]}}
I have this in my .config/clj-kondo/config.edn file to remove the linting errors from the conjure buffer

❤️ 2
pedrorgirardi11:02:49

Hi, there! How should I use pod.borkdude.clj-kondo/run! with standard input - in the context of using clj-kondo Pod in Babashka? When I try the following snippet, it ‘freezes’ and doesn’t return anything.

pedrorgirardi11:02:21

I also tried wrapping in with-in-str:

(with-in-str (slurp *in*)
     (clj-kondo/run!
       {:lint ["-"]
        :filename filename
        :config config}))

borkdude11:02:47

unfortunately that doesn't work with the pod currently. your best bet would be to spit out the code to a file and then lint that file.

borkdude11:02:59

feel free to post an issue about it