Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests for Generic Target Platform Editor
Bundle-SymbolicName: org.eclipse.pde.genericeditor.extension.tests
Bundle-Version: 1.3.100.qualifier
Bundle-Version: 1.3.200.qualifier
Bundle-Vendor: Eclipse.org
Bundle-RequiredExecutionEnvironment: JavaSE-21
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
Expand All @@ -13,6 +13,7 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
org.eclipse.pde.genericeditor.extension,
org.eclipse.pde.core,
org.eclipse.equinox.p2.metadata,
org.eclipse.equinox.p2.transport.ecf,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requiring a concrete implementation her is likely wrong in many ways.

Instead the provider needs to provide approciate capbilty (service or implementor) and the consumer (where NPE occures) require appropriate requirement (either service or implementor capabilty)

A consumer bunlde like this should not need any of those!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I.e. I should be opening a ticket for org.eclipse.equinox.p2.repository?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shouldn't get too fussed out about the best, proper, correct way for a test; it's only an opinion. There aren't so many folks writing new p2-based application that will benefit from improved ways to specify dependencies; it's an assumption with not statistical basis.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if I run the code from the stack trace in any launch, it will fail unless I have a dependency like the one here? Something must be missing either in the launch configuration or in the dependencies. If this can be fixed centrally or if the launch configuration code has errors, best to do that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I.e. I should be opening a ticket for org.eclipse.equinox.p2.repository?

If you like to solve it yes it would be the right place but be prepared that you likely need to drive that on your own (but we can help).

To see how it work in general you can look at this recent PR:

eclipse-equinox/equinox#1206

or how SWT handle the svg requirements, we also have examples for declarative services.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK @laeubi , lets continue here then: eclipse-equinox/p2#972

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that all the tests pass seems like a good thing. Future improvement could be saved for the future...

org.eclipse.core.filebuffers
Automatic-Module-Name: org.eclipse.pde.genericeditor.extension.tests
Import-Package: org.junit,
Expand Down
2 changes: 1 addition & 1 deletion ui/org.eclipse.pde.genericeditor.extension.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<relativePath>../../</relativePath>
</parent>
<artifactId>org.eclipse.pde.genericeditor.extension.tests</artifactId>
<version>1.3.100-SNAPSHOT</version>
<version>1.3.200-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>

<properties>
Expand Down
Loading