trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.31k forks source link

Ora spinners do not display within Truffle Console #3606

Open cds-amal opened 3 years ago

cds-amal commented 3 years ago

When debugging a transaction in truffle develop I do not see the status updates the debugger shows when invoked via truffle debug txn

The check marks below denote the spinner/status updates I expect to see. This is missing in the develop REPL console.

$ truffle debug 0x9e99a9c1adb7357fcbd46ca325b6253175ae3df030960a47730462d0e4bc0c36 --network xxx                                             
Starting Truffle Debugger...
✔ Compiling your contracts...
✔ Gathering information about your project and the transaction...
haltman-at commented 3 years ago

I think the first question here is, is this actually a debugger-specific issue? There are several Truffle commands that use spinners, although I don't know which of them can be run inside Truffle Console.

I believe the following is a complete list of commands that use spinners: . debug . migrate . obtain . unbox *. compile, but only if you're using Docker

On testing it out, it seems like the problem is generic to ora spinners, and not specific to the debugger.

gnidan commented 3 years ago

@haltman-at and I discussed this a bit just now and a hypothesis we surfaced is that maybe we can pass some currently-unpassed option to spawn to identify the child process as operating within a TTY. More investigation certainly required, though!