question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Display language doesn't persist in code-server v3.11.0 running in Docker container when installing from CLI

See original GitHub issue

OS/Web Information

  • Web Browser:
  • Local OS:
  • Remote OS:
  • Remote Architecture:
  • code-server --version: Version 3.11.0 of Code-Server

Steps to Reproduce

  1. Add file ā€œargv.jsonā€ to ā€œ/home/coder/.local/share/code-server/User/ā€
  2. Reload window
  3. Languague change
  4. Code of argv.json:
{
    "locale": "es"
}

Expected

Change Languague Display

Actual

Not Change Language Display

Logs

Screenshot

Notes

This issue can be reproduced in VS Code: Yes/No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:27 (16 by maintainers)

github_iconTop GitHub Comments

4reactions
code-ashercommented, May 13, 2021

I was able to replicate with:

$ rm ~/.local/share/code-server -r
$ code-server --install-extension ms-ceintl.vscode-language-pack-es
$ echo '{"locale":"es"}' > ~/.local/share/code-server/User/argv.json
$ code-server # Browse to localhost:8080

Strangely, I don’t get the option to select es from the command palette either even though the extension is installed.

If I uninstall the extension and re-install then refresh everything works.

I think there is some language bundle generation that happens somewhere that isn’t running when doing things in the CLI but is running when doing things through the UI.

3reactions
humbinalcommented, May 28, 2021
$ code-server --install-extension ms-ceintl.vscode-language-pack-es
$ ll ~/.local/share/code-server/
total 4
drwxr-xr-x 2 root root 59 May 28 22:28 CachedExtensionVSIXs
drwxr-xr-x 2 root root 66 May 28 22:27 coder-logs
drwxr-xr-x 3 root root 59 May 28 22:28 extensions
drwxr-xr-x 3 root root 29 May 28 22:27 logs
-rw-r--r-- 1 root root 36 May 28 22:27 machineid
drwxr-xr-x 2 root root  6 May 28 22:27 User

no languagepacks.json found, It’s what causes it not to work !!!

when install language pack manually by UI,the languagepacks.json file auto generated at ~/.local/share/code-server/ , and language pack works.

generate languagepacks.json file when exec code-server --install-extension ... will works, but I don’t know how to realize…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nvidia/cuda doesn't work on Docker Desktop but works on ...
Issue ā€œdocker run --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 ... nvidia-container-cli: initialization error: load library failed:Ā ...
Read more >
Installing DSpace - Confluence Mobile - LYRASIS Wiki
The DSpace Backend consists of a Server API ("server" webapp), built on Spring Boot. It is a Java web application. It can be...
Read more >
running code-server in the gcp terminal and then connecting ...
Now from code-server running inside the gcp terminal I need to connect to a docker container folder. However code-server does not seem toĀ ......
Read more >
Containerizing Visualization Software - ACM Digital Library
Coincidentally, this has had an impact in the HPC and scientific computing community, allowing system maintainers to maintain and install ...
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. ... objectives, and constraints; a command language for debugging models and analyzing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found