VS Code freezing after latest update - linux

I am using VS code on Red Hat Linux and it is freezing after opening. The only option I have is to forcefully quit. It was working fine until last week. I was told by the admin that this problem was caused due to a recent update. What can I do?

You can have a flatpak release which is stable and provides security features, runtimes, sandboxing.
for installing flatpak sudo yum install flatpak
and
flatpak install flathub com.visualstudio.code

Related

run visual studio code in linux

I just use 'code' in ubuntu.
i download code_1.74.2-1671533413_amd64.deb in site
sudo apt install ./code_1.74.2-1671533413_amd64.deb
then update package
sudo apt-get install apt-transport-https
sudo apt-get update
apt-get install code # or code-insiders
then i have problem like this.
/mnt/c/Users/jhyun/Desktop$ code
To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the code command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyway? [y/N]
how can i solve this?
You have two options when running VSCode under WSL:
Run the Linux version, as you are doing currently.
The Linux version should run fine, but is limited to compiling, running, and debugging Linux applications. It will not be able to use the Windows versions of any of your development tools. This may or may not be a problem for you. If you only plan to use Linux toolchains from WSL, then the Linux version of VSCode will handle those just fine.
Run the Windows version and install the WSL Extension or the Remote Development Extension Pack (which includes the WSL Extension).
This has the advantage of being able to use Linux tools (through a "shim server" that is automatically installed in WSL when you launch code) or native Windows tools.
As a native Windows application, it should also be a bit better integrated with the Windows desktop.
There are just very few reasons (and I can't think of any of them at the moment) why you would want to use the Linux version in this case.

Scrypto simulator installtion failure?

I am trying to install the simulator as per the instruction in here.
I am getting the following failure message:
It looks like it cannot find clang. You should have clang and its development package installed, otherwise this crate cannot build against it, which it apparently needs to do.
Scrypto v0.3 requires you to have llvm installed. Please follow these steps to get it installed:
On Windows: use this installer
On Linux: run sudo apt install llvm
After installation, don't forget to close and reopen your terminal

Flutter Doctor shows problem with GTK 3.0 for CentOS Linux 7 running on Doctor

Goal: Compile and run flutter examples emulating Linux Desktop on CentOS 7 docker container
(Note: Can't use snapd - not supported within Docker) Installed manually
Managed to get everything else cleared up but this one:
GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install
libgtk-3-dev)
The others show OK:
Γú[Γ£ù] Linux toolchain - develop for Linux desktop
ΓÇó clang version 3.4.2 (tags/RELEASE_34/dot2-final)
ΓÇó cmake3 version 3.17.5
ΓÇó ninja version 1.10.2
ΓÇó pkg-config version 0.29.2
Γú[Γ£ô] Connected device (1 available)
ΓÇó Linux (desktop) ΓÇó linux ΓÇó linux-x64 ΓÇó CentOS Linux 7 (Core)
4.19.76-linuxkit
Another thread had asked for specific versions when diagnosing this. Here they are:
pkg-config --modversion gtk+-3.0
3.22.30
pkg-config --modversion glib-2.0
2.56.1
pkg-config --modversion gio-2.0
2.56.1
pkg-config --modversion blkid
2.23.0
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/local/lib/pkg
config:
Would LOVE some help getting this resolved!!!!
I updated my Ubuntu to version 22.04 LTS, and when I needed to install Flutter and Android Studio I ran into a similar error in flutter doctor output:
GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
Command apt install libgtk-3-dev returned various errors, at first something like:
libgtk-3-dev is already the newest version
And then i tried to update all packages:
sudo apt-get update
sudo apt-get autoremove
dpkg --get-selections | grep hold
None of these commands didn't do anything...
So, i try to remove libgtk-3-dev, and after that repeat autoremove and try to install libgtk-3-dev again. But now it showed me that it has some unmet dependency (it looks like it depended on some version of libpcre3 and\or libpcre3-dev) and for some reason apt refused to install it.
I tried so many ways to remove this damn package, but I could not do it. As far as I understand, initially the problem is that the version of this shitty package (libpcre3) that I have has been stretching since Ubuntu 18, and there is both a 32-bit version and x64, and dependencies are crooked in some of them ... Well, or some other problem - maybe something was not deleted during the next update, although it should have been.
In the end, I managed to solve the problem using a graphical shell over apt - synaptic (its great stuff, I recommend it to everyone). It's very easy to set up:
sudo apt install synaptic
After that, I found the amd64 version libpcre3 in list, marked it for installation and installed it. After that, just install through the console
sudo apt install libgtk-3-dev
It worked fine, updating all dependencies.
P.S. First thing I want to note is that Flutter is incredibly crooked shit (only my opinion). If you haven’t started developing on it yet, don’t start, choose something more stable. If it will be possible to use this garbage, then only in five years at best...
And secondly, I spent a lot of time searching and solving the problem with the library, which is essentially perl dependencies. Despite the fact that I myself do not use perl at all. Looks like the notorious "Dependency Hell" is already here.
It appears most of this has to do with pathing, some of the libs have slightly different names (gtk3-devel, libblkid-devel, xz-devel). Some irritations around cmake3, and getting more current versions of pkg-config, xproto, kbproto, xextproto, and the configuration of said packages. At least now I have a clean flutter doctor.
Now, on to trying to run it...
I recently reinstalled the OS on my machine, I decided to install and use flutter through FVM. I had many other problems.
[✓] Flutter (Channel stable, 3.0.5, on Ubuntu 20.04.3 LTS 5.15.0-41-generic, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Chrome - develop for the web
[✗] Linux toolchain - develop for Linux desktop
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
[✓] Android Studio (version 2021.2)
[✓] VS Code
[✓] Connected device (2 available)
[✓] HTTP Host Availability
Solutions:
clang++
sudo apt-get -y install clang
CMake
I was trying sudo snap install cmake, But it returned an error, this is because the snap review "cmake" was published using classic confinement and therefore can make arbitrary system changes outside the security sandbox that snaps are usually confined to, which can put the system at risk.
It was suggested to me: "If you understand and want to continue, repeat the command including --classic?
To solve it, I just understood and continued
sudo snap install cmake --classic
GTK 3.0 development libraries
sudo apt install libgtk-3-dev
This solved everything here, it doesn't have an execution order, each dependency is added independently.
I hope I contributed!

error when trying to install libtmcg "configure: error: libgmp >= 4.1 is needed"

I've tried installing different libgmp's from ubuntu app center and I tried installing it manually from http://gmplib.org/#DOWNLOAD but I can't get this to configure it's an old library and I'm trying to run it on the latest version of ubuntu but I didn't think I'd have problems but I'm new to trying to use libraries like this any help would be greatly appreciated.
I've had these kind of errors installing dependencies before, and I realized that you must to force the installation of such pack having it... you didn't mention the version of your Ubuntu, so I'm assuming you're working with 12.10. But if not you always can look up for the version you are running on.
Just download the pack from here, of course, depending on your architecture, and after that run sudo apt-get -f install in order to force the installation of broken packs.

CouchDB Failing on OS X

I recently installed CouchDB using Homebrew and am running into the following error when I run the "couchdb" command. I'm on OS X 10.7.5:
Apache CouchDB 1.2.1 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
I'd previously had couchdb running just fine, but reinstalled recently to try and upgrade. I'm not sure at all how to diagnose this problem.
I've tried setting my file permissions, but they seem to be fine and don't have any effect on this problem.
I've also tried uninstalling from homebrew and reinstalling with sudo port install couchdb. Nothing seems to work.
I'm running into this problem on a Macbook Pro and an iMac. Same error, same installation method.
Thanks, All!
This link has everything you need.
http://wiki.apache.org/couchdb/Installing_on_OSX
This line seems of particular interest for you:
brew remove --force openssl erlang couchdb icu4c spidermonkey nspr
then
brew update
brew outdated
brew install erlang
brew install couchdb
If all else fails scroll down to install from source.
Sorry, I couldn't say anything about Homebrew problem, but you may try binary package made by Jan Lehnardt. Currently, it should successfully handle updates from 1.2.0 - follow the mailing list discussion for more info.
Note, that this package is a little experimental now, but any feedback are welcomed!

Resources