microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.51k stars 1.55k forks source link

Extension dosen't load anymore #7080

Closed Ostpopcorn closed 3 years ago

Ostpopcorn commented 3 years ago

Type: General

Describe the bug

Expected behavior Well it should be loaded correctly.

Additional context Don't think I have opened VSC i a little while (~1 month) so maybe something happend in the update. But to be clear I have used it without problem for a long time, so it's not a fresh install.

If there is something else you would like see I'll share as soon as possible.

Colengms commented 3 years ago

Hi @Ostpopcorn . If you are seeing a "Cannot find module" error, it's possible an error occurred when installing/upgrading the extension. I had opened this issue against VS Code for previous occurrences of this: microsoft/vscode#100537

Could you take a look at that issue, and set aside the vsix they are asking for? Then, could you try deleting the entire ms-vscode.cpptools-x.x.x folder from the extensions folder and reinstalling the extension? If the newly installed version works, perhaps we could get VS Code to revisit that issue.

Ostpopcorn commented 3 years ago

Hi @Colengms! The "did not find module" was before I deleted the folder for the extension the first time, and I dont think that can be reversed now. But now I did the following and no change.

  1. Reinstall without removing any folder
  2. Reinstall + removing extension folder
  3. Reinstall + removing extension folder + removing cpptools from CashedExtensionVSIXs

bild

Do I need to try a complete reinstall of VSC now or what should I do? Clear out some other folder? Thanks for the help!

Colengms commented 3 years ago

Hi @Ostpopcorn . The "Buffer() is deprecated" error is actually a warning. That last log you provided suggested that the extension should now be working. Can you confirm?

Ostpopcorn commented 3 years ago

Yes, it dose work now. Must have been removing cpp-tools the first time that fixed it. Thanks for the help anyways!