Windows 10 Linux子系统上的Xming Visual Studio代码 [英] Xming Visual Studio Code on Windows 10 Linux Subsystem

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

问题描述

我想做的基本上是在Windows 10周年更新计算机的Linux子系统上运行Visual Studio Code.我已经使用gdebi安装了code.xxx.deb软件包,并解决了一些缺少的要求.我在Windows上安装了Xming,它可以正常工作(我已经使用xeyes和firefox对其进行了尝试).但是,当我运行DISPLAY=:0 code时,这似乎不起作用.终端再次可用,没有任何错误消息.通过运行DISPLAY=:0 code --verbose,我得到以下信息:

What I am trying to do is basically run Visual Studio Code on the Linux subsystem of a Windows 10 Anniversary Update machine. I have installed the code.xxx.deb package using gdebi and solved the few requirements missing. I have Xming installed on Windows, which works (I've tried it with xeyes and firefox). However, that doesn't seem to work when I run DISPLAY=:0 code. The terminal becomes available again without any error message. By running DISPLAY=:0 code --verbose, I get the following:

[6952:0213/151841:FATAL:render_sandbox_host_linux.cc(40)] Check failed: 0 == shutdown(renderer_socket_, SHUT_RD). shutdown: Invalid argument
#0 0x000001e52dce <unknown>
#1 0x000001e68acb <unknown>
#2 0x000001e6908d <unknown>
#3 0x00000292b5e2 <unknown>
#4 0x0000026f44b5 <unknown>
#5 0x0000026fa81f <unknown>
#6 0x0000026f3c46 <unknown>
#7 0x00000121ccf7 <unknown>
#8 0x00000121b7d0 <unknown>
#9 0x000003473ea3 main
#10 0x7f4d58c81f45 __libc_start_main
#11 0x000000574509 <unknown>

我不确定如何处理.它一定是特定于此程序包的,但是我不知道是什么.

I am not really sure how to deal with this. It must be something specific to this package but I can't figure out what.

预先感谢您的帮助.

PS:之所以要这样做,是因为仅在Ubuntu子系统下进行编译时,才使用Visual Studio Code GUI调试器.

PS: the reason I'm trying to do this is to use the Visual Studio Code GUI debugger as I am compiling under the Ubuntu subsystem only.

推荐答案

这似乎是一个已知问题,请参见

This appears to be a known issue, see #1587 on the Bash On Windows issue tracker, which has the exact same error message.

它可能已经可以与Windows的最新预览版本之一一起使用:

It might already work with one of the more recent preview builds of Windows:

众所周知,电子肯定会在14393上损坏.据说人们已经在15002上运行了vscode,并且它在电子中运行[...]

Electron definitely is known to be broken on 14393. Supposedly people have gotten vscode working on 15002, and that runs in electron [...]

Build 15002已于2017年1月9日发布到快速戒备"中.

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

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