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

Don't unnecessarily parse server handle as URI #1559

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

alexarchambault
Copy link
Contributor

It seems ServerHandle.uri is only used for logging purposes, no need to parse it as a java.net.URI.

In particular, when using Windows named pipes (like bloop bsp --protocol local --pipe \\.\pipe\foo), ServerHandle.WindowsLocal.uri crashes because of the back-slashes when trying to parse it as a URI.

It seems ServerHandle.uri is only used for logging purposes, no need to
parse it as a java.net.URI.

When using Windows named pipes (like bloop bsp --protocol local --pipe
\\.\pipe\foo), ServerHandle.WindowsLocal.uri crashes because of the
back-slashes when trying to parse it as a URI.
@alexarchambault alexarchambault force-pushed the windows-named-pipe-error branch from a0edc09 to f2f33f0 Compare September 6, 2021 08:37
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@tgodzik tgodzik merged commit 49a6348 into scalacenter:master Sep 6, 2021
@alexarchambault alexarchambault deleted the windows-named-pipe-error branch September 6, 2021 10:19
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