Skip to content

cannot set privileged capabilities: Operation not permitted error for Snap installed packages #278746

Description

@vepain

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.106.2
  • OS Version: Ubuntu 24.04

Steps to Reproduce:

  1. Install shellcheck via snap (or other snap package)
  2. Open vscode integrated terminal
  3. run /snap/bin/shellcheck --version
  4. Get error message cannot set privileged capabilities: Operation not permitted

Note that this problem also appears on extensions using snap installed packages.
For example with matthiesen-technology.yaml-with-script extension (needs shellcheck).

On another terminal:

/snap/bin/shellcheck --version
# no problem

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugsnapIssues related to the snap package

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions