headmelted / codebuilds

Community builds of Visual Studio Code for Chromebooks and Raspberry Pi
https://code.headmelted.com
MIT License
1.03k stars 56 forks source link

Code-OSS Won't Launch #24

Open ConProgramming opened 7 years ago

ConProgramming commented 7 years ago

When I type "code-oss" into the terminal to launch it, it always gives me the error "/usr/bin/code-oss: line 35: /usr/share/code-oss/bin/../code-oss: No such file or directory". Is there a way to fix this so I can successfully launch Code-OSS?

headmelted commented 7 years ago

There was a typo in the installer script that has since been rectified (and should hopefully fix your problem!)

Can you try deleting the chroot and starting over - using "code" to launch the application?

ConProgramming commented 7 years ago

I reinstalled, and when I type in "code" I get "-su: code: command not found" and when I type in "code-oss" instead, the same error occurs.

jmboulton commented 7 years ago

Finding the same issue on Jetson TX2 arm64 (ubuntu 16.04)

brentashley commented 7 years ago

I am getting the same issue on a Pinebook using Ubuntu 16.04.2. The file seems there but not there when you try to run it. I can open the file with less or strings etc but cannot execute it from either bash or sh.

$ uname -a Linux pinebook 3.10.105-bsp-1.2-ayufan-59 #1 SMP PREEMPT Sat May 13 12:39:31 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux

$ code-oss /usr/bin/code-oss: line 35: /usr/share/code-oss/bin/../code-oss: No such file or directory

$ ls -l /usr/share/code-oss/bin/../code-oss -rwxr-xr-x 1 root root 53258884 Apr 7 05:09 /usr/share/code-oss/bin/../code-oss

$ /usr/share/code-oss/bin/../code-oss bash: /usr/share/code-oss/bin/../code-oss: No such file or directory

$ strings /usr/share/code-oss/bin/../code-oss | head -1 /lib/ld-linux-armhf.so.3

I have kept the unresovled bin/../ in the examples here but the result is the same with /usr/share/code-oss/code-oss

brentashley commented 7 years ago

The strings output is interesting - looks like the link library it is expecting to find is /lib/ld-linux-armhf.so.3

I do not have that file - the nearest name is /lib/ld-linux-aarch64.so.1

I guess I will have to compile for my target.

headmelted commented 7 years ago

You might have trouble, as the dependency chain (libchromiumcontent and Electron) will also need to be compiled for aarch64 I expect.

The good news is that I'm working on this right now, the bad news is that I don't know how long it'll take to get released I'm afraid.

On Fri, Jun 23, 2017 at 4:01 PM, Brent Ashley notifications@github.com wrote:

The strings output is interesting - looks like the link library it is expecting to find is /lib/ld-linux-armhf.so.3

I do not have that file - the nearest name is /lib/ld-linux-aarch64.so.1

I guess I will have to compile for my target.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/headmelted/codebuilds/issues/24#issuecomment-310689291, or mute the thread https://github.com/notifications/unsubscribe-auth/AKYVoLlSHY0eei-Gwz4S9CV-WULSJIZXks5sG9NDgaJpZM4N2bY- .

brentashley commented 7 years ago

Great, thanks! In the meantime, I've found these instructions to get it working on the Pinebook with armhf:

https://forum.pine64.org/showthread.php?tid=4491

ConProgramming commented 7 years ago

Any progress? My Samsung Chromebook Plus is sad, it still misses vs code

ptrcnull commented 6 years ago

Any progress? Same thing happening on Android chroot

gidoBOSSftw5731 commented 6 years ago

I hate to bump, but on chromebook plus (crostini shell manually set to armhf) its the same issue!!

brusser commented 6 years ago

I also force installed it on a chromebook plus (crostini) which is aarch64. Realized it is not officially supported but it seems to install but then I run the code-oss command and get this error

Here is some details: $ sudo ./apt.sh Detecting architecture... Architecture detected as aarch64... Installing headmelted GPG key... E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation Done! Installing headmelted repository... deb https://packagecloud.io/headmelted/codebuilds/ubuntu/ xenial main

rest is just usual install log had to proceed unverified but no errors in the install

Attached the full log

log for apt-get vscode headmelted.txt

chengxuncc commented 5 years ago

I find this VS Code not working on Ubuntu when connected using XRDP.

headmelted commented 5 years ago

Looking at these issues now, working to resolve these asap 🙂

On Tue, Oct 9, 2018, 05:35 chengxuncc notifications@github.com wrote:

I find this VS Code not working on Ubuntu when connected using XRDP. https://github.com/Microsoft/vscode/issues/3451

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/headmelted/codebuilds/issues/24#issuecomment-428056606, or mute the thread https://github.com/notifications/unsubscribe-auth/AKYVoJubzdWPV1BGgYe12HvtkbX9NzWMks5ujCeCgaJpZM4N2bY- .

chengxuncc commented 5 years ago

All right,I get it worked on my android linux deploy. ubuntu 18.04 arm64 xfce with xtightvnc

it's /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0 for me arm64

sudo cp /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0 /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0.bak sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0

screenshot_20181009-124402 screenshot_20181009-124024

It seems to be a great way for packing by moving to vscode path

thomasyonug commented 5 years ago

All right,I get it worked on my android linux deploy. ubuntu 18.04 arm64 xfce with xtightvnc

it's /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0 for me arm64

sudo cp /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0 /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0.bak sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0

screenshot_20181009-124402 screenshot_20181009-124024

It seems to be a great way for packing by moving to vscode path

it's work for me. Thank u bro.

danielhodder commented 4 years ago

This workaround no longer seems to work in the latest version (1.42.0).

danielhodder commented 4 years ago

It seems that if you sed the file and put it in /usr/share/code-oss/libxcb.so.1 that does work. Here's the command I ran:

$ sed 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0 | sudo tee /usr/share/code-oss/libxcb.so.1 > /dev/null
Disctanger commented 4 years ago

I am also using android linux deploy/Ubuntu 18.04 I can confirm that in 1.39 version, this solution worked for me. Thanks @chengxuncc

All right,I get it worked on my android linux deploy. ubuntu 18.04 arm64 xfce with xtightvnc

it's /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0 for me arm64

sudo cp /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0 /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0.bak sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0

screenshot_20181009-124402 screenshot_20181009-124024

It seems to be a great way for packing by moving to vscode path