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

Color theme settings doesn't take effect immediately after rebuild #1956

Closed
deepak1556 opened this issue Dec 3, 2019 · 15 comments
Closed

Color theme settings doesn't take effect immediately after rebuild #1956

deepak1556 opened this issue Dec 3, 2019 · 15 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers

Comments

@deepak1556
Copy link

When Testing #1938

Steps to Reproduce:

  1. Open Container Configuration File and add a setting "workbench.colorTheme": "Visual Studio Light"

  2. Reopen in Container and see that the color theme takes effect

  3. Redo step 1) in container window with a new theme

  4. Reload window and see the prompt to rebuild the container

  5. Once container is rebuilt should see the new theme take effect, but it doesn't unless Reload Window command is used

Another side effect, might have same root cause.

  1. After step 5) when the new theme is in effect use Attach to running container and the newly attached window will have the theme from step 1) unless it is reloaded too.
@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers labels Dec 4, 2019
@chrmarti
Copy link
Contributor

chrmarti commented Dec 4, 2019

I sometimes see it switch back to Dark+ after attaching to a container with the Light theme configured. /cc @sandy081

@sandy081
Copy link
Member

sandy081 commented Dec 4, 2019

Can you please try switching themes back and forth works when container window is open?

@chrmarti
Copy link
Contributor

chrmarti commented Dec 4, 2019

Switching themes works. There seems to be a cache somewhere, I just opened a folder in a container and it switched to the Light theme although that was not configured in any of the three possible settings JSONs.

@sandy081
Copy link
Member

sandy081 commented Dec 4, 2019

Can you please check if this is same case for all settings or only for themes?

@chrmarti
Copy link
Contributor

chrmarti commented Dec 5, 2019

It's the only one I see this with (after trying a few).

@sandy081
Copy link
Member

sandy081 commented Dec 5, 2019

Then I think the cache could be at theming. @aeschli any idea?

@aeschli
Copy link
Contributor

aeschli commented Dec 5, 2019

The theme service first uses a persisted theme and listens for configuration change events.
I would expect to be a change event once the machine settings are read.

@sandy081
Copy link
Member

sandy081 commented Dec 5, 2019

Ok assigning myself to investigate.

@sandy081 sandy081 self-assigned this Dec 5, 2019
@sandy081 sandy081 modified the milestones: November 2019, December 2019 Dec 5, 2019
@chrmarti chrmarti modified the milestones: January 2020, February 2020 Jan 29, 2020
@chrmarti chrmarti modified the milestones: February 2020, March 2020 Feb 26, 2020
@chrmarti chrmarti modified the milestones: March 2020, On Deck Apr 1, 2020
@sandy081
Copy link
Member

@chrmarti I can repro it but I am not able to debug this out of sources ie., VS Code Dev + Dev Container extension as I am seeing following error while opening

[8 ms] Start: Resolving remote
[9 ms] Setting up container for folder or workspace: /Users/sandy081/work/vscode-dev-containers/containers/typescript-node-12

[11 ms] Start: Run: git rev-parse --show-toplevel
[23 ms] Start: Check Docker is running
[23 ms] Start: Run: docker info
[129 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/sandy081/work/vscode-dev-containers/containers/typescript-node-12 --filter label=vsch.quality=undefined
[166 ms] Start: Run: docker build -f /Users/sandy081/work/vscode-dev-containers/containers/typescript-node-12/.devcontainer/Dockerfile -t vsc-typescript-node-12-9425b5c6c267d4a2a79cc929975c85b9 /Users/sandy081/work/vscode-dev-containers/containers/typescript-node-12/.devcontainer
Sending build context to Docker daemon  5.632kB
Step 1/5 : FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:12
12: Pulling from vscode/devcontainers/javascript-node
1c6172af85ee: Pull complete 
b194b0e3c928: Pull complete 
1f5ec00f35d5: Pull complete 
93b1353672b6: Pull complete 
3d7f38db3cca: Pull complete 
21e102f9fe89: Pull complete 
224a0b313ce8: Pull complete 
24ea7952e196: Pull complete 
0cffdcdd6d94: Pull complete 
e02b973a6eb7: Pull complete 
Digest: sha256:6c5382a8ef00f006d3f411cb28cead5aa0523a3b43bd060c424b5afef74e30cb
Status: Downloaded newer image for mcr.microsoft.com/vscode/devcontainers/javascript-node:12
 ---> 6005cce56e5a
Step 2/5 : ARG USERNAME=node
 ---> Running in b1118538a441
Removing intermediate container b1118538a441
 ---> c51ab6de1452
Step 3/5 : ARG USER_UID=1000
 ---> Running in 4eba155cf79b
Removing intermediate container 4eba155cf79b
 ---> 4dd22b0fb8f2
Step 4/5 : ARG USER_GID=$USER_UID
 ---> Running in b825850a3daf
Removing intermediate container b825850a3daf
 ---> 4f1622d80635
Step 5/5 : RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then         groupmod --gid $USER_GID $USERNAME         && usermod --uid $USER_UID --gid $USER_GID $USERNAME         && chown -R $USER_UID:$USER_GID /home/$USERNAME;     fi     && sudo -u ${USERNAME} npm install -g tslint typescript
 ---> Running in 45ac7973178b
npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
/usr/local/share/npm-global/bin/tslint -> /usr/local/share/npm-global/lib/node_modules/tslint/bin/tslint
/usr/local/share/npm-global/bin/tsc -> /usr/local/share/npm-global/lib/node_modules/typescript/bin/tsc
/usr/local/share/npm-global/bin/tsserver -> /usr/local/share/npm-global/lib/node_modules/typescript/bin/tsserver
+ tslint@6.1.2
+ typescript@3.9.5
added 38 packages from 21 contributors in 6.526s
Removing intermediate container 45ac7973178b
 ---> b701978fc47e
Successfully built b701978fc47e
Successfully tagged vsc-typescript-node-12-9425b5c6c267d4a2a79cc929975c85b9:latest
[121065 ms] Start: Run: docker inspect --type image vsc-typescript-node-12-9425b5c6c267d4a2a79cc929975c85b9
[121110 ms] Start: Run: docker create sha256:b701978fc47e1160c6c504ed821eec87e491c7e880acfae156ce7b9c1a529737
[121196 ms] Start: Run: docker exec -i -u root 852b70c4b66e9f28b26dbf79dacd0a32f9b5aaa60d8913e675714c8ef4a1ad2c cat /etc/passwd
[121234 ms] 
[121234 ms] Error response from daemon: Container 852b70c4b66e9f28b26dbf79dacd0a32f9b5aaa60d8913e675714c8ef4a1ad2c is not running

[121235 ms] Start: Run: docker rm 852b70c4b66e9f28b26dbf79dacd0a32f9b5aaa60d8913e675714c8ef4a1ad2c
[121238 ms] Start: Run: docker ps -q -a --filter label=vsch.local.folder=/Users/sandy081/work/vscode-dev-containers/containers/typescript-node-12 --filter label=vsch.quality=undefined
[121273 ms] Command failed: cat /etc/passwd

Can you please investigate or help me in debugging this out of sources?

@chrmarti
Copy link
Contributor

@sandy081 Is this with the latest commit of vscode-dev-containers?

@sandy081
Copy link
Member

I am not sure what you mean by that.. but I used the latest version of vscode-dev-containers extension.

@chrmarti
Copy link
Contributor

chrmarti commented Jun 16, 2020

@sandy081 This appears to be on Linux, right? (Edit: Misinterpreted the log, it is running VS Code out of source.)

@chrmarti
Copy link
Contributor

@sandy081 Try setting the "commit" in the product.json to the lastest Insiders commit hash.

@chrmarti
Copy link
Contributor

@sandy081 You also need to yarn add https://github.com/microsoft/vsda.git\#660658da0a7c0df399037d0a47d5640fe588119d in the vscode folder.

Longer term it would make sense to get this again running with the server running out of source, but that is currently broken and needs work to get it back.

@chrmarti chrmarti removed their assignment Oct 26, 2020
@sandy081
Copy link
Member

This is working for me now. Hence closing this.

@sandy081 sandy081 removed this from the On Deck milestone Nov 16, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug containers Issue in vscode-remote containers
Projects
None yet
Development

No branches or pull requests

4 participants