PsiViewer exception "Icon cannot be found in '/images/psi18x18.png'"

ERROR - tellij.openapi.util.IconLoader - Icon cannot be found in
'/images/psi18x18.png',
aClass='idea.plugin.psiviewer.controller.actions.ViewElementAtCaretAction'
ERROR - tellij.openapi.util.IconLoader - IntelliJ IDEA (Irida)
#3296 Build #3296
ERROR - tellij.openapi.util.IconLoader - JDK: 1.4.2_06
ERROR - tellij.openapi.util.IconLoader - VM: Java HotSpot(TM)
Client VM
ERROR - tellij.openapi.util.IconLoader - Vendor: Sun Microsystems
Inc.
ERROR - tellij.openapi.util.IconLoader - OS: Windows XP
ERROR - tellij.openapi.util.IconLoader - Last Action:
ERROR - tellij.openapi.util.IconLoader - Icon cannot be found in
'/images/psi18x18.png',
aClass='idea.plugin.psiviewer.controller.actions.ViewElementAtCaretAction'
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:34)
at com.intellij.openapi.util.IconLoader.getIcon(IconLoader.java:83)
at
com.intellij.openapi.actionSystem.impl.ActionManagerImpl.a(ActionManagerImpl.java:312)
at
com.intellij.openapi.actionSystem.impl.ActionManagerImpl.processActionsElement(ActionManagerImpl.java:247)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:13)
at com.intellij.idea.IdeaApplication.access$200(IdeaApplication.java:53)
at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:4)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:35)
at com.intellij.idea.Main$3.run(Main.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

2 comments
Comment actions Permalink

Hi Thomas,

It seems that the class loader for plugins is not loading resources from the plugin jar file (as used to happen before #3290).

Currently, for example, plugin.xml contains icon="/images/psi18x18.png" and the image is stored in the plugin jar file as "/PsiViewer/images/psi18x18.png". This worked fine up until #3290.

JetBrains: is there another way I should be doing this now?

Cheers,
A.

0
Comment actions Permalink

...forget that crackpot theory! I built the jar file with the icons in the wrong place.

Fixed in 2.25.4

Cheers,
A.

0

Please sign in to leave a comment.