Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'localize' keys must be string literals #58859

Closed
roblourens opened this issue Sep 18, 2018 · 1 comment
Closed

'localize' keys must be string literals #58859

roblourens opened this issue Sep 18, 2018 · 1 comment
Assignees

Comments

@roblourens
Copy link
Member

This is breaking a local build for me, and I actually don't know why the real build isn't broken?

TerminalActions has a localize call with a variable as id: https://github.com/Microsoft/vscode/blob/c7cff3819c1ea2a30675e96f514cef9b80069fb6/src/vs/workbench/parts/terminal/electron-browser/terminalActions.ts#L1201

And these calls get rewritten into another file where that variable doesn't exist.

$ yarn run gulp vscode-darwin 
[...]
[18:26:10] Starting 'optimize-vscode'...
out-build/vs/workbench/parts/terminal/electron-browser/terminalActions.nls.keys.js:64
        TERMINAL_COMMAND_ID.TOGGLE_FIND_REGEX,
        ^

ReferenceError: TERMINAL_COMMAND_ID is not defined
    at Object.<anonymous> (out-build/vs/workbench/parts/terminal/electron-browser/terminalActions.nls.keys.js:64:2)
    at NodeScriptLoader._loadAndEvalScript (evalmachine.<anonymous>:801:15)
    at evalmachine.<anonymous>:771:31
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:525:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@roblourens
Copy link
Member Author

roblourens commented Sep 18, 2018

@roblourens roblourens added this to the September 2018 milestone Sep 18, 2018
roblourens added a commit that referenced this issue Sep 18, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants