Fork me on GitHub
#spacemacs
<
2019-08-07
>
borkdude07:08:32

I'm not using spacemacs. Maybe anyone can help here? https://github.com/borkdude/clj-kondo/issues/403

borkdude07:08:39

I'll also refer him to this channel

lispyclouds07:08:39

I'm trying to help there

❤️ 4
borkdude07:08:32

maybe he's having a PATH issue.

lispyclouds07:08:46

possibly. Also the error may show up in *Messages*

lispyclouds07:08:03

if the spacemacs config is correct though

borkdude08:08:16

I think he's having a snap issue. I'm considering removing the package from snap, because this confuses people all the time: it's only possible to read/write to files in the home directory

Andros09:08:32

Hi! I see that the problem is discussed 🙂

Andros09:08:39

I give more information: I have done a clean installation, I have left it .spacemacs clean and I've uninstalled the snap version.

Andros09:08:18

where clj-kondo

Andros09:08:54

/usr/local/bin/clj-kondo

borkdude09:08:19

@andros Can you post the output of flycheck-compile (select clj-kondo-clj as the linter) from a Clojure buffer?

Andros09:08:10

Not showing in my list

Andros09:08:16

:face_with_raised_eyebrow:

Andros09:08:34

clj-kondo-clj

borkdude09:08:57

then you probably have not required flycheck-clj-kondo yet

borkdude09:08:43

(I'm not aware of how spacemacs does this by default, I just use https://github.com/borkdude/flycheck-clj-kondo directly)

Andros09:08:43

sorry, a stupid commented. I have just run flycheck-compile (select clj-kondo-clj as the linter)

Andros09:08:16

working... still no underlines errors in code

borkdude09:08:45

ok, so flycheck is working, clj-kondo is working. what could be not working?

practicalli-johnny11:08:03

@andros the only thing I can see is you have some custom faces definitions at the end of your .spacemacs. I would be surprise if they are the cause, but cant see any other issues...

practicalli-johnny11:08:55

I assume you restarted Spacemacs after you added the config for clj-kondo to .spacemacs

Andros11:08:27

I found the solution

Andros11:08:58

add (add-hook 'clojure-mode-hook #'flycheck-mode)

Andros11:08:21

My configuration

Andros11:08:09

(add-hook 'clojure-mode-hook #'flycheck-mode)
  (use-package clojure-mode
    :ensure t
    :config
    (require 'flycheck-clj-kondo))

Andros11:08:51

I tell you, I found the same problem in OSX, and in both cases it works the same way.

Andros11:08:09

Thank you all for your help @jr0cket @borkdude @rahul080327!! 🙂

practicalli-johnny11:08:36

Thanks for sharing your solution

borkdude12:08:00

@andros glad you solved, so are the spacemacs docs for clj-Kondo missing something?

lispyclouds12:08:39

Thanks for the solution, this seems to work with without the (add-hook 'clojure-mode-hook #'flycheck-mode) for me at least. Wonder what could be the issue?

lispyclouds12:08:35

@jr0cket do you have to do the add-hook as well?

lispyclouds13:08:23

afaik this should've been done by the syntax-checking and clojure layers automatically?

8
practicalli-johnny13:08:23

You shouldn't need the add-hook for this. I do not need it. I will try this out on a separate laptop and see if I can replicate the issue.

lispyclouds13:08:23

yes thats my understanding too

borkdude20:08:06

ok, I won't merge this PR until someone here can confirm it's needed (cc @andros) https://github.com/borkdude/clj-kondo/pull/404

lread15:08:02

FWIW, I don’t need this. And @andros, don’t know if this applies to you but my flycheck in spacemacs was misbehaving a few days ago, I am on the spacemacs develop branch and pulling latest and updating all packages fixed my issues.

Andros10:08:25

@UE21H2HHD No No! I'm in the master branch. I don't know what to say anymore, the same thing happened to me in two different systems and with a clean installation. 😓 If I find out the cause, I'll let you know. 😁