| Summary: | Provide better error message in case target schema is not known | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Lars Vogel <Lars.Vogel> |
| Component: | UI | Assignee: | Christoph Laeubrich <laeubi> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | laeubi, Lars.Vogel |
| Version: | 4.21 | ||
| Target Milestone: | 4.23 M1 | ||
| Hardware: | PC | ||
| OS: | All | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=577184 https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/189053 https://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=d184fe0d16882b06fd7ccb80af6c9cf12755b298 |
||
| Whiteboard: | |||
|
Description
Lars Vogel
Can you set a breakpoint and see whats actually causing this? Memento looks like the following remote:https://raw.githubusercontent.com/vogellacompany/eclipse4book/testing-tycho-http-targetfile/target-platform/target-platform.target (In reply to Lars Vogel from comment #2) > Memento looks like the following > remote:https://raw.githubusercontent.com/vogellacompany/eclipse4book/testing- > tycho-http-targetfile/target-platform/target-platform.target Can you post the linked exception (URISyntaxException) also just for reference? Are you probably using the same workspace with different eclipse versions? Sorry, sorry, I tested with the wrong Eclipse installation (2021-12) not an I-build. Using the latest I-build TargetPlatformService understand the remote schema. Sorry, Christoph for wasting your time. New Gerrit change created: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/189053 (In reply to Lars Vogel from comment #5) > Sorry, sorry, I tested with the wrong Eclipse installation (2021-12) not an > I-build. Using the latest I-build TargetPlatformService understand the > remote schema. > > Sorry, Christoph for wasting your time. don't mind, you can review the PR so we get better error output next time :-) FYI - I now see a NPE and opened Bug 577929 for this. !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at java.base/java.util.Arrays.stream(Arrays.java:5645) at org.eclipse.pde.internal.core.TargetWeaver.findRunningPlatformBundle(TargetWeaver.java:213) at org.eclipse.pde.internal.core.TargetWeaver.isBundleOfRunningPlatform(TargetWeaver.java:195) at org.eclipse.pde.internal.core.TargetWeaver.getDevProperty(TargetWeaver.java:191) at org.eclipse.pde.internal.core.TargetWeaver.weaveManifest(TargetWeaver.java:114) at org.eclipse.pde.internal.core.MinimalState.addBundle(MinimalState.java:201) at org.eclipse.pde.internal.core.MinimalState.addBundle(MinimalState.java:195) at org.eclipse.pde.internal.core.PDEState.createNewTargetState(PDEState.java:166) at org.eclipse.pde.internal.core.PDEState.<init>(PDEState.java:61) at org.eclipse.pde.internal.core.PluginModelManager.initializeTable(PluginModelManager.java:602) at org.eclipse.pde.internal.core.PluginModelManager.targetReloaded(PluginModelManager.java:522) at org.eclipse.pde.internal.ui.wizards.plugin.NewPluginProjectWizard.lambda$0(NewPluginProjectWizard.java:117) at org.eclipse.pde.internal.ui.wizards.plugin.NewPluginProjectWizard$$Lambda$899/0x0000000000000000.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) Using this Bug for Christophs improved message. Gerrit change https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/189053 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=d184fe0d16882b06fd7ccb80af6c9cf12755b298 Thanks, Christoph for the improved error message. |