Visual Studio Code / Debugger / Raspberry PI Unable to start debugger - visual-studio-code

I'm getting this error message from Visual Studio Code when I attempt to run remote debugging (see large screenshot below)
I know this is a version mismatch - but with Visual Studio on 7.0.2, the PI latest version is 6.0.405.
From this screenshot, its saying that version 7.0.2 is not installed - but that version (as far as I know and I've tried) is not available
I'm new to PI development, and I've researched this extensively. I'm looking for what I'm clearly I am clearly missing to sync up the two versions and get the debugger to attach to a program running on the PI (which is running fine)
I have the environmental variable for DOTNET_ROOT set correctly, with the latest PI installation, and debugger installed as well

Don't use the dotnet-install script, that is for CI (continuous integration) only. To install dotnet on the Raspberry Pi, go to https://aka.ms/dotnet-download and download the binaries(!) for version 7.0.2 for Arm64 (assuming you already have the 64 bit version of Raspberry Pi OS installed).
The instructions on the download page will install the runtime only for the current user. I would recommend to install it globally (there's typically only one user on a Raspberry Pi, anyway). To do so, run these commands:
sudo mkdir /usr/share/dotnet
sudo tar zxf dotnet-sdk-7.0.102-linux-arm64.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
(setting DOTNET_ROOT is not necessary)
to verify proper installation, run
dotnet --info
When a new version becomes available (or you also need to install version 6.0 in parallel), just extract the package to the same directory. They can install side-by-side.

Related

How to run a Visual Studio Code compiled/minified Web build in the browser

I am able to run VS Code development mode in my browser by installing the required packages and running a few commands, but I failed to build a compiled and minified version and run the same in browser.
I am able to run VS Code web development mode in the browser on Ubuntu 20.04 with the following commands:
sudo apt-get install build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev
yarn
yarn watch
./scripts/code-web.sh
I'm able to build with the following command, but am missing instructions on how to run a compiled version of VS Code Web in browser.
yarn gulp vscode-web-min
Can anyone tell me how to or point me to the right documentation?
Recently I came across the same question. I found this repo https://github.com/Felx-B/vscode-web which perfectly answers your question. This is not a fork of vscode, but rather a set of helper scripts in order to build vscode web edition.
You should clone this repository and run the following commands in order to build vscode-web.
$ yarn build
$ yarn prepare-demo
$ yarn demo
Open http://localhost:8080 and you'll see the web version running in your browser. It is limited in features compared to the native or server version. Terminal is disabled and files are served from in-browser file system.

JetBrains Rider hangs when creating solution file on Ubuntu 16.04

JetBrains Rider hangs indefinitely when creating solution file on Ubuntu 16.04. Already restarted both Rider and my system.
I was getting the same issue (OS = Arch Linux). I'd also installed the dot net sdk and Rider from Snap. I had to:
Remove Rider using snapd remove rider
Install dotnet-sdk using sudo pacman -S dotnet-sdk
Install mono using sudo pacman -S mono
Download and install the Jetbrains Toolbox app and install Rider from there
In my case I found that my virtual machine did not have Mono installed. Killing and restarting the Rider process and selecting another project type prompted me to install mono using this URL: https://www.mono-project.com/download/stable/#download-lin-debian
With Mono installed I had to restart Rider once more before it would let me create an empty solution without hanging.
I was able to bypass this problem by choosing ASP.NET Web Application instead of Empty Solution.

Aptana 3 on raspberry pi 3 doesn't work ? both 32bit and 64bit version

I've been using nano editor most of the time to work on some php jquery projects that while I found nano is good, I need to find a better full blown IDE as the work load increases. Anyway Aptana3 studio looks like a good fit and I go download it into my raspberry pi 3
I tried 32bit and 64bit version, but both gave me same error when I execute the binary :
bash: ./AptanaStudio3: cannot execute binary file: Exec format error
You are downloading a pre-built binary for Linux running on Intel. If it were available, you'd want to get a pre-built binary for ARM. In looking at the Aptana download site I don't see an ARM version.

Running j on Chrome OS

I'm trying to run jconsole on Chrome OS. In both the chroot of Ubuntu that I have installed, and the normal Chrome OS shell, I receive the following error on both the 32- and 64-bit versions:
-bash: ./jconsole: cannot execute binary file
I'm not the best with UNIX systems, so I'm wondering if anyone can help me figure out why I can't run this on either Chrome OS or the ubuntu chroot.
Not that I can claim credit for this answer, but Eric Iverson recently suggested on the J forums that the best way to do this was to install a J server on a Unix server and then use a browser to access the server using the JHS frontend (works in any modern browser). It does require extra equipment and I expect that you had hoped that there was a version of J that would work in the Chrome OS, but when one of the developers of the language says run a browser in the Chrome OS and point it at a unix server running the J engine, I'd try that if you have not already.
Reference in J general forum: http://jsoftware.com/pipermail/general/2014-June/036169.html
Short version
If you already installed successfully hopefully it's just a syntax error:
jconsole instead of ./jconsole
Long version
IMPORTANT: You have to be in the chroot to run any regular Linux programs. The Chrome OS shell (crosh) doesn't allow installing anything as far as I know.
I'm on Chrome OS, using a chroot via crouton and playing with j801, including jconsole.
Since I have a 1st-gen Samsung ARM Chromebook, I downloaded the armhf version. If you're using an Intel-based device, pick something else, maybe linux32
use dpkg -i j801_armhf.deb to install to ~/j801
(optional but recommended) make a symlink /usr/bin/jc -> /path/to/j801/bin/jconsole to easily start jconsole from any directory.
See the installation instructions for more detail.

Compatibility Ubuntu Server and packages on ARM

i'm working on a web server hosted on a board based on an ARM processor, that is named UDOO (http://www.udoo.org) and is similar to the Raspberry PI, and on it you can install a version of Linaro Ubuntu (11.10) modified for ARM or Android, both are downloadable from the project's site. Lately i've found a version of Ubuntu Server for ARM (http://www.ubuntu.com/download/arm/) and i wanted to know if it is compatible with all ARM devices, include the UDOO board. Also i wanted to know if the basic packages for the web server (like apache2, php5, mysql) and other packages (like mysql-connector c++, libcurl, g++) also work on ARM, under Ubuntu Server or under other Linux, like Linaro Ubuntu or Android. Someone can help me?
To install a Web Server on UDOO you can use Tasksel Installer:
sudo apt-get install tasksel
you can launch application with
sudo tasksel
There are other ways to install Ubuntu on the UDOO Board
http://dave.cheney.net/2013/10/20/installing-ubuntu-precise-12-04-on-a-udoo-quad
I just got my UDOO board today and I am going in that direction. So if Ubuntu runs nicely then most Ubuntu applications will run to.