This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-12
Channels
- # announcements (65)
- # aws (1)
- # babashka (12)
- # beginners (111)
- # bristol-clojurians (1)
- # cider (32)
- # clj-kondo (55)
- # clojars (3)
- # clojure (71)
- # clojure-europe (17)
- # clojure-france (4)
- # clojure-italy (36)
- # clojure-losangeles (8)
- # clojure-nl (6)
- # clojure-uk (115)
- # clojurescript (2)
- # datomic (99)
- # fulcro (32)
- # graalvm (12)
- # graphql (20)
- # hoplon (203)
- # meander (56)
- # mount (3)
- # off-topic (17)
- # pathom (17)
- # reitit (22)
- # shadow-cljs (32)
- # spacemacs (9)
- # tools-deps (19)
- # vim (25)
- # vscode (3)
Any way into tricking CIDER M-x cider-clojuredocs
into thinking my clojurescript project is a clojure one?
cider-clojuredocs
doesn't work on clojurescript, but 99% of the time I'm looking into the doc of functions common to clj and cljs anyway
@ak407 unfortunately for whatever reason that only works for a given *cider-error*
buffer jump to source...
@bozhidar any ideas?
I tried manually setting my CLASSPATH but there's almost no documentation anywhere about exactly how to set it right, I just pointed it to where I also set cider-jdk-src-paths
Looking at *cider-classpath*
I see /opt/icedtea-bin-3.14.0/jre/lib/somelib.jar but idk, should I be seeing some core jdk stuff or something?
I'm a complete java noob lol
@ryanwatkins54 Someone shared this before but I haven't been able to make it fully work; as you said, it works (for me) only in the error buffer (stacktraces)
This one was, in particular, for java 9+ (module system). I tried it like this:
;; customize jdk sources path
;; see also
(setq cider-jdk-src-paths '("~/workspace/clojure/clojure/clojure-1.10.1-sources"
"~/workspace/java/jdk-sources/jdk-14-src"
;; adding most common modules, otherwise it doesn't work with modularized JDK
"~/workspace/java/jdk-sources/jdk-14-src/java.base"
"~/workspace/java/jdk-sources/jdk-14-src/java.desktop"
"~/workspace/java/jdk-sources/jdk-14-src/java.sql"
"~/workspace/java/jdk-sources/jdk-14-src/java.xml"
))
@jumar interesting
@jumar I tried looking at the source code but nothing came to me as of yet, I mean it's not totally terrible but yeah
I saw in the talk where @bozhidar demonstrated it, he was using a macbook, maybe it's how it's distributed (the source), idk
oh okay
Well, Java 9 certainly created a lot of problems for us https://github.com/clojure-emacs/cider/issues/2732
Java interop is a big weakness of Emacs/Cider - or rather probably not a focus; Cursive is so much better in this space
Yeah, unfortunately that’s a weakness currently. Mostly due to our (mine) limited bandwidth.
The massive changes in Java 9 didn’t help us either - the module system made a lot of things way more complicated…
Yeah, I can imagine that. Thanks for all the hard work anyway - I'm still a massive fun of emacs/cider. For me, more a important issue is actually a poor performance when writing a lot of stuff (especially larger data structures) in logs; e.g. logging a ring requestif If could find a solution how to significantly improve performance in that scenario. I've tried experimenting with font locking but that didn't help much; not sure if there's some other way but Emacs often blocks for quite a while when I try to print debug data. 😞
Cursive, hmm..
true @bozhidar did say this
I guess java interop isn't something you'd do all too often in Clojure d2d?
and I guess I can see javadocs anywho
yeah haha
I am steering clear of Java but who knows, maybe I will have to one day work a job in this haha
In /r/clojure some day ago: https://www.reddit.com/r/Clojure/comments/fg3rzv/new_clojurians_ask_anything/fk3m44w/
The evaluation indicators in the fringe are an unobtrusive way to show if a function definition has changed or has not been evaluated.
The evaluation indicators in the fringe are an unobtrusive way to show if a function definition has changed or has not been evaluated.
There was a PR to make these more obvious, but I think it wasn't completed.