nbb

chaos 2023-05-25T16:57:41.765999Z

Hi, am I correct to in assuming that clj-kondo does not have linting support for macros in built-in nbb libraries such as promesa? I'm getting wiggling lines in my editor for promesa's let macro bindings for example

chaos 2023-05-26T19:37:14.849999Z

Thanks @chris358. The slight annoyance here is that promesa comes with clj-kondo configs, but they are not available/not picked by clj-kondo because promesa is a built-in nbb lib.

chaos 2023-05-26T19:39:39.713589Z

Another workaround perhaps along the line you've suggested is to merge the promesa https://github.com/funcool/promesa/blob/master/resources/clj-kondo.exports/funcool/promesa/config.edn to the project's .clj-kondo/config.edn, and repeat for any other built-in nbb lib.

Chris McCormick 2023-05-27T05:36:28.182999Z

That's a good point. I guess it would be solved in nbb could pull in Clojure libs.

borkdude 2023-05-27T06:54:56.096499Z

https://github.com/babashka/nbb/issues/320

borkdude 2023-05-25T16:58:12.648029Z

It does if you add the project to deps.edn etc

borkdude 2023-05-25T16:58:23.688569Z

Work is in progress to improve this

chaos 2023-05-25T17:00:55.822489Z

ok thanks good to know this is WIP, env in concern has no access to bb so putting it as a dep in nbb.edn is not an option.

chaos 2023-05-25T17:05:17.763729Z

Is there a GH issue perhaps for this WIP or perhaps I can create one if not already?

borkdude 2023-05-25T19:03:55.782829Z

I’ll get back to you, on a trip in London right now

🎉 1
Chris McCormick 2023-05-25T23:02:49.261169Z

> I'm getting wiggling lines in my editor for promesa's let macro bindings for example @chaos You probably already know this but if you want to lint p/let as let you can use a config like this: {:lint-as {promesa.core/let clojure.core/let}} You can either put it in .clj-kondo/config.edn or as metadata in the .cljs file in question:

(ns thing
  {:clj-kondo/config '{:lint-as {promesa.core/let clojure.core/let}}})