Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Catched an error in \lib\main.js at resolveLanguage(file) due to lack of main.nls.en.json #14

Open
4mitch opened this issue Oct 2, 2017 · 0 comments

Comments

@4mitch
Copy link

4mitch commented Oct 2, 2017

The error in C:\Program Files\Microsoft VS Code\resources\app\extensions\git\node_modules\vscode-nls\lib\main.js

Context:
file = "c:\Program Files\Microsoft VS Code\resources\app\extensions\git\out\main"
locale = "en"
candidate = ".nls.en.json"
_isPseude = false

The error has been threw by
if (fs.existsSync(file + candidate)) {
because there are no file main.nls.en.json in c:\Program Files\Microsoft VS Code\resources\app\extensions\git\out\

Seems this is linked with comment from [vscode/src/main.js] in getNLSConfiguration() (https://github.com/Microsoft/vscode/blob/962cd502224f7750cbf16bc676367ebab6ab35bc/src/main.js)

// Check if we have an English locale. If so fall to default since that is our
// English translation (we don't ship *.nls.en.json files)

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

1 participant