-
Notifications
You must be signed in to change notification settings - Fork 389
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
Unable to debug source generator: "The project doesn't know how to run the profile '<name>' with command 'DebugRoslynComponent'" #9547
Comments
@IanKemp Do you have the ".NET Compiler Platform SDK" component installed in Visual Studio? |
I assume Ian worked this out based on #9011 (comment). Ian, I'm taking a look at that issue and think I have a solution so that users are prompted to install this automatically once the |
I do, and I could've sworn I posted a screenshot showing that. |
Confirmed that even with the .NET Compiler Platform SDK component installed, the launch profile fails to display in the editor, and the error is shown during run:
|
Launch profiles having command name Roslyn's I don't think this problem is specific to the |
I was misunderstanding what I was seeing in the logs. Looking again today with fresh eyes, I see the problem, Projects that contain source generators and/or analyzers (such as <PropertyGroup>
<IsRoslynComponent>true</IsRoslynComponent>
</PropertyGroup> So I don't think there's a "bug" here. I'm not sure offhand how we could improve the experience though. |
@drewnoakes you are my hero of the day! 🙂 |
Visual Studio Version
2022.17.11.4 (Community edition)
Summary
As title.
Suspect that the work done in dotnet/roslyn-sdk#896 for dotnet/roslyn-sdk#850 has either been reverted or broken.
Steps to Reproduce
Creating a new "Roslyn Component" launch profile is also not possible, as that option is missing from the "Launch Profiles" UI
Expected Behavior
Source generator debugging works
Actual Behavior
Source generator debugging does not work
User Impact
Can't debug source generators
The text was updated successfully, but these errors were encountered: