Visual Studio Code Comes to Raspberry Pi
raspberrypi.org
raspberrypi.org
I have VSCode installed on a chromebook, and VS Code remotes into the RPi and everything just works really nicely for remote development using a local VS Code instance.
Say what you will about there being a MS repo in the raspberry pi OS (which I think is a huge overreaction - it is an OS designed for children & beginners to use, so if you are a power user who is bothered by this then simply try using something else or just disable it - end of story), VS Code has become so powerful and such a pleasure to use that I wonder how we managed to survive as long as we did banging stones together back in sublime text et al.
While I don't even use the same browser on different machines any more (mixture of chrome, firefox and edge across Linux, Win10, and ChromeOS), I only use VS Code on every machine. Its really great.
Good work RPi for making this happen.
It all just works. VSCode even has a built in debugger that just works - I can use the visual debugger in VSCode running on a chromebook to debug JS or C++ running on the remote machine. It all works over some SSH magic that is abstracted away. Breakpoints, call stacks, local variables, step in/out/over etc - all there on your local machine despite the code running on another machine somewhere else.
Even if I am working with docker/docker-compose on the remote, the local VSCode has built-in support for listing running containers, showing images, attaching shells to containers, up/downing compose configs etc etc. Super useful for me since I can never remember the command line for attaching a shell :)
I have been really impressed. It is kinda getting to sort of "universal IDE" sort of levels of functionality but it still feels like a lightweight text editor at its heart (extensions help a lot with this I guess - only have what you need). Only negative is load-times are slightly longer than I'd like at perhaps 3 or 4 seconds on my machines.
It's unbelievable how good VSCode is.
Teams on the other hand... that's a hog.
But the GP wasn't talking about plugins. They were invoking the tired trope that Electron App Go Brrr, which isn't especially true in the general case, and is emphatically not true in VSCode's case.
Often I’ll see people praise the Pi for being “a $5 computer”, then go on to discuss their projects which would definitely not work on the Pi Zero.
On the other, every time I hear about Microsoft getting deeper into the open source community, it feels like a friend is telling me she's getting back with an abusive ex because he's changed. I know its a very large company with many faces each with their own pros and cons. I also know vscode is quite good, and if they pulled some classic Microsoft trickery it would be forked.
At this point It's just a gut reaction to all things Microsoft, I don't even remember why I don't like them anymore. Still, more and better software is a good thing. More people learning is a good thing. I don't know, I just think some of the overly negative comments are being bashed more than they deserve, because they were being emotional and not acknowledging it.
[1] https://code.visualstudio.com/docs/remote/faq#_why-arent-the...
But I agree there's something unnerving about how deep their grasp has been getting lately
That said, the accessibility of inexpensive tools like this to get started writing your own software is phenomenal! It's a bit encouraging in the wave of users migrating away from production to consumption devices.
We need IDEs that are not controlled by companies.
If I was my own employee, and working on Java projects all day, and continued to stubbornly use a non-IDE, I’d fire me, because that level of deliberate time-wasting is basically malfeasance.
† Especially for calculating imports, and constructing type declarations. (Y’know, the stuff that more succinct static languages use compile-time inference to achieve.)
What alternative can you guys recommend?
It makes sense for the educational target of the desktop version, but it would have been nice to keep it packaged inside their own repositories, giving Microsoft the ability to insert themselves into the packaging chain of a Linux distro used by millions is not something I am very fond of.
I guess it's time to drop raspbian (or whatever it's called this week) and switch to plain Debian across my pi estate
There's also 'Armbian', which is recommended for some non-RPi boards.
I suspect it's easier for tech savvy people to remove it, if they really care, and rather more difficult for relatively non technical people to figure out how to add the MS repo, then install VSCode.
I'm in the former group. It's easier for me to remove it, than it is for my nephew to add it.
It's like when schools teach a specific tool, instead of generic tools. The students only know that one thing.
I certainly wouldn’t expect my distro to silently add a repo to my already installed system.
My point was that they could have added VSCode to their own repositories with minimal maintenance effort, which still provided the software without the need of another repo.
To my knowledge, they have zero history of taking over packages they do not control, nor any history of messing with repo contents in a misleading fashion.
$ apt install code
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?https://www.pcmag.com/news/users-upset-as-raspberry-pi-os-no...
https://betanews.com/2021/02/08/linux-based-raspberry-pi-os-...
To disable it using the terminal:
cd /etc/apt/sources.list.d
ls to look for "vscode.list"
Enter sudo nano vscode.list
Comment out last line with the MS URL
I don't want to disable it, I want it to go away and never return, but sadly, RPi think they know better than their users and it will show up again if deleted. I may look for another Pi distro because this is beyond the pale. Addind repos is a personal thing beyond the basic repos needed to run to OS and default software/updates. I'm also not a fan of MS owning GitHub.
Perspectives, I guess.
So I think it's fairly clear they do not share your extreme views on Microsoft, and on not installing any software that is not needed by every user. You picked the wrong distro.
Not really true. As the GP wrote:
> It pings MS every time an update occurs
is exactly true. You will ping Microsoft every single time you run 'apt update', even if you have nothing installed from this repo.
Ideally, the repo should be disabled by default.
Even Ubuntu didn't do that; their partners repo is off by default, if you want it, you can enable it. Fedora has similar mechanism, where it asks you when you first time run the Gnome Software.
I wonder... why so many people on this topic miss the nuances and suggest going into extremes?