bloq / cloud-cli

☁️💻
MIT License
0 stars 0 forks source link

bcl nodes chains "kchains" bug #140

Closed zhhuffman closed 2 years ago

zhhuffman commented 4 years ago

In the cli, when you run bcl nodes chains, there seems to be an erroneous "kchains." that is returned at the top of the table:

> bcl nodes chains

chain        network  software     kchains.                                                                                                                       
-----------  -------  -------------
bch          mainnet  abc-0.19
bch          testnet  abc-0.19
btc          mainnet  core-0.17
btc          testnet  core-0.17
etc          testnet  multigeth-1.9
etc          mainnet  multigeth-1.9
eth          mainnet  geth-1.8
eth          testnet  geth-1.9
ltc          testnet  litecoin-0.17
ltc          mainnet  litecoin-0.17
qtumindexed  testnet  0.18
jcvernaleo commented 4 years ago

I think that is an artifact of your terminal not supporting characters properly. This is what I get in a working terminal:

jcv@triforce clusters $ bcl nodes chains
09:37:33 ℹ Retrieving list of available blockchains.

chain        network  software     
-----------  -------  -------------
bch          mainnet  abc-0.19     
bch          testnet  abc-0.19     
btc          mainnet  core-0.17    
btc          testnet  core-0.17    
etc          testnet  multigeth-1.9
etc          mainnet  multigeth-1.9
eth          mainnet  geth-1.8     
eth          testnet  geth-1.9     
ltc          testnet  litecoin-0.17
ltc          mainnet  litecoin-0.17
qtumindexed  testnet  0.18         

@gabmontes thoughts? Generally I'm okay excluding the broken windows terminal emulator (they have had decades to fix it after all) but you might be a bit more generous than I am on this :)

gabmontes commented 4 years ago

@zhhuffman it works fine for me in macOS, Windows 10 and Ubuntu.

Can you help us reproduce the issue?

zhhuffman commented 4 years ago

I'm using the default windows Command Prompt. In reproducing this issue, I think it's more of a quirky user error than anything else:

When I'm in half window, and my command line isn't "lined up" at the top or the bottom of the screen, it seems to get "scrambled" and the inputs/outputs get mixed together or jumbled slightly. (for lack of better terms).

When I "fix it" by restarting the command prompt, relogging in bcl, or expanding the window/aligning my command line, the command returns no bug.

Here's a gif of it working properly after producing the "bug":

https://i.gyazo.com/900c104ad55fc741fd544bb4b11a4911.mp4

Here's it not working properly when I'm in half window and the command line is in the middle of the terminal:

https://i.gyazo.com/65eaf99227bc04901da8d461fb516b63.mp4

Which leads me to believe this is a "Windows terminal sucks" error moreso than a problem with how the CLI interacts with Windows OS. @gabmontes

gabmontes commented 4 years ago

@zhhuffman thanks. I will move this issue to the CLI repo for further research. Thanks!

gabmontes commented 2 years ago

Not able to reproduce. Closing.

raiseerco commented 2 years ago

Tested on MacOs, Windows 7, Debian and Ubuntu.