code-server: Open Workspace while another Workspace is open doesn't work.
OS/Web Information
- Web Browser: Firefox 87.0
- Local OS: M1 Macbook Air, MacOS 11.2.3
- Remote OS: Ubuntu 20.04
- Remote Architecture: x64
code-server --version: 3.9.2 109d2ce3247869eaeab67aa7e5423503ec9eb859
Steps to Reproduce
- Open and work on the workspace
- Click menu bar left top corner -> File -> Open Workspace
- Try to open
Expected
New workspace should open
Actual
Nothing happens
and it also cd..s on the input area or says Please select a file.
Screenshot
Notes
This issue can be reproduced in VS Code: No
At the video I attached has language that is not in English, but that is NOT why this happens.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 55 (20 by maintainers)
Commits related to this issue
- Delete local storage patch The main goal of this patch was to make user settings stored on disk instead of in the browser, but this stopped working some time ago. Not only that but it is causing a b... — committed to coder/code-server by code-asher 7 months ago
- Add back local storage patch And fix the workspace bug. It is caused by an issue with how some global variables are being used asynchronously and is exacerbated by the delay reading settings from th... — committed to coder/code-server by code-asher 7 months ago
- Add back local storage patch And fix the workspace bug. It is caused by an issue with how some global variables are being used asynchronously and is exacerbated by the delay reading settings from th... — committed to coder/code-server by code-asher 7 months ago
I have confirmed that this problem does not appear to exist in v4.16.1.
docker run -it --rm --name code-server -p 127.0.0.1:8080:8080 -v "$HOME/.config:/home/coder/.config" -v "$PWD:/home/coder/project" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" codercom/code-server:4.16.1It is worth noting that v4.17.0 included a significant update that might be at the root of this issue.
The diff between these two releases:
I gave a summary + response on https://github.com/coder/code-server/issues/6546, let’s continue there shall we?
@code-asher what do you think? Should I start another issue for it? Thanks.
(still presents
Although I have not had the opportunity to test this fix yet, I am guessing that the fix (reverting the
local storage patch) actually removed another feature that we rely on in our environment, the ability to set some default User settings which will be pre-set in VScode, without the user needing to set them in each and every browser they open (home, work, etc). This was a core reason we picked code-server over gitpod’s implementation.I’ll add this to the new issue that @bilogic is starting.
Thank you.
@code-asher I can confirm that
code-server-4.19.1-rc.1-linux-amd64.tar.gzwith Code 1.84.2 is deployed at https://coder.jupyter.b-data.ch; ImageR (base:test-devtools-docker).Issue appears to be fixed for me after testing with multiple browsers and across workspace reloads. Thank you for the prompt resolution of this issue! Greatly appreciated!
Finally put up a release candidate. I would love to hear confirmation on whether the issue is resolved from anyone that was having the issue.
My pleasure.
No worries.
Thanks for all your efforts. Much appreciated – as always.
Wow thanks! Yea, I was reading up, made my way through several errors. But it is faster to try your
.deb. Thanks! 😃UI becomes unresponsive, opening another workspace is one of the ways of reproducing the problem.4.13.04.17.1I am also experiencing this same issue on multiple different browsers (Safari and Chrome). It seemed like it started happening with the release of code-server 4.17.0.
Understood. Thank you @code-asher
Some additional details
While searching for a workaround, I was also able to reproduce this issue just by starting up
code-serverviasystemdwith a multi-folder workspace file, launching a private/incognito browsing window tohttps://code.example.com/, and logging in. The browser would redirect tohttps://code.example.com/?workspace=/home/me/.vscode/default.code-workspaceand often show the same symptoms. Sometimes, it works initially, but a refresh in the browser window always causes it to break. There doesn’t appear to be a need for a second browser window to trigger this.In this example,
code-serveris started with a command likesudo systemctl start code-server@me.It looks like I am not going to be able to get to this in the next two weeks, and I am going to be away from my keyboard for a few weeks after that, but I will try to check in periodically in case someone takes this up and submits a PR. If not I will see about scheduling some time for it after I get back.
I’ve love to see this fixed - we’d also be happy to sponsor the fix, if that helps.
(still presents
Interesting! Well at least this is a starting point 😃 Thanks for the update @SJang1 !
Finally got an error on the client-side on 3.9.3 fe2dc2deb08e378069891b622bb62ad1d261d1b1 when trying to press OK button on the Open Workspace.
No unusual logs on the server-side even for now.
Update: There was no any unusual log on my side either. (On both server/client with
--log debuglike that video in the comment.)