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

Error after installing Microsoft C/C++ Extension #3888

Closed
ArtsJrn opened this issue Jul 7, 2019 · 5 comments
Closed

Error after installing Microsoft C/C++ Extension #3888

ArtsJrn opened this issue Jul 7, 2019 · 5 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix regression A bug that didn't exist in a previous release
Milestone

Comments

@ArtsJrn
Copy link

ArtsJrn commented Jul 7, 2019

As title states, the extension from Microsoft C/C++ in the visual code's recommended extensions list keeps returning an error every time I try to install it.

The error goes like this: Failed to parse "\.vscode\c_cpp_properties.json": ENOENT: no such file or directory, open '\.vscode\c_cpp_properties.json'

Now I also keep getting these error messages from the Problem section of the lower panel (outputs, terminal...etc):

  • #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\Jordan\Documents\sample.cpp).

  • cannot open source file "iostream"

I've tried reinstalling the extension & visual code multiple times...restarting my computer multiple times, but nothing seems to work. It used to work before I did a clean reset for my windows 10 computer, but now it's just acting up. Please fix this error so I can continue to create applications programmed in C++... :)

P.S, these are additional images in case anyone wants a look at them themselves:

image

image
image
image

@pieandcakes pieandcakes changed the title Microsoft's C/C++ Extension. Error after installing Microsoft C/C++ Extension Jul 8, 2019
@sean-mcmanus
Copy link
Collaborator

We need more repro info. Are you opening a folder? Does the folder contain a ".vscode" folder and a "c_cpp_properties.json" file? Can you do an Edit Configuration command to create that file?

@sean-mcmanus sean-mcmanus added bug Language Service more info needed The issue report is not actionable in its current state not reproing We're not able to reproduce the issue (it's unlikely to get fixed until we find one). labels Jul 8, 2019
@TheThinker01
Copy link

After installing Microsoft's C/C++ extension whenever I try opening a C file (only a single file, from a folder containing many other non related files) the error
Failed to parse "/.vscode/c_cpp_properties.json": ENOENT: no such file or directory, open '/.vscode/c_cpp_properties.json'
keeps on popping up as a notification toast.
Barring this irritating notification, intelliSense seems to be working fine.
Screenshots:
Screenshot from 2019-07-26 18-40-49

@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Jul 26, 2019

Okay, thanks for the info. I'm able to repro it in the Open File scenario. It should be fixed in our next Insiders release: #3986 .

@sean-mcmanus sean-mcmanus added fixed Check the Milestone for the release in which the fix is or will be available. and removed more info needed The issue report is not actionable in its current state not reproing We're not able to reproduce the issue (it's unlikely to get fixed until we find one). labels Jul 26, 2019
@sean-mcmanus sean-mcmanus added this to the August 2019 milestone Jul 26, 2019
@sean-mcmanus sean-mcmanus added quick fix regression A bug that didn't exist in a previous release labels Jul 26, 2019
@sean-mcmanus
Copy link
Collaborator

Should be fixed with 0.25.0-insiders: https://github.com/microsoft/vscode-cpptools/releases/tag/0.25.0-insiders .

@derast
Copy link

derast commented Oct 12, 2019

I had faced a similar problem after update the extension.

1- Delete .vscode/c_cpp_properties.json file
2- Ctrl + Shift P and pick C/C++ Edit configurations JSON
3- Add yours paths to includePath

@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 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 quick fix regression A bug that didn't exist in a previous release
Projects
None yet
Development

No branches or pull requests

4 participants