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

BasicAnalyzerReference generates a lot of exceptions in error cases #204

Open
jaredpar opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@jaredpar
Copy link
Owner

In the case of a non-analyzer being passed to /analyze the implementation of BasicAnalyzerReference can lead to a lot of exceptions due to this code pattern:

assembly.GetTypes()

Every type that has a missing reference will generate a load event that throws a FileNotFoundException. In simple cases this can lead to 500+ exceptions trying to debug the compiler. Should use SRM here or pick a caching strategy in the load context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant