echebbi / eclipse-discord-integration

Discord's Rich Presence Integration within Eclipse IDE
https://discord-rich-presence-for-eclipse-ide.readthedocs.io/en/latest/
Other
45 stars 5 forks source link

BundleException when installing #82

Closed asdevroxy closed 4 years ago

asdevroxy commented 4 years ago

Bug description

Whenever I try and install this, i get a Framework error in the Eclipse error log. Also, there is not section for Discord Rich Presence in the project properties window

org.osgi.framework.BundleException: Could not resolve module: fr.kazejiyu.discord.rpc.integration.ui.preferences [483]
  Unresolved requirement: Require-Bundle: fr.kazejiyu.discord.rpc.integration; bundle-version="0.8.3"
    -> Bundle-SymbolicName: fr.kazejiyu.discord.rpc.integration; bundle-version="1.2.0"; singleton:="true"
       fr.kazejiyu.discord.rpc.integration [481]
         Unresolved requirement: Require-Bundle: java-discord-rpc; bundle-version="[2.0.0,3.0.0)"

    at org.eclipse.osgi.container.Module.start(Module.java:462)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1844)
    at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1837)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1778)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1742)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1664)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

Expected behavior

It installs and works

How to reproduce

Steps to reproduce the behavior:

  1. Install the thing
  2. Go to the Eclipse Error Log
  3. Witness the error

Additional context

echebbi commented 4 years ago

Thanks for reporting!

Can you make sure you've installed all features? From Help > Install new software...:

image

If no items is shown then everything has been installed properly. Otherwise please check remaining items and install them.

If the installation succeeds you should have the following plug-ins installed (Help > About Eclipse IDE > Installation Details):

image

According to your error message it looks like Eclipse IDE cannot find one of the plug-ins I provide (java-discord-rpc) but I can't reproduce the issue on Eclipse 4.15 (Java package). .

asdevroxy commented 4 years ago

I made sure when I installed it that everything was installed, however the issue persists.

image

I even tried installing it from the eclipse marketplace, but once again, the same issue

echebbi commented 4 years ago

I've just released a new v1.2.1 where dependencies have been enforced; could you:

  1. Uninstall all discord-related plug-ins
  2. Install the new 1.2.1 version

(note: Eclipse IDE may rely too much on its cache; if the 1.2.1 version does not appear, from the Install window go to Manage..., select "Discord ..." and hit Reload)

You should then see:

image

image

If that doesn't fix the issue, could you please tell me:

It may help me reproduce the issue.

asdevroxy commented 4 years ago

EDIT: Works fine with Eclipse PHP

echebbi commented 4 years ago
  • Discord Rich Presence for Eclipse IDE does NOT show up in Startup and Shutdown

To be honest, if all the plug-ins are installed then that does not make any sense to me. I'm very puzzled as to why you face such an issue.

Works fine with Eclipse PHP

I still cannot reproduce the issue, even with a fresh 2020-03 Java Eclipse installed through its installer. Just to be sure, have you tried to install the plug-in in a new Eclipse Java? If it works then that would mean that the problem is specific to your first Eclipse. In such a case, I would try to launch the IDE with the following command line:

eclipse.exe -clean -clearPersistedState

It should clear a lot of cached data (caution: also reset UI layout) which may help.

echebbi commented 4 years ago

The problem cannot be reproduced so I'll consider that Eclipse IDE messed up during the installation and close the issue. Please comment/reopen if the same issue is faced again.