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

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

Closed
matthewcornell opened this issue Jul 27, 2021 · 14 comments
Closed

Comments

@matthewcornell
Copy link

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)

@RashiqAzhan
Copy link

RashiqAzhan commented Jul 27, 2021

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.

@abrookins
Copy link
Owner

Crap, I might actually have to main this?? 😂

@RashiqAzhan
Copy link

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.

@chrismo
Copy link

chrismo commented Jul 28, 2021

+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?!?!" ;)

@abrookins
Copy link
Owner

abrookins commented Jul 28, 2021 via email

@chrismo
Copy link

chrismo commented Jul 29, 2021

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

@JeffreyStevens
Copy link

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!

@SchumacherFM
Copy link

Thanks for this plugin! Love it!

Same error in Goland ;-)

@stephenpassero
Copy link

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

@edgarsi
Copy link
Contributor

edgarsi commented Aug 3, 2021

See #41

Tnx @chrismo!

@abrookins
Copy link
Owner

abrookins commented Aug 3, 2021

[edited]

Thanks folks! I'll do my best to remember how to upload this. 😂

@dpatriarche
Copy link

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.

@abrookins
Copy link
Owner

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!

@abrookins
Copy link
Owner

Update: I've called in some backup from JetBrains. 😅

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

9 participants