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

Structure of file links are not supported by Windows Terminal #1592

Open
nathanpovo opened this issue Jul 30, 2024 · 0 comments
Open

Structure of file links are not supported by Windows Terminal #1592

nathanpovo opened this issue Jul 30, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@nathanpovo
Copy link

Information

  • OS: Windows
  • Version: 10.0.22631 Build 22631
  • Terminal: Windows Terminal

Describe the bug
Structure of file links are not supported in Windows Terminal causing it to show an error.

To Reproduce

  1. Write an exception to the console with AnsiConsole.WriteException using the format ExceptionFormats.ShowLinks.
  2. Ctrl+Click on a file link in Windows Terminal.

Expected behavior
Windows Terminal opens the file that the link points to.

Screenshots
The error in question:
image

Additional context
When copying the file link, replacing the hostname with either localhost or an empty string (keeping the triple slashes!!), and echo-ing the update link, it works as expected.

The issue is caused by this piece of code

Related issues/PRs: microsoft/terminal#7699, microsoft/terminal#7526

@nathanpovo nathanpovo added bug Something isn't working needs triage labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
Status: Todo 🕑
Development

No branches or pull requests

1 participant