Skip to content

Instantly share code, notes, and snippets.

@ted-piotrowski
Last active August 31, 2022 14:27
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save ted-piotrowski/e5c223a6a2f6f3079cb38c959ceecaa6 to your computer and use it in GitHub Desktop.
Save ted-piotrowski/e5c223a6a2f6f3079cb38c959ceecaa6 to your computer and use it in GitHub Desktop.
Visual Studio Code on ARM Debian Linux
# building Visual Studio Code Debian package on ARM
# get source code
git clone git@github.com:Microsoft/vscode.git
cd vscode
# build debian package
./scripts/npm.sh install --arch=armhf
./node_modules/.bin/gulp vscode-linux-arm-build-deb
# locate built package, install and run
find . -name *.deb #this will give location of built package
sudo dpkg install [location-from-previous-step]
code-oss # to run the installed program
@ajstadlin
Copy link

ajstadlin commented Sep 24, 2016

This did not work. The gulp command returns with

/home/pi/vscode/build/gulpfile.vscode.js:217
    const marketplaceExtensions = es.merge(...builtInExtensions.map(extension => {
SyntaxError: Unexpected token ...
at bunch of stuff here
at Object.<anonymous> (/home/pi/vscode/gulpfile.js:263:3)

@ted-piotrowski
Copy link
Author

@ajstadlin I'm sorry to hear that. Let me try to help you. Can you tell me your NodeJS version? I used node 6.6 to compile this. I have seen comments that Node < 6.0 will likely not work.

@ted-piotrowski
Copy link
Author

If you need to update to Node 6+, follow this Gist:
https://gist.github.com/ted-piotrowski/33d7a23ce9f67231620d8edd825bf89e

@incyi
Copy link

incyi commented Oct 9, 2016

I'll get this error

./node_modules/.bin/gulp vscode-linux-arm-build-deb
module.js:457
throw err;
^

Error: Cannot find module 'gulp-watch'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/Development/vscode/build/lib/watch/index.js:22:4)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)

using:
node -v v6.7.0
npm -v 3.10.3

@Shiba-Kar
Copy link

npm WARN deprecated node-uuid@1.4.7: use uuid module instead
is it ok

@Shiba-Kar
Copy link

Giving warnigs after warnings....in raspberry pi 3

@Shiba-Kar
Copy link

npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.2.12: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
[ ...........] \ fetchMetadata: verb cache add spec optionator@^0.5.0

@princevince
Copy link

princevince commented Nov 4, 2017

Thank you for the clear instructions.

  • Build succeeded
  • Package installed successfully with dpkg
  • Menu item is created
  • Binaries nowhere to be found

What am I missing here, besides the binaries?

@princevince
Copy link

[14:37:02] Using gulpfile ~/Code/vscode/gulpfile.js
[14:37:02] Starting 'clean-vscode-linux-arm-deb'...
[14:37:03] Finished 'clean-vscode-linux-arm-deb' after 30 ms
[14:37:03] Starting 'vscode-linux-arm-prepare-deb'...
[14:37:03] Finished 'vscode-linux-arm-prepare-deb' after 144 ms
[14:37:03] Starting 'vscode-linux-arm-build-deb'...
dpkg-deb: building package 'code-oss' in 'deb/code-oss_1.19.0-1509802622_armhf.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning: code-oss
dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
[14:37:04] Finished 'vscode-linux-arm-build-deb' after 1.07 s

@AndyHolo
Copy link

AndyHolo commented Nov 9, 2017

i got this npm error :Failed to find Electron v1.7.0 for linux-armhf at https://github.com/electron/electron/releases/download/v1.7.0/chromedriver-v1.7.0-linux-armhf.zip

I looked at github.com/electron/electron/releases/ and there is no package for armhf at all. So how could you finish compiling the VScode?? thx

@Bazmundi
Copy link

Bazmundi commented Oct 7, 2018

When running "./scripts/npm.sh install --arch=armhf" I get "no command yarn"

When I try running yarn from shell I get recommendation to run "apt install cmdtest".

I install cmdtext and when I run "./scripts/npm.sh install --arch=armhf" I now get "yarn does not recognise --arch"

I am running ARMBIAN 5.59 stable Ubuntu 18.04.1 LTS 4.14.65-sunxi on orange pi zero.

@hartraft
Copy link

@fifn2
Copy link

fifn2 commented May 31, 2019

Is this the same as vscode? Will it get updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment