Fork me on GitHub
#cursive
<
2018-11-21
>
cfleming00:11:36

@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-&gt;Editor-&gt;File and Code Templates-&gt;Clojure/ClojureScript/etc Namespace

šŸ‘ 4
cfleming00:11:14

@manderson Soā€¦ I donā€™t know. Normally process stdout just comes out in the REPL window, but lein plugins are weird things.

manderson00:11:15

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)

cfleming00:11:54

Oh I see, so itā€™s when the plugin is actually in use, not in a dev situation.

cfleming00:11:22

How is that error printed? Using *out* or some logging solution?

manderson00:11:24

Right. The plugin is actually resolving some dependencies (which is why the error, which seems to be maven/aether related)

manderson00:11:36

Iā€™m just opting for the classic println šŸ™‚

cfleming01:11:00

So youā€™re receiving an exception and printing it out?

manderson01:11:48

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.

cfleming01:11:23

And this error happens on project refresh?

manderson01:11:40

yep, and on load

cfleming01:11:54

What happens if you donā€™t catch the error? Does that get caught at some higher point that does something useful with it?

manderson01:11:16

hm, i can try that. let me check

cfleming01:11:48

Yeah, looking at it Cursive doesnā€™t do anything with stdout when reading the project file - it probably should.

manderson01:11:06

Ok, thanks for checking. Just wanted to make sure I wasnā€™t missing something.

manderson01:11:14

I may just try logging to a file or something

cfleming01:11:43

Ok, sorry I donā€™t have a better answer. Iā€™ll file an issue for this and add it to the pile.

manderson01:11:03

No worries! Iā€™m sure itā€™s something on my end since Iā€™m mucking about in plugin land šŸ™‚ Thanks for your time!

cfleming00:11:16

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.

danielcompton02:11:23

Is there a way to break on exception with the Cursive debugger? I can't see anything, but I might be missing it

cfleming02:11:50

@danielcompton Yes, thereā€™s an exception breakpoint type.

cfleming02:11:01

So get the breakpoints window up, then +, then Java Exception Breakpoint, then configure from there.

danielcompton02:11:13

Also, is it possible to set breakpoints inside libraries?

danielcompton02:11:44

I'm trying to set them but I keep getting the (/)

danielcompton02:11:14

Seems to happen inside defrecord definitions

cfleming06:11:19

@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.

lispyclouds18:11:25

Hello, is it possible to get Cursive running with IntelliJ 2018.3? It seems its not supported.

manutter5118:11:09

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.

roklenarcic19:11:08

Hm, anyone using shadowcljs through Remote nREPL?

roklenarcic19:11:20

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

lispyclouds20:11:40

@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 šŸ˜ž

manutter5120:11:26

can you revert to 2018.2 temporarily? If not I think thereā€™s a procedure to workaround that

lispyclouds20:11:42

yeah will do that for now i guess

lispyclouds20:11:51

Thanks for the help!

manutter5120:11:02

back up your settings first šŸ˜‰

manutter5120:11:24

Not sure if reverting to an earlier version would screw those up, but canā€™t hurt to have a backup

lispyclouds20:11:47

yeah i generally export the jar backup. should work i hope

cfleming21:11:26

@rahul080327 Thereā€™s some doc about this on the troubleshooting page: https://cursive-ide.com/userguide/troubleshooting.html