You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Robert Munteanu <ro...@apache.org> on 2018/07/10 14:48:24 UTC

Re: Sling IDE Tooling: Debugging does no longer work with the provided launcher configuration

Hi Konrad,

On Fri, 2018-06-15 at 14:53 +0200, Konrad Windszus wrote:
> Ok, I figured out I explicitly had to configure "artifact" and "api"
> as Eclipse Plugins to make Eclipse treat them correctly. Isn't there
> an automated way to do that (e.g. by commiting the .project file and
> build.properties)? Those files shouldn't do any harm to IntelliJ as
> they are only considered in Eclipse and should make setting up the
> project much easier for all developers in Eclipse.

That should be OK, can you please send a PR just to double-check?

Thanks,

Robert

> 
> 
> > On 15. Jun 2018, at 14:40, Konrad Windszus <ko...@gmx.de> wrote:
> > 
> > I tried to work on some Sling IDE Tooling issues and for that need
> > to start Eclipse with the tooling included in debug mode. There is
> > even a laucher for that included in https://github.com/apache/sling
> > -ide-
> > tooling/blob/42a964b8961c4951f68053b9ac455abadd8595d6/eclipse/targe
> > t-definition/Sling%20IDE%20Tooling.launch#L33 which lists all
> > necessary plugins.
> > Unfortunately when I use this launcher config to debug Eclipse it
> > emits the following error message:
> > 
> > ENTRY org.apache.sling.ide.eclipse-core 4 0 2018-06-15 14:32:25.095
> > !MESSAGE FrameworkEvent ERROR
> > !STACK 0
> > org.osgi.framework.BundleException: Could not resolve module:
> > org.apache.sling.ide.eclipse-core [48]
> >  Unresolved requirement: Import-Package:
> > org.apache.sling.ide.artifacts
> > 
> > 	at org.eclipse.osgi.container.Module.start(Module.java:444)
> > 	at
> > org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incS
> > tartLevel(ModuleContainer.java:1634)
> > 	at
> > org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incS
> > tartLevel(ModuleContainer.java:1613)
> > 	at
> > org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doCo
> > ntainerStartLevel(ModuleContainer.java:1585)
> > 	at
> > org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.disp
> > atchEvent(ModuleContainer.java:1528)
> > 	at
> > org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.disp
> > atchEvent(ModuleContainer.java:1)
> > 	at
> > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(Even
> > tManager.java:230)
> > 	at
> > org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Ev
> > entManager.java:340)
> > 
> > When I try open the provided launcher configuration in Eclipse it
> > always shows "Launch with all workspace and enabled target plugins"
> > which does not work, because shared/modules/artifacts is no longer
> > detected as Eclipse plugin (and still necessary to run Sling IDE
> > Tooling).
> > 
> > I tried to set both target definitions (both dev and non-dev) but
> > did not succeed. Every time Eclipse is not launched with the module
> > "artifacts".
> > I am using Eclipse 4.7.2 to launch.
> > 
> > Does anyone have any idea?
> > Also I am wondering, if it is the right approach to maintain both
> > the required plugins both in the target definition file (2 times,
> > for dev and non-dev) and also within the Eclipse launcher now. This
> > seems to be a very error-prone process...
> > 
> > Thanks,
> > Konrad
> 
>