Fork me on GitHub
#clj-kondo
<
2021-08-07
>
serioga14:08:41

Hm, updated clj-kondo on windows, there is no output after update...

Updating 'clj-kondo' (2021.06.18 -> 2021.08.06)                            
Downloading new version                                                    
clj-kondo-2021.08.06-windows-amd64.zip (8,9 MB) [==========================
Checking hash of clj-kondo-2021.08.06-windows-amd64.zip ... ok.            
Uninstalling 'clj-kondo' (2021.06.18)                                      
Removing shim for 'clj-kondo'.                                             
Unlinking ~\scoop\apps\clj-kondo\current                                   
Installing 'clj-kondo' (2021.08.06) [64bit]                                
Loading clj-kondo-2021.08.06-windows-amd64.zip from cache                  
Extracting clj-kondo-2021.08.06-windows-amd64.zip ... done.                
Linking ~\scoop\apps\clj-kondo\current => ~\scoop\apps\clj-kondo\2021.08.06
Creating shim for 'clj-kondo'.                                             
'clj-kondo' (2021.08.06) was installed successfully!                       

serioga14:08:03

look like doing something but without linting took 1006ms, errors: 0, warnings: 0 on exit

serioga14:08:07

echo '(select-keys [:a])' | clj-kondo --lint - also without output

borkdude14:08:11

@serioga can you download the Windows binary from the Github releases page and test with that.

borkdude14:08:21

If that works, then it could be an issue with scoop itself

serioga15:08:13

struggling with “Access denied”...

borkdude15:08:29

access denied where

serioga15:08:05

same with downloaded clj-kondo-2021.07.28-windows-amd64

serioga15:08:32

but downloaded clj-kondo-2021.06.18-windows-amd64 is ok

serioga15:08:09

not clear “where”

Anwender@WINDOWS-2UGGS4A C:\Users\Anwender\Downloads\clj-kondo-2021.07.28-windows-amd64
$ echo '(select-keys [:a])' | clj-kondo --lint -
Access is denied.

borkdude15:08:31

Please specify exactly what you are doing. From where did you download this binary. Github releases?

serioga15:08:50

yes, from github releases

serioga15:08:21

Anwender@WINDOWS-2UGGS4A C:\Users\Anwender\Downloads\clj-kondo-2021.06.18-windows-amd64
$ echo '(select-keys [:a])' | clj-kondo --lint -
<stdin>:2:1: error: :quote node expects 1 value.
linting took 7ms, errors: 1, warnings: 0

borkdude15:08:53

@ales.najmann Perhaps you can have a look?

borkdude15:08:20

I'm not sure why these binaries would fail. Can you look at the file security settings?

serioga15:08:48

but works with admin privileges

Anwender@WINDOWS-2UGGS4A C:\Users\Anwender\Downloads\clj-kondo-2021.08.06-windows-amd64
# echo '(select-keys [:a])' | clj-kondo --lint -
<stdin>:2:1: error: :quote node expects 1 value.
linting took 7ms, errors: 1, warnings: 0

borkdude15:08:12

Perhaps it's your virus scanner

borkdude15:08:28

or something changed on appveyor

borkdude15:08:32

or in graalvm

borkdude15:08:33

also not sure

serioga15:08:27

so as I see versions higher then 2021.06.18 does not output without admin privileges. at least on this PC

serioga15:08:54

checking antivirus

serioga15:08:32

antivirus is off, no changes will check at the office on Monday

borkdude15:08:09

ok, I will try later this weekend on my Windows computer too

littleli17:08:08

this is my output:

~ $ echo '(select-keys [:a])' | clj-kondo --lint -
<stdin>:1:1: error: clojure.core/select-keys is called with 1 arg but expects 2
linting took 11ms, errors: 1, warnings: 0

littleli17:08:44

so it seems to be working for ok me if I understand above conversation

ericdallo20:08:08

I realized clj-kondo invalid-aritylinter doesn't work when using a function with partial , is that expected or should I open an issue? 🧵

ericdallo20:08:55

(defn foo [a b]
  (+ a b))

(foo a) ;; lint correctly

(partial foo 1) ;; no lint

ericdallo20:08:26

Not sure it's a bug since the function is not being called properly

ericdallo20:08:55

is just that this is causing problems to me during some refactors, I'm missing clj-kondo warning for those cases

ericdallo20:08:37

Actually, clj-kondo could lint for this case:

(map (partial foo) [1 2 3])

borkdude20:08:40

I think clj-kondo could do better here