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

AD0001 in many analyzers when stylecop.json link is broken #3902

Open
bjornhellander opened this issue Nov 17, 2024 · 3 comments
Open

AD0001 in many analyzers when stylecop.json link is broken #3902

bjornhellander opened this issue Nov 17, 2024 · 3 comments

Comments

@bjornhellander
Copy link
Contributor

If a project consuming StyleCop.Analyzers has a broken stylecop.json link, then many analyzers fail with an ArgumentNullException.

Version: 1.2.0-beta.556

@bjornhellander
Copy link
Contributor Author

This call probably returns null, causing problems later on:

SourceText additionalTextContent = additionalFile.GetText(cancellationToken);

@jeremyregnerus
Copy link

Would this cause a case where the analyzers just stop working and require VS to be completely restarted? I'm having that issue, and I do not use stylecop.json files in the current project and wonder if by re adding this file will resolve that issue.

@bjornhellander
Copy link
Contributor Author

@jeremyregnerus No, not as far as I understand. I suggest you create a new issue instead and describe what you are experiencing.

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

2 participants