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
I'm getting this error when used progress inside a service called Shippable. (a CI server)
I'm using [email protected].
What should be the issue?
/usr/lib/node_modules/mup/node_modules/nodemiral/node_modules/progress/lib/node-progress.js:168
this.stream.clearLine();
^
TypeError: Object # has no method 'clearLine'
at ProgressBar.terminate (/usr/lib/node_modules/mup/node_modules/nodemiral/node_modules/progress/lib/node-progress.js:168:17)
at ProgressBar.tick (/usr/lib/node_modules/mup/node_modules/nodemiral/node_modules/progress/lib/node-progress.js:91:10)
at ProgressBar.update (/usr/lib/node_modules/mup/node_modules/nodemiral/node_modules/progress/lib/node-progress.js:157:8)
I don't see anything directly wrong with your usage. You're not setting a custom stream, so we default to process.stderr. Is your application doing anything funny to the default streams or perhaps running in an environment where they don't exists? Maybe you need to pass a custom stream with the stream option? See the Readme for more information.
from node:7
copy package.json /
run npm install
copy index.js /
cmd ["node", "index.js"]
Build image and run it command
docker build -t progress .
docker run progress
Error in the output
/node_modules/progress/lib/node-progress.js:177
this.stream.clearLine();
^
TypeError: this.stream.clearLine is not a function
at ProgressBar.terminate (/node_modules/progress/lib/node-progress.js:177:17)
at Timeout._onTimeout (/index.js:7:7)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
Activity
jdan commentedon May 1, 2015
Can you elaborate a little more on how you're using the progress module? Can you paste the code that uses it?
arunoda commentedon May 1, 2015
Sure.
See: https://github.com/arunoda/nodemiral/blob/46371b38db0ff6be87747c0c492df793d5c87724/lib/session.js#L110
jonrouleau commentedon May 1, 2015
I don't see anything directly wrong with your usage. You're not setting a custom stream, so we default to
process.stderr. Is your application doing anything funny to the default streams or perhaps running in an environment where they don't exists? Maybe you need to pass a custom stream with thestreamoption? See the Readme for more information.I have run mocha on both arunoda/nodemiral@3f90a0a (master) and arunoda/nodemiral@46371b3 and am not receiving any failures.
arunoda commentedon May 1, 2015
I don't get this normally as well. May be something with the shippable
infrastructure. I'll keep digging.
On Fri, May 1, 2015 at 11:36 AM Jonathan Rouleau [email protected]
wrote:
bahmutov commentedon Mar 31, 2017
I have the same error trying to use inside the Docker container
bahmutov commentedon Mar 31, 2017
Example code causing a problem
Dockerfile for this
Build image and run it command
Error in the output
bahmutov commentedon Mar 31, 2017
A simple guard prevents the crash
fix(clear): check before using stream.clearLine to prevent crash in D…
Merge pull request #144 from bahmutov/master
sabberworm commentedon Jul 1, 2019
There are still two usages of
stream.clearLineleft that would also need a guard.node-progress/lib/node-progress.js
Line 176 in 0790207
node-progress/lib/node-progress.js
Line 210 in 0790207