You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc @Shourya742 seems like if we try to connect to a proc-macro server that does not support postcard we will just hang on it now crashing as expected, we'll need to figure out a different approach here.
cc @Shourya742 seems like if we try to connect to a proc-macro server that does not support postcard we will just hang on it now crashing as expected, we'll need to figure out a different approach here.
I guess I know the reason for this, the json framing uses read_line, which blocks until it sees a newline. That means if the server doesn’t send one, we end up stuck waiting indefinitely. The problematic bit is here:
So looking at things, the --format flag does seem to validate its inputs on the latest nightly, so we might just want to hold off a bit. Do a toolchain version check and then retry things here. The postcard protocol not using lineendings seems fine to me after all
So looking at things, the --format flag does seem to validate its inputs on the latest nightly, so we might just want to hold off a bit. Do a toolchain version check and then retry things here. The postcard protocol not using lineendings seems fine to me after all
I was thinking that if we don’t receive a response within a specified time, we should abort the process and fall back.
that would work too and is definitely something we should implement.
I'll revert some parts here for now to unblock the pre-releases. And I'll also include #21132. It was a mistake not naming both of these flags legacy i think since we do want to replace the protocol entirely at some point.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #21130