Fork me on GitHub
#clj-kondo
<
2020-11-28
>
dave11:11:21

hey there, i installed clj-kondo on a shared ubuntu server i don’t have sudo access to. the install seemed fine with using the —dir command but when i try to run it i get this error: clj-kondo: error while loading shared libraries: cannot make segment writable for relocation: Permission denied

borkdude12:11:01

All the installer does is basically download the zip file, extract it and put the binary on your path

dave12:11:03

the install script worked ok... i was running just clj-kondo -h

dave12:11:17

when i got the error

borkdude12:11:29

oh, that's weird. I'm not sure what's going on there

dave12:11:49

must be some directory it wants... not sure either. i can keep poking around at it

dave12:11:09

oh interesting, doubt i will be able to run that since i don’t have sudo on this shared machine

borkdude12:11:36

Maybe you can run clj-kondo via docker or via the JVM version

dave12:11:15

might be able to install a local JVM too with jenv

Ben Sless15:11:49

Is there a way after writing hooks for a library to expose them to other kondo users who use macros the from my library?

Ben Sless15:11:30

Excellent, thanks 🙏

Buidler15:11:47

I'm trying to add the fulcro config. I followed the instructions at https://github.com/clj-kondo/config, but there is no .clj-kondo/configs/ folder present after the clojure -A:clj-kondo/config --lib fulcro command appears to complete successfully.

borkdude15:11:17

@randumbo Did you have a .clj-kondo directory prior to that?

Buidler15:11:32

Yes, I did.

borkdude15:11:41

OK, I see there's a bug in there. Let me fix it

Buidler15:11:48

Thanks very much. Folder is there now. I still see warnings show up in places like defmutation, where it shows error| unresolved symbol action and other similar warnings. My understanding was that adding the fulcro configs should eliminate some or all of those warnings.

borkdude15:11:40

Ah. Currently the fulcro support is a bit sparse. It only contains:

{:lint-as {com.fulcrologic.fulcro.components/defsc clojure.core/defn}}

borkdude16:11:04

But the config lib is open for contributions so if more people find out the right config, everyone will profit.

borkdude16:11:17

I'm not using fulcro myself at the moment, so I have no idea how the API works

Buidler16:11:27

Got it. Appreciate the help. I think I saw a few mentions in the Fulcro docs about setting this sort of thing up in Cursive. I'll see if I can copy it over.

borkdude16:11:50

People could also contribute the config to fulcro itself. It can then be imported from the classpath: https://github.com/borkdude/clj-kondo/blob/master/doc/config.md#exporting-and-importing-configuration

jkrasnay16:11:26

Is there a good way to configure as-> to not trigger an error? I’ve tried {:lint-as {clojure.core/as-> clojure.core/->}} but it still flags the first are to as-> as an unresolved symbol.

borkdude16:11:41

@jkrasnay as-> should be fully supported. can you please post a repro of the your problem as a standalone example?

borkdude16:11:09

Also please specify which version of clj-kondo you are using

jkrasnay16:11:34

Oh, I had the args to as-> reversed 😊 .

jkrasnay16:11:12

clj-kondo, just doin’ its job!

clj-kondo 3