Goker91
Posts: 2
Joined: Thu Aug 04, 2016 11:58 am

Installing Visual Studio Code

Tue Sep 17, 2019 11:10 pm

Hi All,

Does anyone know how to install Visual Studio Code on Raspian?

I was trying to install it, but with no luck.

I am using Raspberry Pi 4, and still no luck installing it.

Thanks!

W. H. Heydt
Posts: 11288
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Installing Visual Studio Code

Tue Sep 17, 2019 11:23 pm

If I'm not mistaken, Visual Studio is a Microsoft product for MS Windows. As such, it is written for a different operating system that run on a different--and incompatible--hardware architecture.

Andyroo

Re: Installing Visual Studio Code

Tue Sep 17, 2019 11:44 pm

Have you seen the Headmelted install at https://code.headmelted.com/? I’ve not tried it under Buster.

You HAVE TO BE AT A SUPER USER shell and not use sudo, so make sure you use

Code: Select all

sudo -s
first.

Note this is built on updates from Microsoft so you may have the odd glitch till M/S solves it :lol:

The other option is to use the ssh remote debug from another machine https://www.hanselman.com/blog/VisualSt ... utter.aspx

asavah
Posts: 367
Joined: Thu Aug 14, 2014 12:49 am

Re: Installing Visual Studio Code

Wed Sep 18, 2019 12:55 am

W. H. Heydt wrote:
Tue Sep 17, 2019 11:23 pm
If I'm not mistaken, Visual Studio is a Microsoft product for MS Windows. As such, it is written for a different operating system that run on a different--and incompatible--hardware architecture.

Visual Studio Code != Visual Studio

Heater
Posts: 14294
Joined: Tue Jul 17, 2012 3:02 pm

Re: Installing Visual Studio Code

Wed Sep 18, 2019 4:00 am

W. H. Heydt,
If I'm not mistaken, Visual Studio is a Microsoft product for MS Windows. As such, it is written for a different operating system that run on a different--and incompatible--hardware architecture.
You are mistaken.

VS Code is by MS but it is an Open Source product. Written in Javascript/Typescript using the Electron open source library. As such it can be built to run on Windows, Mac and Linux. Both x86 and ARM.

Electron is a application framework created by GitHub. It uses Google's Chrome renderer and V8 Javascript engine so as to be able to create desktop applications with browser technology, HTML, CSS, JS. It also uses Node.js to run the application side of the code that requires access to the local file system, networking and such that JS in the browser cannot see.

VS Code is my editor/IDE of choice now a days, for it's speed, simplicity, cross-platform and open source nature.
Memory in C++ is a leaky abstraction .

markkuk
Posts: 149
Joined: Thu Mar 22, 2018 1:02 pm
Location: Finland

Re: Installing Visual Studio Code

Wed Sep 18, 2019 4:19 am

Andyroo wrote:
Tue Sep 17, 2019 11:44 pm
Have you seen the Headmelted install at https://code.headmelted.com/? I’ve not tried it under Buster.
The latest version doesn't work. Version 1.29 works but it's almost a year behind the current upstream version (1.38).

Heater
Posts: 14294
Joined: Tue Jul 17, 2012 3:02 pm

Re: Installing Visual Studio Code

Wed Sep 18, 2019 4:36 am

Does anyone know who headmelted is?

It's a huge security problem to suggest people download and install random binaries from unknown, untrusted web sites.

I'm not suggesting headmelted has bad intent but I do urge people to be careful.
Memory in C++ is a leaky abstraction .

markkuk
Posts: 149
Joined: Thu Mar 22, 2018 1:02 pm
Location: Finland

Re: Installing Visual Studio Code

Wed Sep 18, 2019 4:49 am

Heater wrote:
Wed Sep 18, 2019 4:36 am
Does anyone know who headmelted is?
GitHub believes he's this guy: https://github.com/headmelted

hippy
Posts: 6551
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Installing Visual Studio Code

Wed Sep 18, 2019 10:13 am

Have a read of - https://www.raspberrypi.org/forums/view ... p?t=191342

I have generally settled on using Steve Desmond's VS Code version 1.28.2 build for the Pi which 'just works' without faffing about -

Code: Select all

cd ~
wget https://github.com/stevedesmond-ca/vscode-arm/releases/download/1.28.2/vscode-1.28.2.deb
sudo apt install ./vscode-1.28.2.deb
Note that later versions intended for a PI may not work and Visual Studio Code has gone to 64-bit only so the very latest versions won't run on Raspbian.

mt08
Posts: 1
Joined: Wed Jan 30, 2019 5:26 pm

Re: Installing Visual Studio Code

Tue Oct 15, 2019 7:06 am

Hi,

I could build codium which is based on VSCode 1.39.1, and generate .deb file using VSCodium script. ( https://github.com/VSCodium/vscodium )
Although I've just built and not used well, I share it. It should work on Raspbian buster for RPi 2/3/4.

deb file has been split in two, since github supports up to 25MB.
Please download 2 files, and concatenate them, then 'apt install'.

Code: Select all

curl -LO https://github.com/mt08xx/files/raw/master/codium_1.39.1-1571119600_armhf.deb.xaa
curl -LO https://github.com/mt08xx/files/raw/master/codium_1.39.1-1571119600_armhf.deb.xab
cat codium*.deb.* > codium_1.39.1-1571119600_armhf.deb
sudo apt install ./codium_1.39.1-1571119600_armhf.deb

nrushforth
Posts: 2
Joined: Tue Nov 26, 2019 10:37 pm

Re: Installing Visual Studio Code

Tue Nov 26, 2019 10:41 pm

Hi

I have installed VSCode on Raspbian Buster with the .net core 3.0 SDK.

I can compile and run the C# code with no issues, however I am not able to debug directly (locally) on the RPI.

Does anyone know how to do this? When I try to do it I get an error that armv71 is not supported for debugging.

Help?

User avatar
mike632t
Posts: 81
Joined: Sat May 19, 2012 7:56 pm
Location: UK
Contact: Website

Re: Installing Visual Studio Code

Wed Dec 04, 2019 1:07 pm

Did you install from the MS source ? I've tried getting it to compile several times on a Pi4 (4G), I've overcome the heap overflow problem, but having got it to compile I get a SEG fault when I try running it.

The Programmer 1
Posts: 1
Joined: Tue Jan 07, 2020 7:35 am

Re: Installing Visual Studio Code

Tue Jan 07, 2020 7:58 am

I would suggest that you use Remote Debugging instead of installing VS Code on the Raspberry Pi. This would give you almost the full power of the Pi for your application by developing on your main computer.
Here is an example using Python: -

https://dev.to/azure/raspberry-pi-debug ... ation-2e2c

Here is the main explanation: -

https://code.visualstudio.com/docs/remo ... e-overview

I'm currently using a program called Xojo which is a VB.net like cross platform app. to develop a program for Raspian on a Pi 4. This is making things quicker for me: -

https://www.xojo.com/

I hope this might be useful to someone.

j10wy
Posts: 1
Joined: Thu Jan 09, 2020 8:41 am

Re: Installing Visual Studio Code

Thu Jan 09, 2020 8:44 am

Check this out. Looks like Coder will soon have it running on Pi 4

https://github.com/cdr/code-server/issues/35 (scroll to the bottom)
https://coder.com/

Return to “General discussion”