You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading from v1.0.5 to v1.0.6 I have seen a regression in support of the default indicatif::ProgressBar when setting stdio:stderr = "pipe".
We use the stderr to log error console output to centralized telemetry datastore In version v1.0.5 there was no issue. After upgrading to v1.0.6+ we are no longer seeing the progress bar.
constspawn=require("cross-spawn");constspawnOptions={cwd: process.cwd(),stdio: mode==="development" ? ["inherit","inherit","pipe"] : "inherit",
env,};constproc=spawn("rspack",args,spawnOptions);proc.on("close",()=>process.exit(0));if(mode==="development"){conststderrBuffer=[];// ensure errors are displayed in consoleproc.stderr.setEncoding("utf-8");proc.stderr.pipe(process.stderr);// success logs for yarnStart will never reach to here, only failures.proc.on("exit",code=>{if(code!==0){// log error and exit.// limit buffer sizeconsteventMessage=stderrBuffer.reverse().join("").slice(0,5000);// send eventMessage and other data to telemetry datastore here.}});}
again the above works w/ the progress bar visible up to v1.0.5
BrunoRDS
changed the title
[Bug]: Using stderr pipe w/ cross-spawn swawn of rspack process break indicatif::ProgressBar (v1.0.5 --> v1.0.6)
[Bug]: Using stderr pipe w/ cross-spawn of rspack process break indicatif::ProgressBar (v1.0.5 --> v1.0.6)
Dec 12, 2024
BrunoRDS
changed the title
[Bug]: Using stderr pipe w/ cross-spawn of rspack process break indicatif::ProgressBar (v1.0.5 --> v1.0.6)
[Bug]: Using stderr pipe w/ cross-spawn of rspack process breaks indicatif::ProgressBar (v1.0.5 --> v1.0.6)
Dec 12, 2024
Hello @BrunoRDS, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by need reproduction will be closed if no activities in 14 days.
Try sudo yarn start with these two versions for @rspack/core and @rspack/cli and observe the absence of the progress bar on v1.1.0+ (git clean -fdx & sudo yarn install after each version change in the package.json)
I see the issue arise in this repro in a different version than I do in my project but it might just be due to a mix of rspack versions in my project due to nested projects in my repo requiring different version of @rspack/core & @rspack/cli ... the repro is the same behavior I see locally in my project.
System Info
System:
OS: Linux 6.5 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (32) x64 AMD EPYC 7763 64-Core Processor
Memory: 116.94 GB / 125.78 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 20.11.0 - /usr/local/share/nvm/versions/node/v20.11.0/bin/node
Yarn: 1.23.19 - /usr/bin/yarn
npm: 10.2.4 - /usr/local/share/nvm/versions/node/v20.11.0/bin/npm
Watchman: 20240317.093234.0 - /usr/local/bin/watchman
Browsers:
Chrome: 131.0.6778.108
Details
Upgrading from v1.0.5 to v1.0.6 I have seen a regression in support of the default indicatif::ProgressBar when setting stdio:stderr = "pipe".
We use the stderr to log error console output to centralized telemetry datastore In version v1.0.5 there was no issue. After upgrading to v1.0.6+ we are no longer seeing the progress bar.
It would seem connected to this commit: fc3b9fa#diff-072b4d3aedf8b9301d9451a9691bb6315a54c6b5d9ebe1a3d1c1e8792f6a4f94R41
@LingyuCoder
We have the following setup:
again the above works w/ the progress bar visible up to v1.0.5
Reproduce link
Repro Fork of rspack-repro: https://github.com/BrunoRDS/rspack-repro-no-progress
Reproduce Steps
... see below
The text was updated successfully, but these errors were encountered: