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

Language Server hallucinates errors #12798

Closed
bbrk24 opened this issue Oct 3, 2024 · 2 comments
Closed

Language Server hallucinates errors #12798

bbrk24 opened this issue Oct 3, 2024 · 2 comments
Labels
bug Language Service more info needed The issue report is not actionable in its current state

Comments

@bbrk24
Copy link

bbrk24 commented Oct 3, 2024

Environment

  • OS and Version: I'm on Windows 11, but I'm running VS Code in WSL2 (Ubuntu 22.04).
  • VS Code Version: 1.93.1
  • C/C++ Extension Version: 1.22.7
  • If using SSH remote, specify OS of remote machine: N/A

Bug Summary and Steps to Reproduce

Bug Summary:

This isn't consistent so I can't give a good reproduction, but sometimes when I open certain files the language server invents an issue to get mad at. As shown in the screenshot below, it's complaining about a mismatched { on line 37, character 3, but line 37 only has two characters. If I close all editors and reopen this file, there is no error; if I restarted the extension without closing the file, the error came back as soon as the extension was online.

image

It also said "expected a declaration" at one point with no further notes, but I didn't get a screenshot of that.

Steps to reproduce:

  1. Open a file with a C++ class definition
  2. Scroll down to the };
  3. Observe error squiggles

Expected behavior:

No error

Configuration and Logs

I can't put it here because if I do, GitHub gives me the error

> Comment is too long (maximum is 65536 characters)

It seems to be searching the node_modules of a subdirectory for includes, which is why the log output is so long. If need be, I can upload it as a .txt file.

Other Extensions

While I do have a decent number of extensions (22 total), I don't think any of them affect C/C++ error squiggles.

Additional context

No response

@sean-mcmanus sean-mcmanus added bug Language Service more info needed The issue report is not actionable in its current state labels Oct 3, 2024
@sean-mcmanus
Copy link
Contributor

@bbrk24 I think we need more repro info. This might be fixed with our pending 1.22.8 from #12175 .

@bbrk24
Copy link
Author

bbrk24 commented Oct 20, 2024

Yeah, I can't reproduce this anymore (1.22.9).

@bbrk24 bbrk24 closed this as completed Oct 20, 2024
@github-project-automation github-project-automation bot moved this to Done in cpptools Oct 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Language Service more info needed The issue report is not actionable in its current state
Projects
Status: Done
Development

No branches or pull requests

2 participants