This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-26
Channels
- # admin-announcements (1)
- # beginners (12)
- # cider (2)
- # cljs-dev (6)
- # cljsrn (4)
- # clojure (123)
- # clojure-austin (10)
- # clojure-brasil (1)
- # clojure-canada (21)
- # clojure-conj (5)
- # clojure-dev (8)
- # clojure-gamedev (42)
- # clojure-russia (121)
- # clojure-sanfrancisco (2)
- # clojure-spec (25)
- # clojure-uk (36)
- # clojurescript (195)
- # clojutre (3)
- # cursive (43)
- # datomic (6)
- # defnpodcast (2)
- # dirac (14)
- # emacs (2)
- # ethereum (2)
- # events (2)
- # funcool (6)
- # hoplon (76)
- # jobs (1)
- # kekkonen (9)
- # lein-figwheel (1)
- # leiningen (4)
- # mount (6)
- # off-topic (5)
- # om (2)
- # onyx (91)
- # pedestal (2)
- # protorepl (14)
- # re-frame (22)
- # reagent (20)
- # rethinkdb (1)
- # ring (2)
- # schema (3)
- # sfcljs (3)
- # spacemacs (15)
- # specter (12)
- # testing (1)
- # yada (63)
@rauh: I think that is probably https://github.com/cursive-ide/cursive/issues/1210 - could you try the workaround there?
@cfleming https://github.com/adzerk-oss/boot-cljs/wiki/Usage#preamble-and-externs-files
@bfabry: I see a few people reporting that in the tracker, definitely seems related to proxy.
@curlyfry: No, Cursive does nothing like that. But it doesn’t show you the results of the evaluation - (println (+ 1 1))
should show it though.
cheers @cfleming, I did start trying to make a minimal repro but got bored. it seems to be specifically related to proxying this class I have here, as we have other proxies that don't do it. Also it blows up when opening the java file
@bfabry: I just tried to reproduce this, but I can’t:
(def x (proxy [CljDoFnWithContext] []
(cljProcessElement [context window])
(cljStartBundle [context])
(getAllowedTimestampSkew [])
(getInputTypeDescriptor [])
(getOutputTypeDescriptor [])
(populateDisplayData [builder])
(processElement [context window])
(startBundle [context])))
Oh, ok, looks like you’re destructuring directly in one of the parameters, like (populateDisplayData [[a b]])
- I’ll fix that.
As a workaround, you could accept a single param and then destructure in a let
inside that.
Hey guys, I'm having some issues (I'm not sure this is strictly a cursive issue, but I'm hoping you'll help me find out if it is)
I started a brand new leiningen project from intellij
I'm right clicking the project.clj
file and choosing "Create REPL for PROJNAME"
It creates the run with Intellij
Then, when I start the repl, nothing from the project file (`core.clj`) is available in the repl
Even directly sending the file or specific forms into the REPL doesn't seem to have an effect.
The funny thing is, I had another project yesterday with a REPL, and I had no issues there. In face, opening that project again and starting its REPL through the same means, works fine.
I get this when I try to access the default foo
function that leiningen gives
(foo)
CompilerException java.lang.RuntimeException: Unable to resolve symbol: foo in this context, compiling:(/tmp/form-init3194148113876011604.clj:1:1)
And here's the code in core.clj
(ns pegthing.core)
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
It's worth noting that I used the terminal lien
command to generate the other project. Maybe it has some bearing on the result?
Yeah, when I use lein new app PROJ
instead of intellij, the REPL works
What could be the problem?
@cfleming odd I wouldn't have thought we have anywhere where we could destructure those vals directly, I'll have a dig around. if you've found something that exhibits similar behaviour I'm happy anyway
@yiinho: Could you check for automatic thread dumps as described here: https://intellij-support.jetbrains.com/hc/en-us/articles/206544899-Getting-a-thread-dump-when-IDE-hangs-and-doesn-t-respond and file an issue, please?