Fork me on GitHub
#cursive
<
2023-09-13
>
devurandom09:09:29

I get this exception every single time I start IntelliJ: com.intellij.diagnostic.PluginException: Cannot init toolwindow cursive.deps.navigator.DepsToolWindowFactory@47b29e8f [Plugin: com.cursiveclojure.cursive] (full stacktrace in:thread:) Is this a know issue? Is there a workaround? Is a fix for it already being worked on?

devurandom09:09:42

com.intellij.diagnostic.PluginException: Cannot init toolwindow cursive.deps.navigator.DepsToolWindowFactory@47b29e8f [Plugin: com.cursiveclojure.cursive]
	at com.intellij.toolWindow.ToolWindowSetInitializerKt.registerToolWindows(ToolWindowSetInitializer.kt:191)
	at com.intellij.toolWindow.ToolWindowSetInitializerKt.access$registerToolWindows(ToolWindowSetInitializer.kt:1)
	at com.intellij.toolWindow.ToolWindowSetInitializer$createAndLayoutToolWindows$entries$1$1.invoke(ToolWindowSetInitializer.kt:129)
	at com.intellij.toolWindow.ToolWindowSetInitializer$createAndLayoutToolWindows$entries$1$1.invoke(ToolWindowSetInitializer.kt:121)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:248)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:199)
	at com.intellij.toolWindow.ToolWindowSetInitializer$createAndLayoutToolWindows$entries$1.invokeSuspend(ToolWindowSetInitializer.kt:121)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:193)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
	at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:478)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:121)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:685)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:589)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:589)
	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.IllegalArgumentException: window with id="Clojure Deps" is already registered
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.registerToolWindow$intellij_platform_ide_impl(ToolWindowManagerImpl.kt:1039)
	at com.intellij.toolWindow.ToolWindowSetInitializerKt.registerToolWindows(ToolWindowSetInitializer.kt:181)
	... 43 more

cfleming11:09:41

It looks like that should have a root cause exception, can you paste that one too?

devurandom11:09:33

This is the only one I see in the dialogue. I believe it is called stacktrace.txt. But I will check again next time.

devurandom12:09:20

Yes, stacktrace.txt is the only entry on the left-hand side.

devurandom12:09:09

The exception report ID is 35111, if that helps to correlate data.

cfleming06:09:31

Thanks, I’ll take a look at the report and see if there’s more info.

cfleming04:09:41

I can’t see anything wrong with the code here, I’ve asked JetBrains about it: https://youtrack.jetbrains.com/issue/IDEA-332621/ToolWindow-already-registered-error-under-2023.2

🙏 1
cfleming10:09:53

Can you send a log file from when you’ve repro’ed this problem, please? They’ve asked for it over on that issue. If you don’t have a YouTrack account, feel free to send it to me and I’ll attach it there (privately, so only they can see it).

👍 1
devurandom09:09:10

Done. Thanks for the heads up and for following this seemingly very rare problem!

roklenarcic14:09:16

I am having a bit of a problem getting expressions to work in debugging window:

Adrian Smith14:09:53

I've seen this a lot too, typically once it's happened that error also appears in tooltips when hovering over symbols too

cfleming02:09:16

I’ll try to reproduce this and see if I can figure it out.

Adrian Smith08:09:46

It seems a bit random in activation, tend to be using the debugger generally :thinking_face:

cfleming02:09:02

When you get these exceptions, do they come out in the log at all?

👀 1
roklenarcic14:09:31

whatever I type in that box I get compilerexception

roklenarcic14:09:47

even if I just say prefix which is a local variabl

octahedrion14:09:14

some of my REPLs don't go into the namespace after the first "load file in REPL" command and so I have to do "switch REPL NS to current file", whereas with other projects I don't have to do that and I don't know why

cfleming02:09:15

Hmm, I can’t see why this would happen, sorry. When this happens, does it happen for all namespaces in a project, or just for random namespaces?

octahedrion09:11:54

for anyone searching, the reason for this was that "Load file in REPL" doesn't switch to the namespace of that file as I thought it did, you have to do "Switch REPL NS to current file" too