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

Terminal process terminated with exit code: 127 #163

Open
kaosine opened this issue Jun 8, 2020 · 2 comments
Open

Terminal process terminated with exit code: 127 #163

kaosine opened this issue Jun 8, 2020 · 2 comments

Comments

@kaosine
Copy link

kaosine commented Jun 8, 2020

I've just installed(and think I added the settings right from the warning...) and I'm trying to just do a hello world with py but it terminates with that 127 code error when I actually try to run it so I can't even attempt to see if it works.

@mzabaluev
Copy link
Contributor

You can review your terminal settings in settings.json.
This might have to do with your ~/.bashrc. Try to run the shell from host with something like:

flatpak run --command=sh com.visualstudio.code

@stethewwolf
Copy link

Hi,
in my case adding those lines:

  {
    "terminal.integrated.shell.linux": "/usr/bin/env",
    "terminal.integrated.shellArgs.linux": ["--", "flatpak-spawn", "--host", "bash"]
  }

it fail whit

The terminal process "/bin/sh '--', 'flatpak-spawn', '--host', 'sh'" failed to launch (exit code: 126).

I tried to run :

[stethewwolf@hel ~]$ flatpak run --command=sh com.visualstudio.code
[📦 com.visualstudio.code ~]$ 

it works, then I modified my settings file in this way

    "terminal.integrated.automationShell.linux": "/usr/bin/flatpak run --command=sh com.visualstudio.code",
    "terminal.integrated.shellArgs.linux": [""]

but it fail with

The terminal process "/bin/sh ''" failed to launch (exit code: 127).

Any hint ?? or doc pages ?

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants