nrwl / nx-console

Nx Console is the user interface for Nx & Lerna.
https://nx.dev
MIT License
1.3k stars 212 forks source link

NX Console V18.22.0 removed Generate & Run Target #2180

Closed shadow1349 closed 2 weeks ago

shadow1349 commented 2 weeks ago

Current Behavior

image

The Generate & Run Target palette is missing from the latest version of the NX console. Running generate from common nx commands does not bring up the generate UI.

Expected Behavior

I would expect the generate command to pull up the generate UI.

GitHub Repo

No response

Steps to Reproduce

  1. You can just start a brand new nx workspace using npx create-nx-workspace@latest
  2. Open in VS Code with NX Console version 18.22.0
  3. Open NX Console and you won't be able to get to the actual NX Console UI and there will be no Generate & Run Target and the generate command will not be an option

Nx Report

Node   : 20.8.1
OS     : darwin-arm64
npm    : 10.2.0

nx             : 19.3.0
@nx/js         : 19.3.0
@nx/workspace  : 19.3.0
@nx/devkit     : 19.3.0
@nrwl/tao      : 19.3.0

Failure Logs

No response

Package Manager Version

No response

Operating System

Additional Information

No response

shadow1349 commented 2 weeks ago

As a note version 18.21.4 does not have this bug.

committy commented 2 weeks ago

Agree same problem after migration to 19.3.0. I kept the Nx version on the latest but downgrade Nx Console V18.21.4. All seem to work fine for me

Lorondos commented 2 weeks ago

Possible duplicate as already under the nx console repo: https://github.com/nrwl/nx-console/issues/2173

MaxKless commented 2 weeks ago

Hey! In the latest Nx Console, we merged the Generate & Run Targets and Common Nx Commands into one panel because their distinction was kind of arbitrary. You can still find the Generate (UI) command in the Common Nx Commands by default (see the button on the right below)

image

Alternatively, you can edit the nxConsole.commonNxCommands setting as shown below to include generate.ui which will open the generate UI with a click (see below).

image

As a last option, you can always run the generate ui via the Nx: Generate (UI) command from the command palette or a context menu.

The Generate UI is still there :) Would love to hear your thoughts on this change and how you have been using the Nx Console panels to the side. Is there anything I could add to fit your workflows better?

MaxKless commented 2 weeks ago

Maybe I will switch it around... the generate command should open the Generate UI by default and the button on the side can be used to run the quickpick generate

MaxKless commented 2 weeks ago

Here's the PR to switch the default: https://github.com/nrwl/nx-console/pull/2182

Now it will show "Generate (UI)" promintently and the less-used & less-useful "Generate (quickpick)" will be behind the button.

shadow1349 commented 2 weeks ago

@MaxKless thank you for elaborating and making that PR. I can see Generate UI in the command palette in VS Code, I think your PR would certainly make that UI more accessible. Thanks again!

MaxKless commented 2 weeks ago

Glad to hear that, thanks for taking the time to report this issue and making Nx Console better 🙏 Feel free to leave a review with your thoughts on the VSCode marketplace as well :)