This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-29
Channels
- # adventofcode (11)
- # aws (2)
- # bangalore-clj (8)
- # beginners (92)
- # boot (2)
- # calva (26)
- # cider (1)
- # clj-kondo (4)
- # cljs-dev (4)
- # clojure (54)
- # clojure-berlin (5)
- # clojure-houston (6)
- # clojure-italy (12)
- # clojure-nl (7)
- # clojure-uk (39)
- # clojurescript (12)
- # clojutre (6)
- # cryogen (1)
- # cursive (15)
- # datomic (11)
- # duct (1)
- # events (5)
- # fulcro (14)
- # jackdaw (1)
- # joker (2)
- # malli (15)
- # mental-health (1)
- # off-topic (35)
- # reagent (2)
- # reitit (24)
- # rewrite-clj (3)
- # shadow-cljs (19)
- # vim (11)
Hi, I'm having trouble getting the "Resolve ... as ..." prompt to come up with alt-enter. I have def-like macros, for example, this is a simple case:
(defmacro def- [name val]
`(def ^:private ~name ~val))
(def- xxx "xxx")
(def yyy xxx)
As described in the doc, I try positioning on xxx, yyy or def- above, but the only thing I see when I press alt-enter is "Configure indentation...".The xxx shows as unresolved.
Check that the intention is enabled at Preferences | Editor | Intentions | Clojure | Resolution
That was it, thank you!
After I upgraded to IntelliJ 2019.3, resolving java-native functions stopped working..?
So Cursive is doing a terrible job of saying what the problem is there, but the issue is that URLEncoder isn’t imported.
What I think has changed in 2019.3 is that the popups for importing classes work differently, and frequently disappear before you’ve had a chance to invoke them.
Somehow URLEncoder isn't resolved, even if it is imported.
I think this is the issue, that Cursive (?) / Idea does not resolve java native stuff since 2019.3. It worked fine in 2019.2.4
Let me know if I can provide more information
I have set the project to use JDK 11 ...
No, they definitely resolve in 2019.3 - I use Cursive to develop itself, and it’s basically a big ball of interop, and it’s all working fine for me. There must be something else going on. I’ll try to reproduce exactly your case there.
Thanks otherwise for a great editor!
So IntelliJ in 2019.3 finally has a configurable shortcut to “Focus Editor” from another tool window! See https://blog.jetbrains.com/idea/2019/09/whats-new-in-intellij-idea-2019-3-eap3/ Using IdeaVIM it was driving me nuts that pressing ESC returned automatically to the editor from the REPL. I have immediately configured another key than ESC to “Focus Editor”. But now I see, that pressing ESC in the editor does not exit “Insert mode”. Is this special code in Cursive? I saw this discussion: https://groups.google.com/d/msg/cursive/L1NN6eh2XeA/CxiDJum7DAAJ