[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gb.highlight trouble
[Thread Prev] | [Thread Next]
- Subject: Re: gb.highlight trouble
- From: gbWilly <gbWilly@xxxxxxxxxxxxxx>
- Date: Wed, 15 Jul 2026 14:27:03 +0000
- Cc: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
OK,
It seems to lack the gambas3-dev-tools, as that is where gbc3 resides.
I can solve this by adding gambas3-dev-tools as a dependency in step 7 of the package wizard, but that would be a workaround.
The package wizard should add gambas3-dev-tools as a dependency without having to add it in step 7, as it does for all other that is required.
So, maybe gb.highlight should depend on the dev-tools in the gambas3 recipe, so gbc3 will be installed.
That means a slight adaption to the OSB recipe.
The changes needed for the debian/ubuntu control file are simple (in bold if not viewing in plain text):
Package: gambas3-gb-highlight
Architecture: all
Section: libdevel
Depends: ${misc:Depends},gambas3-runtime (>= ${binary:Version}),gambas3-gb-image (>= ${binary:Version}),gambas3-gb-pcre (>= ${binary:Version}), gambas3-dev-tools (>= ${binary:Version})
Description: Gambas syntax highlighting component
Gambas is a free development environment and a full powerful object-oriented language and development platform based on a fast Basic interpreter with optional just-in-time compilation, as easy as Visual Basic™ was.
. This component provides syntax highlighting routines. Highlighting is defined by description files using a rather simple specific syntax.
This should ensure that a project using gb.highlight, when packaged also has the dev-tools as a dependency, so all will work.
gbWilly
[GambOS](https://gambos.gambas.one/)
[Gambas3 for Debian/Ubuntu](https://gitlab.com/gbWilly/gambas3-debian-repository)
[GambOS](https://gambos.gambas.one/)
...there is always a Catch if things go wrong!
Sent with [Proton Mail](https://proton.me/mail/home) secure email.
On Wednesday, July 15th, 2026 at 14:16, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote:
> I have this application installed on my system and all works fine.
> I created a package installed on another system and I get trouble.
>
> Both systems run same distro/desktop (Debian 12 Mate) and same gambas from same source (3.19.6). Difference is that the 'another' system has no Gambas IDE installed.
>
> The error I get is:
> [gb.highlight].TextHighlighter.Load.111: Cannot load highlighter 'diff': [gb.highlight].TextHighlighter.CreateCustomHighlighter.508: /bin/sh: 1: gbc3: not found
> [gb.highlight].TextHighlighter.Load.111 [gb.highlight].TextHighlighter._get.121 [gb.form.editor].CDocument.Highlight_Write.850 [gb.form.editor].TextEditor.Highlight_Write.3303 FrmInstallDetails.SetTypeAndTheme.207 FrmInstallDetails.ReadData.193 FrmInstallDetails._new.30 FrmInstallView.gvwResult_RowClick.316 [gb.gui.base].GridView.ScrollArea_MouseDown.1317 ?
>
> The code loads data from a database and in a field the highlight to be used when loading data into the TextEditor is set.
> In this case the field holds "Diff" so TextEditor1.HighLight is set to "Diff". Then above error occurs.
> Trying "diff" instead of 'Diff" made no difference.
>
> Could this be caused because IDE is not installed on this system and all pre-defined Gambas highlights are simply unknown to the system, or what is going on here?
> The same application using same database table works perfect on my system where the IDE is installed (no matter if I use Diff or diff). There too the application is installed using the same .deb package as on 'another' system without IDE.
>
> gbWilly
>
> [GambOS](https://gambos.gambas.one/)
> [Gambas3 for Debian/Ubuntu](https://gitlab.com/gbWilly/gambas3-debian-repository)
> [GambOS](https://gambos.gambas.one/)
>
> ...there is always a Catch if things go wrong!
>
> Sent with [Proton Mail](https://proton.me/mail/home) secure email.
| Re: gb.highlight trouble | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| gb.highlight trouble | gbWilly <gbWilly@xxxxxxxxxxxxxx> |