2016-09-26 42 views
4

我的配置如下:Visual Studio代码的Linux的Xwindow转发

OS:

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

的Xming 6.9.0.31

我不得不跳起来相当很多箍得到visual studio code安装。最后,我设法做到了。 当我运行

codecode .

它立即返回到命令行,并没有错误。

然后我跑

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。等等。

回答

6

Xming没有vs code需要的功能。安装VcXsrv,现在它按预期工作。

+0

感谢您的跟进!这也是我的解决方案! – copeland3300

+0

XMing的后期版本,你需要捐赠才能正常工作 – markmnl

1

我能够使用Xming 7.7.0.15版启动Visual Studio Code 1.10.1。

+0

为什么我的答案会得到一个downvote?我每天都用Xming版本7.X使用Visual Studio代码。 –

0

XMing适合我!除了在PuTTy中启用X11转发之外,所有默认设置都没有更改。

但是请注意,若要获取XMing的最新版本,您必须捐赠给author's website,这将通过电子邮件向您发送证书以访问7.x安装。