This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-11
Channels
- # adventofcode (116)
- # aleph (10)
- # announcements (2)
- # beginners (67)
- # boot (3)
- # calva (17)
- # cider (8)
- # cljdoc (27)
- # cljsrn (6)
- # clojure (144)
- # clojure-austin (3)
- # clojure-boston (1)
- # clojure-dev (25)
- # clojure-europe (4)
- # clojure-italy (26)
- # clojure-losangeles (4)
- # clojure-nl (28)
- # clojure-russia (1)
- # clojure-uk (34)
- # clojurescript (130)
- # cursive (20)
- # datomic (69)
- # emacs (14)
- # figwheel-main (2)
- # fulcro (31)
- # graphql (3)
- # hyperfiddle (3)
- # jobs (1)
- # jobs-discuss (1)
- # kaocha (1)
- # leiningen (2)
- # lumo (2)
- # nrepl (1)
- # off-topic (182)
- # onyx (5)
- # re-frame (88)
- # reagent (12)
- # reitit (2)
- # ring-swagger (13)
- # shadow-cljs (136)
- # tools-deps (28)
- # vim (4)
@macrobartfast I use a layout for each project I work with, so simply switch to the right layout and search project. Not quite what you asked for, but may be of interest.
@jr0cket I'll look at that... thanks!
TIL https://github.com/emacs-lsp/lsp-java exists, looks powerful. In previous occasions whenever I had to do some serious Java I abstained from Emacs
also I was thinking, one could hack it to provide accurate completions in clojure buffers. e.g. for (.| some-object)
,
| being the cursor one could build 'fake' java code on the fly, figure out the completions for that, and offer them for clojure
Java completion with cider worked for me once I included the source tarball from maven, but not before.
IIRC there's the annoyance that for each .jar dependency, a "source variant" (not the exact term) has to be specified, which neither Lein or Cider automate (I don't think using LSP would fix this to be clear)
In any case I don't think CIDER does type inference, so completions aren't so accurate for Java interop that spans more than one symbol. That's what I had in mind some clojure+lsp+emacs hack
Yeah, that's been my experience with cider, which was sort of a non-starter. Eclipse handles it just fine, though I'm not sure how exactly it does that.
That's good to know about CIDER and type inference, I didn't know that was a goal of the java LSP implementation.