Skip to content

[Bug]: (install.sh) Cannot install preferred version via yarn #4832

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

Closed
3 tasks done
jvadair opened this issue Feb 5, 2022 · 5 comments
Closed
3 tasks done

[Bug]: (install.sh) Cannot install preferred version via yarn #4832

jvadair opened this issue Feb 5, 2022 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@jvadair
Copy link

jvadair commented Feb 5, 2022

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox
  • Local OS: Kubuntu
  • Remote OS: Raspberry Pi OS
  • Remote Architecture: armv7l
  • code-server --version: (not applicable)

Steps to Reproduce

  1. download the install.sh script
  2. sh install.sh --version 3.11.1

Expected

Version 3.11.1 should be installed

Actual

The latest version is installed

Logs

yarn global add [email protected] does not result in any errors.
When installed via this method, the correct version is installed.

Screenshot/Video

Screenshot_20220205_125447
Screenshot_20220205_125518
Screenshot_20220205_120935

Does this issue happen in VS Code?

  • I cannot reproduce this in VS Code.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

I am installing this version because I believe it is the version I had before upgrading. The latest version does not work for me, since it throws this error every time I open it:

"The workbench failed to connect to the server (Error: WebSocket close with status code 1006)"

I know that #4443 addresses this issue, but the solutions provided are only for nginx, and I use Apache.

@jvadair jvadair added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Feb 5, 2022
@ZandercraftGames
Copy link

I too am having a similar issue with the latest version and the 1006 error. It would be nice to get a solution that works with Apache to solve this issue. For now I'm deferring the update.

@jvadair
Copy link
Author

jvadair commented Feb 7, 2022

I too am having a similar issue with the latest version and the 1006 error. It would be nice to get a solution that works with Apache to solve this issue. For now I'm deferring the update.

What is the latest working version for you? I would like to stay as up-to-date as possible.

@ZandercraftGames
Copy link

What is the latest working version for you? I would like to stay as up-to-date as possible.

I updated to 3.11.0, but it introduces an error of Unable to write to Folder Settings because no resource is provided.. Doesn't seem to functionally change anything at first glance, but I know they claim to have fixed it in subsequent versions. Just don't have those versions working. I might try going through all the minor version updates to see how far I can push it.

@jvadair
Copy link
Author

jvadair commented Feb 7, 2022

I might try going through all the minor version updates to see how far I can push it

I've upgraded to 3.12.0 now, and I'm not seeing any issues. It would seem the next releases are 4.x, so I won't be upgrading any further for now.

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 7, 2022

I took a look at our install script. It looks like it always defaults to latest, and doesn't use --version even when passed. See here:

Thanks for catching this!

Apologies for the errors y'all. The team was 4 last year this time. Now I'm the only one full-time. Hoping I can get the 1006 error and others resolved so y'all can upgrade. In the meantime, thanks for the patience!

@jsjoeio jsjoeio removed the triage This issue needs to be triaged by a maintainer label Feb 7, 2022
@jsjoeio jsjoeio added this to the On Deck milestone Feb 7, 2022
yiliang114 pushed a commit to yiliang114/code-server that referenced this issue Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants