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

Fix long commands breaking component debugger: #922

Merged
merged 2 commits into from
Dec 10, 2021

Conversation

chsienki
Copy link
Member

  • Write command lines out to a response file
  • Pass response file to csc instead of raw arguments
  • Make component IDisposable and remove file on dispose

- Write command lines out to a response file
- Pass response file to csc instead of raw arguments
- Make component IDisposable and remove file on dispose
@chsienki chsienki requested a review from a team as a code owner October 19, 2021 22:01
@chsienki chsienki added the Area-Source Generators SDK support for source generators label Oct 19, 2021
settings.Arguments = string.Join(" ", args);
// write the command line args out to a response file
var file = GetResponseFileName();
File.WriteAllText(file, string.Join(" ", args));
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that this could throw, but for now I'm just letting VS handle it which gives the following experience:
image

We have #728 to track handling errors in a more thoughtful way.

@chsienki
Copy link
Member Author

Ping @dotnet/roslyn-sdk for review please :)

Copy link
Contributor

@jmarolf jmarolf left a comment

Choose a reason for hiding this comment

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

this would be for 17.1 I assume that is ok?

@chsienki
Copy link
Member Author

@jmarolf Yeah, this got punted out of 17.0 due to time constraints.

@dotnet dotnet deleted a comment from azure-pipelines bot Oct 29, 2021
@sharwell

This comment has been minimized.

@sharwell sharwell marked this pull request as draft October 29, 2021 18:38
@dotnet dotnet deleted a comment from azure-pipelines bot Oct 29, 2021
@sharwell sharwell marked this pull request as ready for review October 29, 2021 22:04
@sharwell
Copy link
Member

sharwell commented Nov 1, 2021

@chsienki I had to merge main into this PR to get the build to use the correct image (where integration tests run). Feel free to rebase if you prefer to have it just be one commit (or let me know and I'm happy to do it myself).

@chsienki chsienki merged commit 5c7ab07 into dotnet:main Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Source Generators SDK support for source generators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants