Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError: 'EditorColorsManager.addEditorColorsListener' since intellij-idea-2022-1 #927

Closed
qwazer opened this issue Mar 5, 2022 · 3 comments

Comments

@qwazer
Copy link

qwazer commented Mar 5, 2022

The plugin fails with

Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled. Please restart IntelliJ IDEA.

java.lang.NoSuchMethodError: 'void com.intellij.openapi.editor.colors.EditorColorsManager.addEditorColorsListener(com.intellij.openapi.editor.colors.EditorColorsListener, com.intellij.openapi.Disposable)'
    at com.vladsch.md.nav.MdPlugin.initComponent(MdPlugin.kt:154)
    at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:44)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:119)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:73)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:66)
    at com.intellij.serviceContainer.ComponentManagerImpl$createInitOldComponentsTask$1.run(ComponentManagerImpl.kt:394)
    at com.intellij.idea.ApplicationLoader$prepareStart$1.run(ApplicationLoader.kt:208)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:215)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:197)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:511)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:69)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:112)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
@qwazer qwazer changed the title intellij-idea-2022-1-eap-4: Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled. java.lang.NoSuchMethodError: 'void com.intellij.openapi.editor.colors.EditorColorsManager.addEditorColorsListener(com.intellij.openapi.editor.colors.EditorColorsListener, com.intellij.openapi.Disposable)' intellij-idea-2022-1-eap-4: Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled. NoSuchMethodError: 'EditorColorsManager.addEditorColorsListener' Mar 5, 2022
@qwazer
Copy link
Author

qwazer commented Mar 18, 2022

relates to

@Suppress("DEPRECATION")
EditorColorsManager.getInstance().addEditorColorsListener(EditorColorsListener {

@qwazer qwazer changed the title intellij-idea-2022-1-eap-4: Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled. NoSuchMethodError: 'EditorColorsManager.addEditorColorsListener' intellij-idea-2022-1-eap-4: NoSuchMethodError: 'EditorColorsManager.addEditorColorsListener' Aug 9, 2022
@qwazer qwazer changed the title intellij-idea-2022-1-eap-4: NoSuchMethodError: 'EditorColorsManager.addEditorColorsListener' NoSuchMethodError: 'EditorColorsManager.addEditorColorsListener' since intellij-idea-2022-1 Aug 9, 2022
@Eriky-git
Copy link

有解决方式了吗 我也遇到同样问题

@vsch
Copy link
Owner

vsch commented May 24, 2023

This should be fixed in the latest update release in the JetBrains Marketplace: https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced/versions/stable/331235

@vsch vsch closed this as completed May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants