Skip to content

[Bug] EACCES scanning for toolkits #5020

Closed

Description

@Spongman

Brief Issue Summary

vscode on windows, connected to rocky9 wsl2 instance.

"scan recursively for kits in specific directories" -> "/opt/rh/"

[rollbar] Unhandled exception: Unhandled Promise rejection: selectKit Error: EACCES: permission denied, scandir '/opt/rh/gcc-toolset-13/root/root' {}

no kits are added

$ ls -ld /opt/rh/gcc-toolset-15/root/root
dr-xr-x--- 2 root root 4096 Oct 29  2025 /opt/rh/gcc-toolset-15/root/root

CMake Tools Diagnostics

(see above)

Debug Log

n/a

Additional Information

No response

Activity

  1. yanghhhhhhh commented on Aug 3, 2026

    @yanghhhhhhh
    Collaborator

    Hi Spongman (@Spongman) , thank you for reporting this issue. We tried to check this issue on Visual Studio Code v1.131.0 + CMake Tools v1.23.52. But we can't reproduce this issue. Could you help to take a look at it? If we missed something, please let us know. In order for us to investigate this further, could you please provide a sample project and the detailed repro steps to us? Thanks.

    Image
  2. added
    more info neededMore info is needed from the community for us to properly triage and investigate.
    and removed on Aug 3, 2026
  3. Spongman commented on Aug 3, 2026

    @Spongman
    Author
    Recording.mp4
  4. yanghhhhhhh commented on Aug 4, 2026

    @yanghhhhhhh
    Collaborator

    Hi Spongman (@Spongman) , thanks for reporting issue here!
    We can reproduce this issue on Ubuntu and Rocky.
    Env: Visual Studio Code v1.131.0 + CMake Tools v1.23.52.

    Repro Steps:

    1. Launch VS Code and press F1, execute "WSL: Connect to WSL"
    2. Open a CMake project, run command "CMake: Select a Kit" and "[Scan recursively for kits in specific directories (max depth: 5)]".
    3. Choose a directory without permissions, observe the result. (sudo chmod -R 777 /path/to/folder)

    Details please see following video:

    Image

    FYI: Garrett Campbell (@gcampbell-msft)

  5. removed
    more info neededMore info is needed from the community for us to properly triage and investigate.
    on Aug 4, 2026
  6. moved this from Blocked to Completed in CMake Toolson Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in the product

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions