Handle initialization errors #17

Manually merged
hebasto merged 3 commits from 210807-init into main 2021-08-22 06:27:31 +00:00 AGit
hebasto commented 2021-08-07 19:24:17 +00:00 (Migrated from github.com)

This PR add functionality to handle initialization errors, and show error messages to users, e.g.:

Screenshot from 2021-08-09 22-31-21


Note for designers. The easiest way to trigger an error is to provide an invalid command line option:

$ ./src/qt/bitcoin-qt -qq
This PR add functionality to handle initialization errors, and show error messages to users, e.g.: ![Screenshot from 2021-08-09 22-31-21](https://user-images.githubusercontent.com/32963518/128763388-dafd25a6-b7ef-41e1-8d2f-8bf8648a3878.png) --- Note for designers. The easiest way to trigger an error is to provide an invalid command line option: ``` $ ./src/qt/bitcoin-qt -qq ```
hebasto commented 2021-08-09 19:24:27 +00:00 (Migrated from github.com)

Rebased on top of #18.

Rebased on top of #18.
jarolrod (Migrated from github.com) reviewed 2021-08-22 04:22:10 +00:00
jarolrod (Migrated from github.com) left a comment

Concept ACK

PR Works as intended. We just need to update the dependencies required for building on Ubuntu.

Here are the errors you get if you follow our current doc:

QQmlApplicationEngine failed to load component
qrc:/qml/pages/initerrormessage.qml:1 module "QtQuick" is not installed
qrc:/qml/pages/initerrormessage.qml:2 module "QtQuick.Dialogs" is not installed
qrc:/qml/pages/initerrormessage.qml:1 module "QtQuick" is not installed
qrc:/qml/pages/initerrormessage.qml:2 module "QtQuick.Dialogs" is not installed 

The missing QtQuick.Dialogs module can be fixed by installing 'qml-module-qtquick-dialogs`.
Sorry, but I have yet to find the correct module to fix missing QtQuick.

Concept ACK PR Works as intended. We just need to update the dependencies required for building on Ubuntu. Here are the errors you get if you follow our current doc: ``` QQmlApplicationEngine failed to load component qrc:/qml/pages/initerrormessage.qml:1 module "QtQuick" is not installed qrc:/qml/pages/initerrormessage.qml:2 module "QtQuick.Dialogs" is not installed qrc:/qml/pages/initerrormessage.qml:1 module "QtQuick" is not installed qrc:/qml/pages/initerrormessage.qml:2 module "QtQuick.Dialogs" is not installed ``` The missing QtQuick.Dialogs module can be fixed by installing 'qml-module-qtquick-dialogs`. Sorry, but I have yet to find the correct module to fix missing QtQuick.
jarolrod commented 2021-08-22 05:23:36 +00:00 (Migrated from github.com)

ACK a3b9d538cd

but I have yet to find the correct module to fix missing QtQuick.

The other dependency is: qml-module-qtquick-controls

A quick clarification, the two mentioned dependencies are actually run-time dependencies. As such, this PR can be merged as is. I will create a follow-up PR that documents these new run-time dependencies.

ACK a3b9d538cd1759f5a639fd4e3a0a1c620e33d04d > but I have yet to find the correct module to fix missing QtQuick. The other dependency is: `qml-module-qtquick-controls` A quick clarification, the two mentioned dependencies are actually run-time dependencies. As such, this PR can be merged as is. I will create a follow-up PR that documents these new run-time dependencies.
Sign in to join this conversation.
No description provided.