Giter Site home page Giter Site logo

Comments (11)

Hypenate avatar Hypenate commented on July 18, 2024

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 reset

Clears 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.

MaxKless avatar MaxKless commented on July 18, 2024

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.

Hypenate avatar Hypenate commented on July 18, 2024

@MaxKless No, I closed all nodejs instances via the Task Manager and the issue is still present.

from nx-console.

BoilerTom90 avatar BoilerTom90 commented on July 18, 2024

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.

MaxKless avatar MaxKless commented on July 18, 2024

it's in the outputs tab in vscode. It could also be called Nx Console Client depending on your version.
image

from nx-console.

BoilerTom90 avatar BoilerTom90 commented on July 18, 2024

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.

MaxKless avatar MaxKless commented on July 18, 2024

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.

MaxKless avatar MaxKless commented on July 18, 2024

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.

BoilerTom90 avatar BoilerTom90 commented on July 18, 2024

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.

MaxKless avatar MaxKless commented on July 18, 2024

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.

Hypenate avatar Hypenate commented on July 18, 2024

We fixed it by adding @swc/helpers to the package.json

from nx-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.