-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Service-Component OSGI-INF/*.xml from uber-jar #1732
base: main
Are you sure you want to change the base?
Conversation
I ran the build locally and there is no such folder:
|
@laeubi Can you please review? |
please read the spec:
See also: so this is not an error but allows extension of the lemminx-uber jar provided with OSGi-Fragements, so this is not an error. |
Is it an error not to have it? What will no longer work without it? What is looking up what, where, and why? Is anyone actually using that capability or is this something that could exist but doesn't current actually exist? Pretend that I am stupid and know nothing about this. Also imagine a million users coming to this issue who will be equally confused and that being told to please read the spec and/or please go complain somewhere about ambiguous logging specification will perhaps prove unsatisfying. They might shake their heads and ask "What's wrong with these people?" hypothetically speaking... Or a different question, whomever is pulls this dependency into an installation, can they provide said fragment that will make the error stop logging? Or better yet, can the project itself provide a degenerate/no-op/empty XML file that will make it stop logging. Can we can do something/anything to that make something be located by the wildcard so that there is no error logged? |
Of course not
You can no longer extend the bundle with fragments that contain declarative service components.
https://docs.osgi.org/specification/osgi.cmpn/8.0.0/service.component.html#d0e30931
As it was only added with the last release it could be used now but not before. e.g. m2e is providing an extension to lemminx now, for further details see:
This is really hypothetical as no one is actually looking at the Eclipse log (or no one really complains) as these are not errors that surface to the usual user, e.g. this is what I see in my daily eclipse (and I regularly clear the error log so it is only from the past days): So did we get "million complains"? not really ... are people confused? not really... Does anyone work on these issue? I'm not sure ...
Eclipse consumes https://github.com/apache/felix-dev/tree/master/scr what is the component that logs the error. |
Repeating different question... Whomever is pulls this dependency into an installation, can they provide said fragment that will make the error stop logging? Or better yet, can the project itself provide a degenerate/no-op/empty XML file that will make it stop logging? Can we can do something/anything now to that make something be located by the wildcard so that there is no error logged? |
I have created
Having something added as a workaround to suppress a harmless logmessage do not seems valuable to me. For the record an dummy, disabled by default component description will look like this:
|
#1731