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

Ignore include errors #5402

Closed
aaronovz1 opened this issue May 1, 2020 · 10 comments
Closed

Ignore include errors #5402

aaronovz1 opened this issue May 1, 2020 · 10 comments
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Feature Request Language Service more info needed The issue report is not actionable in its current state

Comments

@aaronovz1
Copy link

How do you configure the extension to ignore the "#include errors detected" messages? I have files which are auto generated and won't be available in the workspace. This is causing a lot of spam and masking finding real issues from Flylint, etc.

@sean-mcmanus
Copy link
Contributor

You can set C_Cpp.errorSquiggles to "Disabled", although that will disable all squiggles. You could also try adding the path to the generated files to your includePath.

@aaronovz1
Copy link
Author

includePath isn't really an option as the workspace is kind of complicated. I'd rather just be able to disable this type of warning/error.

@sean-mcmanus
Copy link
Contributor

So disable the missing include error, but show other errors still? Sounds similar to #1231 ...maybe another issue too.

@aaronovz1
Copy link
Author

Yep that would be ideal. For now I've Disabled errorSquiggles to reduce the noise, but I am still seeing:
Include file not found in browse.path.

Shouldn't this check be disabled as well?

@sean-mcmanus
Copy link
Contributor

Ah, there's no setting to get rid of that currently. We've had previous requests for this (not sure what issue number).

If this VS Code issue were fixed (microsoft/vscode#51103) you could filter out all problems from our extension.

You could also set C_Cpp.intelliSenseEngine to "Disabled", which will disable all language features.

@aaronovz1
Copy link
Author

aaronovz1 commented May 4, 2020

What does intelliSenseEngine control? Does disabling that essentially turn off the entire extension? I still want intellisense and autocomplete features.

@sean-mcmanus
Copy link
Contributor

@aaronovz1 Yeah, it would disable all IntelliSense, autocomplete, etc....everything except the debugger.

@bobbrow bobbrow added the Feature: Configuration An issue related to configuring the extension or IntelliSense label May 7, 2020
@bobbrow
Copy link
Member

bobbrow commented May 7, 2020

You don't want to disable all of IntelliSense just to disable a squiggle. I'm actually not able to reproduce this problem. "C_Cpp.errorSquiggles": "Disabled" should be hiding all squiggles when the default IntelliSense is enabled.

That one you are reporting makes it sound like you're using the "Tag Parser" IntelliSense or something. What is your setting for C_Cpp.intelliSenseEngine and C_Cpp.intelliSenseEngineFallback?

@bobbrow bobbrow added the more info needed The issue report is not actionable in its current state label May 7, 2020
@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented May 8, 2020

@bobbrow Yeah, you're right. errorSquiggles "Disabled" with intelliSenseEngine "Default" doesn't show the include error message, but it does with intelliSenseEngine "Tag Parser" (with 0.28.0). I do see the message appear briefly, but then it disappears when the squiggle update finishes -- it's possible if the squiggle update fails (i.e. from an IntelliSense process crash) then the bug might repro.

@aaronovz1
Copy link
Author

I had to turn the "Intellisense Engine Fallback" to Disabled and this looks to have removed the remaining warnings. Output is looking good now while using the C/C++ Advanced Lint + cppcheck as the replacement.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Feature Request Language Service more info needed The issue report is not actionable in its current state
Projects
None yet
Development

No branches or pull requests

3 participants