Linux Xwindow转发上的Visual Studio代码 [英] Visual Studio Code on Linux Xwindow forwarding

查看:111
本文介绍了Linux Xwindow转发上的Visual Studio代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的配置如下:

操作系统:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
NAME="Ubuntu"
VERSION="14.04.4 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.4 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

Visual Studio代码 1.5.3

Visual studio code 1.5.3

Xming 6.9.0.31

为了安装 Visual Studio代码,我不得不跳了很多圈.最后,我设法做到了. 当我跑步

I had to jump quite a lot of hoops to get visual studio code installed. At the end, I managed to do that. When I run

codecode .

它立即返回命令行,没有错误.

It returns to the command line immediately with no error.

然后我跑了

code --verbose

我收到以下消息.

OpenGL Warning:
XComposite not found or old version (0.0), no VisibilityTracking
{ [Error: ENOENT: no such file or directory, open '/home/vagrant/.config/Code/storage.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/vagrant/.config/Code/storage.json' }
(5:08:07 AM) ### VSCode main.js ###
(5:08:07 AM) /usr/share/code/resources/app { _: [],
  paths: [],
  performance: false,
  verbose: true,
  debugPluginHost: undefined,
  debugBrkPluginHost: undefined,
  logExtensionHostCommunication: false,
  'new-window': false,
  'reuse-window': false,
  goto: false,
  diff: false,
  extensionHomePath: undefined,
  extensionDevelopmentPath: undefined,
  extensionTestsPath: undefined,
  'disable-extensions': false,
  locale: undefined,
  wait: false }

此外,安装node.js也无济于事. Xwindow forwaring适用于其他程序,例如ImageMagick,QtCreator.等

Also, installing node.js didnt help. Xwindow forwaring works fine for other programs, such as ImageMagick, QtCreator. etc.

推荐答案

Xming没有vs code所需的功能.已安装 VcXsrv ,现在可以正常使用了.

Xming doesnt have features that are needed by vs code. Installed VcXsrv and now it works as expected.

这篇关于Linux Xwindow转发上的Visual Studio代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆