This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-26
Channels
- # announcements (7)
- # babashka (6)
- # beginners (41)
- # clara (27)
- # clerk (2)
- # cljs-dev (6)
- # clojure (121)
- # clojure-europe (31)
- # clojure-nl (2)
- # clojure-norway (98)
- # clojure-uk (12)
- # clojuredesign-podcast (7)
- # conjure (5)
- # cursive (22)
- # holy-lambda (22)
- # hoplon (9)
- # hyperfiddle (19)
- # leiningen (9)
- # malli (4)
- # music (1)
- # nbb (6)
- # off-topic (10)
- # podcasts-discuss (1)
- # polylith (4)
- # re-frame (2)
- # reitit (2)
- # releases (1)
- # sci (1)
- # shadow-cljs (59)
- # sql (9)
- # vim (41)
- # xtdb (23)
Hi, Colin. I keep getting the following exception when IntelliJ IDEA starts and opens more than one projects at the same time.
com.intellij.diagnostic.PluginException: Cannot init toolwindow cursive.deps.navigator.DepsToolWindowFactory@9b080c4 [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:690)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:593)
at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:593)
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:997)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:997)
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
I’m not familiar with the internals of IntelliJ IDEA and how tool window are handled in it but it feels like you can register a tool window only once but Cursive here is trying to register it more than once when two IntelliJ IDEA windows are created and shown one after another.
This seems to be an IntelliJ bug, new in 2023.2: https://youtrack.jetbrains.com/issue/IDEA-332621
It’s possible I’m doing something wrong of course, and that a platform change exposed that.
Unfortunately I’ve never managed to reproduce it, and every time my IntelliJ restarts it has multiple projects open.
Yeah, the multi-window/project feature of IntelliJ IDEA has always felt like playing Russian roulette: sometimes, it opens those projects in multiple tabs in a single window; sometimes, in separate windows; and some other times, it flat out shows a dark, blank window for one of the projects.
I wonder if that’s the issue, mine are always on the same monitor. I’ll try to reproduce with that.
Yep I can test that, I work on a laptop but mostly with the lid closed and an external monitor.
The thing is it’s difficult to tell for sure on which monitors IntelliJ IDEA decides to open those projects. 🎲
Hi, Colin. Following up on this issue, I think I found the steps to reproduce it. It turns out this can be reproduced in a single project and single monitor set-up (MacBook Pro’s built-in screen) as well: 0) start IntelliJ IDEA, if it’s not already running 1) ensure IntelliJ IDEA doesn’t automatically reopen projects when it starts up by unchecking the checkbox in the following screenshot. 2) restart IntelliJ IDEA 3) on the Welcome to IntelliJ IDEA splash screen, pick a recently opened project 4) you should get an error with the exception in the Notification tool window
Here is my system information: IntelliJ IDEA 2023.2.4 (Ultimate Edition) Build #IU-232.10203.10, built on October 24, 2023 Licensed to <REDACTED> / Salam Elbilig You have a perpetual fallback license for this version. Subscription is active until August 8, 2024. Runtime version: 17.0.8.1+7-b1000.32 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.1 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16 Metal Rendering is ON Registry: debugger.new.tool.window.layout=true ide.experimental.ui=true Non-Bundled Plugins: com.intellij.ideolog (222.1.0.0) String Manipulation (9.11.3) org.intellij.plugins.hcl (232.8660.88) name.kropp.intellij.makefile (232.8660.88) com.intellij.kubernetes (232.10203.2) PlantUML integration (7.3.0-IJ2023.2) com.cursiveclojure.cursive (1.13.1-eap8-2023.2) Kotlin: 232-1.9.20-release-507-IJ10072.27
Thanks Colin! Downloaded EAP-8 and the test markers are back! I'm so grateful, this makes my life so much easier not having to switch back to IntelliJ 2021 every time I need to check why the tests fail!! 🙏 🙌 🙏 🙌 🙏 🙌 🙏 🙌 🙏 🙌
YES! Love you Colin! I can finally retire my "side-by-side" 2021.1.3 / 1.12.3 P.S. Download it from https://plugins.jetbrains.com/plugin/8090-cursive/versions/eap if you don't have "Check for EAP builds" under "Language and Frameworks > Clojure"