This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-24
Channels
- # admin-announcements (1)
- # alda (22)
- # aws-lambda (1)
- # beginners (9)
- # boot (17)
- # cider (39)
- # cljs-dev (10)
- # cljsjs (1)
- # cljsrn (14)
- # clojure (88)
- # clojure-android (1)
- # clojure-dev (9)
- # clojure-india (1)
- # clojure-russia (271)
- # clojure-spec (5)
- # clojure-uk (101)
- # clojurescript (74)
- # clojutre (11)
- # component (2)
- # cursive (24)
- # datascript (7)
- # datomic (9)
- # dirac (13)
- # docs (3)
- # emacs (4)
- # garden (21)
- # hoplon (9)
- # jobs-rus (5)
- # lein-figwheel (3)
- # leiningen (13)
- # luminus (12)
- # off-topic (1)
- # om (24)
- # onyx (84)
- # proton (3)
- # re-frame (39)
- # reagent (21)
- # rethinkdb (1)
- # slack-help (10)
- # specter (4)
- # test-check (1)
- # untangled (35)
- # yada (2)
Anyone else getting a constant "Your project requires namespaces which need stubs to be generated"?
I did that last week at some point. Worked fine. Today it's just showing up non-stop. Clicking once gives me an NPE. Clicking again makes it do something for a short time (like ~10s), and then the message shows up again.
Howdy!
I'm just getting started with Clojure and following the "Clojure for the Brave and True" book
One of the examples shows the use of (Integer. some-string)
which I understand sort of translates into the Java new Integer(someString)
But the IDE marks Integer. as unresolved
Is this a known thing? Or am I doing something wrong?
It does work in the REPL and when I run the script file itself.
@madarauchiha what's the error message the ide is giving you?
@madarauchiha if you look at Parameter Info you’ll see
Notice there’s arities with the same number of args
Java can distinguish this by the type of the args, but Clojure as a dynamically typed language can't
It will figure it out from reflection at runtime
To fix this, add a type hint, either to your def, or in the call
@potetm: Yes, that’s new in the latest EAP, see https://cursive-ide.com/archive/2129.html
@danielcompton: Cursive actually already does flow that info, but currently models what Clojure does, and Clojure doesn’t automatically add a tag to def based on the type of a simple expression.
I think the reagent thing is a subtly different issue again
as type hinting Clojure expressions when dereffing won’t mean anything?