Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

GoLand plugin crashes 100% of the time with GoLand 2024.2 #165

Open
madhurbhaiya opened this issue Aug 31, 2024 · 4 comments
Open

GoLand plugin crashes 100% of the time with GoLand 2024.2 #165

madhurbhaiya opened this issue Aug 31, 2024 · 4 comments

Comments

@madhurbhaiya
Copy link

Whenever I open a project in GoLand 2024.2 that uses the plugin, the plugin crashes with:

java.lang.Throwable: com.ypwang.plugin.UtilitiesKt <clinit> requests com.intellij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
	at com.intellij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1588)
	at com.intellij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1557)
	at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at com.intellij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at com.ypwang.plugin.UtilitiesKt.<clinit>(Utilities.kt:28)
	at com.ypwang.plugin.GoLinterSettingsTracker$runActivity$1.run(GoLinterSettingsTracker.kt:76)
	at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:477)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:528)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:249)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:221)
	at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:49)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:220)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:659)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:249)
	at com.intellij.openapi.progress.impl.ProgressRunner$ProgressRunnable.run(ProgressRunner.java:501)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:466)
	at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:92)
	at com.intellij.util.concurrency.ChildContext$runAsCoroutine$1.invoke(propagation.kt:92)
	at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:97)
	at com.intellij.util.concurrency.ChildContext.runAsCoroutine(propagation.kt:92)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$19(ProgressRunner.java:464)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Please fix.

@OStrekalovsky
Copy link

Hi @xxpxxxxp!
Is this project still supported? JetBrains currently do not have their own implementation for golangci-lint support.
Is anyone already working on a fix or do you need help (pull request) to resolve this issue?

@straiway
Copy link

Hi @xxpxxxxp! Is this project still supported? JetBrains currently do not have their own implementation for golangci-lint support. Is anyone already working on a fix or do you need help (pull request) to resolve this issue?

This is what the author said in the README:

I'm in touch with jetbrains they are willing to take over the plugin development to officially support golangci-lint in IDE. I will no longer adding new features from now on. Cheers! Let's hope jetbrains makes it better.

But no plugins about golangci-lint supported officially were found yet.

@xxpxxxxp
Copy link
Owner

Hi @OStrekalovsky @straiway JetBrains is going to take over the plugin very soon, before that I'll still provide limited support to make sure the plugin works as it is right now. I'll make a new release to address this issue in this week.

@OStrekalovsky
Copy link

OStrekalovsky commented Sep 30, 2024

@xxpxxxxp thanks for fix, don't forget to publish updated version to Plugin Marketplace :-)

It's strange that GoLand 2024.2.3 no longer complains about the old version of plugin...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants