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

#227: Fix paths problem (IDEasy could not set the tool path on first installation) #228

Merged

Conversation

MustaphaOuchen
Copy link
Contributor

@MustaphaOuchen MustaphaOuchen commented Feb 23, 2024

Closes #227

Our problem was that we just fill the paths variable of the SystemPath only during construction with the binary/commandlet locations. I think we have to do it also when tool2pathMap is changed, since tool2pathMap behaves like a "subset" of paths as far as I did understand.

This should fix that on the first start of the application the installed binary could not be found.

@ndemirca ndemirca self-assigned this Feb 23, 2024
@ndemirca
Copy link
Contributor

LGTM

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@MustaphaOuchen Thanks for your PR. I will reach out and discuss with you online so we can find the perfect solution together.

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@MustaphaOuchen thanks for the PR & fix. 👍
Ready for merge.

@hohwille hohwille changed the title Fix paths problem (IDEasy could not set the tool path on first installation) #227: Fix paths problem (IDEasy could not set the tool path on first installation) Feb 27, 2024
@hohwille hohwille merged commit 9d89b23 into devonfw:main Feb 27, 2024
3 checks passed
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 8061828056

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 14 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 57.131%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/common/SystemPath.java 14 50.97%
Totals Coverage Status
Change from base Build 8061814840: -0.06%
Covered Lines: 3851
Relevant Lines: 6481

💛 - Coveralls

@hohwille hohwille added this to the release:2024.02.001 milestone Feb 27, 2024
@hohwille hohwille added the story-review marks PRs that will be presented in the sprint-review label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story-review marks PRs that will be presented in the sprint-review
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

First tool installation of commandlet does not add tool to paths of SystemPath
4 participants