I just installed VS code and it exited with code=1 when i run it - visual-c++

I installed VS code. I used the Code Runner to run my C++ code and it excited with code=1.
I followed some online tutorials but it did not work. Please help.
![This is what I got when running it](https://i.stack.imgur.com/swFqw.png)
![These are the extensions I have installed](https://i.stack.imgur.com/k7JLJ.png)
![Versions](https://i.stack.imgur.com/pErGs.png)
I installed MINGW. Is installing MINGW enough?

Related

CrazyFlie on VS Code Windows

I am trying to run my CrazyFlie 2.1 code through Visual Studio Code. However, running the code outputs an error "ModuleNotFoundError: No module named 'cflib'" although I have already installed cflib on my Terminal using 'pip3 install cflib'.
I am not sure if there is any solution to this. I was able to run the CrazyFlie drone through IDLE on my computer but not through VS code.

Where is IPython.frontend.terminal.embed package for Anaconda3?

I have pulled the source code for SfePy from GitHub with the objective of building and running it locally.
I'm running on Ubuntu 20.10 using Anaconda3. I have PyCharm 2020.2 from Jetbrains as my IDE.
When I bring the code into PyCharm I see several errors about missing packages. One of them is in the base.py file:
except NameError:
from IPython.frontend.terminal.embed \
import InteractiveShellEmbed
The IDE tells me that the terminal package is not installed. It is not found when I try to install.
I searched for it at Anaconda.org, but no joy.
This is an active code base. There was a commit made just today.
How can it be that this code won't build? What am I missing? How can I find a replacement so I can build this app?
I got an answer on the SfePy GitHub issues page:
conda install sfepy
brings in all the dependencies. I'm able to successfully run all the unit tests:
sfepy-run run_tests
When I open PyCharm the compilation problems are resolved.

vscode crashes on Arch linux when opening file/folder

Installation vscode
I'm running Arch Linux (Manjaro) and installed vscode with:
sudo pacman -S code
but then a simple .NET core program resulted in
--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
--------------------------------------------------------------------------------
It seems like the official Microsoft build should be obtained via the snap store:
sudo snap install code --classic
And the program looks normal. I can install plug-ins, create a new file et cetera.
Problem
However, I cannot open any files or projects. Doing so results in vscode crashing. I read that code --disable-gpu could solve this problem, but doesn't do so for me.
Any ideas
what may cause this crash?
or how to get the pacman vscode working?
Logs
$ code --verbose
Gtk-Message: 22:59:19.805: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:59:19.805: Failed to load module "canberra-gtk-module"
(code:33833): GdkPixbuf-WARNING **: 22:59:19.817: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
[33863:1104/225919.911481:ERROR:appcenter_api.cc(52)] expecting appcenter url prefix
[main 2020-11-04T21:59:19.960Z] Sending env to running instance...
[main 2020-11-04T21:59:20.041Z] Sent env to running instance. Terminating...
[main 2020-11-04T21:59:20.041Z] Lifecycle#kill()
where the recommended gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache results in bash: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache: No such file or directory
I'm running Arch Linux (Manjaro) and installed vscode with:
sudo pacman -S code
but then a simple .NET core program resulted in
--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
--------------------------------------------------------------------------------
I had the same issue trying to get the debugger to work and I spent hours on finding the reason for this. What I found out is that the debugger only works with officially signed Microsoft binaries of VSCode. So you have to make a distinction here:
The package code contains the open source version of visual studio code, a build wich anyone can make using the provided sources by Microsoft. The program which you get here is therefore not signed by MS!
The package visual-studio-code-bin provided by the AUR contains a officially signed version by MS. If you use this package, the debugger works as expected.
I do not know wether snap - which I personally never used at all - provides this kind of package, so I can not tell anything about that, but using the said package from the user repository solved the problem for me reliably.
Try this one (which I installed just yesterday under the recent manjaro distribution and it worked fine) and see if this solves your problem with opening files and folders.

cargo-clone and cargo-edit don’t build on my Windows 10 PC

I installed Visual Studio C++ and Rust. Most things work fine, but building cargo-edit and cargo-clone fail. The error code hints at cmake missing but it's one of the items built ok. Windows 10 specific issue.
Thanks to help from the IRC #rust-beginners channel I found out that I needed to install cmake from cmake.org. Make sure you have it add itself to the path and restart your command prompt.
Cmake download

VB.Net development in Ubuntu - Build error in Monodevelop

I want to start coding in VB.Net but I have a Linux machine ATM i don't want to switch to Windows.
I installed MonoDevelop on my Ubuntu 16.04 by following the steps from their page: http://www.monodevelop.com/download/linux/. Everything is fine until I try to run the program I get the following error:
/home/user/Projects/Project/Project/Project.vbproj: Error: Target named 'Build' not found in the project.
I searched around for a solution but didn't find any. Didn't mess with any of the settings just created the project and tried to compile. Is there anything extra i had to install/set maybe?
Thanks in advance!

Resources