vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
813 stars 129 forks source link

Syntax Highlight Permutations can cause: Too many element types exception #797

Closed vsch closed 4 years ago

vsch commented 4 years ago

Although the plugin creates a maximum of 3600 permutations if allowed by options, due to the bug this number can be doubled, tripled or quadrupled if the plugin is loaded by different class loaders.

The class doing the computation is erroneously a Kotlin object instead of an application service and will create an instance per class loader.