-
Notifications
You must be signed in to change notification settings - Fork 256
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
Conversation
chsienki
commented
Oct 19, 2021
- 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
settings.Arguments = string.Join(" ", args); | ||
// write the command line args out to a response file | ||
var file = GetResponseFileName(); | ||
File.WriteAllText(file, string.Join(" ", args)); |
There was a problem hiding this comment.
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:
We have #728 to track handling errors in a more thoughtful way.
Ping @dotnet/roslyn-sdk for review please :) |
There was a problem hiding this 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?
@jmarolf Yeah, this got punted out of 17.0 due to time constraints. |
This comment has been minimized.
This comment has been minimized.
@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). |