This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-16
Channels
- # atlanta-clojurians (8)
- # beginners (103)
- # boot (22)
- # boot-dev (1)
- # cider (36)
- # cljs-dev (55)
- # cljsrn (3)
- # clojars (25)
- # clojure (104)
- # clojure-brasil (1)
- # clojure-dusseldorf (2)
- # clojure-italy (8)
- # clojure-norway (9)
- # clojure-russia (15)
- # clojure-spec (6)
- # clojure-uk (26)
- # clojurescript (246)
- # cursive (26)
- # data-science (1)
- # datomic (22)
- # dirac (11)
- # editors (1)
- # emacs (8)
- # fulcro (50)
- # graphql (11)
- # hoplon (1)
- # jobs-discuss (27)
- # leiningen (44)
- # luminus (33)
- # lumo (2)
- # mount (1)
- # off-topic (8)
- # onyx (5)
- # parinfer (4)
- # reagent (94)
- # ring-swagger (14)
- # shadow-cljs (37)
- # spacemacs (10)
- # specter (3)
- # tools-deps (4)
- # unrepl (14)
- # yada (5)
@joelsanchez Is that CLJ, CLJS or CLJC?
@hlship Unfortunately there’s no good way to do that right now, your macro would have to resemble something which Cursive currently understands, and I can’t think of anything that looks like that.
This was kind of a plea to think about it. I could artificially make it look like a let, but feel dirty about doing that "just" for IDE support.
You can see the full macro in this blog post: http://medium.com/@hlship/-575d5047924c ... feedback welcome!
@dragoncube What sort of REPL are you using? nREPL or clojure.main?
@tony.kay I added your cases to https://github.com/cursive-ide/cursive/issues/1805
@cfleming I’ve tried both.
So when you’re using nREPL, you should get a popup asking for input if you use something like (read-line)
ok, for clojure.main it works, I was confused where I have to type my input
it works even without (read-line):
user=> (loop []
(println (.read (System/in)))
(recur))
a
97
10
b
98
10
c
99
10
a, b and c my inputbut with nREPL it does not work
ok, it is clear now
@dragoncube Sorry for the confusion. This is a tricky UI problem. All Clojure REPLs suffer from it to some degree (especially under nREPL), but it’s particularly bad in IntelliJ because of how editors work.
yeah, no problem
The tl;dr is that editors are strongly typed, so the REPL editor is generally a Clojure editor. That will freak out if you’re trying to type standard text into it, so when I finally add better support for streaming REPLs I’ll need a switch to change that editor to a plain text one.
I was trying to put cursor (focus) into output region
but after pressing first char it is returning focus to repl editor
Yeah, that’s essentially the same problem. Ideally there would just be one pane, but in order to get the IntelliJ functionality in the REPL editor it has to be a Clojure editor, and the output pane can’t be because it doesn’t contain valid Clojure.
I try to add support for “Parinfer, smart mode”. I have IntelliJ IDEA 2017.2.6, and Cursive plugin 1.6.3-2017-2 installed. I try to follow the instructions: https://groups.google.com/forum/#!topic/cursive/ZJ4fcp3A988/discussion I download the file 1.7.0-snapshot2-2017.2, but when I press “Install plugin from disk” I can’t select the file and if I try to unzip it first, I can select it but nothing happens.
But the new parinfer is now available in the latest EAP, so you can just enable EAPs (https://cursive-ide.com/userguide/#eap) and install that from the repo as usual.
Now it works, thanks @cfleming!