Commit d4eaf17
committed
fix(polling): move spinner from stderr to stdout to prevent consola collision
Move the spinner animation in startSpinner/withProgress/poll from
process.stderr to process.stdout. Consola is configured to write
exclusively to stderr, so when log.info() fires inside a withProgress
callback (e.g. "Applied delta patch" during upgrade), it appends
directly after the spinner text on the same stderr line, producing
garbled output like:
⠹ Downloading 0.20.0-dev...ℹ Applied delta patch (74.9 KB downloaded)
With the spinner on stdout and consola on stderr, the two streams no
longer collide.
Also adds isPlainOutput() suppression so the spinner is hidden when
stdout is piped or in plain-output mode, preventing ANSI escape codes
from contaminating pipe consumers.1 parent 88b6f36 commit d4eaf17
2 files changed
+58
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
109 | | - | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | | - | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
133 | | - | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
161 | | - | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
165 | | - | |
| 171 | + | |
166 | 172 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
196 | | - | |
197 | | - | |
| 202 | + | |
| 203 | + | |
198 | 204 | | |
199 | | - | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
209 | | - | |
| 215 | + | |
210 | 216 | | |
211 | 217 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1058 | 1058 | | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | | - | |
1062 | | - | |
| 1061 | + | |
| 1062 | + | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1069 | 1073 | | |
1070 | | - | |
| 1074 | + | |
1071 | 1075 | | |
1072 | 1076 | | |
1073 | 1077 | | |
| |||
1127 | 1131 | | |
1128 | 1132 | | |
1129 | 1133 | | |
1130 | | - | |
| 1134 | + | |
1131 | 1135 | | |
1132 | | - | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
1133 | 1142 | | |
1134 | 1143 | | |
1135 | 1144 | | |
| |||
1505 | 1514 | | |
1506 | 1515 | | |
1507 | 1516 | | |
1508 | | - | |
1509 | | - | |
| 1517 | + | |
| 1518 | + | |
1510 | 1519 | | |
1511 | 1520 | | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
1516 | 1529 | | |
1517 | | - | |
| 1530 | + | |
1518 | 1531 | | |
1519 | 1532 | | |
1520 | 1533 | | |
| |||
1566 | 1579 | | |
1567 | 1580 | | |
1568 | 1581 | | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
| 1582 | + | |
| 1583 | + | |
1572 | 1584 | | |
1573 | | - | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
1574 | 1591 | | |
1575 | 1592 | | |
1576 | 1593 | | |
| |||
0 commit comments