This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-21
Channels
- # 100-days-of-code (1)
- # announcements (2)
- # beginners (164)
- # cider (23)
- # cljs-dev (30)
- # cljsjs (11)
- # cljsrn (7)
- # clojure (116)
- # clojure-boston (1)
- # clojure-dev (20)
- # clojure-finland (2)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (39)
- # core-async (19)
- # cursive (43)
- # data-science (2)
- # datomic (24)
- # emacs (10)
- # figwheel-main (20)
- # fulcro (63)
- # hoplon (7)
- # hyperfiddle (7)
- # instaparse (3)
- # kaocha (1)
- # nrepl (3)
- # off-topic (170)
- # onyx (13)
- # other-languages (3)
- # parinfer (13)
- # re-frame (39)
- # reagent (5)
- # reitit (22)
- # ring-swagger (4)
- # shadow-cljs (284)
- # spacemacs (2)
- # sql (27)
- # testing (28)
- # unrepl (2)
@nxqd When you create a new namespace (with e.g. Cmd-N in the project view on OSX) it will use the templates at Settings->Editor->File and Code Templates->Clojure/ClojureScript/etc Namespace
@manderson So⦠I donāt know. Normally process stdout just comes out in the REPL window, but lein plugins are weird things.
Thanks @U0567Q30W. This is actually when Cursive tries to load my project (or if I click ārefreshā in the Leiningen window). I can dig in some more, but it might just be swallowed (I checked the IntelliJ Logs already)
Right. The plugin is actually resolving some dependencies (which is why the error, which seems to be maven/aether related)
Yeah, Iāve got some debug statements interspersed in my code as Iām developing. They get printed to the console when run from the terminal (eg: lein run
), but all I see in Cursive is the event log entry with the error.
What happens if you donāt catch the error? Does that get caught at some higher point that does something useful with it?
Yeah, looking at it Cursive doesnāt do anything with stdout when reading the project file - it probably should.
Ok, sorry I donāt have a better answer. Iāll file an issue for this and add it to the pile.
No worries! Iām sure itās something on my end since Iām mucking about in plugin land š Thanks for your time!
Looking at the code again, in the lein plugin case Cursive will just start the process as usual but add lein itself to the classpath.
Is there a way to break on exception with the Cursive debugger? I can't see anything, but I might be missing it
@danielcompton Yes, thereās an exception breakpoint type.
So get the breakpoints window up, then +, then Java Exception Breakpoint, then configure from there.
Thanks!
Also, is it possible to set breakpoints inside libraries?
I'm trying to set them but I keep getting the (/)
Seems to happen inside defrecord definitions
@danielcompton Yes, thatās a problem inside deftype-like things. Itās to do with how the classes are named, JDI is unfortunately pretty limited in how it allows searching for classes to apply breakpoints.
Hello, is it possible to get Cursive running with IntelliJ 2018.3? It seems its not supported.
I just upgraded IntelliJ to 2018.3, and my Cursive plugin still works. I was on the EAP version of Cursive, though, and I had to upgrade after upgrading IDEA.
Hm, anyone using shadowcljs through Remote nREPL?
when I try to run tests I get:
Loading src/main/challenge/scramble.cljc... done
Loading src/test/challenge/scramble_spec.cljc... done
Running tests in challenge.scramble-spec
Calls to `require` must appear at the top-level. at line 1 challenge/scramble.cljc
@manutter51 ah I have to use EAP. But I had the stable one and now its disabled and I cant get to the switch to EAP builds menu too š
can you revert to 2018.2 temporarily? If not I think thereās a procedure to workaround that
yeah will do that for now i guess
Thanks for the help!
back up your settings first š
Not sure if reverting to an earlier version would screw those up, but canāt hurt to have a backup
yeah i generally export the jar backup. should work i hope
:thumbsup:
@rahul080327 Thereās some doc about this on the troubleshooting page: https://cursive-ide.com/userguide/troubleshooting.html