-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
LC Task Can Fail Without Logging An Error #5912
Comments
I found something very suspicious: msbuild/src/Utilities/ToolTask.cs Lines 1439 to 1444 in 4b9f612
attempts to calculate a path to the tool to be executed, and if it's still null after the calculation, it returns false without logging an error, claiming an error already should have been logged. Looking at that function, if UseCommandProcessor is false, and GenerateFullPathToTool (which is implemented by classes that extend ToolTaskExtension) returns null without logging an error, which sounds legit based on msbuild/src/Utilities/ToolTask.cs Lines 500 to 501 in 4b9f612
|
I think it will also hit this problem if the tool is cancelled: msbuild/src/Utilities/ToolTask.cs Lines 1516 to 1519 in 4b9f612
returns false without logging an error if _terminatedTool is true. That's set to true here. TerminateToolProcess itself doesn't log an error, so if the tool doesn't log an error before being cancelled, that should lead to ToolTask returning false without logging an error. |
Bundling this into what'll be fixed in #6968. This issue is so vague that the PR could solve the issue. But without repro steps the root cause isn't clear. I'll opt to close this and hope that it's reported next time it happens. |
@benvillalobos, |
@Forgind My goal here is to close an issue that has no actionable information. It should really have "needs-more-info" applied to it. If you want to keep this open, we can backlog this instead. |
This issue is marked as stale because feedback has been requested for 30 days with no response. Please respond within 14 days or this issue will be closed due to inactivity. |
Issue Description
Someone reported here that the LC task can fail without throwing a warning.
ToolTaskExtension may be able to return false and not log an error. Note that the LC task does not implement its own execute function.
The text was updated successfully, but these errors were encountered: