Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no commands in generate & run target #2173

Open
millerpb opened this issue Jun 17, 2024 · 2 comments
Open

no commands in generate & run target #2173

millerpb opened this issue Jun 17, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@millerpb
Copy link

millerpb commented Jun 17, 2024

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,

  • Nx Console version: v18.20.0 (when working)
  • VSCode version: 1.90.1
@millerpb millerpb added the type: bug Something isn't working label Jun 17, 2024
@MaxKless
Copy link
Collaborator

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

  • run nx report and paste what you see there
  • Go to Output -> Nx Language Server and paste what you see there.
  • Run Toggle Developer Tools and paste what you see there too
  • Finally, run nx daemon and provide the contents of the daemon.log file linked there

Thank you!

@millerpb
Copy link
Author

millerpb commented Jun 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants