Skip to content
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: address comparison for version string #1733

Merged

Conversation

pollend
Copy link
Contributor

@pollend pollend commented Jan 24, 2025

Seems this is a known issue a semantic string comparison is not going to work for all version strings.

Before submitting your PR, please review the following checklist:

  • CONSIDER adding a new test if your PR resolves an issue.
  • DO keep pull requests small so they can be easily reviewed.
  • DO make sure tests pass.
  • DO make sure any public APIs changes are documented.
  • DO make sure not to introduce any compiler warnings.

Before merging the PR:

  • CHECK continuous integration of main branch is green.
  • CHECK pull request check job is green.
  • CHECK all pull request questions/requests are resolved.
  • WAIT till PR is approved by at least 1 committer.

Sorry, something went wrong.

@@ -48,7 +49,7 @@ export class VariableSectionItem extends CustomTreeItem {
* @deprecated For VS Code 1.88+ this method won't be working any more
*/
async getVariableNameTooltip(): Promise<string> {
if (VariableSectionItem.versionInfo.version >= '1.88.0') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

any reason why AbstractElement needs replicate state of VSBrowser. requires managing duplicate state?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure I am getting your point, can you please elaborate more? or maybe open a separate discussion/issue and we can discuss and solve there?

Copy link
Contributor Author

@pollend pollend Feb 3, 2025

Choose a reason for hiding this comment

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

when you init VSBrowser you copy the version over to AbstractElement but is there ever a situation where the version in AbstractElement would ever reflect differently. just seems like extra state to manage having to make sure AbstractElement reflects the actual version of vscode. Just an observation I would probably just consolidate the version under VSBrowser?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would need to double check, it can be some legacy from early stage of ExTester. The thing is extester and page-objects are separated packages. The VSBrowser instance storing a vscode version and driving execution is a parent which is loading during init phase appropriate set of page objects depending on VS Code version. Than the version is passed and stored also in page-objects. So I agree the version is same, but the point is to init page objects for a version of running browser.

Michael Pollind added 2 commits February 4, 2025 11:40
Signed-off-by: Michael Pollind <quic_mpollind@quicinc.com>
Signed-off-by: Michael Pollind <quic_mpollind@quicinc.com>
@djelinek djelinek force-pushed the bugfix/improve-version-comparison branch from ad9672a to a41793f Compare February 4, 2025 10:40
Copy link

sonarqubecloud bot commented Feb 4, 2025

@djelinek djelinek added the bug Something isn't working label Feb 4, 2025
@djelinek djelinek changed the title bugfix: address comparison for version string fix: address comparison for version string Feb 4, 2025
@djelinek djelinek merged commit 914ccf8 into redhat-developer:main Feb 4, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants