abrookins/WrapToColumn

IDEA 2021.2 (Ultimate Edition) causing java.lang.ClassNotFoundException

matthewcornell opened this issue ยท 14 comments

Hi. Thanks so much for your plugin. It's great. Unfortunately I get this error after upgrading IDEA:

Plugin 'com.andrewbrookins.wrap_to_column' failed to initialize and will be disabled. Please restart IntelliJ IDEA.

Thanks.

IDEA version

IntelliJ IDEA 2021.2 (Ultimate Edition)
Build #IU-212.4746.92, built on July 27, 2021
Runtime version: 11.0.11+9-b1504.13 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: toolwindow.active.tab.contrast.background.color=255,255,255, debugger.watches.in.variables=false
Non-Bundled Plugins: Statistic (4.1.7), org.jetbrains.plugins.localization (212.4746.57), org.toml.lang (0.2.151.3997-212), Pythonid (212.4746.92), R4Intellij (212.4535.4), ru.adelf.idea.dotenv (2021.2.212)
Kotlin: 212-1.5.10-release-IJ4746.92

stack trace

Plugin 'com.andrewbrookins.wrap_to_column' failed to initialize and will be disabled. Please restart IntelliJ IDEA.

java.lang.ClassNotFoundException: com.andrewbrookins.idea.wrap.config.WrapSettingsProvider
         PluginClassLoader(plugin=PluginDescriptor(name=Wrap to Column, id=com.andrewbrookins.wrap_to_column, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/IntelliJIdea2021.2/plugins/WrapToColumn, version=1.4.0, package=null), packagePrefix=null, instanceId=14, state=active)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:254)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponent(ComponentManagerImpl.kt:441)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:380)
    at com.intellij.serviceContainer.ComponentManagerImpl.access$registerComponents(ComponentManagerImpl.kt:58)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:255)
    at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:63)
    at com.intellij.idea.ApplicationLoader$initApplication$2$1.accept(ApplicationLoader.kt:77)
    at com.intellij.idea.ApplicationLoader$initApplication$2$1.accept(ApplicationLoader.kt)
    at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:753)
    at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:731)
    at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2108)
    at com.intellij.idea.ApplicationLoader$initApplication$2.apply(ApplicationLoader.kt:75)
    at com.intellij.idea.ApplicationLoader$initApplication$2.apply(ApplicationLoader.kt)
    at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at com.intellij.idea.ApplicationLoader$initApplication$3.execute(ApplicationLoader.kt:107)
    at java.base/java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568)
    at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1069)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1742)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1728)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

I second this. I am facing the same problem.

This is an essential plugin for some of my projects and I would greatly appreciate a solution.

Crap, I might actually have to main this?? ๐Ÿ˜‚

Crap, I might actually have to main this?? ๐Ÿ˜‚

Not really. You have my gratitude for even creating this, even if you don't update it.

For anyone still here. I turned on soft wraps in the IDE as a work around for this in the meantime. It resizes the text to fit within the window width without going off the screen.

+1 for RubyMine 2021.2

Lemme know if you need any assistance. Been a while since I did any IDE hacking in Java, but ... "how hard could it be?!?!" ;)

The error seems odd, that it suddenly can't find a class in a plugin that hasn't changed. I found this issue in their issue tracker - seems similar.

https://youtrack.jetbrains.com/issue/IDEA-272393

please try removing whitespace inside declaration in your plugin.xml

Maybe this issue: https://youtrack.jetbrains.com/issue/IDEA-272164#focus=Comments-27-4979754.0-0

Ah, this issue seems pretty similar as well: https://youtrack.jetbrains.com/issue/IDEA-274533

I use this plugin too and would really like to see it fixed. I'm a lazy programmer that likes to type and edit what I typed multiple times so this plugin has been a nice code cleanup tool for me!

Thanks for this plugin! Love it!

Same error in Goland ;-)

Just installed this in RubyMine, and am experiencing the same problem

See #41

Tnx @chrismo!

[edited]

Thanks folks! I'll do my best to remember how to upload this. ๐Ÿ˜‚

I get the feeling that JetBrains' own source code must not enforce a hard-wrap boundary, so wrapping comments is not something they think about.

Progress continues. I've been trying to get IntelliJ to build my plugin, or even recognize the project as a plug-in, but alas it will not. I'll continue tonight!

Update: I've called in some backup from JetBrains. ๐Ÿ˜