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

Shorten the namedpipe used to connect with C# extension #70492

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

beccamc
Copy link
Contributor

@beccamc beccamc commented Oct 20, 2023

The path created by mac can be too long and causes an error. I've shorted the pipe name to be just the first segment of a guid. We are only creating one pipe, so there shouldn't be concern with collisions.

[stderr] Unhandled exception: System.ArgumentOutOfRangeException: The path '/var/folders/rh/p2xvyg710y15pmy1bf75ds340000gn/T/com.apple.shortcuts.mac-helper/f2622daa-af31-4dce-bb8e-787f1d869eba.sock' is of an invalid length for use with domain sockets on this platform. The length must be between 1 and 104 characters, inclusive. (Parameter 'path')

Issue: dotnet/vscode-csharp#6485

@beccamc beccamc requested a review from a team as a code owner October 20, 2023 15:26
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 20, 2023
@CyrusNajmabadi
Copy link
Member

The error message mentions domain soxkets. Is there another socket type we should use that doesn't have this limitation?

@beccamc
Copy link
Contributor Author

beccamc commented Oct 20, 2023

Good question Cyrus! NamedPipes are setting the domain socket, and don't give us any options to control that.

@dibarbet
Copy link
Member

dibarbet commented Oct 20, 2023

Yeah pretty sure domain socket just means IPC socket (instead of some network socket).
Related dotnet/runtime#79503

@beccamc beccamc merged commit eac6842 into dotnet:main Oct 20, 2023
24 checks passed
@ghost ghost added this to the Next milestone Oct 20, 2023
@jjonescz jjonescz modified the milestones: Next, 17.9 P1 Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants