Skip to content

Unable to start the C/C++ language server [Error: TypeError: vscode.workspace.workspaceFolders is not iterable] #5049

@FungluiKoo

Description

@FungluiKoo

Describe the bug

  • OS and Version: Windows 10 Home 1909
  • VS Code Version: 1.42.1 (user setup)
  • C/C++ Extension Version: 0.27.0
  • Other extensions you installed (and if the issue persists after disabling them): ms-python.python, ms-vscode-remote.remote-wsl
  • A clear and concise description of what the bug is: A similar issue appeared two months ago, and last week I uninstalled all the extensions and uninstalled the VSCode, and then reinstalled them, and it became fine, until today this error appeared again.

To Reproduce

  1. Wake up in the morning
  2. Open a .cpp file in my personal directory with VSCode
  3. See error

Screenshots

Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: TypeError: vscode.workspace.workspaceFolders is not iterable

Additional context
This problem can be solved by uninstalling the extension and reinstall a 0.26.3 version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.verifiedBug has been reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions