Open jcf opened 7 years ago
I'm surprised return only 'sends' an expression when you're at the end of the line? I guess I can use some chord to send things; just have to look it up. :smile:
Running tests doesn't appear to work in the remote REPL. I can see the namespace loaded, and get some warnings about boxed math (that comes from my ~/.lein/profiles.clj
). But nothing else. No errors in the IntelliJ logs, and no output in my headless REPL. Just silence.
I even added a really basic test to see if I could get a failure reported, but nothing.
I'm trying out Cursive and Intellij IDEA on Linux, and have run into an issue importing an existing Leiningen project.
When I try to run a REPL I get an "Unknown error" in the UI, and the following exception logged in the IntelliJ log file:
It'd be nice if this was in the UI somewhere but I guess I don't know how to fix the problem from the stacktrace alone so maybe it doesn't matter.
I'm using the built-in JDK included with IntelliJ (version 1.8.0 something), and have updated IntelliJ using AppBox. I'm getting the same NPE exception with both EAP and without, which makes me think I've not configured something properly.
Here's my REPL Run/Debug configuration:
I'm not sure if there's a better way to share the above. Maybe an XML file in the project
.idea
directory? I'm pretty new to IntelliJ… Sorry!Update: I get the same error when I use the "Run 'REPL for'" item in the project contextual menu. Maybe my SDK isn't configured properly?
Another update: I can sort of connect to a remote nREPL server I start myself via
lein repl :headless :host 0.0.0.0 :port 1234
. It gets as far as this:The last couple of lines in the IntelliJ log are as follows.
Another update: So it looks like the remote REPL is working. I was just confused by the REPL UI. I've been able to type things into the input box (looks like Vim emulation isn't enabled in that box), and evaluate the result.
I can use a remote REPL for now I guess, but it would be preferable if I could manage the REPL from the IDE as I would with Emacs and Cider.