Skip to content

ERROR: Protected fields have been made PUBLIC. #310191

Closed

Description

Does this issue occur when all extensions are disabled?: N/A

Steps to Reproduce:

  1. Clone the repository anew, run npm install, run npm run compile-build
  2. We get:
[19:58:03] Starting compile-src ...
[19:58:14] [mangler] Done collecting. Classes: 10537. Exported symbols: 13077
[19:58:15] [mangler] WARN: 'setEditorVisible' from src/vs/workbench/browser/parts/editor/editorPane.ts:160 became PUBLIC because of: src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.ts:303
[19:58:15] [mangler] WARN: '_enableCommandLineSandboxRewriting' from src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts:534 became PUBLIC because of: src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.ts:68
[19:58:15] [mangler] ERROR: Protected fields have been made PUBLIC. This hurts minification and is therefore not allowed. Review the WARN messages further above
[19:58:15] Starting compilation...
[19:58:15] 'compile-build-with-mangling' errored after 12 s

After resolving those two compilation is successfully being able to run:

$ dum compile-build
$ compile-build
$ npm run gulp compile-build-with-mangling

> [email protected] gulp
> node --max-old-space-size=8192 ./node_modules/gulp/bin/gulp.js compile-build-with-mangling

[20:05:44] Using gulpfile gulpfile.mjs
[20:05:44] Starting 'compile-build-with-mangling'...
[20:05:44] Starting copy-codicons ...
[20:05:44] Finished copy-codicons after 2 ms
[20:05:44] Starting clean-out-build ...
[20:05:44] Finished clean-out-build after 5 ms
[20:05:44] Starting build-date-file ...
[20:05:44] Finished build-date-file after 17 ms
[20:05:44] Starting compile-api-proposal-names ...
[20:05:44] Starting compilation api-proposal-names...
(node:7355) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[20:05:44] Finished compilation api-proposal-names with 0 errors after 27 ms
[20:05:44] Finished compile-api-proposal-names after 30 ms
[20:05:44] Starting compile-src ...
[20:05:56] [mangler] Done collecting. Classes: 10537. Exported symbols: 13077
[20:05:57] [mangler] Done creating class replacements
[20:05:57] [mangler] Starting prepare rename edits
[20:05:58] Starting compilation...

Activity

  1. added a commit that references this issue on Apr 15, 2026
    fe55e0c
  2. vs-code-engineering commented on Apr 15, 2026

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.116.0. Please try upgrading to the latest version and checking whether this issue remains.

    Happy Coding!

  3. added a commit that references this issue on Apr 16, 2026
    a976291
  4. added a commit that references this issue on Apr 16, 2026
    07013e4
  5. added this to the 1.117.0 milestone on Apr 16, 2026
  6. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Apr 16, 2026
  7. added
    debt
    on Apr 17, 2026
  8. locked and limited conversation to collaborators on May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtinsiders-releasedtriage-needed

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions