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

Does not work in Windows terminal #9

Open
SimonArdrey opened this issue Mar 9, 2015 · 25 comments
Open

Does not work in Windows terminal #9

SimonArdrey opened this issue Mar 9, 2015 · 25 comments

Comments

@SimonArdrey
Copy link

It only renders after the task is complete. I ran your example and it does not render the increments.
It's a great looking UI tool, I'd love to be able to use it in a Windows environment if possible.

Thanks :)

@derrickpelletier
Copy link
Owner

Hmmmm, possibly. But I don't have access to a windows machine, myself.
Gonna rename this issue, and maybe someone else will tackle it. Thanks for bringing it up

@derrickpelletier derrickpelletier changed the title Any chance this can be made to work in the Windows terminal? Does not work in Windows terminal Mar 9, 2015
@pilsy
Copy link

pilsy commented Mar 13, 2015

hey @SimonArdrey are you by any chance running NPM > 2.x ? because on my mac i get the same issue when using NPM 2 @derrickpelletier

@derrickpelletier
Copy link
Owner

Which node version @pilsy?

@pilsy
Copy link

pilsy commented Mar 13, 2015

$ node -v
v0.12.0
$ npm -v
2.5.1

@SimonArdrey
Copy link
Author

I am running 1.4.28

@derrickpelletier
Copy link
Owner

Yeah looks like an issue with node v0.12

@pilsy
Copy link

pilsy commented Mar 16, 2015

Hey @derrickpelletier, Oddly this started to work for me after clearing my npm cache and doing a fresh npm i for my project https://github.com/CleverStack/cleverstack-cli/

@derrickpelletier
Copy link
Owner

Yeah i only go to take a real quick look on the weekend, but it's sporadic. At times it works, and sometimes it stalls. Trying to get a reproducible case to state from anyway.

@derrickpelletier
Copy link
Owner

I've tracked this down to an issue in the charm dependency. I think that the charm.position(callback) function seems to hang or not report data for some reason.

Unfortunately charm seems more or less inactive, so it might need to look into custom solution for getting cursor position.

@pilsy
Copy link

pilsy commented Jul 21, 2015

@derrickpelletier is there a github issue for this in https://github.com/substack/node-charm/issues ?

@derrickpelletier
Copy link
Owner

@pilsy thanks for the nudge.

I just tested this on v0.12.7 and I'm seeing it function perfectly fine. (running the example.js in the repo, anyway)

Rolling back to v0.12.0 i can see that it is still functioning incorrectly on that node version.

I haven't looked into it but i'm assuming there was probably some tty-related issue that got resolved somewhere in between. Can you try a more recent version?

@pilsy
Copy link

pilsy commented Jul 24, 2015

The issue also exists when using io.js (any version) but specifically i am using

node -v
v2.2.1
npm -v
2.11.0

@derrickpelletier
Copy link
Owner

I can confirm that the issue exists in iojs v2.2.0
But, it is functioning fine for me in iojs v2.4.0

Can you upgrade and try that out?

@pilsy
Copy link

pilsy commented Jul 25, 2015

Yep that works - ok so what did you want to do with this ticket?

@derrickpelletier
Copy link
Owner

Just going to figure out the exact version breakpoints and put a note in the readme, not going to attempt to workaround the problem

@cliffordduke
Copy link

This seems to still be an issue, I tried to get it working on my Windows 7 Machine and it's also only rendering after the task is complete.

node -v
v4.4.7

npm -v
3.10.5

@derrickpelletier
Copy link
Owner

Interesting...

Which version of the module?
And are you running the provided examples or your own code?

@cliffordduke
Copy link

I'm using the latest version on npm 1.0.0

I initially tried it with my own code, thinking it was something I was doing wrong I then tried running the examples/pattern.js example. Both had the same issue.

@derrickpelletier
Copy link
Owner

Alright, thanks

Unsure if/when I'll have a windows machine to debug this problem on though. I'll check and see if there are any related known-issues regarding the console on windows though.

@zchristopoulos
Copy link

Running into the same issue on Windows 10. node v4.5.0, npm v2.15.9

@twillard
Copy link

Same issue. Windows 7, running in git-bash mintty

$ node --version
v6.9.1
$ npm --version
4.0.3
$ git --version
git version 2.10.1.windows.1
$ mintty --version
mintty 2.5.0 (x86_64-pc-msys)
(C) 2013/2016 Andy Koppe / Thomas Wolff
License GPLv3+: GNU GPL version 3 or later
There is no warranty, to the extent permitted by law.

@beth-panx
Copy link

Experiencing the same issue on Windows 10. node v7.7.2, npm v4.1.2

@derrickpelletier
Copy link
Owner

Just a reminder that I do not have a windows machine, nor access to one, and anyone is free to contribute :)

@azarus
Copy link

azarus commented Aug 17, 2017

There are many problems with this on windows terminals. Probably because you're rerouting the stdout & stdin pipes, and even keyboard doesn't work.

@frankred
Copy link

On windows machines

var status = require('node-status');
....
status.stop()

Does never stops sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants