Skip to content

Extension Fails to Activate #14257

@Khrig

Description

@Khrig

Environment

  • OS and Version:
    NAME="Red Hat Enterprise Linux"
    VERSION="9.6 (Plow)"
    ID="rhel"
    ID_LIKE="fedora"
    VERSION_ID="9.6"
    PLATFORM_ID="platform:el9"

  • VS Code Version: 1.111.0

  • C/C++ Extension Version: 1.30.5

  • If using SSH remote, specify OS of remote machine:

Bug Summary and Steps to Reproduce

Bug Summary:

Extension Fails to Activate if .editorconfig exists anywhere between workspace and root as a directory - if it doesnt exist as a file.

Steps to reproduce:

  1. Create a workspace
  2. make sure no .editorconfig file exists in between root and workspace and create it as a directory
  3. Activate extension
  4. See error

would be preferable for the .editorconfig folder to be ignored and emit a warning

Configuration and Logs

2026-03-10 10:19:22.129 [error] Activating extension ms-vscode.cpptools failed due to an error:
2026-03-10 10:19:22.129 [error] Error: EISDIR: illegal operation on a directory, read
    at Object.readFileSync (node:fs:440:20)
    at getEditorConfig (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:63558:42)
    at getEditorConfigSettings (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:63595:32)
    at findConfigFile (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:23880:89)
    at CppSettings.useVcFormat (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:23918:17)
    at DefaultClient.updateActiveDocumentTextOptions (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:69273:26)
    at new DefaultClient (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:67851:14)
    at Object.createClient (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:67442:12)
    at /tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:115411:44
    at Array.forEach (<anonymous>)
    at new ClientCollection (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:115410:47)
    at Object.activate (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:11352:23)
    at activate (/tmp/.vscode-server/extensions/ms-vscode.cpptools-1.30.5-linux-x64/dist/src/main.js:120762:30)
    at async zv._activate (file:///tmp/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/out/vs/workbench/api/node/extensionHostProcess.js:494:15965)
    at async zv._waitForDepsThenActivate (file:///tmp/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/out/vs/workbench/api/node/extensionHostProcess.js:494:15907)
    at async zv._initialize (file:///tmp/.vscode-server/cli/servers/Stable-ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb/server/out/vs/workbench/api/node/extensionHostProcess.js:494:15274)

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.quick fix

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions