cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-05-31T04:59:29.053200Z

https://twitter.com/CursiveIDE/status/1399228633550516229

2👍1
onetom 2021-06-01T03:40:08.058600Z

unfortunately, im only getting an empty window when IntelliJ 2021.2 EAP is trying to load my previously open project. it starts showing a progress bar to load the project, but that popup just disappears and leaves a completely empty window behind, with not toolbar or tool-window controls or status bar. if i open an other recent project (the clojurescript source code for example) i just get a new empty window too. i tried invalidating the caches, but it did not change anything, i still behaved the same after restart

onetom 2021-06-01T04:00:21.058800Z

i suspect, it's related to the fact that i had to reinstall my nix after upgrading to the latest macOS update, so neither the clojure cli path, nor the java sdk paths are valid anymore.

onetom 2021-06-01T04:22:03.059Z

i've updated the path to Clojure CLI, but that wasn't sufficient.

cfleming 2021-06-01T04:30:53.059200Z

If you create a new project, does that create successfully?

onetom 2021-06-01T04:51:39.060Z

nope. i've done the following:

cd /tmp
git clone ~/some/project
rm -rf project/.idea
rm $(fd .iml project/)
idea-eap /tmp/project
and i've just ended up with an empty window

onetom 2021-06-01T04:53:46.060200Z

i got these files created in /tmp/project/.idea/:

-rw-r--r--   1 onetom  wheel   176B Jun  1 12:49 ClojureProjectResolveSettings.xml
-rw-r--r--   1 onetom  wheel   622B Jun  1 12:49 misc.xml
-rw-r--r--   1 onetom  wheel   879B Jun  1 12:49 workspace.xml
where the ClojureProjectResolveSettings.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ClojureProjectResolveSettings">
    <currentScheme>IDE</currentScheme>
  </component>
</project>

onetom 2021-06-01T05:10:57.066800Z

i've tried something even simpler:

$ mkdir deps-skeleton
$ cd deps-skeleton
$ echo '{}' > deps.edn
$ idea-eap .
and I got a dialog, titled Error Loading Default Project, with a content saying java.lang.StackOverflowError and an OK button.

onetom 2021-06-01T05:11:27.067Z

and this dialog appeared right on top of the splash screen

onetom 2021-06-01T05:12:16.067200Z

this sounds like something which should be reproducible

onetom 2021-06-01T05:13:17.067600Z

I'm on macOS 11.4 (20F71) and the latest 2021.2 EAP IntelliJ Ultimate, I could download through the JetBrains Toolbox

onetom 2021-06-01T05:13:52.067800Z

and Cursive 1.10.3-eap1-2021.21

cfleming 2021-06-01T05:17:48.068300Z

Can you email me your log file?

cfleming 2021-06-01T05:17:59.068500Z

<mailto:cursive@cursive-ide.com|cursive@cursive-ide.com>

cfleming 2021-06-01T05:18:15.068700Z

Help-&gt;Show log in Finder

1👍
cfleming 2021-06-01T06:57:53.069200Z

This is the SOE:

2021-06-01 13:09:21,558 [  52221]  ERROR - llij.ide.plugins.PluginManager - java.util.concurrent.ExecutionException: java.lang.StackOverflowError 
java.util.concurrent.CompletionException: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
	at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1742)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool.awaitQuiescence(ForkJoinPool.java:2984)
	at com.intellij.idea.StartupUtil.start(StartupUtil.java:286)
	at com.intellij.idea.Main.bootstrap(Main.java:117)
	at com.intellij.idea.Main.main(Main.java:83)
Caused by: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2022)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl.openProject(ProjectManagerExImpl.kt:73)
	at com.intellij.platform.PlatformProjectOpenProcessor$Companion.doOpenProject(PlatformProjectOpenProcessor.kt:128)
	at com.intellij.platform.PlatformProjectOpenProcessor.openProjectAndFile(PlatformProjectOpenProcessor.kt:251)
	at com.intellij.ide.CommandLineProcessor.doOpenFile(CommandLineProcessor.java:90)
	at com.intellij.ide.CommandLineProcessor.doOpenFileOrProject(CommandLineProcessor.java:61)
	at com.intellij.ide.CommandLineProcessor.lambda$openFileOrProject$5(CommandLineProcessor.java:313)
	at com.intellij.ide.lightEdit.LightEditUtil.computeWithCommandLineOptions(LightEditUtil.java:241)
	at com.intellij.ide.CommandLineProcessor.openFileOrProject(CommandLineProcessor.java:309)
	at com.intellij.ide.CommandLineProcessor.processOpenFile(CommandLineProcessor.java:258)
	at com.intellij.ide.CommandLineProcessor.processExternalCommandLine(CommandLineProcessor.java:158)
	at com.intellij.idea.IdeStarterKt.loadProjectFromExternalCommandLine(IdeStarter.kt:207)
	at com.intellij.idea.IdeStarterKt.access$loadProjectFromExternalCommandLine(IdeStarter.kt:1)
	at com.intellij.idea.IdeStarter.openProjectIfNeeded(IdeStarter.kt:145)
	at com.intellij.idea.IdeStarter.main(IdeStarter.kt:79)
	at com.intellij.idea.ApplicationLoader$startApp$3.run(ApplicationLoader.kt:185)
	at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
	... 8 more
Caused by: java.lang.StackOverflowError
	at java.base/java.lang.String.indexOf(String.java:1691)
	at kotlin.text.StringsKt__StringsKt.indexOf(Strings.kt:1099)
	at kotlin.text.StringsKt__StringsJVMKt.replace(StringsJVM.kt:81)
	at kotlin.text.StringsKt__StringsJVMKt.replace$default(StringsJVM.kt:79)
	at com.intellij.ide.plugins.IdeaPluginDescriptorImplKt.pluginPathToUserString(IdeaPluginDescriptorImpl.kt:491)
	at com.intellij.ide.plugins.IdeaPluginDescriptorImpl.toString(IdeaPluginDescriptorImpl.kt:485)
	at java.base/java.lang.String.valueOf(String.java:2951)
	at java.base/java.lang.StringBuilder.append(StringBuilder.java:168)
	at com.intellij.ide.plugins.cl.PluginClassLoader.toString(PluginClassLoader.java:487)
	at java.base/java.lang.String.valueOf(String.java:2951)
	at java.base/java.lang.StringBuilder.append(StringBuilder.java:168)
	at com.intellij.serviceContainer.ComponentManagerImplKt.doLoadClass(ComponentManagerImpl.kt:1452)
	at com.intellij.serviceContainer.ComponentManagerImplKt.access$doLoadClass(ComponentManagerImpl.kt:1)
	at com.intellij.serviceContainer.ComponentManagerImpl.loadClass(ComponentManagerImpl.kt:804)
	at com.intellij.serviceContainer.BaseComponentAdapter.getImplementationClass(BaseComponentAdapter.kt:38)
	at com.intellij.serviceContainer.BaseComponentAdapter.getComponentImplementation(BaseComponentAdapter.kt:31)
	at com.intellij.serviceContainer.MyComponentAdapter.toString(MyComponentAdapter.kt:65)
	at com.intellij.serviceContainer.BaseComponentAdapter.getImplementationClass(BaseComponentAdapter.kt:41)
	at com.intellij.serviceContainer.BaseComponentAdapter.getComponentImplementation(BaseComponentAdapter.kt:31)
	at com.intellij.serviceContainer.MyComponentAdapter.toString(MyComponentAdapter.kt:65)

cfleming 2021-06-01T06:58:06.069400Z

That doesn’t seem to be Cursive related at all, as far as I can tell.

cfleming 2021-06-01T06:59:02.069600Z

It looks like something is funny with your IntelliJ install, but I’m not sure what that might be.

onetom 2021-06-01T11:40:40.070Z

thank you for having a look! next time i will be able to debug 1 step further. indeed, on another machine, the configuration of the same jetbrains user and the same code repo, on the same code branch, does not exhibit the same behaviour. i did notice that despite having the configuration synced via a jetbrains account, i still have different sets of plugins on different machines, so the issue mostly likely stems from such difference, cause by some rogue plugin...

cfleming 2021-05-31T04:59:39.053400Z

EAP supporting this is out now.

wilkerlucio 2021-05-31T17:00:00.055500Z

hello, not a specific Cursive issue, but maybe somebody here knows it. My intellij stopped being able to find executables in my machine, things like bb and clj-kondo, I have File Watcher that uses clj-kondo, but since I upgrade IntelliJ it stopped working, IntelliJ says the executable is not available, but in a normal terminal it works fine, any ideas how to fix it?

wilkerlucio 2021-06-01T15:24:16.070200Z

in some cases I can, but not all

wilkerlucio 2021-06-01T15:29:32.070800Z

for anyone having this issue, seems like it fixes itself if I start IntelliJ from the terminal, instead of clicking on the dock icon

raspasov 2021-06-01T20:07:18.071Z

I think this happened to me as well for clj-kondo. What I think fixed it was using a full path to clj-kondo

raspasov 2021-06-01T20:08:22.071200Z

Full path under “Program:”

wilkerlucio 2021-06-01T20:32:37.072500Z

full path solved this problem to me, but them I had issues with my git hooks

wilkerlucio 2021-06-01T20:32:51.073200Z

and those I cant use full path because come from team shared files

wilkerlucio 2021-06-01T20:33:02.073700Z

starting from terminal made all work fine

1👍
cfleming 2021-05-31T21:52:01.055700Z

Yeah, deps now shells out to git and that actually worked which surprised me. The CWD of IntelliJ is inside the app somewhere, and env vars from your shell environment don’t usually get propagated to it correctly. I’m not sure why this would have broken though, can you use a full path to the executable?