NullPointerException with v2016.3 EAP (163.6110.12)
Just a heads up that a NPE is being thrown in the latest 2013.3 EAP (163.6110.12) during the startup of IDEA. You are forced to disable the plugin in order to get IDEA to start.
Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled. Please restart IntelliJ IDEA.
java.lang.NullPointerException
at com.vladsch.idea.multimarkdown.highlighter.MultiMarkdownHighlighterColors.migrateAttributes(MultiMarkdownHighlighterColors.java:219)
at com.vladsch.idea.multimarkdown.MultiMarkdownPlugin.initComponent(MultiMarkdownPlugin.kt:133)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:125)
at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:441)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:448)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:109)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:400)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:386)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.idea.MainImpl$1$1.a(MainImpl.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
@Javaru, thanks for the heads up. It is a change in the latest IDE behaviour. I will post a patch once I have another breaking behaviour figured out.
For some reason the latest EAP complains about a class not found when the class file is in the right place. Don't know if it is a Kotlin issue or something else.
YouTrack issue opened: https://youtrack.jetbrains.com/issue/IDEA-162576
@Javaru, Public Preview 2016.3 EAP has the issue of plugin failing fixed. You will need to download and install from disk patch version 2.1.1.6: https://github.com/vsch/idea-multimarkdown/raw/master/dist/idea-multimarkdown.2.1.1.6.zip that fixes the original issue you reported.
This version also includes early preview of HTML export functionality, it also has per project Markdown settings for: preview, parser, stylesheet, html generation and html export.
For HTML export description see: #314
Unfortunately, after d/l 2.1.1.6 I get a new error
`Plugin 'com.vladsch.idea.multimarkdown' failed to initialize and will be disabled. Please restart IntelliJ IDEA.
java.lang.NoClassDefFoundError: com/vladsch/smart/BitSetEnum
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:274)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:270)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:239)
at com.intellij.ide.plugins.cl.PluginClassLoader.b(PluginClassLoader.java:119)
at com.intellij.ide.plugins.cl.PluginClassLoader.a(PluginClassLoader.java:73)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.vladsch.idea.multimarkdown.settings.MarkdownParserSettings$ParserOptions.
Maybe I didn't manually update the plugin properly?
@bstout, since you are not getting the NPE it seems that you did upgrade the plugin.
Did you upgrade the IDE to Public Preview 2016.3 EAP? The build should be 163.6512.17.
It seems to have the NoClassDefFoundError fixed.
I am running IntelliJ IDEA 2016.3 EAP Build #IU-163.6512.17, built on October 19, 2016 IntelliJ IDEA EAP User
@bstout, I guess there is still an issue with 2016.3 but for some reason on my system, identical build to yours is working with the patched version. It also has no trouble running the previous version of the plugin without the fix for NPE. Seems that issue was also fixed on the IDE.
Can you try uninstalling the plugin and installing it again, just in case something went wrong with the installation.
I re-installed a few times. I've not manually installed a plugin before but just said to load from disk and picked the idea-markdown.jar in the 2.1.1.6 dir and seemed okay. I'm running the unregistered version - if that might matter.
@bstout, in that case it is installed wrong.
You need to install from disk and select the installation zip file. Do not unzip the distribution, just select the distribution zip. The IDE does it all. Just selecting the jar causes it to be missing all the supporting files.
Perfect - no more error - so disregard my NoClassDefFoundError msg.
Only the "show editor only" button is enabled - it looks to have some syntax highlighting and bold/italic/etc.. buttons in a toolbar. I see no HTML. The Markdown support plugin seems more functional. I bring this up because I think maybe I still don't have things set up properly to evaluate and register as was my intent after looking at the screenshot and docs of this plugin. Do I need to do more or ..?
@bstout, to enable the enhanced features you need to get a trial license: https://vladsch.com/product/markdown-navigator/try
Can you please be more specific about the features of Markdown Support plugin that make it seem more functional? I would like to address them in Markdown Navigator.
@vsch - I can confirm that the manual install of v2.1.1.6 (enhanced edition) in IntelliJ IDEA 2016.3 Public Preview (163.6512.17) works and resolves this issue.
Thanks for the fast turn around. And thanks for this plugin. I use to avoided writing/using markdown docs until I started using your plugin. Even basic editing is better with it. The preview mode, especially side-by-side, makes things so much easier. And the advanced editing rocks. For example. it was so cool the other day when I was adding an XML code sample to a doc and Markdown Navigator gave me full IDEA XML editing abilities when editing the snippet. And I think you have priced it very reasonably so you don't mind paying for the large feature set, especially knowing you are supporting a plugin author for their hard work.
@Javaru, thank you for the feedback and thank you for your support. It is encouraging to know that having full IntjelliJ support for Markdown is appreciated.
Yes:
IntelliJ IDEA 2016.3 EAP Build #IU-163.6512.17, built on October 19, 2016 IntelliJ IDEA EAP User
On Fri, Oct 21, 2016 at 5:04 PM, Vladimir Schneider < [email protected]> wrote:
@bstout https://github.com/bstout, since you are not getting the NPE it seems that you did upgrade the plugin.
Did you upgrade the IDE to Public Preview 2016.3 EAP? The build should be 163.6512.17.
It seems to have the NoClassDefFoundError fixed.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vsch/idea-multimarkdown/issues/315#issuecomment-255492561, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtVtwfR00o7iGGd-MdMLJ6RLqJ1KZJtks5q2VMggaJpZM4KWXBH .
Ben Stout : Voice: 916-585-4236
EAP update released. Has lots of new features and improvements. You can enable the EAP update channel in the plugin or download and install from disk: https://github.com/vsch/idea-multimarkdown/raw/master/dist/idea-multimarkdown.2.1.1.40.zip