roslyn-sdk icon indicating copy to clipboard operation
roslyn-sdk copied to clipboard

Component Debugger: Deadlock of project filter

Open chsienki opened this issue 3 years ago • 0 comments

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);
                            }
                        }

chsienki avatar Feb 16 '21 19:02 chsienki