Fork me on GitHub
#cursive
<
2022-02-10
>
Dumch09:02:40

Is there a way to ignore anything inside comment form (like in emacs)? I don’t want to see errors there

👀 1
souenzzo12:02:41

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

thanks3 2
roklenarcic13:02:33

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&amp;cid=C02B5GHQWP4

R.A. Porter13:02:09

Try opening the Clojure Deps tool window, then expanding the Tool Alias folder. Check the build alias.

roklenarcic15:02:55

Yeah I did and I still get that message

dvingo15:02:51

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.

cfleming22:02:08

@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.

roklenarcic08:02:42

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.

cfleming10:02:27

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

Grant Horner17:02:56

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

cfleming22:02:40

Hmm, I see. Yeah, an issue would be good, thanks.

James Vickers21:02:25

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)
...

cfleming22:02:05

Is there another exception following that one in the logs?

James Vickers15:02:12

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