nx-console
nx-console copied to clipboard
no commands in generate & run target
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.
Expected Behavior
List of generate commands appear as usual and can be run from the Command Palette.
Steps to Reproduce
- Update VSCode to
v18.21.0or above - 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
Hi, could you provide some logs and ideally a minimal repro? That will make it easier for us to fix the issue.
- run
nx reportand paste what you see there - Go to
Output -> Nx Language Serverand paste what you see there. - Run
Toggle Developer Toolsand paste what you see there too - Finally, run
nx daemonand provide the contents of thedaemon.logfile linked there
Thank you!
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:
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:
And the daemon logs:
v18.20.0: nx-daemon-v18_20_0.txt
v18.22.0: nx-daemon-v18_22_0.txt
@millerpb Any luck on this one?
This is so strange. The logs say that the nxls was able to compute the project graph successfully in both cases... any chance you could get me access to the repo or have a minimal repro?
At this point, with upgrades in our repo and updates to the vscode plugin, I'm no longer having this issue. Thanks for reaching out and sorry I forgot to update this ticket!