Solvedidea gitignore NoClassDefFoundError, Version 3.2.0 on IntelliJ 2019.2


  • Plugin is in the latest version
  • Issue was not reported yet
  • Stack trace (if provided) contains mobi.hsz.idea.gitignore package name


java.lang.NoClassDefFoundError: org/zmlx/hg4idea/ignore/lang/HgIgnoreFileType
	at mobi.hsz.idea.gitignore.outer.OuterIgnoreLoaderComponent$IgnoreEditorManagerListener.determineIgnoreLanguage(
	at mobi.hsz.idea.gitignore.outer.OuterIgnoreLoaderComponent$IgnoreEditorManagerListener.fileOpened(
	at jdk.internal.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.base/java.lang.reflect.Method.invoke(
	at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(
	at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(
	at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(
	at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(
	at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(
	at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(
	at com.intellij.util.messages.impl.MessageBusImpl.lambda$createTopicHandler$1(
	at com.sun.proxy.$Proxy96.fileOpened(Unknown Source)
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4Edt$8(
	at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$5$
	at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$3(
	at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(
	at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(
	at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(
	at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$null$2(
	at com.intellij.openapi.application.TransactionGuardImpl$
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(
	at com.intellij.openapi.application.impl.LaterInvocator$
	at java.desktop/java.awt.event.InvocationEvent.dispatch(
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue.dispatchEvent(
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(
	at com.intellij.ide.IdeEventQueue._dispatchEvent(
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(
	at com.intellij.ide.IdeEventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/
Caused by: java.lang.ClassNotFoundException: org.zmlx.hg4idea.ignore.lang.HgIgnoreFileType PluginClassLoader[mobi.hsz.idea.gitignore,]
	at java.base/java.lang.ClassLoader.loadClass(
	... 44 more

Steps to Reproduce

  1. Open TypeScript file.
  2. That's it.

Reproduces how often:






IntelliJ IDEA 2019.2 (Ultimate Edition)
Build #IU-192.5728.98, built on July 22, 2019
Runtime version: 11.0.3+12-b304.10 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Non-Bundled Plugins: String Manipulation, YAML/Ansible support, com.dubreuia, com.intellij.apacheConfig, com.jetbrains.plugins.ini4idea, com.intellij.plugins.watcher, com.oliverlockwood.plugins.jenkinsfile, mobi.hsz.idea.gitignore, nl.jworks.intellij.bootstrap3, org.intellij.plugins.postcss, BashSupport, ImportCost, Karma, com.dmarcotte.handlebars, com.intellij.plugins.html.instantEditing, com.intellij.plugins.webcomponents, com.jetbrains.plugins.yeoman, intellij.prettierJS, jballant.CommonJSAutoComplete, org.jetbrains.plugins.vue, com.emberjs, ru.adelf.idea.dotenv, training, wallaby.js


macOS Mojave 10.4.6
17 Answers

✔️Accepted Answer


Ok, let me clarify the whole situation here, because we run into some chaos here.

.ignore plugin was supposed to not support IDE in version 2019.2+ (IntelliJ, PhpStorm, Android Studio and so on) because of the native support for the .gitignore files in the IDE.

In addition, this repository was transferred from my @hsz account to @JetBrains.

After that, there was a decision to release v3.2.0 with some changes - .gitignore and .hgignore files will be supported by the native code. Everything else stays as was before (except PayPal donation balloon and references in IDE/README). 🙂

Unfortunately, the last update contains a commit (a47a934), there was a reference to the class from Mercurial plugin: org.zmlx.hg4idea.ignore.lang.HgIgnoreFileType.
If the Mercurial plugin is disabled in your IDE - class is not available, and we run into NoClassDefFoundError exception.
So a workaround for the v3.2.0 issue is already mentioned: enabling of the Mercurial plugin.

Anyway - there is a fix for this problem already commited (aca47b9) by @dmitry-zhuravlev
Commit contains fix keyword, so this is the reason, current thread was closed automatically.

To be honest, I do not know, why the v3.2.0 was not taken down and new version with the fix was released - maybe there is a reason for that? Since it was done by the JB employees, I'll put on hold any of my actions.

I hope that the whole situation will straighten up quickly. Stay tuned! ❤️
BTW, I'll still be responsible for the bugfixing and support of the .ignore plugin in older IDE versions.

hsz - Jakub Chrzanowski

Other Answers:

Considering various repos handle that in different ways, there's not really any way for us to know without asking. There's no need to be that hostile when a simple question is asked that has no clear answer at that point. Are you a software developer? I'm sure you'd understand that asking questions is critical if you're unsure of something. :)


@ice1000 @MartinX3

IDE will provide some built-in support for .gitignore/.hgignore but the .ignore plugin should still be available as far as I know with non conflicting features.


The new version ( with the fix was released. Thanks to all for the patience!


Is there a reason this is closed? What version fixes this issue as I've run into it just now.

More Issues: