[Gambas-user] Fw: Package creation failed to include gambas dependencies.

Benoît Minisini gambas at ...1...
Sun Jun 24 16:35:33 CEST 2012


Le 23/06/2012 01:01, RICHARD WALKER a écrit :
> Quick comments (before I re-build and test)
>
> 2) IDE depends on gb.form.stock. Seems logical but will have no
> impact on distributed app which uses only the runtime + components. I
> presume this measure is to make the IDE requirement explicit and stop
> us relying on the stealthy dynamic load-on-demand.

IDE depends on gb.form.stock because by default it uses the "Gambas"
icon theme, which is stored in gb.form.stock.

>
> 1) check it if you know that you need it. Ah, that sounds perfect.
> Presumably the packager wizard will detect the selection and include
> the "requires" line in the package spec - problem solved.
>
> Should the error be ignored? (a) NO - Running an application on a
> system with only the runtime and a subset of components, where
> gb.form.stock is missing, only the error message is guaranteed to
> give an indication of what is wrong. - It is an error, albeit
> probably non-fatal, and gb.form.stock will be flagged as a
> requirement IF we have checked its box in the project. It might be a
> good idea to have the IDE check the box for us if it detects that
> some stock icons are in use in the project. - Do we ignore any other
> dependency errors?
>
> (b)YES - The missing images will not prevent an application from
> running.
>
>
> Looks like I have more reasons to keep the error than to ignore it!
>
> On the subject of auto-checking the "stock" checkbox, perhaps the
> logic is that a practised user may just type in the appropriate path
> to a stock image in the properties sheet, or apply it in the program
> and would be more likely to know that the gb.form.stock component
> must be explicitly included in the project. A less experienced user
> may click on the browse button and get to the image through the
> wizard and discover later that the wizard had also checked the
> gb.form.stock component option on his/her behalf. That would be ...
> intelligent. ...and cool!
>
> Richard
>

Now when gb.form.stock is not found, a warning message is printed on the
standard error output, and a dummy icon is used instead.

As for checking gb.form.stock automatically as soon as a stock icon is
used: this is not right. A stock icon is not located in gb.form.stock
necessarily. It depends on the value of Application.Theme. Only the
"Gambas" theme is stored in gb.form.stock.

Regards,

-- 
Benoît Minisini






More information about the User mailing list