Fork me on GitHub
#cursive
<
2016-06-03
>
superstructor01:06:46

is it possible to set the default for “New clojure namespace” to be ClojureScript instead of Clojure ?

danielcompton02:06:45

Installing Java 6 to try stop the IntelliJ crashing 😞

kenny18:06:00

Is it a known bug that Rum macros are still not getting resolved? I don't see an issue for it on Github.

darwin18:06:27

@kenny: rum macros work for me as expected, at least defc

kenny18:06:16

@darwin: I am not referring the macro. I am doing:

(require '[rum.core :as rum])
(rum/defc ...)
Is this what you are doing?

darwin18:06:06

not exactly, let me find a link

kenny18:06:54

Right, you're referring the macro.

kenny18:06:25

Seems like the symbol should be resolved by the fully qualified name, not just defc.

darwin18:06:32

@kenny: when I do (:require-macros [rum.core :as rum-core]) and then rum-core/defc it works as expected

darwin18:06:09

looks like the only problematic case is yours, when is it ambiguous what namespace are you referring to, if cljs rum.core or clj rum.core

kenny18:06:47

Ah yes that solves the problem.

darwin18:06:51

I agree that it should get fixed if it is recognised as valid clojurescript resolution (I have fuzzy knowledge about auto-importing macros via shadowed namespace naming)

grumplet20:06:56

SFAIK the earlier thread on this has not been resolved and the above solution fails in my case too. I have the most success with

grumplet20:06:12

(:require [rum.core]), then (rum.core/defc) - but even this does not always indent properly, though it does resolve.