Turbo87/webpack-notifier

Error: spawn ENAMETOOLONG on Windows 10

hypery2k opened this issue · 11 comments

Issues when using plugin on Windows 10, see mikaelbr/node-notifier#145

This issue prevents us from using this plugin

Had this issue when building an app on Windows 10, disabled this plugin in webpack. Build fine...

Gvozd commented

Is this a pressing problem?
try version 1.9.0 or newer

For this version, I managed to artificially call it by setting a message with a length of more than 32000 characters
If the message is longer than ~ 5000 characters, then there is no error, but the notification is no longer displayed

These are large enough messages, and I'm not sure if they are encountered in practice, especially 32000
If the problem persists, can you provide a reproducible example?

In any case, you can try to trim messages
But I would like to know what these limits depend on, and how to determine / set them, except for heuristic selection
Anyone have any ideas on this?

Gvozd commented

reopen in the case of repetition

Hello,
I have the same problem:
[INFO] node:internal/errors:464
[INFO] ErrorCaptureStackTrace(err);
[INFO] ^
[INFO]
[INFO] Error: spawn ENAMETOOLONG
[INFO] at ChildProcess.spawn (node:internal/child_process:412:11)
[INFO] at spawn (node:child_process:698:9)
[INFO] at Object.execFile (node:child_process:325:17)
[INFO] at Object.module.exports.fileCommand (E:\jhispster\my_proj\node_modules\webpack-notifier\node_modules\node-notifier\lib\utils.js:76:13)
[INFO] at E:\jhispster\my_proj\node_modules\webpack-notifier\node_modules\node-notifier\notifiers\toaster.js:145:11
[INFO] at runMicrotasks ()
[INFO] at processTicksAndRejections (node:internal/process/task_queues:96:5) {
[INFO] errno: -4064,
[INFO] code: 'ENAMETOOLONG',
[INFO] syscall: 'spawn'
[INFO] }
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] -----------------------------

Anyone have any ideas on this?

Gvozd commented

E:\ is phisical drive, or mounted to network share, or some sync tools, like google drive?

E:\ is a physical drive with file system nyfs.
I have already allowed my windows 10 pro to support long path

Gvozd commented

Please run your webpack with env variable DEBUG="notifier", and pipe stdout to file
I need the latest [notifier path], [notifier options] from the log
Also I need your plugin configuration