-
Notifications
You must be signed in to change notification settings - Fork 789
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
What does the "Big O" mean in the tooltip of an error? #6160
Comments
Ok, that is.. very weird. Are you able to reproduce this in a simple ConsoleApp project? |
It should be showing the error glyph, but for some reason that's not happening. |
@TIHan, I should have been clearer, I reproduced it in a clean console project before posting. Also, I've seen it longer before but don't know exactly when it appeared first. My guess is that it has something to do with scoping rules, but in earlier, pre 15.6 (I think) this didn't happen. |
No worries, just wanted to be sure. Seems @cartermp reproduced it easily as well. So this is definitely a bug. :) |
I had a quick look at this, and found the part where the icon-glyphs are used, and they seem sound. But then I realized that this is an error, which doesn't show/use those special glyphs. @TIHan or @cartermp, could any of you point me or hint me to the location where these tooltips are generated? I placed a bunch of breakpoints at what I thought were reasonable locations, but they weren't it. (I know this is a very minor thing with near-zero priority, but I like to pick up a few minor things to get a better feel for this part of the compiler). |
This is It might be a little tricky case, since the |
Thanks @cartermp. I'll experiment some more. But frankly, I think no image should be shown at all, as for any other error, we don't show the image of the item at the cursor (probably because the signature of the item is unknown). For some reason, in this particular case, the tooltip tries to show an image anyway. Since even if I'd change it to |
@abelbraaksma I got rid of the glyph when there's nothing reasonable to show in #9563 |
Cool! Thanks! Looking at that specific commit (3c56d86) I got close, but not close enough with my own little research ;). Tx for taking care of this :). |
I just noticed the following in the tooltip of an error in VS 2017:
I doubt this is a bug, but it confused me a little. Does it mean it is waiting for tasks to complete? Or does it signify something otherwise sensible?
Repro steps
The error can be seen, among others, with this code snippet (the actual error is sound, the bug report is about the mysterious "O"):
Expected behavior
Not sure, some text perhaps? On most objects, it would show the declaration, i.e. in this case, it should show this (but then the error underneath):
Actual behavior
The Big O ;)
Known workarounds
None
Related information
VS 2017, 15.9.5
The text was updated successfully, but these errors were encountered: