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

Component Debugger: Deadlock of project filter #731

Open
chsienki opened this issue Feb 16, 2021 · 0 comments
Open

Component Debugger: Deadlock of project filter #731

chsienki opened this issue Feb 16, 2021 · 0 comments
Labels
Area-Source Generators SDK support for source generators

Comments

@chsienki
Copy link
Member

The code used to filter the target projects to only those that use the generator is currently deadlocking on certain projects, so disabled for now.

We should figure out a non locking way of getting the project information for projects that use the generator.


The below code is deadlocking the UI on certain projects:

                        // check if the args contain the project as an analyzer ref
                        foreach (var arg in await targetProject.GetCompilationArgumentsAsync().ConfigureAwait(false))
                        {
                            if (arg.StartsWith("/analyzer", StringComparison.OrdinalIgnoreCase)
                                && arg.EndsWith(target, StringComparison.OrdinalIgnoreCase))
                            {
                                targetProjects.Add(targetProject);
                            }
                        }
@sharwell sharwell added the Area-Source Generators SDK support for source generators label Jun 23, 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

No branches or pull requests

2 participants