Skip to content

MacOS: "no job control in this shell" prevents Ctrl+C #184713

Open

Description

Type: Bug

Every terminal starts with the following message before the first prompt:

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

I thought it was related to issue #181939 but it's still present.

It prevents ctrl+C out of long-running processes, and other similar commands. If a process is running when the window is closed, CodeHelper crashes.

VS Code version: Code 1.79.0 (Universal) (b380da4, 2023-06-07T14:29:00.206Z)
OS version: Darwin x64 17.7.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4201)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 3, 3, 3
Memory (System) 64.00GB (29.86GB free)
Process Argv -psn_0_725169
Screen Reader no
VM 0%
Extensions (28)
Extension Author (truncated) Version
laravel-extra-intellisense ami 0.6.3
vscode-intelephense-client bme 1.9.5
vscode-tailwindcss bra 0.9.11
multi-cursor-case-preserve Car 1.0.5
postcss css 1.0.9
vscode-eslint dba 2.4.0
es7-react-js-snippets dsz 4.4.3
permute-lines ear 1.1.0
json-tools eri 1.0.2
prettier-vscode esb 9.13.0
vscode-smart-column-indenter lmc 0.0.13
dotenv mik 1.0.1
isort ms- 2022.8.0
python ms- 2023.10.0
vscode-pylance ms- 2023.6.10
jupyter ms- 2023.5.1001582324
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
php-docblocker nei 2.7.0
laravel-blade one 1.34.0
vscode-sort-json ric 1.20.0
theme-check-vscode Sho 1.10.0
vscode-scss-formatter sib 2.5.0
php-refactor-tool st- 0.4.4
auto-correct syg 0.2.2
volar Vue 1.6.4
gitblame wad 10.2.0
change-case wma 1.0.0

(1 theme extensions excluded)

Activity

  1. ankarastrix commented on Jun 9, 2023

    @ankarastrix

    same issue ONLY on macos

  2. klipsedeville commented on Jun 9, 2023

    @klipsedeville

    Having same issue. Updated from 1.78.x to 1.79.0 and still hasn't fixed issue on Mac High Sierra

  3. ankarastrix commented on Jun 9, 2023

    @ankarastrix

    downgraded Visual Studio Code to version 1.77.3, and now it's working fine

  4. meganrogge commented on Jun 12, 2023

    @meganrogge
    Collaborator

    does this happen in an external terminal?

  5. added
    info-needed
    on Jun 12, 2023
  6. fonzcastellanos commented on Jun 13, 2023

    @fonzcastellanos

    I'm having this issue on macOS Mojave v10.14.16 using Visual Studio Code v1.79.1. Issue has been around for a bit more than a month, so it's persisted for several versions.

    Megan Rogge (@meganrogge) I do not have this issue on external terminal, which is what I've been using exclusively since this issue arose.

  7. removed
    info-needed
    on Jun 14, 2023
  8. deepak1556 commented on Jun 14, 2023

    @deepak1556
    Collaborator

    Looks like issue is localized to users on macOS High Sierra.

  9. added
    bug
    macos
    on Jun 14, 2023
  10. 58 remaining items

  11. tony-li-avepoint commented on May 10, 2024

    @tony-li-avepoint

    same issue +1
    Version: 1.89.1 (user setup)
    Commit: dc96b83
    Date: 2024-05-07T05:13:33.891Z

  12. sbingner commented on May 16, 2024

    @sbingner

    I won't be able to get to this issue anytime soon, if anyone is interested to address this issue the relevant code is at https://github.com/microsoft/node-pty/blob/main/src/unix/pty.cc , the following tests would fail on the affected OS https://github.com/microsoft/node-pty/blob/d6ce76a801f68730f7204b7b27bb21dbf8e63001/src/unixTerminal.test.ts#L123 so you can use that as a starting point.

    I tried this but unfortunately running that test on the affected OSX system passes. The only thing that failed is:

    1) UnixTerminal
           spawn
             should return the name of the sub process:
         Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/sam/source/node-pty/lib/unixTerminal.test.js)
          at listOnTimeout (internal/timers.js:554:17)
          at processTimers (internal/timers.js:497:7)
    

    also on linux it fails with

    
      1) UnixTerminal
           signals in parent and child
             SIGINT - custom in parent and child:
    
          Uncaught AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
    
    false !== true
    

    But I never had this problem there afaik :|

  13. paulgolter commented on Jun 19, 2024

    @paulgolter

    I have the same issue on windows.

    I am starting a vscode task that runs a python program.

    Ctrl+c signal does not get forwarded to the programm / picked up.

    Version: 1.90.1 (system setup)
    Commit: 611f9bf

  14. achetronic commented on Jul 17, 2024

    @achetronic

    Same issue on Linux with Flatpack VSCode

  15. OIRNOIR commented on Jul 27, 2024

    @OIRNOIR

    +1 on Flatpak VSCode

  16. ivanstepanovftw commented on Jul 29, 2024

    @ivanstepanovftw

    OIRNOIR (@OIRNOIR), submitted here, but for me reproducible only with zsh #224135

  17. ivanstepanovftw commented on Aug 23, 2024

    @ivanstepanovftw

    Flatpak related

  18. jmakuc commented on Oct 22, 2024

    @jmakuc

    I'm having the same problem, but CTRL+z to suspend the process does work. I don't know if it helps, but I thought I'll post here anyway. Same behavior in bash and zsh.

    VSCode: 1.94.2
    OSX: Sonoma 14.2.1 (23C71)

  19. added
    terminal-process
    and removed
    terminal
    on Dec 16, 2024
  20. SushanShakya commented on Apr 24, 2025

    @SushanShakya

    Use the settings for Mac:

    "terminal.integrated.allowChords": false

    This enables Ctrl + C to interrupt the process in terminal !

  21. added this to the Backlog milestone on Oct 23, 2025
  22. orefalo commented on Mar 8, 2026

    @orefalo

    Use the settings for Mac:

    "terminal.integrated.allowChords": false

    This enables Ctrl + C to interrupt the process in terminal !

    does not work for me.

    Version: 1.110.1
    Commit: 61b3d0a
    Date: 2026-03-06T23:03:27.520Z
    Electron: 39.6.0
    ElectronBuildId: 13330601
    Chromium: 142.0.7444.265
    Node.js: 22.22.0
    V8: 14.2.231.22-electron.0
    OS: Darwin arm64 25.3.0

  23. higaski commented on Mar 10, 2026

    @higaski

    Also stopped working for me on Arch using 1.110.1
    Outside of VSCode it still works fine.

  24. MathRdt commented on Mar 20, 2026

    @MathRdt

    Also stopped working for me on Arch using 1.110.1 Outside of VSCode it still works fine.

    I have the same problem, I think the root cause is this regression in VsCode that enable the kitty protocol by default :
    #295372

    That will be fixed in the 1.112 version. But if you don't use the insiders version (=beta release of Vscode) you will have to wait a few weeks to see this change happening...

    So in the meantime, the workaround seems to be to deactivate the kitty protocol inside vscode :
    #295372 (comment)

    Graphically :
    1. Open Settings (Cmd + ,)
    2. Search for enableKittyKeyboardProtocol
    3. Uncheck Terminal > Integrated: Enable Kitty Keyboard Protocol

    Or add this to your settings.json:
    "terminal.integrated.enableKittyKeyboardProtocol": false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedmacosterminal-process

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions