Comments (11)
Having the same issue (in VS code and Webstorm).
When pressing 'Refresh Workspace' in VS code gives me this output:
Telemetry: production
Graph - init
Error: Request nx/reset failed with message: Command failed: pnpm exec nx reset
nx resetClears all the cached Nx artifacts and metadata about the workspace and shuts down the Nx Daemon.
Options:
--help Show help [boolean]
--version Show version number [boolean]Error: EPERM: operation not permitted, unlink 'c:\git\bla.nx\cache\18.3.3-nx.win32-x64-msvc.node'
at unlinkSync (node:fs:1878:11)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at fixWinEPERMSync (node:internal/fs/rimraf:306:5)
at rimrafSync (node:internal/fs/rimraf:200:14)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at fixWinEPERMSync (node:internal/fs/rimraf:304:5)
at rimrafSync (node:internal/fs/rimraf:200:14)
at rmSync (node:fs:1268:10) {
errno: -4048,
code: 'EPERM',
syscall: 'unlink',
path: 'c:\git\bla\.nx\cache\18.3.3-nx.win32-x64-msvc.node'
}
from nx-console.
Hey @BoilerTom90 could you share some logs from the Output -> Nx Language Server
Tab as well?
@Hypenate I'm working on an update that will fix the error message you're seeing. It really shouldn't be happening, though... Do you have another nx process running in the same repo, by any chance?
from nx-console.
@MaxKless No, I closed all nodejs instances via the Task Manager and the issue is still present.
from nx-console.
Hey @BoilerTom90 could you share some logs from the
Output -> Nx Language Server
Tab as well? @Hypenate I'm working on an update that will fix the error message you're seeing. It really shouldn't be happening, though... Do you have another nx process running in the same repo, by any chance?
I must be blind because I don't see a 'Output -> Nx Language Server' tab. Can you shed some light on where I would find that?
from nx-console.
it's in the outputs tab in vscode. It could also be called Nx Console Client
depending on your version.
from nx-console.
ah, thanks for that. I haven't much of a need to look in that output console, until now. When I look at the choices in the OUTPUT
pulldown menu, I see
Nx Console
Nx Console Client
I do not see Nx Language Server
.
There isn't much in the Nx Console output, but here's the output from the Nx Console Client when I click the "refresh projects" button
[Nxls] - 2024-04-29T16:50:10.997Z - Retrieving workspace configuration
[Nxls] - 2024-04-29T16:50:10.998Z - Using local Nx package at d:/projects/nx-xcreg/xcreg3/node_modules/nx/src/project-graph/file-utils.js
[Nxls] - 2024-04-29T16:50:10.998Z - Using local Nx package at d:/projects/nx-xcreg/xcreg3/node_modules/nx/src/utils/output.js
[Nxls] - 2024-04-29T16:50:10.998Z - Using local Nx package at d:/projects/nx-xcreg/xcreg3/node_modules/nx/src/project-graph/file-map-utils.js
[Nxls] - 2024-04-29T16:50:10.999Z - Using local Nx package at d:/projects/nx-xcreg/xcreg3/node_modules/nx/src/project-graph/project-graph.js
[Nxls] - 2024-04-29T16:50:11.005Z - createProjectGraphAsync
[Nxls] - 2024-04-29T16:50:11.014Z - createProjectGraphAsync successful
process.exit called with code 1
[Nxls] - 2024-04-29T16:50:11.016Z - Unable to get nx workspace configuration: Error: Daemon process terminated and closed the connection
Messages from the log:
[NX Daemon Server] - 2024-04-29T16:47:05.841Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 2. Response time: 1.
[NX Daemon Server] - 2024-04-29T16:47:05.845Z - Closed a connection. Number of open connections: 1
[NX Daemon Server] - 2024-04-29T16:47:05.846Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-29T16:47:05.846Z - Closed a connection. Number of open connections: 1
[NX Daemon Server] - 2024-04-29T16:47:05.846Z - Established a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-29T16:47:05.849Z - [REQUEST]: Responding to the client. handleRequestFileData
[NX Daemon Server] - 2024-04-29T16:47:05.849Z - Done responding to the client handleRequestFileData
[NX Daemon Server] - 2024-04-29T16:47:05.849Z - Handled REQUEST_FILE_DATA. Handling time: 0. Response time: 0.
[NX Daemon Server] - 2024-04-29T16:50:11.006Z - Established a connection. Number of open connections: 3
[NX Daemon Server] - 2024-04-29T16:50:11.006Z - Closed a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-29T16:50:11.006Z - Established a connection. Number of open connections: 3
[NX Daemon Server] - 2024-04-29T16:50:11.008Z - [REQUEST]: Client Request for Project Graph Received
[NX Daemon Server] - 2024-04-29T16:50:11.010Z - [REQUEST]: Responding to the client. project-graph
[NX Daemon Server] - 2024-04-29T16:50:11.011Z - Time taken for 'total for creating and serializing project graph' 1.818900004029274ms
[NX Daemon Server] - 2024-04-29T16:50:11.011Z - Done responding to the client project-graph
[NX Daemon Server] - 2024-04-29T16:50:11.011Z - Handled REQUEST_PROJECT_GRAPH. Handling time: 2. Response time: 1.
[NX Daemon Server] - 2024-04-29T16:50:11.015Z - Closed a connection. Number of open connections: 2
[NX Daemon Server] - 2024-04-29T16:50:11.016Z - Established a connection. Number of open connections: 3
[NX Daemon Server] - 2024-04-29T16:50:11.016Z - Closed a connection. Number of open connections: 2
More information: d:\projects\nx-xcreg\xcreg3.nx\cache\d\daemon.log
--- it's worth nothing I have a couple other Nx projects that do not have this problem. The ones that do NOT have this problem are using an older version of Nx.
from nx-console.
Hey @BoilerTom90!
First of all, it looks like you're on an outdated version of Nx Console, so I'd recommend updating to ensure you have the latest bugfixes. If you're seeing these logs on nx 18.3.4
, you're really quite behind.
Either way, I've added a PR #2120 which should hopefully catch this error and similar ones.
from nx-console.
I'm going to close this for now, if the issue still persists on a newer version of Nx Console please let me know.
(I'm going to release a version with the fix from #2120 today as well)
Thank you!
from nx-console.
Hey @BoilerTom90! First of all, it looks like you're on an outdated version of Nx Console, so I'd recommend updating to ensure you have the latest bugfixes. If you're seeing these logs on nx
18.3.4
, you're really quite behind.Either way, I've added a PR #2120 which should hopefully catch this error and similar ones.
Max, I don't understand the comment. 18.3.4 is the latest version of Nx. How can I be behind? I didn't actually see any of these issues until I went to the latest of Nx and Nx Console.
from nx-console.
Can you check your Nx Console version and paste it here?
I'm asking because in your issue you list Nx Console 18.12.0 but the latest version is 18.21.1
https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console
So you're 10 versions behind. Maybe you have to update your VSCode as well to enable the latest Nx Console versions.
from nx-console.
We fixed it by adding @swc/helpers
to the package.json
from nx-console.
Related Issues (20)
- affected / run-many watch flag to match run's watch flag HOT 2
- nx generate process failed to launch HOT 2
- Adding @nrwl/nest dependency using nx console in vscode fails
- Nx console plugin for Webstorm not considering NX_DAEMON_SOCKET_DIR HOT 8
- Custom tasks won't start in VS Code ("There is no task provider registered for tasks of type "nx") HOT 3
- Nx Console 18 showing on Add dependency old @nrwl names HOT 1
- Cannot run NX Console after updating to v18.21.0 in VS Code HOT 2
- Intellij Idea with NX Console opens project.json with Data Editor and Viewer if form of a table HOT 3
- Rerunning a run-many task results in undefined command being run HOT 3
- Error running task: "version is longer than 256 characters" HOT 3
- Spaces being removed in generators parameters in UI HOT 10
- Cannot create nx Workspace HOT 1
- Cannot open generator UI in VSCode HOT 2
- Multiple terminal popups on Windows HOT 7
- "We couldn't find any projects in this workspace" HOT 2
- Windows: descriptions breaks the Generate UI HOT 1
- works if the project is in the root folder HOT 1
- [Jetbrains] Nx Console cannot run any task from IDE if there's a folder named `nx` in workspace root HOT 1
- Nx Console Generate (UI) tab displaying raw HTML instead of generator options UI in Webstorm HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-console.