This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-24
Channels
- # announcements (4)
- # asami (5)
- # babashka (20)
- # beginners (94)
- # bristol-clojurians (1)
- # calva (23)
- # cider (2)
- # clj-commons (3)
- # clj-kondo (43)
- # cljfx (2)
- # cljs-dev (13)
- # clojure (112)
- # clojure-dev (44)
- # clojure-europe (17)
- # clojure-nl (5)
- # clojure-poland (12)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurebridge (1)
- # clojurescript (92)
- # cursive (17)
- # data-science (8)
- # datahike (1)
- # datalevin (1)
- # datomic (3)
- # deps-new (7)
- # events (2)
- # fulcro (40)
- # graalvm (110)
- # holy-lambda (16)
- # introduce-yourself (1)
- # lsp (13)
- # malli (8)
- # missionary (12)
- # off-topic (10)
- # pathom (13)
- # polylith (10)
- # portal (28)
- # re-frame (37)
- # reitit (1)
- # releases (1)
- # shadow-cljs (30)
- # spacemacs (1)
- # tools-deps (9)
- # xtdb (10)
Why Run with IntelliJ project classpath
and adding a alias that have :jvm-opts ["-Denvironment=test"]
does not print this variable when I run (get (System/getProperties) "environment")
but when I run with clj -A:my-profile
it works well?
When you run with the IntelliJ project classpath, you can’t select an alias. It will use whichever aliases you had selected in the deps toolwindow when you last synced.
I've selected the aliases on deps toolwindow, Is there any reason jvm-opts are ignored?
Because those aliases are only used to sync the project, so they’re only involved in run configurations tangentially. Basically, those aliases determine the deps and source paths that will be synced to the IntelliJ project, and those deps and paths determine the classpath IntelliJ uses. If you do want proper alias support, then the thing to do is to use “Run with deps” and select the aliases there.
@U0567Q30W apologies for resurrecting an old thread, but is this decision something you could be open to reconsidering?
The deps tool window is a lot more user-friendly for selecting aliases. Moreover, 'running with deps' is still affected by the Deferred parameters have not been cached!
problem reported at https://github.com/cursive-ide/cursive/issues/2308
I have a tools.deps project. I use aliases to override maven style dependencies with :local/root
ones to get hot reloading for dependency source code in shadow-cljs. Is there a way in cursive to make code navigation point to dependency source rather than the dependency JAR? So I can cmd-click a function name and go to its definition in the :local/root
source?
Using 2021.2.3 with 1.12.0-eap2-2021.2, I am unable to send stacktrace reports. (I don’t know whose fault this is :)) The error is Error submitting report: 422 Unprocessable Entity : ErrorResponse(message=Validation Failed, errors=[ErrorItem(resource=Issue, field=labels, code=custom)])
Top of stack:
cursive.exception.GithubException: 422 Unprocessable Entity : ErrorResponse(message=Validation Failed, errors=[ErrorItem(resource=Issue, field=labels, code=custom)])
at cursive.exception.ClojureErrorReportSubmitterKt.update(ClojureErrorReportSubmitter.kt:190)
at cursive.exception.ClojureErrorReportSubmitterKt.access$update(ClojureErrorReportSubmitter.kt:1)
at cursive.exception.ClojureErrorReportSubmitter$submit$1.run(ClojureErrorReportSubmitter.kt:339)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:450)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:117)
Does this happen for all exceptions for you, @U09R86PA4? It’s a weird error, I’m not sure what the code=custom means and the error is a bit meaningless without that.