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

Error when I open integrated terminal (on Mac) #14768

Closed
brennanMKE opened this issue Oct 31, 2016 · 6 comments
Closed

Error when I open integrated terminal (on Mac) #14768

brennanMKE opened this issue Oct 31, 2016 · 6 comments
Assignees
Labels
*as-designed Described behavior is as designed terminal Integrated terminal issues

Comments

@brennanMKE
Copy link

  • VSCode Version: 1.6.1
  • OS Version: MacOS El Capitan

Steps to Reproduce:

  1. Open Integrated Terminal
  2. See error displayed at the top

I have 2 MacBooks with VSCode installed. One works fine and the other has this error. I have ready other issues related to the integrated terminal not working related to folders with spaces or special characters but that is not the case here. There is no folder in the path which is unusual.

How can I get more information about the error? I opened the Console and did not see anything logged there after attempting to open the integrated terminal. I'd like to figure out why this is happening so I can fix it and start using there terminal within VSCode.

@brennanMKE
Copy link
Author

Possibly related: #14528

@rebornix rebornix added info-needed Issue requires more information from poster terminal Integrated terminal issues labels Oct 31, 2016
@Tyriar
Copy link
Member

Tyriar commented Oct 31, 2016

@brennanMKE are you in a directory with non-ascii character like in #7727?

@brennanMKE
Copy link
Author

I tried opening my home folder which is /Users/username without any special characters and it still fails. Is there any place I can look for additional error logging?

@Tyriar
Copy link
Member

Tyriar commented Oct 31, 2016

No there is not as it's run in a different process and no error information is sent back other than the exit code right now.

This error occurs when the shell process exits immediately. Typically their is either non-ascii text (pre 1.7) or you have a bad shell setup (terminal.integrated.shell.osx, terminal.integrated.shellArgs.osx). Do you have those settings set?

This is the line that is relevant, it contains the environment that will be used by the terminal as well as the command (PTYSHELL) and args (PTYSHELLARG). If you can debug to that line it will probably reveal what's going wrong.

@brennanMKE
Copy link
Author

I opened up workspace settings and found the shell was set to /bin/false which I did not set myself. This is a computer was set up by the company by IT. Maybe they set it that way.

My shell also was not configured since I use .bash_profile so I symlinked .profile and .bashrc to it so there VSCode integrated terminal is configured and has the PATH set up properly.

Maybe there is a way to detect this bad setting and warn the user.

@Tyriar
Copy link
Member

Tyriar commented Oct 31, 2016

I've never seen anyone else have this sort of issue, I suppose they set $SHELL to /bin/false for some reason as that's what "terminal.integrated.shell.osx"'s default value is derived from on OSX. So you can override this inside VS Code by using "terminal.integrated.shell.osx": "/bin/bash" or by setting the SHELL env variable if you have access to do that.

There is an issue open for showing a better error message here #9087

@Tyriar Tyriar closed this as completed Oct 31, 2016
@Tyriar Tyriar added *as-designed Described behavior is as designed and removed info-needed Issue requires more information from poster labels Oct 31, 2016
@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
*as-designed Described behavior is as designed terminal Integrated terminal issues
Projects
None yet
Development

No branches or pull requests

3 participants