Skip to content

Conversation

@mitchhentges
Copy link
Contributor

@mitchhentges mitchhentges commented Dec 19, 2025

This addresses the confusion of gvsbuild showing that it found Visual Studio installations, but then logging right after that it couldn't, in fact, find it.

This tweaks the list of detected VS installations to also include logs when an installation is considered "inapplicable", such as because:

  • The version doesn't match vs_ver
  • The vcvars.bat is missing

@mitchhentges mitchhentges force-pushed the improve-vs-find-error branch 2 times, most recently from a71f0db to a1693d9 Compare December 19, 2025 11:22
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

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

Hey @mitchhentges - thanks for the contribution! I know our current test coverage isn't great, but would you mind adding a couple of tests to check that the updated logic is working correctly?

@mitchhentges
Copy link
Contributor Author

Good idea :)

I've been thinking more about this, and I think I should bundle this "list of each ineligible VS installation" with the above "list of VS installations that will be checked".

I'll do that wider change, then add some tests 👍

@mitchhentges mitchhentges force-pushed the improve-vs-find-error branch from a1693d9 to d04ee1b Compare January 6, 2026 06:56
This addresses the confusion of `gvsbuild` showing that it _found_ Visual Studio installations, but then logging right after that it couldn't, in fact, find it.

This tweaks the list of detected VS installations to also include logs when an installation is considered "inapplicable", such as because:
* The version doesn't match `vs_ver`
* The `vcvars.bat` is missing
@mitchhentges mitchhentges force-pushed the improve-vs-find-error branch from d04ee1b to 71a0150 Compare January 6, 2026 07:00
@mitchhentges
Copy link
Contributor Author

I've still got tests to add, but here's how it looks when I've combined "failure reason" with "list of detected installations":

Failure case:
two-failures

One failure but one usable installation case:

success

I'll follow up with tests "soon" 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants