-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Unable to start Code on Ubuntu #862
Comments
Would be nice if you could track further ;) |
The program exits without any information. |
Maybe "code --verbose" reveals more? |
That gave me this error |
Hmmm, I wonder if this has something to do with the window properties we set. Are you able to build and run VS Code out of source code here on GitHub? |
This is heading down a rabbit hole I would rather not go down at the moment, I am really busy and was hoping this tool would speed things up. |
Yeah no worries, take your time. The instructions are here: https://github.com/Microsoft/vscode/wiki/How-to-Contribute It could be that something is missing as requirement but it could also be that we do something wrong when setting the window dimensions for VS Code. I got suspicious when I saw the error message from the --verbose call. |
It is being X displayed back from the Ubuntu vm to Cygwin running on my windows machine |
Got it, it could also well just be not supported by the Electron framework we use for rendering the UI. Does the Atom editor open? |
don't forget it does work when run by "sudo Code" from the same shell as the one that doesn't work |
Hm good point... 🍰 |
Also it will run if I log onto the console of the vm (when it's running gnome) and double click on the program from the folder/explorer view. However it wouldn't run from an xterm shell in the same logon enviroment |
Does this still happen with latest? |
Just downloaded an run the latest zip file I get the following error /usr2/VSCode-linux-x64/Code |
That sounds like an issue in getting the user environment. @joaomoreno fyi |
Is there any extra debug information I can get/provide ? |
What do you get with |
That's the problem I am trying to find out why xterm is setting SHELL to the wrong value |
It turns out that the xterm on the machine (3.19.0-15-generic #15-Ubuntu) is not setting SHELL to my actual shell (/bin/ksh) but defaulting to /bin/sh. |
What do you get with |
/bin/sh --version |
Maybe |
No that gives the same error Best I can get is this |
OK that helps: you seem to be running dash. Leaving it closed as I don't think many people will hit this. |
@ace007 Seems like I ran into the same issue #3131 . I had some troubleshooting ideas but couldn't find somebody who had faced this before. Could you try running
Try running Code again.
Try running Code again. I want to isolate if the reason is /bin/sh or /bin/bash. |
Hi, |
I have the exact opposite. My login shell is bash, but it works with SHELL set to any other shell but bash. |
I am running Ubuntu 15.04, without a GUI. My home directory is an NFS share mounted via automount, my account is via NIS.
After installing Gnome I have been able to get the Code executable to run by double clicking on the program from a file explorer. But not from a shell, either on the console or a remote ssh.
If I run the Code program from my normal ssh login it runs waits a while and then exits, with no error message or anything.
If I run it with the sudo Code command it runs up and works fine, apart from the whole running as root issue :(.
I suspect it's a file permission thing but am unable to track down what it could be.
Regards
John
The text was updated successfully, but these errors were encountered: