Fork me on GitHub
#cursive
<
2019-04-20
>
Drew Verlee00:04:30

How would i pass -J-Dtrace to intellji? i assume this is a jvm argument, but if i pass it then it says its an unregonized option. But clj 'A:dev -j-Dtrace works, and i assume -j-Dtrace is getting passed as a jvm argument there as well.

cfleming03:04:02

@drewverlee Yeah, I’m sorry about that - for some reason for some people the REPL input pane gets completely collapsed, and in particular in dark mode it’s really hard to see. I’m going to have to show a warning when that happens, I have no idea how it happens to so many people.

Drew Verlee04:04:59

no worries. it might be because of something in my setup...

cfleming03:04:47

I think what you want to put in the JVM argument field is just -Dtrace - the -j bit is just to tell deps “what comes after the -j is a JVM arg”

cfleming03:04:00

That’s IIRC, I don’t have my computer in front of me.

Drew Verlee03:04:14

damn, yea thats a good guess. i thought it might be something like that, but i ran out of guess energy and googling jvm related stuff always lands me in trouble.

kwladyka11:04:26

How do you use environment variables for project in Curisve for deps.edn (no lein / boot)? Is any way to use .envrc instead of adding it manually in UI

kenny14:04:25

I haven't found a way to do this and would be interested in if anyone has a solution as well. I suspect this is an IntelliJ issue rather than Cursive.

cfleming11:04:06

(I haven’t, just googled quickly)

kwladyka11:04:09

I tired it but there is no EnvFile tab for Cursive REPL configuration

kwladyka11:04:16

It let use .env instead of UI, but still it wouldn’t work if run repl from the shell. There are tips and tricks, but if I have to use them, then it is easier to use UI.

kwladyka11:04:15

At least I couldn’t tests if further, because I don’t have EnvFile tab

cfleming23:04:43

Ok, I’ll take a look to see if I can fix that.

cfleming23:04:11

Actually, I remember now, there was already some discussion on how to make this work - I think we both think we’re waiting on the other for feedback. I’ll ping him again: https://github.com/ashald/EnvFile/issues/20

cfleming04:04:17

I think I have fixed this as part of https://github.com/cursive-ide/cursive/issues/2160, it’ll be in the next drop. This is surprisingly tricky and it’s completely undocumented so I hope I’m doing the right thing, but it seems to work for simple cases. Any problem reports very welcome.

kwladyka08:04:23

thanks for interested in the topic 🍻