-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Code suggestions for multiple struct members don't appear in addition or subtraction expressions #2184
Comments
Thanks for reporting this. I'm able to repro it. It appears to not repro on Windows, which is unexpected (it turns out, my Linux machine was slower, making the repro easier). UPDATE: Looks like edits were incorrectly getting queued async so the completion request would randomly occur before the required edits. |
Should be fixed with 0.17.6. |
It's still happening on my system with version 0.17.6 |
@BrandonShockley I'm not able to repro any issue. Can you provide any suggestions on how to more easily repro the problem? We definitely fixed a bug here with edits getting delayed that caused completion to fail, but you could be hitting some other issue. |
I'm not sure what else I can specify. I tried the same thing I put in the bug description on a Windows machine and the bug happens on it too. |
Is the bug random when typing? What happens if you press Ctrl+Space with existing text? If you could run our extension from our typescript you could view the C/C++ Debug Protocol pane which shows logs about what messages are being sent, such as the logs below which show the correct completion. Does it repro with a new file? It's possible other code beforehand is causing a failure.
|
In experimenting, I think I discovered another bug. I had a test.c file open with Regarding your questions, the bug isn't random. I've noticed it every time I've tried to add two struct members since I started using the extension in November. Ctrl + space shows "No suggestions". It occurs whether the file is new or not. I'll see about running it from typescript tomorrow afternoon. |
I can repro if I use a C file, not C++. I think that was the missing detail. |
It repros in Visual Studio too. I'll open a bug for them. |
No ETA on when the VS team will be able to provide a fix for this...we'll update this when we have more info. |
Bob filed a bug for this 5 months ago, but the Visual Studio C++ devs have been too busy to investigate. Please upvote the issue at https://developercommunity.visualstudio.com/content/problem/407956/cc-intellisense-no-member-list-appears-after-typin.html if you want them to fix this. |
Type: LanguageService
----- Input information below -----
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Define a global Demo called test
struct Demo test;
Attempt to add two or more members of test in an expression
Expected behavior
It is expected that Intellisense suggestions will appear for all struct members in an expression.
Screenshots
The text was updated successfully, but these errors were encountered: