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

C/C++ Code hints often disappear suddenly #5629

Closed
fm123456 opened this issue Jun 10, 2020 · 11 comments
Closed

C/C++ Code hints often disappear suddenly #5629

fm123456 opened this issue Jun 10, 2020 · 11 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service reliability
Milestone

Comments

@fm123456
Copy link

Code hints often disappear suddenly, and it will take effect only after restarting vscode. What is going on, can you help me?

@Nathaniel7687
Copy link

Nathaniel7687 commented Jun 10, 2020

After cpptools updated to the version 0.28.3, I cannot use all of the features about cpptools. Also, when I run vscode, the process as shown in the picture below continues and does not end.
image

@sean-mcmanus
Copy link
Contributor

@fm123456 cpptools-srv might be crashing. Do you see any "failed" messages in the C/C++ Output logs?

@Nathaniel7687 The download has some issue. Can you try installing the offline vsix at https://github.com/microsoft/vscode-cpptools/releases/tag/0.28.3 ?

@Nathaniel7687
Copy link

Nathaniel7687 commented Jun 10, 2020

@sean-mcmanus Even if, the vscode installed, the offline vsix cannot install the extension with the below error.

FYI, my vscode version is 1.45.1.

image
[View Install Log]

6/10/2020 1:28:03 PM - Microsoft VSIX Installer
6/10/2020 1:28:03 PM - -------------------------------------------
6/10/2020 1:28:03 PM - Initializing Install...
6/10/2020 1:28:04 PM - Extension Details...
6/10/2020 1:28:04 PM - Identifier : cpptools
6/10/2020 1:28:04 PM - Name : C/C++
6/10/2020 1:28:04 PM - Author : ms-vscode
6/10/2020 1:28:04 PM - Version : 0.28.3
6/10/2020 1:28:04 PM - Description : C/C++ IntelliSense, debugging, and code browsing.
6/10/2020 1:28:04 PM - Locale : en-US
6/10/2020 1:28:04 PM - MoreInfoURL :
6/10/2020 1:28:04 PM - InstalledByMSI : False
6/10/2020 1:28:04 PM - SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
6/10/2020 1:28:04 PM -
6/10/2020 1:28:04 PM - Supported Products :
6/10/2020 1:28:04 PM - Microsoft.VisualStudio.Code
6/10/2020 1:28:04 PM - Version :
6/10/2020 1:28:04 PM -
6/10/2020 1:28:04 PM - References :
6/10/2020 1:28:04 PM -
6/10/2020 1:28:04 PM - Searching for applicable products...
6/10/2020 1:28:04 PM - Found installed product - Microsoft Visual Studio Professional 2013
6/10/2020 1:28:04 PM - Found installed product - Microsoft Visual Studio 2013 Shell (Integrated)
6/10/2020 1:28:04 PM - Found installed product - Global Location
6/10/2020 1:28:04 PM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.InitializeInstall()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

@sean-mcmanus
Copy link
Contributor

@Nathaniel7687 Don't double-click it -- that causes Windows to try to use the default .vsix handler of VS and not VS Code.

Instructions

To use the "offline" .vsix (that doesn't download OS-based dependencies on extension activation), download the .vsix that matches your OS and run the "Install from VSIX" command in VS Code.

@Nathaniel7687
Copy link

@sean-mcmanus Thanks for your guidance. The problem is solved.

@michelleangela michelleangela added the more info needed The issue report is not actionable in its current state label Jun 10, 2020
@fm123456
Copy link
Author

fm123456 commented Jun 11, 2020

@fm123456 cpptools-srv might be crashing. Do you see any "failed" messages in the C/C++ Output logs?

@Nathaniel7687 The download has some issue. Can you try installing the offline vsix at https://github.com/microsoft/vscode-cpptools/releases/tag/0.28.3 ?

@sean-mcmanus hi, sean-mcmanus. How to see if cpptools-srv has crashed. the cpptools-srv is still running when code hint has uneffect
image

It seems that cpptools-srv has crashed,but then restarted

@sean-mcmanus
Copy link
Contributor

@fm123456 Yeah, cpptools-srv will usually restart after a crash. Our next release will have some crash fixes for cpptools-srv. You could attach a debugger to cpptools-srv before the crash to get a crash call stack if you want us to identify which crash is occurring.

@fm123456
Copy link
Author

@sean-mcmanus i find some cpptools-srv corefile, call stack are shown in the picture below
image
Hope it helps you~~

@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Jun 17, 2020

@fm123456 This crash has already been fixed in our pending 0.29.0-insiders. This is the 1st user report of the crash though.

@sean-mcmanus sean-mcmanus added bug fixed Check the Milestone for the release in which the fix is or will be available. reliability and removed more info needed The issue report is not actionable in its current state labels Jun 17, 2020
@sean-mcmanus sean-mcmanus added this to the 0.29.0 milestone Jun 17, 2020
@fm123456
Copy link
Author

@sean-mcmanus thanks

@sean-mcmanus
Copy link
Contributor

@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service reliability
Projects
None yet
Development

No branches or pull requests

4 participants