[Gambas-user] gambas3 --version
Tobias Boege
taboege at gmail.com
Mon May 11 15:06:36 CEST 2020
On Mon, 11 May 2020, Ian Roper wrote:
> When I run the version parameter on a command line I get:
>
> gambas3 --version
> gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead
> 3.14.3
>
> I was expecting just the version number - is this output correct ?
>
The warning comes from the gb.gui.qt component during its initialization.
If you want to have as few warnings as possible, load as few components
as possible that could warn. Don't ask the Gambas IDE for its version,
but Gambas interpreter (gbx3) or the compiler (gbc3):
$ gbx3 --version
3.14.90 4c2a4f47f (testing-system)
In case you want to process version output automatically, there is some-
thing you have to take into account: on stable versions like yours above
you just get "3.14.3" but on development versions you get the version
followed by the git commit and the branch name it was compiled from.
Regards,
Tobias
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list