Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code on Linux Xwindow forwarding

My configuration is as follows:

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 code 1.5.3

Xming 6.9.0.31

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

code or code .

It returns to the command line immediately with no error.

Then I ran

code --verbose

I get the following messages.

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 }

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

like image 764
Frank Liu Avatar asked Sep 26 '16 05:09

Frank Liu


1 Answers

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

like image 61
Frank Liu Avatar answered Sep 28 '22 00:09

Frank Liu