Skip to content

Nx Console Auto-Install Request Blocks VS Code Tasks from running #31668

Open
@yingw787

Description

@yingw787

Current Behavior

I have a VS Code task, defined in tasks.json as:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "service-gis:serve",
      "type": "shell",
      "command": "pnpm dlx nx run service-gis:serve",
      "isBackground": false,
      "presentation": {
        "echo": true,
        "reveal": "always",
        "focus": true,
        "panel": "shared",
        "showReuseMessage": true,
        "clear": false
      },
      "problemMatcher": []
    }
]
}

I am in a DevContainer environment. I rebuild my container using Command Palette "> Dev Containers: Rebuild and Reopen in Container". Then I go to Command Palette "> Tasks: Run Task" and select task "service-gis:serve". The first time I run this, I get this blocking command, as detailed here (

'- Explore your workspace visually',
).

I have 16 of these tasks kicked off with one orchestrator VS Code task. I have to go to each and every single open terminal and select yes. I tried passing in flag NX_CONSOLE_PROMPT=false, --non-interactive, and yes | with no results. I have TUI disabled. I tried looking at the Nx source code and don't have any signs of disabling this feature. I have Nx console installed as part of my DevContainer setup.

Expected Behavior

When I run command pnpm dlx nx run service-gis:serve, I should be able to see the command run, without any further prompting, regardless of the state of my dev environment, especially if I have the Nx Console extension installed as per the prompt.

GitHub Repo

No response

Steps to Reproduce

This is in our proprietary repo, I can't share more details.

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.16.0
OS             : linux-x64
Native Target  : x86_64-linux
pnpm           : 10.12.1

nx (global)        : 21.2.1
nx                 : 21.2.0
@nx/js             : 21.2.0
@nx/jest           : 21.2.0
@nx/eslint         : 21.2.0
@nx/workspace      : 21.2.0
@nx/cypress        : 21.2.0
@nx/devkit         : 21.2.0
@nx/eslint-plugin  : 21.2.0
@nx/next           : 21.2.0
@nx/node           : 21.2.0
@nx/playwright     : 21.2.0
@nx/react          : 21.2.0
@nx/vite           : 21.2.0
@nx/web            : 21.2.0
typescript         : 5.8.3
---------------------------------------
Registered Plugins:
@nx/next/plugin
@nx/eslint/plugin
@nxlv/python
@nx/react/router-plugin
@nx/vite/plugin
@nx/playwright/plugin
---------------------------------------
Community plugins:
@nx-tools/nx-container : 6.2.0
@nxlv/python           : 20.14.0
---------------------------------------
Cache Usage: 60.00 B / 733.10 GB

Failure Logs

$ pnpm dlx nx report

 NX   Install Nx's official editor extension to:

- Enable your AI assistant to do more by understanding your workspace
- Add IntelliSense for Nx configuration files
- Explore your workspace visually

✔ Install Nx Console? (you can uninstall anytime) (Y/n) · true <-- THIS IS WHERE IT GETS STUCK IN SCRIPTING MODE

 NX  Successfully installed Nx Console


 NX   Report complete - copy this into the issue template

Node           : 22.16.0
OS             : linux-x64
Native Target  : x86_64-linux
pnpm           : 10.12.1

nx (global)        : 21.2.1
nx                 : 21.2.0
@nx/js             : 21.2.0
@nx/jest           : 21.2.0
@nx/eslint         : 21.2.0
@nx/workspace      : 21.2.0
@nx/cypress        : 21.2.0
@nx/devkit         : 21.2.0
@nx/eslint-plugin  : 21.2.0
@nx/next           : 21.2.0
@nx/node           : 21.2.0
@nx/playwright     : 21.2.0
@nx/react          : 21.2.0
@nx/vite           : 21.2.0
@nx/web            : 21.2.0
typescript         : 5.8.3
---------------------------------------
Registered Plugins:
@nx/next/plugin
@nx/eslint/plugin
@nxlv/python
@nx/react/router-plugin
@nx/vite/plugin
@nx/playwright/plugin
---------------------------------------
Community plugins:
@nx-tools/nx-container : 6.2.0
@nxlv/python           : 20.14.0
---------------------------------------
Cache Usage: 60.00 B / 733.10 GB

vscode ➜ /workspaces/ezunderwrite-web (disable_nx_console_prompt) $

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

Really pissed about the TUI updates. I'm in the console because I want to avoid GUI bullshit like having to click on buttons or add in user inputs.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions