[Gambas-user] how long till gb.highlight hits stable?

Bruce Steers bsteers4 at gmail.com
Sun Nov 12 14:03:55 CET 2023


On Sun, 12 Nov 2023 at 08:31, BB <adamnt42 at gmail.com> wrote:

>
> On 12/11/23 2:58 pm, Bruce Steers wrote:
>
> I've had to change some things in some of my programs to adapt to
> gb.highlight from gb.eval.highlight and now they are only compatible with
> dev branch.
>
> Loving the new component but any idea how long till it will be stable
> enough to hit the mainframe?
>
> Respects
> BruceS
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> Why do you ask? 😁 <https://youtu.be/BbybZyj_5PM?t=48>
>

Haha, Yes minister, so accurate about so many political happening :)

To explain..

Mostly because my programs have updates but i don't want to upload
something that will ONLY work with gambas development branch.

I tried to import gb.highlight into my program but that wasn't easy with
conflicting filenames and folders not being found
My best option at present is to remove dev and install stable, then revert
the programs code back to gb.eval.highlight.

Unfortunately the gb.eval.highlight and gb.highlight components have not
been made to be compatible with each other
like i cannot do the following to ensure it works for all....
If Not Component.IsLoaded("gb.highlight") Then
Component.Load("gb.eval.highlight")
(I don't think)
well maybe there is a way to write dual functioning code that will detect
if using gb.highlight or gb.eval.highlight and run accordingly.

But..  if gb.highlight is going to make stable sometime soon then i can
simply not bother and wait.

Basically all programs I have that use gb.form.editor have all had to be
adjusted and now will only work with dev branch as gb.form.editor now
requires gb.highlight as a dependency (the projects auto-add gb.highlight
to their dependencies but to not remove gb.eval.highlight)

So all my projects that use TextEditor have suffered the following...
gb.eval.highlight has to be manually removed from the projects components
list to avoid conflicts.
TextEditor.Styles now do not work as before and have to be changed to
TextEditor.Theme method.

I might just try again to add the gb.highlight folder to the project .src
folder so it's there for any gambas version user.
but there was various issues I had last attempt.
CCDocument.class conflicts with also imported gb.form.editor CCDocument
(gotta rename it and all references to it in the source)
gambas def file is a link.
gb.higlight highlight/custom folders are referenced by relative paths that
need to be accounted for.

Hmm, actually It might be easier to revert the imported gb.form.editor
source back to the old version.

Unless of course gb.highlight is likely to be added to stable branch any
time soon :)

Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231112/22d5ad0b/attachment.htm>


More information about the User mailing list