Fork me on GitHub
#emacs
<
2016-05-03
>
metropolislights00:05:01

Hi, everyone! I'm curious to know if there's a way to use CIDER with my GUI Emacs without installing Java.

metropolislights00:05:30

For example, when using a VM, I can have the JDK installed there, and run Leiningen commands from inside the VM, while editing files on a shared folder.

metropolislights00:05:59

I'm hoping that, since nREPL is (as far as I understand) a server exposing a port for communicating data to Emacs, I can attach to an instance of nREPL running inside the VM, and get all my fancy CIDER functionality through there.

metropolislights00:05:38

Basically, I'd like to keep my host machine clean, and do all experimentation in an isolated environment.

metropolislights00:05:56

Can anyone share any wisdom? :-)

niamu00:05:20

@metropolislights: Unless I’m mistaken, I believe you’re looking for cider-connect

jcsims01:05:14

@metropolislights: you should be able to start a repl in the application, and then connect like @niamu mentioned. Check here for details on how to do that: https://github.com/clojure-emacs/cider-nrepl#via-embedding-nrepl-in-your-app

jcsims01:05:31

that’s the method I’m familiar with - there may be others I’m unfamiliar with

bozhidar03:05:56

or you can simply run lein repl or something similar on the other machine

bozhidar03:05:02

and use cider-connect

bozhidar03:05:09

to connect to the nREPL server

bozhidar03:05:21

it’s not really necessary to embed the server

bojan.matic09:05:37

any spacemacs users here? I must say, I'm really impressed with it so far

bojan.matic09:05:39

looks super polished

dottedmag09:05:42

@metropolislights: Also you can run Emacs in VM and use X forwarding to have UI on your local display.

zane16:05:16

@bojan.matic: I use Spacemacs! I barely even have to maintain my emacs configuration any more because of it.

tomayerst19:05:10

Hi, trying to install solarized-theme, with M-x package-install solarized-theme getting Opening TLS connection to `http://melpa.org'...done url-insert-file-contents: https://melpa.org/packages/dash-20160306.1222.el: Not foun

tomayerst19:05:48

How dense am I being?

tomayerst19:05:42

Pretty dense apparently, forgot I needed to refresh the package list

metropolislights23:05:08

@niamu @jcsims @bozhidar Thanks, guys! It was relatively painless. :-)

metropolislights23:05:17

Just for future reference, configuring nREPL for the VM meant setting the host and port by doing this before lein repl:

export LEIN_REPL_HOST=0.0.0.0 # the VM's 127.0.0.1 can't be seen from outside
export LEIN_REPL_PORT=8080 # or whichever port you're forwarding

metropolislights23:05:45

For some reason, lein repl :connect 0.0.0.0:8080 was throwing ConnectException Connection refused. I'll look further into it before opening and issue.

metropolislights23:05:14

Everything CIDER-related was smooth sailing. It truly does rock. 👍