Giter VIP home page Giter VIP logo

Comments (14)

ricvelozo avatar ricvelozo commented on August 24, 2024 23

Edit the settings of shell, i.e:

"terminal.integrated.shell.linux": "flatpak-spawn",
"terminal.integrated.shellArgs.linux": ["--host", "bash"],

from com.visualstudio.code.

vwalek avatar vwalek commented on August 24, 2024 11

Try this.

    "terminal.integrated.defaultProfile.linux": "zsh",
    "terminal.integrated.profiles.linux": {
        "zsh": {
          "path": "/usr/bin/env",
          "args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "zsh"]
        }

The same works for bash

    "terminal.integrated.defaultProfile.linux": "bash",
    "terminal.integrated.profiles.linux": {
        "bash": {
          "path": "/usr/bin/env",
          "args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "bash"]
        }    

from com.visualstudio.code.

seongs1024 avatar seongs1024 commented on August 24, 2024 3

Edit the settings of shell, i.e:

"terminal.integrated.shell.linux": "flatpak-spawn",
"terminal.integrated.shellArgs.linux": ["--host", "bash"],

Thanks, @ricvelozo.
But there are some messages of bash...

bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

image

Do you know how can it be fixed?

from com.visualstudio.code.

darkbasic avatar darkbasic commented on August 24, 2024 3

add export TERM=xterm to .bashrc or .zshrc

$TERM is already set but I still get the warning:

[niko@fedora server]$ echo $TERM
xterm-256color

from com.visualstudio.code.

vwalek avatar vwalek commented on August 24, 2024 1

@rayfoss - I think that's problem with "flatpak-spawn" and not the linux profile. I wouldn't say it is major issue, just annoying message. It shouldn't affect the bash. Do you see prompt after the message?

from com.visualstudio.code.

mundusnine avatar mundusnine commented on August 24, 2024

This works on debian 9; You have to restart your terminal for it to work. Press th kill terminal and open a new one.

from com.visualstudio.code.

 avatar commented on August 24, 2024

Thank you for your response but restarting the terminal or vscode does not fix this problem.

from com.visualstudio.code.

lsahn-gh avatar lsahn-gh commented on August 24, 2024

Replace the path with /usr/bin/bash or use the value which is showed with command, which bash.

from com.visualstudio.code.

parithy avatar parithy commented on August 24, 2024

this doesn't work due to the pseudo root file structure for the flatpak apps, I see home is bind mounted. need similar solution for using system commands

from com.visualstudio.code.

peteruithoven avatar peteruithoven commented on August 24, 2024

A similar, but seemingly more informed discussion: flathub/com.visualstudio.code.oss#5

from com.visualstudio.code.

ricvelozo avatar ricvelozo commented on August 24, 2024

@seongs1024 You can ignore the messages or use faltpak-spawn for just the external tools, instead of full terminal.

from com.visualstudio.code.

noonsleeper avatar noonsleeper commented on August 24, 2024

Edit the settings of shell, i.e:

"terminal.integrated.shell.linux": "flatpak-spawn",
"terminal.integrated.shellArgs.linux": ["--host", "bash"],

Thanks, @ricvelozo.
But there are some messages of bash...

bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

image

Do you know how can it be fixed?

add export TERM=xterm to .bashrc or .zshrc

from com.visualstudio.code.

FossPrime avatar FossPrime commented on August 24, 2024
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

This was caused by me using an abandoned version of code-oss

sudo flatpak remove com.visualstudio.code.oss
sudo flatpak install flathub com.visualstudio.code-oss

from com.visualstudio.code.

FossPrime avatar FossPrime commented on August 24, 2024

Try this.

    "terminal.integrated.defaultProfile.linux": "zsh",
    "terminal.integrated.profiles.linux": {
        "zsh": {
          "path": "/usr/bin/env",
          "args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "zsh"]
        }

The same works for bash

    "terminal.integrated.defaultProfile.linux": "bash",
    "terminal.integrated.profiles.linux": {
        "bash": {
          "path": "/usr/bin/env",
          "args": ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256color", "bash"]
        }    

Does not work on Debian Buster...
Screenshot 2021-06-23 12 15 22

from com.visualstudio.code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.