This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-10
Channels
- # announcements (6)
- # architecture (2)
- # babashka (30)
- # beginners (90)
- # calva (21)
- # cider (22)
- # clj-kondo (27)
- # cljs-dev (7)
- # clojure (132)
- # clojure-europe (51)
- # clojure-nl (12)
- # clojure-norway (3)
- # clojure-spec (3)
- # clojure-uk (5)
- # clojurescript (69)
- # cloverage (9)
- # conjure (5)
- # core-async (54)
- # cursive (14)
- # datomic (34)
- # emacs (7)
- # fulcro (10)
- # graalvm (40)
- # graalvm-mobile (2)
- # gratitude (2)
- # improve-getting-started (1)
- # introduce-yourself (1)
- # jobs-discuss (61)
- # leiningen (5)
- # malli (6)
- # off-topic (59)
- # pathom (11)
- # polylith (38)
- # reagent (3)
- # reitit (3)
- # rewrite-clj (3)
- # shadow-cljs (53)
- # tools-build (35)
- # transit (8)
- # vim (62)
- # web-security (26)
- # xtdb (4)
Is there a way to ignore anything inside comment form (like in emacs)? I don’t want to see errors there
Hey @UL05W6AEM
comment
is a macro-level implementation of commentary blocks
it means that it's body needs to be readable my the clojure reader
Any syntax error inside a comment block will result in a exception while trying to load the namespace
with that in mind, i think that make sense the IDE warns you about syntax errors in this block
Did anyone have luck with setting up build.clj
in such a way that you could experiment with it in REPL? https://clojurians.slack.com/archives/C02B5GHQWP4/p1644498430343479?thread_ts=1644497861.646089&cid=C02B5GHQWP4
Try opening the Clojure Deps
tool window, then expanding the Tool Alias
folder. Check the build
alias.
Yeah I did and I still get that message
the build.clj file is just a suggestion, you can place it on your classpath - or under a separate directory like build and then add a deps alias that adds that dir to the classpath (as well as adding tools.build), this way you don't include the build code in your actual application code when it is built, but you can have the build available in cursive during development.
@U66G3SGP5 Sorry, this is more awkward than it should be, I’ll try to fix it for the next build. I believe that you should be able to start a socket REPL in the terminal and connect to that using a remote REPL option in Cursive.
hm cool, but i’ve ran into a bigger problem. Even though I have build
selected in Tool Aliases
when I run the REPL, the dependencies from the build
alias :deps
key are absent from classpath.
Hmm, I’m not sure about that. I’ve filed this issue and will try to fix it soon: https://github.com/cursive-ide/cursive/issues/2653
Minor gripe here (happy to make an issue or however you prefer to track these things). If I have a function that splits its arguments over multiple lines, I noticed that the signature when mousing over the function has some extra indentation. This isn’t something I usually do, but I’ve been experimenting with it since I’ve starting using inline specs with malli/schema-style defn
, which get pretty long
Any idea how to debug what's happening with an error like this trying to run a lein profile? .idea.log
just says:
2022-02-10 14:25:53,629 [85110763] INFO - xecution.runners.ExecutionUtil - Error running 'sponsor-repl':<br>Error executing Leiningen configuration.
com.intellij.execution.ExecutionException: Error executing Leiningen configuration.
at cursive.repl.runner.LocalConfiguration.createLeinParameters(ReplRunConfigurations.kt:516)
at cursive.repl.runner.LocalConfiguration.access$createLeinParameters(ReplRunConfigurations.kt:393)
...
I think this is the entire related part (based on time)
2022-02-11 17:05:15,298 [ 819856] INFO - xecution.runners.ExecutionUtil - Error running 'sponsor-repl':<br>Error executing Leiningen configuration.
com.intellij.execution.ExecutionException: Error executing Leiningen configuration.
at cursive.repl.runner.LocalConfiguration.createLeinParameters(ReplRunConfigurations.kt:516)
at cursive.repl.runner.LocalConfiguration.access$createLeinParameters(ReplRunConfigurations.kt:393)
at cursive.repl.runner.LocalConfiguration$getRunProfileState$1.createDeferredParameters(ReplRunConfigurations.kt:432)
at cursive.runner.DeferredCommandLineState.cacheDeferredParameters(Deferred.kt:72)
at cursive.runner.AbstractDeferredRunner$execute$1.run(Deferred.kt:104)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:436)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:120)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:496)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:244)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:244)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
2022-02-11 17:05:18,104 [ 822662] WARN - vdmanager.AvdManagerConnection - No Android SDK Found