【发布时间】:2020-11-04 22:08:43
【问题描述】:
安装vscode
我正在运行 Arch Linux (Manjaro) 并安装了 vscode:
sudo pacman -S code
但随后产生了一个简单的 .NET 核心程序
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
微软的官方版本似乎应该通过 snap 商店获得:
sudo snap install code --classic
而且程序看起来很正常。我可以安装插件,创建一个新文件等等。
问题
但是,我无法打开任何文件或项目。这样做会导致 vscode 崩溃。我读到code --disable-gpu 可以解决这个问题,但对我没有这样做。
任何想法
- 什么可能导致此崩溃?
- 或者如何让
pacman vscode工作?
日志
$ 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()
推荐的gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache 的结果是bash: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache: No such file or directory
【问题讨论】:
标签: linux visual-studio-code crash archlinux