Fork me on GitHub
#cursive
<
2019-08-30
>
kenny01:08:09

Is there a good way to use the JVM Profiler with Cursive? https://blog.jetbrains.com/idea/2018/09/intellij-idea-2018-3-eap-git-submodules-jvm-profiler-macos-and-linux-and-more/. I can start a REPL with it going but I want to be able to run the profiler while I run a particular function.

jumar07:08:24

@U083D6HK9 I don't really use Cursive but I think it's better to use https://github.com/clojure-goes-fast/clj-async-profiler directly if you want to profile functions separately. Although it's still profiling your whole system, it's easy to use from the REPL and you can start/stop it explicitly

kenny13:08:00

Yeah I've used that one before. I've found the IntelliJ UI to be much better though.

dazld18:08:08

I’ve downgraded to 2018.3, tried to remove all caches, logs, library files, and completely reinstalled. When i try to import a leiningen project, nothing happens. Is this a known bug?

manutter5118:08:42

When you say “remove all caches” does that include the Invalidate Caches And Restart command?

manutter5118:08:36

also what version of Java? Somebody was just saying they were having issues using JDK 12.

dazld18:08:07

i’ve completely and totally removed all traces of intelliJ that I can find

dazld18:08:15

and then reinstalled from scratch

dazld18:08:36

any ideas?

dazld18:08:57

to remove intelliJ

dazld18:08:31

nothing in logs too 😞

dazld18:08:41

tailing the log while trying to open stuff..

dazld18:08:49

advice welcome!

manutter5118:08:33

Actually, I never use “Import,” I always use New -> Project from Existing Sources

dazld18:08:40

I dont see that option anywhere?

dazld18:08:13

ty for help btw

dazld18:08:19

it’s a bit frustrating

dazld18:08:52

I’ve been blocked on working on this machine for a while now, and am terrified of touching my work machine in case it ends up like this

dazld18:08:26

made the mistake of installing 2019.2, and since then everything has been awful.

dazld18:08:10

(not having a go, but am genuinely at a loss at how to fix all this)

manutter5118:08:07

Under File, select New, then from the pop-up select Project from Existing Sources.

dazld18:08:33

I dont see a file option :I

dazld18:08:39

this might be a mac thing

manutter5118:08:02

Ah, you’re at the initial screen, I forgot

dazld18:08:06

all i see

manutter5118:08:00

Yeah, do you have any existing projects at all that you can open?

dazld18:08:17

i removed everything

dazld18:08:24

let me try from terminal

manutter5118:08:53

Ok, I would click Create New Project and then pick Empty Project, just to create something that’ll get you to the main UI

manutter5118:08:35

That’ll give you a File menu that has New -> Project From Existing…

dazld18:08:03

same thing :I

manutter5118:08:32

You say Create New Project and nothing happens?

dazld18:08:48

i opened another project from iterm with idea .

dazld18:08:52

when i was in the folder

dazld18:08:59

then i go file -> new from sources

dazld18:08:03

select a folder

dazld18:08:07

and nothing happens

dazld18:08:31

when i do the idea . trick for this folder, it opens, but i can’t create any modules

dazld18:08:36

this must be an intelliJ thing

dazld18:08:00

maybe i’m looking in the wrong place, cursive is probably fine

manutter5118:08:01

Something is very weird, I’ve never heard of this kind of thing happening before.

dazld18:08:22

yep, paying customer, no dodgy business going on

dazld18:08:32

i’ll ask jetbrains

manutter5118:08:06

Yeah, sounds like something is odd, the other possibility would be you’ve got something corrupted in your java installation.

dazld18:08:24

i use jenv

dazld18:08:29

maybe it did something odd

manutter5118:08:06

I’d try installing openjdk11 if you haven’t already and try it under that

manutter5118:08:18

though I think IntelliJ ships with its own built-in jdk

dazld18:08:28

it has its own JVM, yep

dazld18:08:41

not sure about the JDK

dazld18:08:53

gah, hate this stuff.

dazld18:08:02

thank you anyway

manutter5118:08:03

np, hope you figure it out and get it fixed soon, it sounds like a real pain.

👍 4
dazld18:08:23

It’s a Catalina thing.

dazld18:08:20

My own dumb fault aka. Guess they fixed it in later versions..? But they don’t work with cursive.

dazld18:08:56

Fun! Time to downgrade.

dazld19:08:28

Using [NSApp runModalForWindow:] for Open/Save panels is deprecated. Please use the [NSSavePanel runModal] API directly. from the idea debug output

dazld19:08:32

that’ll be it.

manutter5119:08:22

Oy :headache:

manutter5119:08:44

Oh well at least you found out what it was.

dazld19:08:11

guess takeaway is old versions of idea won’t work with macOS 10.15

manutter5119:08:45

Interesting, thanks for the follow-up, I bet you won’t be the only person to run into this.

dazld20:08:08

when more people start using 10.15, for sure.

dazld20:08:21

its actually all versions, as far as i can tell too

cfleming22:08:12

@dazld Thanks for following up there - I had no idea that was a problem. Unfortunately that makes my blanket recommendation to downgrade to 2018.3 subject to yet more caveats 😞. At least Catalina is not fully released yet.

👍 4
onetom05:08:52

Even with all these caveats, Cursive is great and still a lot more approachable and discoverable than Emacs based tools, so keep up the good work!