joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
dirk 2018-07-25T05:35:38.000092Z

Hi there, about the .joker file: I cannot find a way to include org.joda.time.DateTime, imported per (:import [org.joda.time ReadableInstant]) so that the "resolve symbol" error message goes away.

dirk 2018-07-25T05:36:19.000040Z

That import is in the basic Luminus template, I must do something wrong. What would I put into the .joker file for these java imports?

seancorfield 2018-07-25T06:27:02.000108Z

@dk752 I haven't had to put any Java symbols into .joker. Can you point to an example where Joker incorrectly highlights an error?

dirk 2018-07-25T13:34:35.000614Z

sure - maybe I am wrong. Maybe I am missing Cheshire.

(cheshire/add-encoder
  org.joda.time.DateTime
  (fn [c jsonGenerator]
    (.writeString jsonGenerator (-> ^ReadableInstant c .getMillis .toString))))

dirk 2018-07-25T13:35:04.000318Z

org.joda.time.DateTime cannot be resolved

dirk 2018-07-25T13:36:09.000337Z

(:import 
           [org.joda.time ReadableInstant]))

dirk 2018-07-25T13:36:39.000396Z

(:require 
            [cheshire.generate :as cheshire]