1

I know Microsoft only published amd64 version, But because of being open source I'm thinking someone made an working armhf build. I tried this but It doesn't work

  • 1
    There are builds out there, eg https://code.headmelted.com though I can't speak to how good they are, or if they should even be trusted. – Oli Jul 07 '20 at 11:19
  • @Oli I installed that, but it doesn't work – amiria703 Jul 07 '20 at 11:24
  • Then [edit] your question to include what you've tried and what happened when it didn't work. – Oli Jul 07 '20 at 11:25
  • @Oli Edited and added – amiria703 Jul 07 '20 at 11:35
  • Did you try launching that through the terminal? It should give information about why it's falling which may help fix it. – l3l_aze Jul 08 '20 at 00:50
  • @l3l_aze Unfortunately, Electron apps don't log in the terminal – amiria703 Jul 10 '20 at 12:24
  • Oh, duh -- I'm sorry. The NPM installation method worked for me on an armv7l after some trial and error (needs make, libatomic1, python, and possibly python3, which aren't listed as dependencies). Have you tried that yet? – l3l_aze Jul 10 '20 at 20:15
  • @l3l_aze I didn't do that, where's the instructions? – amiria703 Jul 15 '20 at 05:36
  • 1
    I'm sorry! Apparently I ended up using a different project, lol. cdr/code-server from GitHub. Using UserLAnd on an armv7l running Ubuntu 18.04, but it should also work on Termux I imagine. I'll work through the installation again on a fresh install and post an answer shortly. – l3l_aze Jul 15 '20 at 06:09

2 Answers2

1

The following script installs and runs github.com/cdr/code-server to run VSCode through the browser. Tested through UserLAnd on Android 8.1.0 running Ubuntu 18.04 on an armv7l processor. The project recommends installing it this way for processors that don't have a pre-built binary.

#!/usr/bin/env bash

Dependencies for install script, building project.

apt-get update sudo apt-get install -y curl build-essential pkg-config libx11-dev libxkbfile-dev libsecret-1-dev libatomic1 python

Install nvm to install node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash export NVM_DIR="$HOME/.nvm"; [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"; [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"

Currently installs node v12.18.0; code-server requires v12+.

nvm install lts/* npm i -g npm

Finally, install code-server

npm i -g code-server

Once it eventually builds, start it running on 127.0.0.1:8080 without password authentication.

code-server --auth none

There are some caveats mentioned in the code-server FAQ that would be worth reading, like "Differences compared to VSCode?" and "How do I make my keyboard shortcuts work?".

l3l_aze
  • 237
1

VS Code now supports arm devices officially:

https://code.visualstudio.com/updates/v1_50#_linux-arm-builds

If It still doesn't work, you can try web version:

https://vscode.dev