Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code won't open in xrdp session. #12233

Closed
MaximoTrinidad opened this issue Sep 18, 2016 · 7 comments
Closed

VS Code won't open in xrdp session. #12233

MaximoTrinidad opened this issue Sep 18, 2016 · 7 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@MaximoTrinidad
Copy link

  • VSCode Version: 1.5.2 Linux deb version
  • OS Version: Windows 10 Pro Insider Preview
  • Remote Connection to: Ubuntu 16.04.1 LTS Desktop
  • Linux xrdp: Xfce-session

Steps to Reproduce:

  1. On Windos 10, open Remote Desktop application
  2. Connect to Linux machine using IP Address provided.
  3. At the Xfec session, click on "Applications | Development | Visual Studio Code"

Results:
Nothing opens

Provide VS Code Verbose results:
maxt@orion:~$ code --verbose
Xlib: extension "XInputExtension" missing on display ":10.0".
(4:29:39 PM) ### VSCode main.js ###
(4:29:40 PM) /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 }
Xlib: extension "XInputExtension" missing on display ":10.0".
Xlib: extension "XInputExtension" missing on display ":10.0".

Try Workaround from:
#3451
#9016
#11873

Changing both '/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0' and '/usr/lib/x86_64-linux-gnu/libxcb.so.1'
information: 's/BIG-REQUESTS/_IG-REQUESTS/' -> Didn't work!

This issue shouldn't be resolved with a workaround. It VS Code should work like JetBrains Python Editor "PC PyCharm" in a xrdp session.

pycharm_2016-09-18_18-10-30

See attached image:
vscode_notremoting_2016-09-18_17-43-13

@Tyriar
Copy link
Member

Tyriar commented Sep 19, 2016

Duplicate #3451

@Tyriar Tyriar closed this as completed Sep 19, 2016
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 19, 2016
@MaximoTrinidad
Copy link
Author

Sorry! I copy/paste the information on #3451.
Thanks,
Max

@MaximoTrinidad
Copy link
Author

MaximoTrinidad commented Sep 20, 2016

In summary! I was able to make it work in Ubuntu 16.04.1 remote session.

There are two files I changed which I don't know which is the correct one:
libxcb.so.1 and libxcb.so.1.1.0

Here are the steps for the workaround:

  1. Using (sudo su) nautilus, Search and found files on folder "/usr/lib/x86_64-linux-gnu"
  2. Backup both files to a backup folder.
  3. Then, execute the following command (sudo su):
    sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1
    sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
  4. Copy both files to "/usr/share/code"
  5. On Windows, open Remote Desktop connection, assign Linux IP-Address.
  6. In Linux Remote session, click on the Applications menu, go to Development, then Visual Studio Code and the application open.

Honestly, there most be a better way to do this but it works.

@MaximoTrinidad
Copy link
Author

OK! Its May 27th, 2017 and I would have expect by now that VS Code (and Insiders) would already work using xrpd. But, it isn't!!

This issue still Open as the workaround a permanent resolution as we need to manually fixed it.
How about integrating the workaround steps into the installation steps?

vscodexrdpissue

@Tyriar
Copy link
Member

Tyriar commented May 30, 2017

@MaximoTrinidad the solution is a hack. We absolutely do not want to modify libxcb when installing vscode, who knows how that might impact other applications.

@MaximoTrinidad
Copy link
Author

MaximoTrinidad commented May 31, 2017

Hum! So, for VS Code, there are no resolution to this issue in the future to work in xrdp.
That's a little disappointing as there are Linux IDE products that can work in xrdp without any hack.
:(

@Tyriar
Copy link
Member

Tyriar commented May 31, 2017

@MaximoTrinidad the root cause is an issue with the underlying platform, Electron electron/electron#2256

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants