Fork me on GitHub
#cursive
<
2016-11-29
>
kenny02:11:48

@cfleming I did a fresh install of IntelliJ and it turns out the RAM settings were not getting persisted for some reason. Now the RAM bar in the bottom right shows the correct amount of RAM and everything is running much smoother. I backed up my settings, deleted all my IntelliJ config folders from previous installations, and imported the backed up settings into the new IntelliJ installation. I guess deleting those old config folders did the trick? Glad everything is fixed now 🙂

rauh09:11:59

When I switch over to the REPL window from my main window Cursive/Intellij will always save my files. even though I have "Save files on frame deactivation" disabled. Intellij does NOT save my files if I switch to other Intellij windows, such as "Find'. It also behaves correctly when I switch to other frames like the browser

cfleming09:11:17

@kenny That’s very strange. I’ll try to fiddle with that now, because I saw exactly the same number you did.

cfleming09:11:45

@rauh Yes, it does. This was a change I made a while ago, because it was very surprising for people sometimes when that didn’t happen

cfleming09:11:19

Sorry, I missed your message the other day - you don’t want this because you don’t want Figwheel to kick in, is that right?

rauh09:11:58

Yes, I have some bad state that doesn't rerender properly and I need to debug it. But as soon as figwheel kicks in, everything is good and I can't debug my components state

rauh09:11:06

so I need to not reload.

cfleming09:11:55

I can’t think of a good way around that unfortunately, unless you write your debug code in the editor and send the forms to the REPL without switching to the REPL editor.

cfleming09:11:18

It’s not ideal, for sure, but it should work.

rauh09:11:32

Yeah it's not a huge problem, and I tend to not have to bugs all the time (thankfully 🙂 )

rauh09:11:54

If it's too complicated then no worries.

cfleming09:11:55

Yeah, it’s an unusual use case - I wonder if the REPL saving should obey that flag, though.

rauh09:11:17

IMO it should, can you not get that flag easily through some API?

cfleming09:11:33

Yeah, I should be able to. Could you file an issue so I don’t forget about that?

rauh09:11:43

Will do! Thanks

cfleming09:11:16

Great, thanks

yonatanel10:11:03

How do you manage multiple projects (e.g microservices) at the same time? Is there some way to have multiple repls or something like that? Some of these are on separate repositories.

cfleming10:11:39

@yonatanel Yes, you can import multiple Leiningen projects into the same IntelliJ/Cursive project. They will be imported as IntelliJ modules. You can then have multiple REPL configurations, and those configurations specify the project they should use.

yonatanel10:11:29

Yes, I see there are REPL tabs for more than one

yonatanel10:11:03

If they can be pulled apart I'm gonna need a bigger screen :)

kernelp4nic12:11:58

Hi! There is a way to pretty-print with color on the repl? I know @cfleming was trying to do this automatically

kernelp4nic12:11:51

doesn't work either, for some reason I think this was working before

kernelp4nic12:11:48

ah! found it, I was printing a datomic.query.EntityMap

kernelp4nic12:11:24

if I print a simple map or convert the EntityMap into a normal clj map aprint works as expected

yonatanel14:11:42

For the past few minutes I couldn't reset my keybindings and got stuck with paredit or something like that. Had to start over from "Default for XWIN"

yonatanel14:11:10

OK I think I misunderstood the clojure keybindings panel. never mind

denik15:11:58

As of recently, unable to run tests in cursive, I get this error trying to eval a test under my caret: Error evaluating - class java.lang.NullPointerException:

cfleming15:11:53

@denik Do you get anything more useful in your log? Help-&gt;Show log in Finder

denik15:11:30

@cfleming yup

2016-11-29 10:32:21,314 [71187199]  ERROR -             cursive.repl.nrepl - Error evaluating
java.lang.NullPointerException: null
 at cursive.repl.actions$path_dependency_map$fn__9298.invoke (actions.clj:290)
    clojure.lang.PersistentHashMap.kvreduce (PersistentHashMap.java:232)
    clojure.core/fn (core.clj:6536)
    clojure.core.protocols$fn__6531$G__6526__6540.invoke (protocols.clj:174)
    clojure.core$reduce_kv.invoke (core.clj:6562)
    cursive.repl.actions$path_dependency_map.invoke (actions.clj:289)
    cursive.repl.actions$load_file_BANG_.invoke (actions.clj:325)
    cursive.repl.actions$load_file$fn__9344.invoke (actions.clj:401)
    cursive.repl.nrepl$submit$fn__3432.invoke (nrepl.clj:126)
    clojure.lang.AFn.call (AFn.java:18)
    java.util.concurrent.FutureTask.run (FutureTask.java:266)
    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
    java.lang.Thread.run (Thread.java:745)

cfleming15:11:17

@denik Does File-&gt;Invalidate caches help with this? It looks like you have a namespace that’s a little funky somewhere - it might be that the indexes have corrupted, or you might actually have something like a namespace which requires one that doesn’t exist, or something like that.

denik15:11:49

@cfleming thanks, that resolved it! Not sure if theres something funky in the codebase. Would think that should show up during compilation.

cfleming15:11:26

@denik Yeah, if the cache invalidation fixed it, it was probably an indexing bug.

cfleming15:11:34

You’re off the hook 🙂

roelofw18:11:51

Can cursive tell me how many time a function needed to run ?