nrwl / nx-console

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

no commands in generate & run target #2173

Open millerpb opened 2 weeks ago

millerpb commented 2 weeks ago

Current Behavior

This issue is with the VSCode Nx Console plugin. It may be related to how our repo is configured (been upgraded over the years), but we're on nx/angular 17.2.7.

When I'm running a version of the plugin greater than v18.20.0, the list of "Generate & Run Target" commands fails to load.

image

Expected Behavior

List of generate commands appear as usual and can be run from the Command Palette.

image

Steps to Reproduce

  1. Update VSCode to v18.21.0 or above
  2. No more list of generate/run target commands

Failure Logs / Images / Videos

Environment

VSCode, Nx Console plugin,

MaxKless commented 2 weeks ago

Hi, could you provide some logs and ideally a minimal repro? That will make it easier for us to fix the issue.

Thank you!

millerpb commented 1 week ago

NX Report on Nx Console v18.20.0:

Node   : 18.19.1
   OS     : win32-x64
   pnpm   : 8.15.3

   nx                 : 17.2.7
   @nx/js             : 17.2.7
   @nx/jest           : 17.2.7
   @nx/linter         : 17.2.7
   @nx/eslint         : 17.2.7
   @nx/workspace      : 17.2.7
   @nx/angular        : 17.2.7
   @nx/cypress        : 17.2.7
   @nx/devkit         : 17.2.7
   @nx/eslint-plugin  : 17.2.7
   @nx/node           : 17.2.7
   @nx/plugin         : 17.2.7
   @nx/storybook      : 17.2.7
   @nrwl/tao          : 17.2.7
   @nx/web            : 17.2.7
   @nx/webpack        : 17.2.7
   typescript         : 5.2.2
   ---------------------------------------
   Community plugins:
   @ionic/angular        : 7.6.2
   @monodon/rust         : 1.3.3
   @ngneat/spectator     : 16.0.0
   @ngrx/component       : 17.0.1
   @ngrx/component-store : 17.0.1
   @ngrx/effects         : 17.0.1
   @ngrx/entity          : 17.0.1
   @ngrx/router-store    : 17.0.1
   @ngrx/schematics      : 17.0.1
   @ngrx/store           : 17.0.1
   @ngrx/store-devtools  : 17.0.1
   @nxext/capacitor      : 17.0.1
   @nxext/ionic-angular  : 17.0.1
   @storybook/angular    : 7.6.6
   apollo-angular        : 6.0.0
   ngx-build-plus        : 14.0.0
   ---------------------------------------
   Local workspace plugins:
         @scorpion/util-federation-generators
         @scorpion/util-generators

NX Language Server Output on Nx Console v18.20.0:

[Nxls] - 2024-06-22T21:09:11.636Z - Initializing Nx Language Server

[Nxls] - 2024-06-22T21:09:11.640Z - Retrieving workspace configuration

[Nxls] - 2024-06-22T21:09:11.646Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/utils/output.js

[Nxls] - 2024-06-22T21:09:11.716Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/project-graph/project-graph.js

[Nxls] - 2024-06-22T21:09:11.719Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/project-graph/file-utils.js

[Nxls] - 2024-06-22T21:09:11.719Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/project-graph/file-map-utils.js

[Nxls] - 2024-06-22T21:09:11.719Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/daemon/client/client.js

[Nxls] - 2024-06-22T21:09:11.767Z - createProjectGraphAndSourceMapsAsync

[Nxls] - 2024-06-22T21:09:13.103Z - createProjectGraphAndSourceMapsAsync successful

[Nxls] - 2024-06-22T21:09:13.197Z - Resetting daemon client

[Nxls] - 2024-06-22T21:09:13.197Z - Retrieved workspace configuration in: 1556.6786999702454 ms

Dev tools console (?) on Nx Console v18.20.0:

image

NX Report on Nx Console v18.22.0:

Node   : 18.19.1
   OS     : win32-x64
   pnpm   : 8.15.3

   nx                 : 17.2.7
   @nx/js             : 17.2.7
   @nx/jest           : 17.2.7
   @nx/linter         : 17.2.7
   @nx/eslint         : 17.2.7
   @nx/workspace      : 17.2.7
   @nx/angular        : 17.2.7
   @nx/cypress        : 17.2.7
   @nx/devkit         : 17.2.7
   @nx/eslint-plugin  : 17.2.7
   @nx/node           : 17.2.7
   @nx/plugin         : 17.2.7
   @nx/storybook      : 17.2.7
   @nrwl/tao          : 17.2.7
   @nx/web            : 17.2.7
   @nx/webpack        : 17.2.7
   typescript         : 5.2.2
   ---------------------------------------
   Community plugins:
   @ionic/angular        : 7.6.2
   @monodon/rust         : 1.3.3
   @ngneat/spectator     : 16.0.0
   @ngrx/component       : 17.0.1
   @ngrx/component-store : 17.0.1
   @ngrx/effects         : 17.0.1
   @ngrx/entity          : 17.0.1
   @ngrx/router-store    : 17.0.1
   @ngrx/schematics      : 17.0.1
   @ngrx/store           : 17.0.1
   @ngrx/store-devtools  : 17.0.1
   @nxext/capacitor      : 17.0.1
   @nxext/ionic-angular  : 17.0.1
   @storybook/angular    : 7.6.6
   apollo-angular        : 6.0.0
   ngx-build-plus        : 14.0.0
   ---------------------------------------
   Local workspace plugins:
         @scorpion/util-federation-generators
         @scorpion/util-generators

NX Language Server Output on Nx Console v18.22.0:

[Nxls] - 2024-06-22T21:11:48.513Z - Initializing Nx Language Server

[Nxls] - 2024-06-22T21:11:48.519Z - Retrieving workspace configuration

[Nxls] - 2024-06-22T21:11:48.608Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/project-graph/file-utils.js

[Nxls] - 2024-06-22T21:11:48.608Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/project-graph/project-graph.js

[Nxls] - 2024-06-22T21:11:48.608Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/utils/output.js

[Nxls] - 2024-06-22T21:11:48.608Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/project-graph/file-map-utils.js

[Nxls] - 2024-06-22T21:11:48.609Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/daemon/client/client.js

[Nxls] - 2024-06-22T21:11:48.651Z - createProjectGraphAndSourceMapsAsync

[Nxls] - 2024-06-22T21:11:49.879Z - createProjectGraphAndSourceMapsAsync successful

[Nxls] - 2024-06-22T21:11:49.964Z - Resetting daemon client

[Nxls] - 2024-06-22T21:11:49.964Z - Retrieved workspace configuration in: 1444.937600016594 ms

[Nxls] - 2024-06-22T21:11:50.065Z - Using local Nx package at c:/VersionControl/git/AppPlatform/node_modules/nx/src/native/index.js

Dev tools console (?) on Nx Console v18.22.0:

image

And the daemon logs:

v18.20.0: nx-daemon-v18_20_0.txt

v18.22.0: nx-daemon-v18_22_0.txt