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
Fix Wtp Component File Version #2076
Conversation
This code hasn't changed in 7 years, so it would be surprising if we suddenly needed to downgrade the version. I haven't seen the described behavior before. A reproducible example project would be very helpful in assessing this PR. |
This is less a downgrade than a correction. And just that the bug is very old, does not mean that it is not present. In the attached wst-bug.zip you find a good and a bad version of the same project files. The only difference is You will see that besides whitespace and the version change one line was thrown out in the bad version. That the bug was not discovered in the last 7 years can have multiple reasons. I don't know what exactly in Eclipse throws out this line and whether it is a bug or some "oh it is not 1.5.0, so it must be older, let's transform it" kind of thing is and what exactly is thrown out. Probably most people don't generate the files like that, but we have the web-part spread out into the business modules and the web project then pulls the pieces together like that. Also once you have imported the file in Eclipse and it has written 1.5.0 in the version field, as long as you don't delete the file or do |
@oehme is the attached description and project enough to justify or is something missing? |
@Vampire yes that is sufficient, thanks for taking the time to investigate. It would still be great if we could get some clarification on the exact meaning of the |
Maybe Konstantin Komissarchik, but the best thing is to ask on the wtp-dev@eclipse.org mailing-list. |
Okay, I'm sold 👍 Thanks a lot for all your analysis. |
The wtp component file that was generated out of nowhere (no file already present before running the task) generated a version of 2.0.
Current Eclipse Neon (seen this behavior also in Kepler) has a version of 1.5.0 if Eclipse generates this file.
Having 2.0 in this file triggers the bug (or behavior) described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=416346.
Review Contribution Guidelines
Sign Gradle CLA
(n/a) Link to Design Spec for changes that affect more than 1 public API (that is, not in an
internal
package) or updates to > 20 filesProvide integration tests (under
<subproject>/src/integTest
) to verify changes from a user perspective(n/a) Provide unit tests (under
<subproject>/src/test
) to verify logic(n/a) Update User Guide, DSL Reference, and Javadoc for public-facing changes
Ensure that tests pass locally:
./gradlew quickCheck <impacted-subproject>:check
Verify design and implementation
Verify test coverage and CI build status
Verify documentation including proper use of
@since
and@Incubating
annotations for all public APIsRecognize contributor in release notes