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

Exception in plugin Spacegrey Theme (1.4.2) #15

Open
MarcusTorndahl opened this issue Aug 19, 2021 · 4 comments
Open

Exception in plugin Spacegrey Theme (1.4.2) #15

MarcusTorndahl opened this issue Aug 19, 2021 · 4 comments

Comments

@MarcusTorndahl
Copy link

Software

IDE: PyCharm 2021.2 (Community Edition) - Build #PC-212.4746.96

Exception description

Do not request resource from classloader using path with leading slash

com.intellij.diagnostic.PluginException: /themes/spacegray-mt.xml [Plugin: com.github.mturlo.intellij.theme.spacegray]
at com.intellij.ide.plugins.cl.PluginClassLoader.findResource(PluginClassLoader.java:504)
at com.intellij.ide.plugins.cl.PluginClassLoader.findResource(PluginClassLoader.java:471)
at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1401)
at com.mallowigi.idea.MTBundledThemesManager.loadBundledTheme(MTBundledThemesManager.java:126)
at com.mallowigi.idea.MTBundledThemesManager.loadBundledThemes(MTBundledThemesManager.java:95)
at com.mallowigi.idea.MTLafComponent.initComponent(MTLafComponent.java:115)
at com.mallowigi.idea.MTLafComponent.appFrameCreated(MTLafComponent.java:74)
at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:645)
at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:624)
at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:390)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:372)
at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:33)
at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:179)
at com.sun.proxy.$Proxy52.appFrameCreated(Unknown Source)
at com.intellij.idea.IdeStarter.openProjectIfNeeded(IdeStarter.kt:98)
at com.intellij.idea.IdeStarter.main(IdeStarter.kt:77)
at com.intellij.idea.ApplicationLoader$startApp$3.run(ApplicationLoader.kt:185)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
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)

@mturlo
Copy link
Owner

mturlo commented Aug 19, 2021

Hi Marcus, thanks for reporting. What platform are you on? Windows/Linux/Mac?

@MarcusTorndahl
Copy link
Author

MarcusTorndahl commented Aug 20, 2021 via email

@mturlo
Copy link
Owner

mturlo commented Oct 19, 2021

Seems like this type of issue come up with IntelliJ IDEs from time to time. From my quick research it seems like they tend to get fixed in the next minor version and then come up again later in a random EAP.

Examples:

I haven't yet found a good workaround to be implemented on the plugin side.

@gall78
Copy link

gall78 commented Feb 13, 2022

Hi Maciej.
I had in PhpStrom ver. 2021.2.4 error:

Calling ClassLoader#getResource with leading slash doesn't work; strip

com.intellij.diagnostic.PluginException: /themes/spacegray-mt.xml [Plugin: com.github.mturlo.intellij.theme.spacegray]
	at com.intellij.ide.plugins.cl.PluginClassLoader.doFindResource(PluginClassLoader.java:492)
	at com.intellij.ide.plugins.cl.PluginClassLoader.findResource(PluginClassLoader.java:439)
	at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1401)
	at com.mallowigi.idea.MTBundledThemesManager.loadBundledTheme(MTBundledThemesManager.java:150)
	at com.mallowigi.idea.MTBundledThemesManager.installBundledTheme(MTBundledThemesManager.java:113)
	at com.mallowigi.idea.MTBundledThemesManager.loadBundledThemes(MTBundledThemesManager.java:108)
	at com.mallowigi.idea.MTLafComponent.initComponent(MTLafComponent.java:115)
	at com.mallowigi.idea.MTLafComponent.appFrameCreated(MTLafComponent.java:74)
	at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:645)
	at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:624)
	at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
	at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:390)
	at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:372)
	at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:33)
	at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:179)
	at com.sun.proxy.$Proxy37.appFrameCreated(Unknown Source)
	at com.intellij.idea.IdeStarter.openProjectIfNeeded(IdeStarter.kt:98)
	at com.intellij.idea.IdeStarter.main(IdeStarter.kt:77)
	at com.intellij.idea.ApplicationLoader$startApp$3.run(ApplicationLoader.kt:185)
	at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
	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.awaitQuiescence(ForkJoinPool.java:2984)
	at com.intellij.idea.StartupUtil.start(StartupUtil.java:295)
	at com.intellij.idea.Main.bootstrap(Main.java:123)
	at com.intellij.idea.Main.main(Main.java:84)

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

3 participants