-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Binary does not work with WSL #11
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
Will look into this. Thanks for the report. |
can confirm, didn't work for me either, with same error message |
Seems like binaries compressed with UPX do not work in WSL. We'll create a version in the CI that isn't compressed. You can try decompressing it, might work. |
@kylecarbs running the upx -d command on the binary it says that the binary was not packed by upx # upx -d code-server Ultimate Packer for eXecutables Copyright (C) 1996 - 2013 UPX 3.91 Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013 File size Ratio Format Name -------------------- ------ ----------- ----------- upx: code-server: NotPackedException: not packed by UPX Unpacked 0 files. |
Ah interesting. We compress the node binary prior to packaging, so that
makes sense. Will add the additional target soon.
…On Tue, Mar 5, 2019 at 3:26 PM DiegoBM ***@***.***> wrote:
@kylecarbs <https://github.com/kylecarbs> running the upx -d command on
the binary it says that the binary was not packed by upx
# upx -d code-server
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2013
UPX 3.91 Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: code-server: NotPackedException: not packed by UPX
Unpacked 0 files.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGysxJD1oJ2C1-6gclf4rpkd1qWsPOPRks5vTv0hgaJpZM4bfeKy>
.
|
Running from docker on WSL would be good. Right now I use Cloud9 local install through https://github.com/c9/core for Python development. Wonder if Coder can provide better intellisense. |
Any chance to disable that UPX compression in the next release? |
The plan was to add an additional target and not remove an optimization. |
@SuperSandro2000 who's saying otherwise? It was already mentioned by @kylecarbs that it would be an additional target |
We ended up skipping compression altogether (from 1.32.0-245 onward): 8bab787. |
@coderasher, was compression causing other unexpected problems? Out of curiosity |
Now it works flawlessly on WSL, thank you! Closing as fixed |
* Create initial server layout * Adjust command name to entry * Add @oclif/config as dependency * Implement build process for outputting single binary * Add init message * Remove unused import, add tsconfig.json to .gitignore * Accidently pushed wacky change to output host FS files * Add options to createApp
vscode-remote
version: 1.31.0-20Steps to Reproduce
-bash: ./code-server: cannot execute binary file: Exec format error
The text was updated successfully, but these errors were encountered: