Closed atyndall closed 4 years ago
This is because of the U2F support in the Wallet App interacting with macOS's USB support and the OCaml version of the HIDAPI. We can give you a special build without U2F support as a stopgap. We are working on a better solution.
To make detection consistent on MacOSX one needs to get the unreleased fixes from the Hidapi library.
If you got Hidapi from Homebrew, you are in luck:
brew install hidapi --HEAD
pulls the master
branch.
The full "rebuild" of tezos-client
with Hidapi's master
branch looks like:
brew unlink hidapi # remove the current one
brew install autoconf autmake libtool # Just keep installing stuff until the following command succeeds:
brew install hidapi --HEAD
Then just need to rebuild ocaml-hidapi + Tezos, so in the ./tezos
repository:
opam reinstall hidapi
make all build-test
./tezos-client list connected ledgers # should work consistently
There seems to be some sort of bug with tezos-client (commit d06e9b1b) and the Ledger app, whereby I am getting inconsistent detection on macOS 10.14. What will usually occur is I load the Tezos app (latest, 1.4.0, downloaded from Ledger Live) on the Ledger, and the first command (listing/signing transaction/etc) will fail, a few seconds later the same command will work, and then after that the command will fail consistently for a while, until I close and reopen the Ledger app on my Ledger Nano S, or wait a while.
Let me know what additional debugging info you require. I can post the logs with
export TEZOS_LOG="client.signer.ledger -> debug"
, but I'd like to know if that contains any confidential info I should redact first.