This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-04
Channels
- # beginners (149)
- # cider (1)
- # clara (12)
- # cljs-dev (226)
- # cljsrn (2)
- # clojure (275)
- # clojure-russia (5)
- # clojure-uk (14)
- # clojurescript (57)
- # cursive (23)
- # data-science (15)
- # datomic (1)
- # fulcro (8)
- # hoplon (9)
- # onyx (5)
- # portkey (15)
- # protorepl (1)
- # re-frame (8)
- # reagent (17)
- # shadow-cljs (22)
- # uncomplicate (13)
- # vim (36)
Also, im having issues with imports of records not being resolved in java when those records are defined via macros
(i detailed some of the issues in the main clojure thread, and why I think it might be some cursive config)
I don't know about the plugin, but if you have no java in the project, it seems right that regular compile does nothing. Do you use a :genclass on the clj files you want to use from java?
@cfleming greetings! it seems like cursive does not recognize clojurescript's areduce
syntax (hope you see the screenshot, slack complains about lack of free disk space):
I have some custom compojure route macros (for non-standard request methods). They look exactly like compojure.core/GET etc. Is it possible to configure Cursive to correctly resolve these custom macros?
Anybody seen this kind of issue starting a lein repl within cursive:
Starting nREPL server...
...
Error loading clojure.tools.nrepl.server: clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;
Exception in thread "main" java.lang.IllegalStateException: Attempting to call unbound fn: #'clojure.tools.nrepl.server/default-handler
?@misha https://github.com/cursive-ide/cursive/issues/435, that’s been there for ages, I’ll try to fix this soon.
@ckarlsen Yes, you can use https://cursive-ide.com/userguide/macros.html. The doc is slightly out of date, there’s now a “Specify…” option in the dropdown which you can use to resolve as any arbitrary macro.
@mbjarland No, I haven’t seen that. Which version of tools.nrepl are you using?
hi, I posted this in #beginners but it might actually be a Cursive specific issue as others were not able to reproduce when using nRepl directly. When I print a binding to a multiline string it ignores white-space. But if I call a function on that binding, whitespace is included:
(def multline "aaaaaa
bb
cccc")
multline
=> "aaaaaa\nbb\ncccc"
(frequencies multline)
=> {\a 6, \newline 2, \space 30, \b 2, \c 4}
(frequencies "aaaaaa\nbb\ncccc")
=> {\a 6, \newline 2, \b 2, \c 4}
@jonjanisch @zylox This is an unfortunate feature. Cursive tries to align multi-line strings when pretty-printing, which is often very nice when printing large data structures with multi-line strings. However it has some odd edge cases like this one. You can turn it off at Settings->Languages & Frameworks->Clojure->Split and align multi-line strings.
I’m increasingly thinking that it shouldn’t be on by default, or perhaps shouldn’t even be a thing.
ive seen it be valuable in test failure string printing so id say i'm positive on the feature
though @jonjanisch's situation is admittedly confusing