Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

o.e.xtext.ide depends on Equinox #446

Closed
sjsf opened this issue Aug 29, 2017 · 16 comments
Closed

o.e.xtext.ide depends on Equinox #446

sjsf opened this issue Aug 29, 2017 · 16 comments

Comments

@sjsf
Copy link

sjsf commented Aug 29, 2017

I'm currently trying to get LSP support into Eclipse SmartHome (eclipse-archived/smarthome#4148).
However, as it turned out, the org.eclipse.xtext.ide has a "require bundle" dependency to org.eclipse.core.runtime which in turn drags the whole equinox enchilada in. As it claims to provide "Platform-independent language support.", this is somewhat surprising.

There was a related issue for the xtext core in bugzilla (https://bugs.eclipse.org/bugs/show_bug.cgi?id=434490). Would it be possible to factor out the eclipse specific stuff into an optional eclipse-related bundle? Or at least make this stuff optional?

@cdietrich
Copy link
Member

it uses org.eclipse.core.runtime.IProgressMonitor /NullProgressMonitor from equinox common but this change wouldnt help you neither correct?

and org.eclipse.xtext has the same dependency (although its optional)

@sjsf
Copy link
Author

sjsf commented Aug 29, 2017

from equinox common

looking at its dependencies: nope 😄

and org.eclipse.xtext has the same dependency (although its optional)

An optional dependency is perfectly fine - as long as the stuff really doesn't fail without it. Our use-case is to run an embedded language server, so no Eclipse extension points are registered. Therefore I assume we should be reasonably safe...

@cdietrich
Copy link
Member

no i mean: replacing that dependency with equinox common: will it help you or not?
or is that == equinox enchilada

@sjsf
Copy link
Author

sjsf commented Aug 29, 2017

No, it won't help:

o.e.equinox.commons imports

# Bad:
org.eclipse.equinox.log;version="[1.0,2.0)",
org.eclipse.osgi.framework.log;version="[1.1, 2.0)"
org.eclipse.osgi.service.datalocation
org.eclipse.osgi.service.debug
org.eclipse.osgi.service.localization
org.eclipse.osgi.service.urlconversion
org.eclipse.osgi.util

# Good:
org.osgi.framework
org.osgi.service.log;version="[1.3.0, 2.0)"
org.osgi.service.packageadmin
org.osgi.service.url
org.osgi.util.tracker

@cdietrich
Copy link
Member

but org.eclipse.xtext has the same required dependency

@cdietrich
Copy link
Member

org.eclipse.equinox.common;bundle-version="3.5.0"

@sjsf
Copy link
Author

sjsf commented Aug 29, 2017

I just learned that there is the o.e.equinox.supplement bundle which fulfills all those requirements if o.e.equinox.common has to run on another framework.
With this knowledge a dependency to o.e.equinox.common indeed would help.

@cdietrich cdietrich self-assigned this Aug 29, 2017
@cdietrich cdietrich added this to the Release_2.13 milestone Aug 29, 2017
cdietrich added a commit that referenced this issue Aug 29, 2017
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
@maggu2810
Copy link

Hi @cdietrich,
can you explain me why you use Require-Bundle instead of Import-Package at all?
Shouldn't be the "import package" directive be preferred to not depend on the bundle that adds the implementation at all?

@cdietrich
Copy link
Member

cdietrich commented Aug 29, 2017

i have no idea. i just try to be consistent to org.eclipse.xtext.
i think the problem is that eclipse has a split package for org.eclipse.core.runtime and thus import package might lead to problems and we would need to specify the providing bundle anyway

@cdietrich
Copy link
Member

doesnt the discussion in the attached bugziilla give any clues

cdietrich added a commit that referenced this issue Aug 29, 2017
made o.e.xtext.ide dep. to org.eclipse.core.runtime optional #446
@cdietrich
Copy link
Member

fixed in xtext 2.13

@sjsf
Copy link
Author

sjsf commented Aug 29, 2017

Wow, that was quick. Thanks!

What is the timeline for 2.13? Or rather: any chance to get this change in a more-or-less official build (i.e. a p2 repository that can be referenced) before the pluto the-other-word-with-"p"-release?

@cdietrich
Copy link
Member

cdietrich commented Aug 29, 2017

good question does the xtext snapshot repo already contain 2.13? have no p2 browser to look here
http://download.eclipse.org/modeling/tmf/xtext/updates/composite/latest/

@sjsf
Copy link
Author

sjsf commented Sep 21, 2017

@svenefftinge do you already have a plan? Will there be a 2.12.1 bugfix release? Or for what timeframe is 2.13 scheduled otherwise?

@kthoms
Copy link

kthoms commented Sep 21, 2017

Next release is 2.13. Official release date is not terminated yet.

@svenefftinge
Copy link
Member

We try to get it out before End of October.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants