This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-07
Channels
- # alda (7)
- # beginners (4)
- # boot (108)
- # cljsrn (40)
- # clojure (24)
- # clojure-berlin (1)
- # clojure-dev (20)
- # clojure-russia (21)
- # clojurescript (115)
- # clojurescript-ios (1)
- # cursive (8)
- # data-science (5)
- # datascript (3)
- # hoplon (313)
- # jobs (1)
- # ldnclj (2)
- # off-topic (19)
- # om (115)
- # portland-or (3)
- # re-frame (9)
- # yada (2)
I’m having a problem in Cursive with my REPL initialisation in Clojure 1.4 (and presumably earlier versions). This works fine in 1.5+.
Basically I load a single file which contains various namespaces concatenated together. One of the later namespaces requires an earlier one, and this fails saying it can’t find the file containing the NS.
So it looks like it’s not checking whether the ns is already loaded, or perhaps the fact that the ns is loaded is updated once load-file has finished? Not sure.
That was before I was closely involved but check the changelog
@alexmiller: it looks like the jvm verifier can't figure out that the direct interface method path on a protocol callsite can only be reached after a successful instanceof check
@cfleming: I remember that at some point in the past clojure wasn't able to load namespaces that didn't exist on disk
@bronsa: Thanks. In this case the nses load ok, it’s requiring one that was loaded in this fashion that fails. It seems odd, since it implies that Clojure isn’t aware the ns has been loaded yet. IIRC that’s done using refs, I haven’t had time to check if that code changed in 1.5
@bronsa: thx, I'll look at it next week. It's weird that I have no memory of that ticket being logged. Must have been when I was at scout camp.
@alexmiller: not a regression btw
@cfleming: http://dev.clojure.org/jira/browse/CLJ-1116 is what I was thinking of