Skip to content

Expand the viewer's search directory on Linux and macOS - #804

Merged
SimonCropp merged 1 commit into
mainfrom
fix-home-expansion
Aug 22, 2026
Merged

Expand the viewer's search directory on Linux and macOS#804
SimonCropp merged 1 commit into
mainfrom
fix-home-expansion

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

WildcardFileFinder expands with Environment.ExpandEnvironmentVariables, which
only understands %NAME%. The Linux and macOS entries were written shell style as
$HOME/.dotnet/tools/, so that string was passed through untouched and named a
literal directory called "$HOME" - which nothing has.

A globally installed DiffEngineViewer was therefore invisible on those
platforms. It only mattered when the bundled copy was absent, which is exactly
the case the dotnet tool install exists to cover.

The test asserts no definition anywhere uses the shell syntax, rather than this
one entry, since the mistake is easy to repeat and the two syntaxes look equally
plausible in a path.

Generated docs regenerated to match.

WildcardFileFinder expands with Environment.ExpandEnvironmentVariables, which
only understands %NAME%. The Linux and macOS entries were written shell style as
$HOME/.dotnet/tools/, so that string was passed through untouched and named a
literal directory called "$HOME" - which nothing has.

A globally installed DiffEngineViewer was therefore invisible on those
platforms. It only mattered when the bundled copy was absent, which is exactly
the case the dotnet tool install exists to cover.

The test asserts no definition anywhere uses the shell syntax, rather than this
one entry, since the mistake is easy to repeat and the two syntaxes look equally
plausible in a path.

Generated docs regenerated to match.
@SimonCropp
SimonCropp merged commit f2fbbb7 into main Aug 22, 2026
9 checks passed
@SimonCropp
SimonCropp deleted the fix-home-expansion branch August 22, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant