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

Uncaught Error: Not implemented: Pipe.prototype.listen - Windows #25867

Open
sschneider-ihre-pvs opened this issue Sep 25, 2024 · 8 comments
Open
Labels
bug Something isn't working correctly node compat

Comments

@sschneider-ihre-pvs
Copy link

Version: Deno 2.0.0-rc.5 (release candidate, release, x86_64-pc-windows-msvc)

When I run deno run -A .\node_modules\nx\bin\nx.js serve projectName

I get the following error

detached processes are not currently supported on Windows
detached processes are not currently supported on Windows
detached processes are not currently supported on Windows
errorerror: : Uncaught Error: Not implemented: Pipe.prototype.listen - Windows
    at notImplemented (ext:deno_node/_utils.ts:9:9)
    at Pipe.listen (ext:deno_node/internal_binding/pipe_wrap.ts:144:7)
    at Server._setupListenHandle [as _listen2] (node:net:1178:28)
    at _listenInCluster (node:net:1012:12)
    at Server.listen (node:net:1278:7)
    at Object.<anonymous> (file:///<HOME>/deno-2-test/node_modules/.deno/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:146:8)
    at Object.<anonymous> (file:///<HOME>/deno-2-test/node_modules/.deno/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:160:4)
    at Module._compile (node:module:748:34)
    at Object.Module._extensions..js (node:module:767:10)
    at Module.load (node:module:665:32)Uncaught Error: Not implemented: Pipe.prototype.listen - Windows
    at notImplemented (ext:deno_node/_utils.ts:9:9)
    at Pipe.listen (ext:deno_node/internal_binding/pipe_wrap.ts:144:7)
    at Server._setupListenHandle [as _listen2] (node:net:1178:28)
    at _listenInCluster (node:net:1012:12)
    at Server.listen (node:net:1278:7)
    at Object.<anonymous> (file:///<HOME>/deno-2-test/node_modules/.deno/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:146:8)
    at Object.<anonymous> (file:///<HOME>/deno-2-test/node_modules/.deno/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:160:4)
    at Module._compile (node:module:748:34)
    at Object.Module._extensions..js (node:module:767:10)
    at Module.load (node:module:665:32)

error: Uncaught Error: Not implemented: Pipe.prototype.listen - Windows
    at notImplemented (ext:deno_node/_utils.ts:9:9)
    at Pipe.listen (ext:deno_node/internal_binding/pipe_wrap.ts:144:7)
    at Server._setupListenHandle [as _listen2] (node:net:1178:28)
    at _listenInCluster (node:net:1012:12)
    at Server.listen (node:net:1278:7)
    at Object.<anonymous> (file:///<HOME>/deno-2-test/node_modules/.deno/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:146:8)
    at Object.<anonymous> (file:///<HOME>/deno-2-test/node_modules/.deno/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker.js:160:4)
    at Module._compile (node:module:748:34)
    at Object.Module._extensions..js (node:module:767:10)
    at Module.load (node:module:665:32)

 NX   Failed to start plugin worker.

Is that a compatibility issue, a nx issue or a windows issue?

@bartlomieju
Copy link
Member

It's a compatibility issue. This API is not yet supported in Deno.

@sschneider-ihre-pvs
Copy link
Author

ok. At least I got that question out of the way :D

@sschneider-ihre-pvs
Copy link
Author

Is there a workaround or something?

@bartlomieju bartlomieju added bug Something isn't working correctly node compat labels Sep 25, 2024
@bartlomieju
Copy link
Member

I'm not really familiar with internals of nx, but I'm afraid there might not be a workaround at the moment.

@Ionaru
Copy link

Ionaru commented Oct 19, 2024

Steps to reproduce:

  1. Create a new simple NX workspace
deno run -A npm:create-nx-workspace@latest deno-nx --preset node-standalone --ci skip --docker false --framework none --interactive false
  1. Navigate to the created folder
cd deno-nx
  1. Run the program through NX
deno run start

Output will be the same as in the post above.

Error originates from the server.listen(socketPath); line here: https://github.com/nrwl/nx/blob/master/packages/nx/src/project-graph/plugins/isolation/plugin-worker.ts#L136

A "support NX" issue was previously closed, but it seems like it doesn't work correctly yet: #22966

@hinogi
Copy link

hinogi commented Oct 31, 2024

Just to update it is still around in 2.0.4

@Ionaru
Copy link

Ionaru commented Nov 21, 2024

Using Deno v2.1.1 and nx v20.0.3 I am getting a different error, but the cause remains the same.

Task start nx serve
detached processes are not currently supported on Windows

 NX   Nx Daemon was not able to compute the project graph.

Log file with the error: C:\Users\<HOME>\Projects\deno-nx\.nx\workspace-data\d\daemon-error.log
Please file an issue at https://github.com/nrwl/nx
Nx Daemon is going to be disabled until you run "nx reset".

detached processes are not currently supported on Windows
detached processes are not currently supported on Windows
detached processes are not currently supported on Windows
detached processes are not currently supported on Windows
detached processes are not currently supported on Windows
error: Unable to load C:\Users\<HOME>\Projects\deno-nx\node_modules\nx\src\project-graph\plugins\isolation\plugin-worker

Caused by:
    The system cannot find the file specified. (os error 2)
error: Unable to load C:\Users\<HOME>\Projects\deno-nx\node_modules\nx\src\project-graph\plugins\isolation\plugin-worker

Caused by:
    The system cannot find the file specified. (os error 2)
error: Unable to load C:\Users\<HOME>\Projects\deno-nx\node_modules\nx\src\project-graph\plugins\isolation\plugin-worker

Caused by:
    The system cannot find the file specified. (os error 2)
error: Unable to load C:\Users\<HOME>\Projects\deno-nx\node_modules\nx\src\project-graph\plugins\isolation\plugin-worker

Caused by:
    The system cannot find the file specified. (os error 2)
error: Unable to load C:\Users\<HOME>\Projects\deno-nx\node_modules\nx\src\project-graph\plugins\isolation\plugin-worker

Caused by:
    The system cannot find the file specified. (os error 2)

Contents of .nx\workspace-data\d\daemon-error.log:

Failed to start or connect to the Nx Daemon process.

Messages from the log:
[NX Daemon Server] - 2024-11-21T22:18:16.075Z - Started listening on: \\.\pipe\nx\C:\Users\<HOME>\AppData\Local\Temp\3de1672c0e15e6f0136e\d.sock
[NX Daemon Server] - 2024-11-21T22:18:16.078Z - [WATCHER]: Subscribed to changes within: C:\Users\<HOME>\Projects\deno-nx (native)
[NX Daemon Server] - 2024-11-21T22:18:16.088Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2024-11-21T22:18:16.090Z - Closed a connection. Number of open connections: 0
[NX Daemon Server] - 2024-11-21T22:18:16.090Z - Established a connection. Number of open connections: 1
[NX Daemon Server] - 2024-11-21T22:18:16.091Z - [REQUEST]: Responding to the client. Shutdown initiated
[NX Daemon Server] - 2024-11-21T22:18:16.092Z - Done responding to the client Shutdown initiated
[NX Daemon Server] - 2024-11-21T22:18:16.093Z - Handled FORCE_SHUTDOWN. Handling time: 0. Response time: 2.
[NX Daemon Server] - 2024-11-21T22:18:16.093Z - Closed a connection. Number of open connections: 0
[NX Daemon Server] - 2024-11-21T22:18:16.093Z - [WATCHER]: Stopping the watcher for C:\Users\<HOME>\Projects\deno-nx (sources)
[NX Daemon Server] - 2024-11-21T22:18:16.093Z - [WATCHER]: Stopping the watcher for C:\Users\<HOME>\Projects\deno-nx (outputs)

 NX   Not implemented: Pipe.prototype.listen - Windows

@steve02081504
Copy link

this'll also make npm:node-notifier not work :)

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

No branches or pull requests

5 participants