fioan89 / sourcesync

A powerful plugin for performing one-way file synchronization for Intellij Idea and Pycharm projects
Other
89 stars 36 forks source link

Plugin exception while loading Tools > Source Sync #58

Closed odwrotnie closed 2 years ago

odwrotnie commented 2 years ago
Calling `ClassLoader#getResource` with leading slash doesn't work; strip

com.intellij.diagnostic.PluginException: /sourcesync.png [Plugin: org.wavescale.sourcesync]
    at com.intellij.ide.plugins.cl.PluginClassLoader.doFindResource(PluginClassLoader.java:490)
    at com.intellij.ide.plugins.cl.PluginClassLoader.findResource(PluginClassLoader.java:437)
    at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1401)
    at org.wavescale.sourcesync.ui.SourceSyncConfig$1.run(SourceSyncConfig.java:53)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
songofhawk commented 2 years ago

I noticed #57 has been merged, but i still encounter this issue. So it hasn't been published, right?

fioan89 commented 2 years ago

Hi, yes the plugin it's not yet released. I'm working on some other fixes, mainly getting rid of the dependency on jgoodies library. Hopefully I can provide a new version later this week. Thank you for you patience.

mohdnizamat commented 2 years ago

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

com.intellij.diagnostic.PluginException: /sourcesync.png [Plugin: org.wavescale.sourcesync] at com.intellij.ide.plugins.cl.PluginClassLoader.doFindResource(PluginClassLoader.java:534) at com.intellij.ide.plugins.cl.PluginClassLoader.findResource(PluginClassLoader.java:442) at java.base/java.lang.ClassLoader.getResource(ClassLoader.java:1401) at org.wavescale.sourcesync.ui.SourceSyncConfig$1.run(SourceSyncConfig.java:53) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106) at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

I still see the error when enabling in mac os. is this fixed ?

fioan89 commented 2 years ago

Hi, the issue is fixed but it's not released. I'm working on revamping the build environment, fixing some UI issues, replacing deprecated calls and migrating the plugin towards automatic builds and releases. Please take a look at the tooling-revamp branch for more updates. In the meantime you can download the source code, load it in IntelliJ and manually build and install the jar in IntelliJ. Thank you for your patience.

sohanrai09 commented 2 years ago

Hi @fioan89 , thank you fixing this. I see you're working on other thing, just wondering when you would be releasing it?

fioan89 commented 2 years ago

Hi all. I've just uploaded version 2.0.0 for sourcesync. The resource loading issue should be solved. It will take around 2 business day for Jetbrains to moderate and approve the plugin, so stay tuned.