This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-03
Channels
- # announcements (2)
- # asami (1)
- # babashka (32)
- # beginners (125)
- # calva (4)
- # cider (1)
- # clj-kondo (16)
- # clj-together (1)
- # cljs-dev (15)
- # clojure (30)
- # clojure-australia (3)
- # clojure-europe (41)
- # clojure-italy (1)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-spec (68)
- # clojure-uk (28)
- # clojurescript (36)
- # conjure (2)
- # cryogen (1)
- # cursive (2)
- # data-science (2)
- # datascript (2)
- # datomic (70)
- # events (2)
- # fulcro (11)
- # graalvm (1)
- # jobs (4)
- # kaocha (4)
- # leiningen (4)
- # malli (52)
- # meander (21)
- # off-topic (11)
- # pathom (7)
- # pedestal (17)
- # reagent (23)
- # reitit (5)
- # remote-jobs (5)
- # reveal (7)
- # shadow-cljs (24)
- # spacemacs (36)
- # sql (21)
- # vim (18)
- # xtdb (7)
also my project is using direenv
and would like to initialize that when in eshell. this is what I have to add in bash eval "$(direnv hook bash)"
any leads on how I can accomplish the same for eshell ?
I am using a leiningen plugin which uses ssh, and thus my ssh key needs to be added to the agent.
Depending on the actual software. Many of those utilities define new aliases, functions - those things won’t work in eshell
.
ssh-agent
should work - you should be able to perform ssh-add
assuming SSH_AUTH_SOCK
gets set correctly in eshell
from parent process.
> env
(...)
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.tfJGULxVPd/Listeners
(...)
And IIRC everything you want to have in .profile
should be translated into elisp
code put into .emacs
Has anyone ever run into the below issue trying to start a repl: [nREPL] Starting server via "c:/Program Files/Leiningen/lein.bat" update-in :dependencies conj ^"[nrepl \^"0.8.2\^"]^" -- update-in :plugins conj ^"[refactor-nrepl \^"2.5.0\^"]^" -- update-in :plugins conj ^"[cider/cider-nrepl \^"0.25.4\^"]^" -- repl :headless :host localhost error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: java.lang.NumberFormatException: Invalid number: 0.8.2 at clojure.lang.LispReader.readNumber (LispReader.java:352) clojure.lang.LispReader.read (LispReader.java:278) clojure.lang.LispReader.readDelimitedList (LispReader.java:1398) clojure.lang.LispReader$VectorReader.invoke (LispReader.java:1347) clojure.lang.LispReader.read (LispReader.java:285) clojure.lang.LispReader.read (LispReader.java:216) clojure.lang.LispReader.read (LispReader.java:205)
My first guess would be to check for a .lein/profiles.clj
file, which I assume should be in what ever Windows thinks is your home directory.
If that fle it exists, try move it to a different location or rename the file.
Otherwise it sounds like a bug with the windows install of Leiningen or a bug in cider. Possibly with the path not being interpreted correctly.
I do not have a windows system to try and replicate the issue, sorry.
Thanks let me try those options. I've tried starting the repl using powershell and lein directly and it works (lein repl). Let me try this. I've never seen this error.
If the issue is related to windows, there is the #clj-on-windows channel. The error suggests to me that its not reading the auto-injected dependencies from Cider correctly. You could try getting the command line from the Spacemacs message buffer, SPC b m
, it should show the command that cider-jack-in used to try start the repl. Or failing that, use SPC u
before cider-jack-in to see the command. Then try that command using a windows terminal / powershell...
It looks like its this command: update-in :dependencies conj "[nrepl \"0.8.2\"]" -- update-in :plugins conj "[refactor-nrepl \"2.5.0\"]" -- update-in :plugins conj "[cider/cider-nrepl \"0.25.4\"]" -- repl :headless :host localhost and I can see where its reading the 0.8.2 where its failing. Running this with "ava.lang.RuntimeException: EOF while reading"
After bouncing into this article: https://www.gitmemory.com/issue/clojure-emacs/cider/2890/674136255 Removing java jdk and installing Java Runtime.. solved the problem. Now idea why the JDK wouldn't work. Thanks for all your help and an awesome tool.
Glad its resolved, I would not have thought of changing from JDK to JRE.
@murtaza52 If you cannot find help using eshell, you could use your operating system shell from within Spacemacs. Then any configuration of the OS shell should be available. https://practicalli.github.io/spacemacs/install-spacemacs/eshell.html#multi-term---use-operating-system-shell
@murtaza52 or just use ansi-term
instead of eshell
.
@murtaza52 or vterm if you want the latest way of using a terminal in Spacemacs https://develop.spacemacs.org/layers/+tools/shell/README.html#install-vterm