This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-08
Channels
- # announcements (13)
- # asami (9)
- # aws (1)
- # aws-lambda (1)
- # babashka (37)
- # beginners (70)
- # calva (19)
- # cider (23)
- # clara (10)
- # clj-kondo (15)
- # cljdoc (14)
- # clojure (3)
- # clojure-bay-area (1)
- # clojure-europe (40)
- # clojure-nl (3)
- # clojure-serbia (1)
- # clojure-uk (31)
- # clojuredesign-podcast (1)
- # clojurescript (9)
- # community-development (7)
- # data-oriented-programming (1)
- # datomic (44)
- # emacs (13)
- # figwheel-main (14)
- # fulcro (6)
- # jobs (6)
- # malli (15)
- # meander (7)
- # off-topic (74)
- # other-languages (1)
- # pathom (3)
- # portal (3)
- # re-frame (25)
- # reagent (6)
- # reitit (2)
- # reveal (1)
- # rewrite-clj (6)
- # ring (5)
- # shadow-cljs (11)
- # specter (7)
- # xtdb (7)
I use use-package
and :demand t
for every single package, and then use CRIU to reduce the startup time to almost nothing with all the elisp eagerly loaded
https://gitlab.com/blak3mill3r/emacs-ludicrous-speed for the curious I absolutely LOVE this setup
I start emacs quite frequently (because I like having a separate instance of emacs for each project) so I care about startup time a lot, and having all the elisp eagerly loaded is a nice little performance boost
I have a chromebook with "Linux Development Environment" setup and emacs and clojure CLI installed and both work independently. But when I try to start a repl with inf-clojure I get
Couldn't find 'java'. Please set JAVA_HOME.
Process inf-clojure exited abnormally with code 1
even though JAVA_HOME is in fact set. (Using sdkmon directory)
echo $JAVA_HOME
works correcly in the emacs shell
and eshell
, however the java
command only works in shell
and not eshell
. Any tips to figure this out?I have these in my init.el - https://github.com/lukaszkorecki/command-center/blob/master/init.el#L17-L25 fixed the issue for me, for both ansi-term and eshell
Also, I have (setenv "JAVA_HOME" "/home/me/.sdkman/candidates/java/current/bin/java")
in my init.el
no idea. inf-clojure works best with socket repls though so it might be easier to just clj -M:socket
where socket has a socket repl option and then inf-clojure-connect
to that port. that's what i've been doing. I don't actually know the specifics of what needs to be set to start up java
i have "/Users/dan/.sdkman/candidates/java/current/bin/"
on my exec-path. i didn't do anything special to get it there though besides using
(use-package exec-path-from-shell
:demand t
:init
(exec-path-from-shell-initialize))
Thanks @dpsutton and @lukaszkorecki it's working now. I believe I needed to both add the java dir to the exec path, use the exec-path-from-shell-initialize, and (setenv "PATH" (concat (getenv "PATH")...
but it's working now