-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Cannot install the NPM package without X11 anymore (aka missing modifications on vendored vscode?) #4179
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
Comments
Thank you for the detailed report @edvincent! We made quite a few changes with how code-server bundles VS Code so very possible we missed some things. We'll investigate! cc @TeffenEllis |
Thanks for bringing this to our attention. 3.12.0 includes a large code cleanup and as you’ve experienced first hand, some regressions have slipped through. We’ll be releasing a fix most likely within the next day or so, along with a few other improvements. |
Yup been following myself those changes (which I love and definitely make the repo nicer, nice work @TeffenEllis!), and I'm not sure where (if any?) the modifications that used to be done on top of the vscode imports were done with the new vendored code.. Couldn't see that in any of the PR's :/ In which case there might be other features "broken" if the patches are missing... Happy to help tracking (and testing) some of those if someone can point me to where we brought the modifications - and see what we might have missed? I added some more exact reproduction steps in the issue itself (which I used to ensure my machine wasn't the problem), though they are likely superfluous now :D |
Bingo. That’s just one of the many reasons I pushed for a fork of the vendored VS Code. In the not too distant future we’ll have almost everything over on the fork, which will let us use Git and Github’s built-in tooling as upstream changes come through. Regarding this regression, There’s an obvious solution which would be porting over our patch which removes these dependencies, but if I can manage it, keeping them as optional dependencies would be ideal since we wouldn’t have to diverge from upstream too much. We should have an update later today. Thanks much 🙏 |
I don’t know if this warrants either re-opening this, or filing it as a new bug, but I ran into a related problem today doing a clean install on a Pi Zero 2. In researching the |
For anyone else’s benefit when searching for
|
In the end, this might be a documentation update needed - but cutting as a bug report because stuff that used to work without problems for the last couple of releases doesn't work anymore... If only, knowing whether this was voluntary or a miss would be useful :D
OS/Web Information
Linux, with 3.12's NPM package (and I'd expect the same thing to happen for building it from source too?)
Steps to Reproduce
Try to install the npm package on a machine without X11.
Even more precisely, with a newly-spinned EC2 instance running Ubuntu 20.4:
Expected
That should work because I'd expect patches like #2961 and all the details/modifications highlighted in https://github.com/cdr/code-server/blob/v3.12.0/docs/CONTRIBUTING.md#modifications-to-vs-code to still apply.
Namely, stuff like
libx11
andlibxkbfile
should not be needed anymore.Actual
During the installation, when pulling
native-keymap
, when it rebuildsnode-gyp
withnode-gyp rebuild
, it tries to run${PKG_CONFIG:-pkg-config} x11 xkbfile --libs
which relies on x11 and libxkbfile, and it fails.Logs
Screenshot
N/A
Notes
This issue can be reproduced in VS Code: No
The text was updated successfully, but these errors were encountered: