cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-01-27T01:03:18.048500Z

Actually, re-reading that doc there is this bit: > Also, you might have to configure your aliases (for deps) or your profiles (for Leiningen).

cfleming 2021-01-27T01:03:25.048700Z

But it could probably be more visible.

đź‘Ť 1
Oliver George 2021-01-27T01:54:17.048900Z

ah, yep.

kari 2021-01-27T16:50:56.051200Z

Is there a way to configure a hotkey so that using that hotkey I could activate either REPL 1 or REPL 2 (e.g. frontend / backend). I develop a full stack app and have both frontend and backend REPLs and jumping in the editor between frontend and backend code and would like to switch the active REPL using a hotkey instead of getting my hand from my dear Dygma Raise keyboard to the mouse and click the "frontend" or "backend" tab:

kari 2021-01-28T09:19:28.058200Z

Sorry for asking this here, it is IDEA specific and the same command that switches tab in any IDEA window. So, I have a hot key to switch focus to REPL window, then another hotkey to switch tab, hotkey to jump back to editor. Case closed.

aratare 2021-01-28T16:17:55.060900Z

It would be nice if we can have a choice of which repl when sending forms.

aratare 2021-01-28T16:18:19.061100Z

and evaluating such forms will automatically switch to the repl to show the results.

Joni 2021-02-01T08:23:38.066400Z

I have a hotkey for focusing the repl then just switch tabs with ctrl + right/left arrow

Daniel Wellman 2021-01-27T20:57:14.056400Z

Hello! I’m having problems opening a specific Leiningen project in IntelliJ 2020.3.2 with Cursive 1.10.0-2020.3. When I try to open the project folder (has a project.clj and no .idea folder or .iml) the idea.log has a message: ERROR - .LeiningenProjectOpenProcessor - Error opening project  java.lang.ClassCastException: class clojure.lang.Keyword cannot be cast to class java.lang.String I just tried creating a brand new Leiningen app and it opened fine, so I suspect there may be something with this specific project’s Leiningen configuration. Any suggestions where I should start investigating? I’ll post the full stack trace in a thread.

Daniel Wellman 2021-01-28T13:45:32.059600Z

Oh! Thank you for pointing this out — I’ll look into the lein-v plug-in to learn more about that.

Daniel Wellman 2021-01-27T20:58:00.056500Z

2021-01-27 14:54:49,532 [1409073]  ERROR - .LeiningenProjectOpenProcessor - Error opening project 
java.lang.ClassCastException: class clojure.lang.Keyword cannot be cast to class java.lang.String (clojure.lang.Keyword is in unnamed module of loader java.net.URLClassLoader @41915c2f; java.lang.String is in module java.base of loader 'bootstrap')
	at cursive.leiningen.project.LeiningenProjectOpenProcessor$getProjectInfo$1.run(ImportProject.kt:466)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962)
	at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:520)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$new$0(ProgressRunner.java:79)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
	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:834)
2021-01-27 14:54:49,533 [1409074]  ERROR - .LeiningenProjectOpenProcessor - IntelliJ IDEA 2020.3.2  Build #IU-203.7148.57 
2021-01-27 14:54:49,533 [1409074]  ERROR - .LeiningenProjectOpenProcessor - JDK: 11.0.9.1; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2021-01-27 14:54:49,533 [1409074]  ERROR - .LeiningenProjectOpenProcessor - OS: Mac OS X 
2021-01-27 14:54:49,533 [1409074]  ERROR - .LeiningenProjectOpenProcessor - Plugin to blame: Cursive version: 1.10.0-2020.3 
2021-01-27 14:54:49,533 [1409074]  ERROR - .LeiningenProjectOpenProcessor - Last Action: WelcomeScreen.OpenProject 

markaddleman 2021-01-27T22:23:51.056700Z

Can you post your project.clj? I'm guessing there is some non-standard data in there. Perhaps Leiningen is not sensitive to it but (obviously) Cursive is

Daniel Wellman 2021-01-27T22:28:33.056900Z

It’s from an open source project that I opened — https://github.com/empear-analytics/codescene-ci-cd/blob/master/project.clj

markaddleman 2021-01-27T23:13:24.057200Z

Yeah, I thought I recognized this error. It's because the project is using the "lein-v" Leiningen plugin.

markaddleman 2021-01-27T23:13:49.057400Z

Notice that the version identifier in the project.clj is :lein-v - Cursive expects this to be a string.

markaddleman 2021-01-27T23:14:22.057600Z

Normally, it is but the lein-v plugin allows it to be a keyword (it must play some games under the covers with Leiningen)