This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-20
Channels
- # beginners (27)
- # calva (32)
- # cider (9)
- # clojure (111)
- # clojure-spec (71)
- # clojure-uk (7)
- # clojurescript (22)
- # cursive (20)
- # devcards (1)
- # emacs (4)
- # fulcro (3)
- # hyperfiddle (3)
- # off-topic (8)
- # pathom (26)
- # planck (19)
- # quil (4)
- # re-frame (1)
- # reitit (43)
- # rewrite-clj (9)
- # shadow-cljs (13)
- # spacemacs (7)
- # uncomplicate (5)
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.
@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.
no worries. it might be because of something in my setup...
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”
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.
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
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.
@U0WL6FA77 @U083D6HK9 Have you tried this? https://plugins.jetbrains.com/plugin/7861-envfile
Some tips on a working setup: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206059469--Best-mechanism-to-share-environment-between-command-line-and-RubyMine?page=1#community_comment_360000269860
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.
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
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.