If the code contains namespace qualified keywords with aliases, Kibit errors out with a Invalid token exception.
The following code demonstrates the problem -
(:require [foo :as f]))
(defn xxx 
I think the problem is not in Kibit itself but the way it's invoking the Clojure compiler.
::f/some-kwd is not valid clojure syntax:
java.lang.Exception: Invalid token: ::f/some-kwd
jonase - Indeed, ::f/some-kwd is valid if f is a valid ns/alias.
user> (ns foobar)
foobar> (ns user)
; Evaluation aborted.
@ghoseb You're right -- it is valid syntax. I had never seen it before :)
It seems like we have to load the file prior to reading it. Some more discussion here.
@jonase I am following the discussion on the list. Indeed, :: is a dynamic feature and hence loading the file might be necessary in order to get this working.
Is loading the file and option for you?
@ghoseb Currently, we can't do a work-around without eval'ing the whole file, which is strictly not "static". I have some weird hacks to try to get around this, but none are working out too well. Currently on master, there's a try/catch for this (which will be present in the next release that gets cut).
When we have a better solution, we'll put one in for sure. As always, we welcome any idea.
Bump. I've just run into this as well. :)
Me, too. :-)
Pick your reaction