Visual Studio Code on Linux Xwindow forwarding

16,289

Solution 1

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

Solution 2

I'm able to launch Visual Studio Code version 1.10.1 using Xming version 7.7.0.15.

Share:
16,289
Frank Liu
Author by

Frank Liu

dotNet (WPF, WCF) development, C++, ARM Embedded Development

Updated on June 30, 2022

Comments

  • Frank Liu
    Frank Liu almost 2 years

    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.