-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Feature 'CodeLens references' is currently unavailable due to an internal error #52558
Comments
We see the same issue as @ldematte in a similar Roslyn generator solution: Compile, and then opening Source\EtAlii.Generators.Stateless.Tests\StateMachines\SimpleStateMachine.cs triggers the same codelens error and above mentioned exception. The issue shows up Visual Studio (16.9.3), but not in Rider (2021.1.1). |
I get this issue whenever I view a file with properties/methods that are referenced by an automatically generated file. CodeLens works but the constant spam of error messages is annoying. |
Same issue here: https://github.com/koenbeuk/ScenarioTests Each file that uses this generator (e.g. https://github.com/koenbeuk/ScenarioTests/blob/master/samples/BasicSample/ScenarioTest1.cs) raises this error when opening the file in VS 2019 (16.9.4) and VS 2019 preview. No further side effects have been noted |
@jasonmalinowski do yuo know what we woudl need to do to make CodeLens SG aware? |
Two answers: We fixed #51686 in Preview 2, which I think will address the crash that @ldematte is reporting. If people are still seeing this in Preview 2 do speak up. This bug was filed prior to Preview 2 shipping so I'm guessing that was using preview 1. Making code lens work when you open a generated file to view references to generated symbols is coming as a part of #52094 and an a non-open-source fix I have to make to the CodeLens tagger. |
This bug indeed seems to have been resolved in Preview 2!
This bug is also present with the current stable release (16.9.4) |
Yeah, this will impact current stable; I don't know if we'd do a backport of the fix at this time, but we'll keep that in mind. |
Yes, I can confirm I was using Preview 1 at the time of reporting; I have updated to Preview 2 and the issue is fixed on my solution, no more spurious messages. Thanks! |
Since making code lens work when you open a generated file is already tracked by the linked issue, and the bug in the subject is indeed fixed, I suppose this could be closed? |
Yep, closing, and due to the extra votes starting a conversation about a backport. |
And to follow up since a few other folks have ran into this: this will be fixed with 16.10. Based on internal schedules if we got a patch out for 16.9 it wouldn't get in your hands that much faster than just waiting for 16.10, so just best to sit tight and wait for a bit longer. |
Version Used: VS 2019 16.9.2, 16.9.3 and also the latest 16.10 preview
Steps to Reproduce:
The error in subject appears using code generators.
Upon opening a file in a project that uses the generator the error appears, multiple (dozens) of times.
Stack trace:
The solution that triggers the error is available at https://github.com/ldematte/TheRing
Just compile, open Program.cs in TheRing.Example.Inproc, and scroll a bit inside the code.
Expected Behavior:
No exception
The text was updated successfully, but these errors were encountered: