This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-03
Channels
- # announcements (5)
- # aws (3)
- # babashka (52)
- # babashka-sci-dev (23)
- # beginners (51)
- # calva (191)
- # clj-commons (18)
- # clj-kondo (11)
- # cljdoc (39)
- # cljsrn (3)
- # clojure (24)
- # clojure-czech (3)
- # clojure-dev (2)
- # clojure-europe (15)
- # clojuredesign-podcast (2)
- # clojurescript (8)
- # conjure (2)
- # core-typed (151)
- # cursive (15)
- # data-science (3)
- # datalevin (4)
- # datomic (8)
- # figwheel-main (21)
- # fulcro (37)
- # gratitude (3)
- # honeysql (1)
- # hyperfiddle (2)
- # introduce-yourself (1)
- # malli (3)
- # membrane (54)
- # off-topic (21)
- # other-languages (4)
- # portal (18)
- # re-frame (12)
- # reagent (7)
- # releases (2)
- # sci (64)
- # spacemacs (14)
- # sql (2)
- # vim (4)
- # xtdb (6)
You’re comparing two different things there. One is the completion list for static methods, you can get that like this:
That looks pretty similar to me, one thing that is missing is types of fields, I can fix that.
I wrote a bit about what’s required for Cursive to be able to do this completion here: https://clojureverse.org/t/analyzing-java-sources-class-files-using-javaparser-or-javap/8131/22?u=colinfleming. It hasn’t made it into the doc yet, unfortunately.
Thank you. I have to catch better moment. Just sometimes it shows invalid hints and not show valid. But I don’t know how it works.
Is a way to jump to the code .toEpochMilli
(.toEpochMilli (first-timestamp-to-sync-db "HNT" "BUSD"))
? If I add type somewhere?
.toEpochMilli
needs to know what the type of the receiver is, in this case that’s (first-timestamp-to-sync-db "HNT" "BUSD")
. There are two things that need to happen, first-timestamp-to-sync-db
needs its return type hinted so that Cursive (and Clojure) knows what type it will return, and then you need to use one of the forms I discuss in the ClojureVerse thread to ensure that the receiver is present when completing the method.