From g4mba5 at gmail.com Fri Oct 1 02:03:28 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 1 Oct 2021 02:03:28 +0200 Subject: [Gambas-user] Fwd: Strean closed at program wns In-Reply-To: References: <9f50bec6-a37b-dfd0-f1f1-b75d38b3daf4@cd-bahia.com> <7bc664c5-f0a3-81b6-ecc7-bd61581fd6b3@cd-bahia.com> <0b1b118d-0746-7540-7482-2afe43d108dc@cd-bahia.com> <7c5390ad-526d-7fc6-7f9f-d45d95893917@gmail.com> Message-ID: Le 30/09/2021 ? 23:55, Jussi Lahtinen a ?crit?: > > Other objects are silently ignored. > > > What is the thinking behind that? I think error should be raised instead. > > > Jussi Maybe. But what do you expect with putting arbitrary objects in a settings file? -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Oct 1 04:24:23 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 1 Oct 2021 05:24:23 +0300 Subject: [Gambas-user] Fwd: Strean closed at program wns In-Reply-To: References: <9f50bec6-a37b-dfd0-f1f1-b75d38b3daf4@cd-bahia.com> <7bc664c5-f0a3-81b6-ecc7-bd61581fd6b3@cd-bahia.com> <0b1b118d-0746-7540-7482-2afe43d108dc@cd-bahia.com> <7c5390ad-526d-7fc6-7f9f-d45d95893917@gmail.com> Message-ID: > Maybe. But what do you expect with putting arbitrary objects in a > settings file? > A mess, at best an error message. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Oct 1 04:25:37 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 1 Oct 2021 05:25:37 +0300 Subject: [Gambas-user] Fwd: Strean closed at program wns In-Reply-To: References: <9f50bec6-a37b-dfd0-f1f1-b75d38b3daf4@cd-bahia.com> <7bc664c5-f0a3-81b6-ecc7-bd61581fd6b3@cd-bahia.com> <0b1b118d-0746-7540-7482-2afe43d108dc@cd-bahia.com> <7c5390ad-526d-7fc6-7f9f-d45d95893917@gmail.com> Message-ID: > Maybe. But what do you expect with putting arbitrary objects in a >> settings file? >> > > A mess, at best an error message. > Or with very luxurious service I would expect the object to be serialized to the file. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri Oct 1 20:45:03 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Fri, 01 Oct 2021 21:45:03 +0300 Subject: [Gambas-user] =?utf-8?q?Fwd=3A_Strean_closed_at_program_wns?= In-Reply-To: References: Message-ID: <1633113903.21292358@f19.my.com> Will objects with special methods _write/_read defined be supported? -- Thanks Brian G Thursday, 30 September 2021, 07:26PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com : >? >>>Maybe. But what do you expect with putting arbitrary objects in a >>>settings file? >> >>A mess, at best an error message. > >Or with very luxurious service I would expect the object to be serialized to the file. > >Jussi > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sat Oct 2 18:45:59 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 2 Oct 2021 18:45:59 +0200 Subject: [Gambas-user] IDE-Bug with Layers/Order inside a Form? In-Reply-To: <7abd869e-7b09-1e2b-64a4-0d44d50988de@t-online.de> References: <7abd869e-7b09-1e2b-64a4-0d44d50988de@t-online.de> Message-ID: In one of my apps an ImageView used to work fine over years. When I start it in the IDE nowadays under 3.16.3 it also works, but once I opened the form containing the ImageView with the editor, the ImageView cannot be seen any longer when running the app in the IDE. As I found in such a case, the ImageView slipped below the background picture and hence is hidden. Attempts to repositioning it to the foreground with the context menu of the IDE failed. Also reloading of the app or restarting the PC didn't help. In such a case it has disappeared forever and cannot be moved to the foreground any longer. The only workaround to this problem is a ImageView1.Raise command to force it to the foreground.? In the attached file you can see, how the position of the ImageView has been changed in the form-code immediately after having opened the form with the IDE editor. I am assuming that its position also determines its layer. To me it looks like an IDE bug. If you agree, how to proceed? Good weekend to all Claus -------------- next part -------------- A non-text attachment was scrubbed... Name: Change_of_Form_when_opening_it_with_the_IDE_Editor.pdf Type: application/pdf Size: 60327 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Oct 2 20:57:02 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Oct 2021 20:57:02 +0200 Subject: [Gambas-user] IDE-Bug with Layers/Order inside a Form? In-Reply-To: References: <7abd869e-7b09-1e2b-64a4-0d44d50988de@t-online.de> Message-ID: <9cfe1d18-c0f1-467c-e981-2f7f488770e2@gmail.com> Le 02/10/2021 ? 18:45, Claus Dietrich a ?crit?: > In one of my apps an ImageView used to work fine over years. When I > start it in the IDE nowadays under 3.16.3 it also works, but once I > opened the form containing the ImageView with the editor, the ImageView > cannot be seen any longer when running the app in the IDE. As I found in > such a case, the ImageView slipped below the background picture and > hence is hidden. Attempts to repositioning it to the foreground with the > context menu of the IDE failed. Also reloading of the app or restarting > the PC didn't help. In such a case it has disappeared forever and cannot > be moved to the foreground any longer. The only workaround to this > problem is a ImageView1.Raise command to force it to the foreground. > > In the attached file you can see, how the position of the ImageView has > been changed in the form-code immediately after having opened the form > with the IDE editor. I am assuming that its position also determines its > layer. > > To me it looks like an IDE bug. If you agree, how to proceed? > > Good weekend to all > > Claus > I need your project, or a project that reproduces the same problem Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sun Oct 3 12:59:31 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 3 Oct 2021 11:59:31 +0100 Subject: [Gambas-user] Saving settings on system shutdown Message-ID: I have a program that starts with my system and runs in the background. It has icons i can move and on exit it saves the positions. I have noticed if i do not exit the program but shutdown the computer the settings do not save. Of course i could just save the settings on moving icons but i wondered if there is a recommended method to catch an application exit due to a shutdown? Does the system just kill the program? I guessed DBus would probably be the best alternative way but wouldn't hurt to ask the experts if there is already an easier way. Thanks for any advice :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sun Oct 3 16:26:05 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sun, 3 Oct 2021 16:26:05 +0200 Subject: [Gambas-user] IDE-Bug with Layers/Order inside a Form? Message-ID: <3eba5853-dfa3-a19e-d8d8-ada61bf1bd29@freenet.de> > I need your project, or a project that reproduces the same problem I worked on the demo for several hours and was about to send it, when I suddenly got the idea to test it with the IDE development version where you fixed the issue with "opened image tabs". Here to my surprise the upper Image didn't slip below the background picture, after I opened the form (not the class) with the IDE. The form, which caused the trouble contains a PictureBox with a bitmap. Can you imagine any connection with the "opened image tab - issue" ? If not, I suggest to take a look into the demo app, because I regard this bug as pretty severe. So please let me know if I shall drop my demo in the bug-tracker. Have a good Sunday Claus From adamnt42 at gmail.com Sun Oct 3 16:45:23 2021 From: adamnt42 at gmail.com (bb) Date: Mon, 04 Oct 2021 01:15:23 +1030 Subject: [Gambas-user] Saving settings on system shutdown In-Reply-To: References: Message-ID: On Sun, 2021-10-03 at 11:59 +0100, Bruce Steers wrote: > I have a program that starts with my system and runs in the > background. > > It has icons i can move and on exit it saves the positions. > > I have noticed if i do not exit the program but shutdown the computer > the > settings do not save. > > Of course i could just save the settings on moving icons but i > wondered if > there is a recommended method to catch an application exit due to a > shutdown? > Does the system just kill the program? > > I guessed DBus would probably be the best alternative way but > wouldn't hurt > to ask the experts if there is already an easier way. > > Thanks for any advice :) > > BruceS > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- This is an "I think" answer. IT it depends on the distro. IT most shutdowns for sysvinit systems use /etc/rc0.d/ scripts one of which (say "K02sendsigs") controls the ending of "all" processes in some manner, e.g. by sending them a SIGxxx (usually? a SIGHUP) signal and then possibly waiting until "them" exits (or if they dont, then killing them). IT I dont know how systemd does it but hopefully it involves a signals based method as well. So, IT you should implement signal handling for your program via gb.signal, find out whether you can trap the shutdown SIG used and then do whatever you need. Interested in the answer btw. cheers bruce From brian at westwoodsvcs.com Sun Oct 3 20:48:58 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Sun, 03 Oct 2021 21:48:58 +0300 Subject: [Gambas-user] =?utf-8?q?Saving_settings_on_system_shutdown?= In-Reply-To: References: Message-ID: <1633286938.423975572@f1.my.com> Would you not get a kill signal or hup signal? -- Thanks Brian G Sunday, 03 October 2021, 04:00AM -07:00 from Bruce Steers bsteers4 at gmail.com : > >I have a program that starts with my system and runs in the background. > >It has icons i can move and on exit it saves the positions. > >I have noticed if i do not exit the program but shutdown the computer the settings do not save. > >Of course i could just save the settings on moving icons but i wondered if there is a recommended method to catch an application exit due to a shutdown? >Does the system just kill the program? > >I guessed DBus would probably be the best alternative way but wouldn't hurt to ask the experts if there is already an easier way. > >Thanks for any advice :) > >BruceS > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Mon Oct 4 00:26:08 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Sun, 03 Oct 2021 22:26:08 +0000 Subject: [Gambas-user] Saving settings on system shutdown In-Reply-To: References: Message-ID: October 3, 2021 6:59 AM, "Bruce Steers" wrote: > I have a program that starts with my system and runs in the background. > > It has icons i can move and on exit it saves the positions. > > I have noticed if i do not exit the program but shutdown the computer the settings do not save. > > Of course i could just save the settings on moving icons but i wondered if there is a recommended > method to catch an application exit due to a shutdown? > Does the system just kill the program? > > I guessed DBus would probably be the best alternative way but wouldn't hurt to ask the experts if > there is already an easier way. > > Thanks for any advice :) > > BruceS Can't find much info on the gb.signal component and I don't have the time to test it right now, but maybe this is what you need?: http://gambaswiki.org/wiki/comp/gb.signal Regards, Joe1962 From claus.dietrich at freenet.de Mon Oct 4 11:01:14 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Mon, 4 Oct 2021 11:01:14 +0200 Subject: [Gambas-user] Fwd: IDE-Bug with Layers/Order inside a Form? In-Reply-To: <8962505d-d642-e782-64bd-c2085c8528b4@t-online.de> References: <8962505d-d642-e782-64bd-c2085c8528b4@t-online.de> Message-ID: <6c2e0054-7aa0-821e-10c9-72a2ba555c6f@freenet.de> As I found, the app is also causing the IDE to crash, when the IDE is started with QT5. So I stripped it down to a bug demo app and dropped it in the bugtracker (no. 2372). Rgds Claus From bsteers4 at gmail.com Mon Oct 4 12:04:56 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Oct 2021 11:04:56 +0100 Subject: [Gambas-user] Saving settings on system shutdown In-Reply-To: References: Message-ID: On Sun, 3 Oct 2021 at 15:46, bb wrote: > On Sun, 2021-10-03 at 11:59 +0100, Bruce Steers wrote: > > I have a program that starts with my system and runs in the > > background. > > > > It has icons i can move and on exit it saves the positions. > > > > I have noticed if i do not exit the program but shutdown the computer > > the > > settings do not save. > > > > Of course i could just save the settings on moving icons but i > > wondered if > > there is a recommended method to catch an application exit due to a > > shutdown? > > Does the system just kill the program? > > > > I guessed DBus would probably be the best alternative way but > > wouldn't hurt > > to ask the experts if there is already an easier way. > > > > Thanks for any advice :) > > > > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > This is an "I think" answer. > IT it depends on the distro. > IT most shutdowns for sysvinit systems use /etc/rc0.d/ scripts one of > which (say "K02sendsigs") controls the ending of "all" processes in > some manner, e.g. by sending them a SIGxxx (usually? a SIGHUP) signal > and then possibly waiting until "them" exits (or if they dont, then > killing them). > IT I dont know how systemd does it but hopefully it involves a signals > based method as well. > > So, IT you should implement signal handling for your program via > gb.signal, find out whether you can trap the shutdown SIG used and then > do whatever you need. > > Interested in the answer btw. > > cheers > bruce > Cheers folks Got no results yet. have tried catching various signals SIGQUIT SIGPWR SIGHUP Computer just shuts down, no activity from application. Benoit. what does the gambas runtime do with my app on a shutdown call? is it a non intercept-able method that just kills the app so any attempt at catching would be a waste of time? Or is it completely unhandled? Thanks (to all who advise) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From colifata at freenet.de Mon Oct 4 15:42:39 2021 From: colifata at freenet.de (loco pobre) Date: Mon, 4 Oct 2021 15:42:39 +0200 Subject: [Gambas-user] Youtube in WebView Message-ID: Hi, when I load Youtube in the WebView-control, I get only a "skeleton" of the site, thumbnails appearing as gray shadows ... It seems like a kind of rendering-script of the site isn't executed, reload- and refresh-methods doesn't help, is there a switch or setting or any workaround? Thanks! From charlie at cogier.com Mon Oct 4 15:50:59 2021 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 4 Oct 2021 14:50:59 +0100 Subject: [Gambas-user] Saving settings on system shutdown In-Reply-To: References: Message-ID: On 04/10/2021 11:04, Bruce Steers wrote: > > > On Sun, 3 Oct 2021 at 15:46, bb > wrote: > > On Sun, 2021-10-03 at 11:59 +0100, Bruce Steers wrote: > > I have a program that starts with my system and runs in the > > background. > > > > It has icons i can move and on exit it saves the positions. > > > > I have noticed if i do not exit the program but shutdown the > computer > > the > > settings do not save. > > > > Of course i could just save the settings on moving icons but i > > wondered if > > there is a recommended method to catch an application exit due to a > > shutdown? > > Does the system just kill the program? > > > > I guessed DBus would probably be the best alternative way but > > wouldn't hurt > > to ask the experts if there is already an easier way. > > > > Thanks for any advice :) > > > > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > This is an "I think" answer. > IT it depends on the distro. > IT most shutdowns for sysvinit systems use /etc/rc0.d/ scripts one of > which (say "K02sendsigs") controls the ending of "all" processes in > some manner, e.g. by sending them a SIGxxx (usually? a SIGHUP) signal > and then possibly waiting until "them" exits (or if they dont, then > killing them). > IT I dont know how systemd does it but hopefully it involves a signals > based method as well. > > So, IT you should implement signal handling for your program via > gb.signal, find out whether you can trap the shutdown SIG used and > then > do whatever you need. > > Interested in the answer btw. > > cheers > bruce > > > Cheers folks > > Got no results yet. > have tried catching various signals SIGQUIT SIGPWR SIGHUP > Computer just shuts down, no activity from application. > > Benoit. what does the gambas runtime do with my app on a shutdown call? > is it a non intercept-able method that just kills the app so any > attempt at catching would be a waste of time? > Or is it completely unhandled? > > Thanks (to all who advise) > > BruceS Hi Bruce, Why not save any Settings changes as they occur, then it wont matter if the program is force closed on shutdown. Charlie > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Oct 4 17:18:23 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 4 Oct 2021 11:18:23 -0400 Subject: [Gambas-user] Youtube in WebView In-Reply-To: References: Message-ID: <94011268-9dd1-9837-65e7-bfae54567b77@gmail.com> On 10/4/21 9:42 AM, loco pobre wrote: > Hi, when I load Youtube in the WebView-control, I get only a "skeleton" of the site, thumbnails appearing as gray shadows ... It > seems like a kind of rendering-script of the site isn't executed, reload- and refresh-methods doesn't help, is there a switch or > setting or any workaround? Thanks! It works fine here with gb.qt5.webview. Perhaps check the WebSettings if you have changed them from default (http://gambaswiki.org/wiki/comp/gb.qt5.webview/websettings). -- Lee [System] Gambas=3.16.3 OperatingSystem=Linux Kernel=5.3.18-lp152.92-default Architecture=x86_64 Distribution=openSUSE Leap 15.2 Desktop=KDE5 Font=Noto Sans,10 Scale=7 Theme=breeze Language=en_US.UTF-8 Memory=16000M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.6.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.32 GDK3=/usr/lib64/libgdk-3.so.0.2404.16 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1603.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2404.16 OpenGL=/usr/lib64/libGL.so.1.7.0 Poppler=/usr/lib64/libpoppler.so.89.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.12.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 From rwe-sse at osnanet.de Mon Oct 4 18:16:33 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 4 Oct 2021 18:16:33 +0200 Subject: [Gambas-user] Saving settings on system shutdown In-Reply-To: References: Message-ID: <86823665-5f2f-5b1a-5bfa-e95fe411d224@osnanet.de> Am 03.10.21 um 12:59 schrieb Bruce Steers: > > I have a program that starts with my system and runs in the background. > > It has icons i can move and on exit it saves the positions. > > I have noticed if i do not exit the program but shutdown the computer > the settings do not save. > > Of course i could just save the settings on moving icons but i wondered > if there is a recommended method to catch an application exit due to a > shutdown? > Does the system just kill the program? > > I guessed DBus would probably be the best alternative way but wouldn't > hurt to ask the experts if there is already an easier way. > > Thanks for any advice :) > > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Just a question, Form_Close() doesn't work? Regards Rolf From g4mba5 at gmail.com Mon Oct 4 21:37:10 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Oct 2021 21:37:10 +0200 Subject: [Gambas-user] Saving settings on system shutdown In-Reply-To: References: Message-ID: Le 03/10/2021 ? 12:59, Bruce Steers a ?crit?: > > I have a program that starts with my system and runs in the background. > > It has icons i can move and on exit it saves the positions. > > I have noticed if i do not exit the program but shutdown the computer > the settings do not save. > > Of course i could just save the settings on moving icons but i wondered > if there is a recommended method to catch an application exit due to a > shutdown? > Does the system just kill the program? > > I guessed DBus would probably be the best alternative way but wouldn't > hurt to ask the experts if there is already an easier way. > > Thanks for any advice :) > > BruceS > QT4, QT5 and GTK+2 components handle the "X11 session management protocol". https://www.x.org/releases/X11R7.7/doc/libSM/xsmp.html To handle it with Gambas, you just have to define the Application.Restart property with a string array that defines the command that will be run to automatically restart your application the next time the desktop starts again. When the desktop shutdowns, it is supposed to gracefully close the windows of your application, so that you can cancel the shutdown. If you do nothing, your application will be closed gracefully. It will be killed only if it does not answer to the window close events. GTK+3 component does not support that protocol (hey, it's a modern toolkit!), and I don't think there is the equivalent on Wayland, but I may be wrong. I need more information about that. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Wed Oct 6 23:08:14 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 6 Oct 2021 22:08:14 +0100 Subject: [Gambas-user] Saving settings on system shutdown In-Reply-To: References: Message-ID: Thank you Ben. I guess it's safer to save settings as they change instead. Many thanks BruceS On Mon, 4 Oct 2021, 20:38 Beno?t Minisini, wrote: > Le 03/10/2021 ? 12:59, Bruce Steers a ?crit : > > > > I have a program that starts with my system and runs in the background. > > > > It has icons i can move and on exit it saves the positions. > > > > I have noticed if i do not exit the program but shutdown the computer > > the settings do not save. > > > > Of course i could just save the settings on moving icons but i wondered > > if there is a recommended method to catch an application exit due to a > > shutdown? > > Does the system just kill the program? > > > > I guessed DBus would probably be the best alternative way but wouldn't > > hurt to ask the experts if there is already an easier way. > > > > Thanks for any advice :) > > > > BruceS > > > > QT4, QT5 and GTK+2 components handle the "X11 session management protocol". > > https://www.x.org/releases/X11R7.7/doc/libSM/xsmp.html > > To handle it with Gambas, you just have to define the > Application.Restart property with a string array that defines the > command that will be run to automatically restart your application the > next time the desktop starts again. > > When the desktop shutdowns, it is supposed to gracefully close the > windows of your application, so that you can cancel the shutdown. If you > do nothing, your application will be closed gracefully. It will be > killed only if it does not answer to the window close events. > > GTK+3 component does not support that protocol (hey, it's a modern > toolkit!), and I don't think there is the equivalent on Wayland, but I > may be wrong. I need more information about that. > > Regards, > > -- > Beno?t Minisini > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Fri Oct 8 23:12:11 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Fri, 8 Oct 2021 23:12:11 +0200 (CEST) Subject: [Gambas-user] gb.media feature request... Message-ID: Hello Benoit, I want to ask you if you want to create a new Class (...I immagine/suppose a "Static Class") to use GStreamer resource "gst_parse_launch()": ? ? https://gstreamer.freedesktop.org/documentation/gstreamer/gstparse.html?gi-language=c#gst_parse_launch Uhmmm... maybe approximately something like this:?? ?? ParseLaunch(description As String[]) What do you think about ? Regards vuott -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Oct 9 00:04:37 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 9 Oct 2021 00:04:37 +0200 Subject: [Gambas-user] gb.media feature request... In-Reply-To: References: Message-ID: <4ba077b4-fad5-5d3b-e690-c9e1e2c7c59b@gmail.com> Le 08/10/2021 ? 23:12, vuott--- via User a ?crit?: > Hello Benoit, > I want to ask you if you want to create a new Class (...I > immagine/suppose a "Static Class") to use GStreamer resource > "gst_parse_launch()": > > https://gstreamer.freedesktop.org/documentation/gstreamer/gstparse.html?gi-language=c#gst_parse_launch > > > Uhmmm... maybe approximately something like this: > > ?? ParseLaunch(description As String[]) > > What do you think about ? > > Regards > vuott > What for? -- Beno?t Minisini From gambas.fr at gmail.com Sun Oct 10 14:23:13 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Oct 2021 14:23:13 +0200 Subject: [Gambas-user] New Property feature request Message-ID: Hi Benoit, I use a lot of short property declaration. like : Property Read {Conditions} As Conditions[] Use $aConditions[] Is it possible to add the hability to initialise the variable on the declaration line ? Like this : Property Read {Conditions} As Conditions[] Use New $aConditions[] or Property Read {Conditions} As Conditions[] Use New $aConditions[3] ?? Thank you :-) Best Regards, -- Fabien Bodard From g4mba5 at gmail.com Sun Oct 10 17:32:07 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 Oct 2021 17:32:07 +0200 Subject: [Gambas-user] New Property feature request In-Reply-To: References: Message-ID: Le 10/10/2021 ? 14:23, Fabien Bodard a ?crit?: > Hi Benoit, > > > I use a lot of short property declaration. > > like : > > Property Read {Conditions} As Conditions[] Use $aConditions[] > > Is it possible to add the hability to initialise the variable on the > declaration line ? > > Like this : > > Property Read {Conditions} As Conditions[] Use New $aConditions[] > > or > > Property Read {Conditions} As Conditions[] Use New $aConditions[3] > > ?? > > Thank you :-) > > Best Regards, > I look at the compiler source code to tell you... -- Beno?t Minisini From g4mba5 at gmail.com Sun Oct 10 17:35:29 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 Oct 2021 17:35:29 +0200 Subject: [Gambas-user] New Property feature request In-Reply-To: References: Message-ID: Le 10/10/2021 ? 17:32, Beno?t Minisini a ?crit?: > Le 10/10/2021 ? 14:23, Fabien Bodard a ?crit?: >> Hi Benoit, >> >> >> I use a lot of short property declaration. >> >> like : >> >> Property Read {Conditions} As Conditions[] Use $aConditions[] The last "[]" is ignored, and you should get a compiler error instead. After USE comes an identifier, the name of the variable, nothing else. >> >> Is it possible to add the hability to initialise the variable on? the >> declaration line ? >> >> Like this : >> >> Property Read {Conditions} As Conditions[] Use New $aConditions[] >> >> or >> >> Property Read {Conditions} As Conditions[] Use New $aConditions[3] >> >> ?? >> Not like that. The syntax would be: Property Read {Conditions} As Conditions[] Use $aConditions = New Conditions[] which is not very nice, and does not save a lot of typing... -- Beno?t Minisini From gambas.fr at gmail.com Mon Oct 11 09:09:28 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 11 Oct 2021 09:09:28 +0200 Subject: [Gambas-user] Urgent feature request about DataView Message-ID: Hi Benoit, Can you add a property 'Table' To allow me to access to the Internal Table object of the DataView. It ca be an Hidden property , I just need it to access to the Data from my DataView that inherit the existing one. I need to get data from it to apply some format that depend of the data value. thank you ... I can do it if you want. Property Read _Table as DataTable Use $hTable -- Fabien Bodard From gambas.fr at gmail.com Mon Oct 11 09:44:52 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 11 Oct 2021 09:44:52 +0200 Subject: [Gambas-user] Urgent feature request about DataView In-Reply-To: References: Message-ID: Le lun. 11 oct. 2021 ? 09:09, Fabien Bodard a ?crit : > > Hi Benoit, > > Can you add a property 'Table' To allow me to access to the Internal > Table object of the DataView. > > > It ca be an Hidden property , I just need it to access to the Data > from my DataView that inherit the existing one. I need to get data > from it to apply some format that depend of the data value. > > thank you ... > > > I can do it if you want. > > > > Property Read _Table as DataTable Use $hTable > > -- > Fabien Bodard Well It is not as simple as I think it is. DataTable is not exported. So how can I access to the Data from my inherited view ? -- Fabien Bodard From g4mba5 at gmail.com Mon Oct 11 13:46:12 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 11 Oct 2021 13:46:12 +0200 Subject: [Gambas-user] Urgent feature request about DataView In-Reply-To: References: Message-ID: Le 11/10/2021 ? 09:44, Fabien Bodard a ?crit?: > Le lun. 11 oct. 2021 ? 09:09, Fabien Bodard a ?crit : >> >> Hi Benoit, >> >> Can you add a property 'Table' To allow me to access to the Internal >> Table object of the DataView. >> >> >> It ca be an Hidden property , I just need it to access to the Data >> from my DataView that inherit the existing one. I need to get data >> from it to apply some format that depend of the data value. >> >> thank you ... >> >> >> I can do it if you want. >> >> >> >> Property Read _Table as DataTable Use $hTable >> >> -- >> Fabien Bodard > > Well It is not as simple as I think it is. DataTable is not exported. > > So how can I access to the Data from my inherited view ? > > DataView raises a Data event, why don't you use that? -- Beno?t Minisini From gambas.fr at gmail.com Mon Oct 11 16:53:13 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 11 Oct 2021 16:53:13 +0200 Subject: [Gambas-user] Urgent feature request about DataView In-Reply-To: References: Message-ID: > DataView raises a Data event, why don't you use that? Because I just realize that this event exist ? Sorry for the noise. So I will make a widget that embeds the DataView and not an inherited class. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Oct 11 18:00:47 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 11 Oct 2021 18:00:47 +0200 Subject: [Gambas-user] New Property feature request In-Reply-To: References: Message-ID: Le dim. 10 oct. 2021 ? 17:36, Beno?t Minisini a ?crit : > Le 10/10/2021 ? 17:32, Beno?t Minisini a ?crit : > > Le 10/10/2021 ? 14:23, Fabien Bodard a ?crit : > >> Hi Benoit, > >> > >> > >> I use a lot of short property declaration. > >> > >> like : > >> > >> Property Read {Conditions} As Conditions[] Use $aConditions[] > > The last "[]" is ignored, and you should get a compiler error instead. > > After USE comes an identifier, the name of the variable, nothing else. > > >> > >> Is it possible to add the hability to initialise the variable on the > >> declaration line ? > >> > >> Like this : > >> > >> Property Read {Conditions} As Conditions[] Use New $aConditions[] > >> > >> or > >> > >> Property Read {Conditions} As Conditions[] Use New $aConditions[3] > >> > >> ?? > >> > > Not like that. The syntax would be: > > Property Read {Conditions} As Conditions[] Use $aConditions = New > Conditions[] > > which is not very nice, and does not save a lot of typing... > Hum ... yes And what about simple connected object ? Property Header as Integer Use $hGrid.Header Some time ... It can save lot of time :-D > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From criguada at gmail.com Tue Oct 12 14:13:53 2021 From: criguada at gmail.com (Cristiano Guadagnino) Date: Tue, 12 Oct 2021 14:13:53 +0200 Subject: [Gambas-user] Bug in tray icon menu? Message-ID: Hi all, I think I have found a bug in the tray icon code. If you add a popup menu to a tray icon control programmatically (i.e. by code) and you have a submenu with items whose Radio property is true, the click() event is not raised and radios are not mutually exclusive (i.e. you can have more than one item with the radio button checked). I am adding a sample project. In the project you see a couple menus, added to the main window, to a menu button and to the tray icon. They all work correctly but for the one attached to the tray icon. And here are my system infos: [System] Gambas=3.16.3 OperatingSystem=Linux Kernel=5.14.6-2-default Architecture=x86_64 Distribution=openSUSE Tumbleweed 20211008 Desktop=KDE5 Font=Noto Sans,10 Scale=7 Theme=breeze Language=it_IT.UTF-8 Memory=11666M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.7.0 DBus=/usr/lib64/libdbus-1.so.3.19.13 GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.33 GDK3=/usr/lib64/libgdk-3.so.0.2404.26 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1805.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.33 GTK+3=/usr/lib64/libgtk-3.so.0.2404.26 OpenGL=/usr/lib64/libGL.so.1.7.0 Poppler=/usr/lib64/libpoppler.so.112.0.0 Poppler=/usr/lib64/libpoppler.so.83.0.0 Poppler=/usr/lib64/libpoppler.so.92.0.0 Poppler=/usr/lib64/libpoppler.so.93.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.15.2 SDL=/usr/lib/libSDL-1.3.so.0.0.0 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 [Environment] AUDIODRIVER=pulseaudio BASH_FUNC_mc%%=() { . /usr/share/mc/mc-wrapper.sh } CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEBUGINFOD_URLS=https://debuginfod.opensuse.org/ DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 EDITOR=/usr/bin/joe FROM_HEADER= FTP_PROXY=http://127.0.0.1:3128 GB_GUI=gb.qt5 GPG_TTY=not a tty GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0:/.config/gtkrc-2.0 GTK_IM_MODULE=ibus GTK_MODULES=canberra-gtk-module GTK_RC_FILES=/etc/gtk/gtkrc:/.gtkrc:/.config/gtkrc G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 HTTPS_PROXY=http://127.0.0.1:3128 HTTP_PROXY=http://127.0.0.1:3128 INPUT_METHOD=ibus JAVA_BINDIR=/usr/lib/jvm/zulu-11/bin JAVA_HOME=/usr/lib/jvm/zulu-11 JAVA_ROOT=/usr/lib/jvm/zulu-11 JDK_HOME=/usr/lib/jvm/zulu-11 JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11 KDE_APPLICATIONS_AS_SCOPE=1 KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8 LC_ALL=it_IT.UTF-8 LESS= -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/usr/etc/lesskey.bin LESSOPEN=| /usr/bin/src-hilite-lesspipe.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MANPATHISSET=yes MINICOM=-c on MORE=-sl NO_PROXY=localhost, 127.0.0.1, .bankadati.it, .bkd, .gcv.dom OSTYPE=linux PAGER=less PATH=/bin:/usr/local/bin:/usr/bin:/bin:/snap/bin:/usr/sbin PROFILEREAD=true PWD= PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QT4_IM_MODULE=xim QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=ibus QT_IM_SWITCHER=imsw-multi QT_LOGGING_RULES=*.debug=false SDK_HOME=/usr/lib/jvm/zulu-11 SESSION_MANAGER=local/:@/tmp/.ICE-unix/2872,unix/:/tmp/.ICE-unix/2872 SHELL=/bin/bash SHLVL=0 SOCKS5_SERVER= SOCKS_PROXY= SSH_AGENT_PID=2816 SSH_ASKPASS=/usr/libexec/ssh/ssh-askpass SSH_AUTH_SOCK=/tmp/ssh-8uaxT9FzIIMI/agent.2691 SYSTEMD_EXEC_PID=2656 TERM=xterm TZ=:/etc/localtime USER= VDPAU_DRIVER=va_gl WINDOWMANAGER=/usr/bin/startplasma-x11 XAUTHLOCALHOSTNAME= XAUTHORITY=/run/user/1000/xauth_PWrjFn XCURSOR_SIZE=32 XCURSOR_THEME=oreo_pink_cursors XDG_CONFIG_DIRS=/.config/kdedefaults:/etc/xdg:/usr/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/share:/var/lib/snapd/desktop XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=ibus XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes force_s3tc_enable=true ftp_proxy=http://127.0.0.1:3128 gopher_proxy= http_proxy=http://127.0.0.1:3128 https_proxy=http://127.0.0.1:3128 no_proxy=localhost, 127.0.0.1, .bankadati.it, .bkd, .gcv.dom socks_proxy= Best regards Cris [image: cloudHQ] Powered by cloudHQ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MenuRadioTest.zip Type: application/zip Size: 19144 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Oct 12 15:00:56 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Oct 2021 15:00:56 +0200 Subject: [Gambas-user] Constant expressions Message-ID: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> Hi, I have implemented in the compiler the ability to use "constant expressions". Constant expressions are integer expressions that are evaluated at compile time, and that can be used in the following places: - Constant declarations. - Enumeration declarations. - Embedded array declarations. These expressions only support a subset of Gambas operators and pre-defined constants. Here is the list of what you can use inside a constant expression: - Arithmetic operators: +, -, *, /, \, Div, %, Mod - Logical operators: And, Or, Xor, Not - Bitwise operators: Shl, Shr, Asl, Asr, Lsl, Lsr - Size of a native numerical or date datatype: SizeOf() - Native datatype constants : gb.Boolean, gb.Byte, gb.Short, gb.Integer, gb.Long, gb.Single, gb.Float, gb.Date. - Another integer constant. WARNING! In the context of constant integer expressions, The / operator acts like the integer division operator \. Note that the bitwise operators now can used like... operators, and must be used that way in the context of constant integer expressions Here are some examples: Public Const Alpha As Integer = 1 Public Const Beta As Integer = (Alpha * 2) + 1 Public Const Delta As Byte = Beta + Alpha Private Enum FirstFlag = 1 Shl 0, SecondFlag = 1 Shl 1, ThirdFlag = 1 Shl 2 Private SomeEmbeddedArray[Delta * SizeOf(gb.Short)] As String The corresponding documentation is available in the wiki here: https://gambaswiki.org/edit/lang/constexpr Enjoy it! -- Beno?t Minisini From adamnt42 at gmail.com Tue Oct 12 20:56:08 2021 From: adamnt42 at gmail.com (bb) Date: Wed, 13 Oct 2021 05:26:08 +1030 Subject: [Gambas-user] Constant expressions In-Reply-To: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> References: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> Message-ID: On Tue, 2021-10-12 at 15:00 +0200, Beno?t Minisini wrote: > Hi, > > I have implemented in the compiler the ability to use "constant > expressions". > > Constant expressions are integer expressions that are evaluated at > compile time, and that can be used in the following places: > > - Constant declarations. > > - Enumeration declarations. > > - Embedded array declarations. > > These expressions only support a subset of Gambas operators and > pre-defined constants. > > Here is the list of what you can use inside a constant expression: > > - Arithmetic operators: +, -, *, /, \, Div, %, Mod > > - Logical operators: And, Or, Xor, Not > > - Bitwise operators: Shl, Shr, Asl, Asr, Lsl, Lsr > > - Size of a native numerical or date datatype: SizeOf() > > - Native datatype constants : gb.Boolean, gb.Byte, gb.Short, > gb.Integer, > gb.Long, gb.Single, gb.Float, gb.Date. > > - Another integer constant. > > WARNING! In the context of constant integer expressions, The / > operator > acts like the integer division operator \. > > Note that the bitwise operators now can used like... operators, and > must > be used that way in the context of constant integer expressions > > Here are some examples: > > Public Const Alpha As Integer = 1 > Public Const Beta As Integer = (Alpha * 2) + 1 > Public Const Delta As Byte = Beta + Alpha > > Private Enum FirstFlag = 1 Shl 0, SecondFlag = 1 Shl 1, > ThirdFlag = 1 Shl 2 > > Private SomeEmbeddedArray[Delta * SizeOf(gb.Short)] As String > > The corresponding documentation is available in the wiki here: > > https://gambaswiki.org/edit/lang/constexpr > > Enjoy it! > What! Are you some kind of mind-reader now? I was looking for exactly that only a few days ago. 8-) Does it work for Longs as well? regards bruce From g4mba5 at gmail.com Tue Oct 12 23:43:09 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Oct 2021 23:43:09 +0200 Subject: [Gambas-user] Constant expressions In-Reply-To: References: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> Message-ID: <43aa2217-9a20-5575-f484-409e93508f93@gmail.com> Le 12/10/2021 ? 20:56, bb a ?crit?: > What! Are you some kind of mind-reader now? > I was looking for exactly that only a few days ago. > 8-) > > Does it work for Longs as well? > regards > bruce > Lol, no, it's the request #2263 filled four months ago. Yes, it works for Long constants, as internally all expressions are evaluated with 64 bits integers. The compiler constant evaluator is rudimentary. -- Beno?t Minisini From brian at westwoodsvcs.com Tue Oct 12 20:45:06 2021 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 12 Oct 2021 11:45:06 -0700 (PDT) Subject: [Gambas-user] Constant expressions In-Reply-To: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> References: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> Message-ID: <1652912808.641.1634064306361.JavaMail.zimbra@westwoodsvcs.com> This is amazing! Thank you so much! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Oct 12, 2021, at 6:00 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > Hi, > > I have implemented in the compiler the ability to use "constant > expressions". > > Constant expressions are integer expressions that are evaluated at > compile time, and that can be used in the following places: > > - Constant declarations. > > - Enumeration declarations. > > - Embedded array declarations. > > These expressions only support a subset of Gambas operators and > pre-defined constants. > > Here is the list of what you can use inside a constant expression: > > - Arithmetic operators: +, -, *, /, \, Div, %, Mod > > - Logical operators: And, Or, Xor, Not > > - Bitwise operators: Shl, Shr, Asl, Asr, Lsl, Lsr > > - Size of a native numerical or date datatype: SizeOf() > > - Native datatype constants : gb.Boolean, gb.Byte, gb.Short, gb.Integer, > gb.Long, gb.Single, gb.Float, gb.Date. > > - Another integer constant. > > WARNING! In the context of constant integer expressions, The / operator > acts like the integer division operator \. > > Note that the bitwise operators now can used like... operators, and must > be used that way in the context of constant integer expressions > > Here are some examples: > > Public Const Alpha As Integer = 1 > Public Const Beta As Integer = (Alpha * 2) + 1 > Public Const Delta As Byte = Beta + Alpha > > Private Enum FirstFlag = 1 Shl 0, SecondFlag = 1 Shl 1, > ThirdFlag = 1 Shl 2 > > Private SomeEmbeddedArray[Delta * SizeOf(gb.Short)] As String > > The corresponding documentation is available in the wiki here: > > https://gambaswiki.org/edit/lang/constexpr > > Enjoy it! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From gambas.fr at gmail.com Wed Oct 13 10:11:42 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 13 Oct 2021 10:11:42 +0200 Subject: [Gambas-user] Constant expressions In-Reply-To: <1652912808.641.1634064306361.JavaMail.zimbra@westwoodsvcs.com> References: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> <1652912808.641.1634064306361.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Enfin !!! mdr 4 month you say ?... well hum... If I remember well I've querying that during my first attempt on the gb.form.terminal. So ... Thank you a lot !!! Le mer. 13 oct. 2021 ? 00:32, Brian G a ?crit : > This is amazing! Thank you so much! > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Oct 12, 2021, at 6:00 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > > > Hi, > > > > I have implemented in the compiler the ability to use "constant > > expressions". > > > > Constant expressions are integer expressions that are evaluated at > > compile time, and that can be used in the following places: > > > > - Constant declarations. > > > > - Enumeration declarations. > > > > - Embedded array declarations. > > > > These expressions only support a subset of Gambas operators and > > pre-defined constants. > > > > Here is the list of what you can use inside a constant expression: > > > > - Arithmetic operators: +, -, *, /, \, Div, %, Mod > > > > - Logical operators: And, Or, Xor, Not > > > > - Bitwise operators: Shl, Shr, Asl, Asr, Lsl, Lsr > > > > - Size of a native numerical or date datatype: SizeOf() > > > > - Native datatype constants : gb.Boolean, gb.Byte, gb.Short, gb.Integer, > > gb.Long, gb.Single, gb.Float, gb.Date. > > > > - Another integer constant. > > > > WARNING! In the context of constant integer expressions, The / operator > > acts like the integer division operator \. > > > > Note that the bitwise operators now can used like... operators, and must > > be used that way in the context of constant integer expressions > > > > Here are some examples: > > > > Public Const Alpha As Integer = 1 > > Public Const Beta As Integer = (Alpha * 2) + 1 > > Public Const Delta As Byte = Beta + Alpha > > > > Private Enum FirstFlag = 1 Shl 0, SecondFlag = 1 Shl 1, > > ThirdFlag = 1 Shl 2 > > > > Private SomeEmbeddedArray[Delta * SizeOf(gb.Short)] As String > > > > The corresponding documentation is available in the wiki here: > > > > https://gambaswiki.org/edit/lang/constexpr > > > > Enjoy it! > > > > -- > > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Oct 13 10:32:01 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 13 Oct 2021 10:32:01 +0200 Subject: [Gambas-user] Constant expressions In-Reply-To: References: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> <1652912808.641.1634064306361.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Found it !!! BugTraker Request #775 :-D Le mer. 13 oct. 2021 ? 10:11, Fabien Bodard a ?crit : > Enfin !!! > > mdr 4 month you say ?... well hum... If I remember well I've querying > that during my first attempt on the gb.form.terminal. > > So ... Thank you a lot !!! > > Le mer. 13 oct. 2021 ? 00:32, Brian G a ?crit : > >> This is amazing! Thank you so much! >> >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G >> >> ----- On Oct 12, 2021, at 6:00 AM, Beno?t Minisini g4mba5 at gmail.com >> wrote: >> >> > Hi, >> > >> > I have implemented in the compiler the ability to use "constant >> > expressions". >> > >> > Constant expressions are integer expressions that are evaluated at >> > compile time, and that can be used in the following places: >> > >> > - Constant declarations. >> > >> > - Enumeration declarations. >> > >> > - Embedded array declarations. >> > >> > These expressions only support a subset of Gambas operators and >> > pre-defined constants. >> > >> > Here is the list of what you can use inside a constant expression: >> > >> > - Arithmetic operators: +, -, *, /, \, Div, %, Mod >> > >> > - Logical operators: And, Or, Xor, Not >> > >> > - Bitwise operators: Shl, Shr, Asl, Asr, Lsl, Lsr >> > >> > - Size of a native numerical or date datatype: SizeOf() >> > >> > - Native datatype constants : gb.Boolean, gb.Byte, gb.Short, gb.Integer, >> > gb.Long, gb.Single, gb.Float, gb.Date. >> > >> > - Another integer constant. >> > >> > WARNING! In the context of constant integer expressions, The / operator >> > acts like the integer division operator \. >> > >> > Note that the bitwise operators now can used like... operators, and must >> > be used that way in the context of constant integer expressions >> > >> > Here are some examples: >> > >> > Public Const Alpha As Integer = 1 >> > Public Const Beta As Integer = (Alpha * 2) + 1 >> > Public Const Delta As Byte = Beta + Alpha >> > >> > Private Enum FirstFlag = 1 Shl 0, SecondFlag = 1 Shl 1, >> > ThirdFlag = 1 Shl 2 >> > >> > Private SomeEmbeddedArray[Delta * SizeOf(gb.Short)] As String >> > >> > The corresponding documentation is available in the wiki here: >> > >> > https://gambaswiki.org/edit/lang/constexpr >> > >> > Enjoy it! >> > >> > -- >> > Beno?t Minisini >> > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Oct 13 10:38:58 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 13 Oct 2021 10:38:58 +0200 Subject: [Gambas-user] Constant expressions In-Reply-To: References: <58afdf40-b114-9b88-8469-5754bf9a7bc4@gmail.com> <1652912808.641.1634064306361.JavaMail.zimbra@westwoodsvcs.com> Message-ID: forget It's not the same query ... again I'm too fast in my reading ... fufufu Nevertheless I continue to think that Def will be useful Le mer. 13 oct. 2021 ? 10:32, Fabien Bodard a ?crit : > Found it !!! BugTraker Request #775 :-D > > Le mer. 13 oct. 2021 ? 10:11, Fabien Bodard a > ?crit : > >> Enfin !!! >> >> mdr 4 month you say ?... well hum... If I remember well I've querying >> that during my first attempt on the gb.form.terminal. >> >> So ... Thank you a lot !!! >> >> Le mer. 13 oct. 2021 ? 00:32, Brian G a ?crit : >> >>> This is amazing! Thank you so much! >>> >>> "Failure is the key to success; >>> each mistake teaches us something" .. Morihei Ueshiba >>> Brian G >>> >>> ----- On Oct 12, 2021, at 6:00 AM, Beno?t Minisini g4mba5 at gmail.com >>> wrote: >>> >>> > Hi, >>> > >>> > I have implemented in the compiler the ability to use "constant >>> > expressions". >>> > >>> > Constant expressions are integer expressions that are evaluated at >>> > compile time, and that can be used in the following places: >>> > >>> > - Constant declarations. >>> > >>> > - Enumeration declarations. >>> > >>> > - Embedded array declarations. >>> > >>> > These expressions only support a subset of Gambas operators and >>> > pre-defined constants. >>> > >>> > Here is the list of what you can use inside a constant expression: >>> > >>> > - Arithmetic operators: +, -, *, /, \, Div, %, Mod >>> > >>> > - Logical operators: And, Or, Xor, Not >>> > >>> > - Bitwise operators: Shl, Shr, Asl, Asr, Lsl, Lsr >>> > >>> > - Size of a native numerical or date datatype: SizeOf() >>> > >>> > - Native datatype constants : gb.Boolean, gb.Byte, gb.Short, >>> gb.Integer, >>> > gb.Long, gb.Single, gb.Float, gb.Date. >>> > >>> > - Another integer constant. >>> > >>> > WARNING! In the context of constant integer expressions, The / operator >>> > acts like the integer division operator \. >>> > >>> > Note that the bitwise operators now can used like... operators, and >>> must >>> > be used that way in the context of constant integer expressions >>> > >>> > Here are some examples: >>> > >>> > Public Const Alpha As Integer = 1 >>> > Public Const Beta As Integer = (Alpha * 2) + 1 >>> > Public Const Delta As Byte = Beta + Alpha >>> > >>> > Private Enum FirstFlag = 1 Shl 0, SecondFlag = 1 Shl 1, >>> > ThirdFlag = 1 Shl 2 >>> > >>> > Private SomeEmbeddedArray[Delta * SizeOf(gb.Short)] As String >>> > >>> > The corresponding documentation is available in the wiki here: >>> > >>> > https://gambaswiki.org/edit/lang/constexpr >>> > >>> > Enjoy it! >>> > >>> > -- >>> > Beno?t Minisini >>> > >>> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> >> -- >> Fabien Bodard >> > > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Wed Oct 13 13:15:22 2021 From: tercoide at hotmail.com (martin p cristia) Date: Wed, 13 Oct 2021 08:15:22 -0300 Subject: [Gambas-user] Constant expressions In-Reply-To: References: Message-ID: Very usefull in translating C++ code, thanks. -- Saludos Ing. Martin P Cristia From tercoide at hotmail.com Wed Oct 13 13:18:26 2021 From: tercoide at hotmail.com (martin p cristia) Date: Wed, 13 Oct 2021 08:18:26 -0300 Subject: [Gambas-user] Gambas to C++/C# In-Reply-To: References: Message-ID: Hi, I need to port some of my code to C++ or C# (witch would be easier??). Does anyone has a program to do so and want to share? Thanks -- Saludos Ing. Martin P Cristia From jussi.lahtinen at gmail.com Wed Oct 13 14:59:24 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 13 Oct 2021 15:59:24 +0300 Subject: [Gambas-user] Gambas to C++/C# In-Reply-To: References: Message-ID: I have ported some code to C, which is very easy. But I have never ported any GUI stuff, only something where I have needed more performance. But I would prefer C++, if necessary. May I ask why you need to port or what is your goal? Jussi On Wed, Oct 13, 2021 at 2:19 PM martin p cristia wrote: > Hi, I need to port some of my code to C++ or C# (witch would be > easier??). Does anyone has a program to do so and want to share? > > Thanks > > -- > > Saludos > > Ing. Martin P Cristia > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Thu Oct 14 07:06:23 2021 From: isafiur at gmail.com (Safiur Rahman) Date: Thu, 14 Oct 2021 10:51:23 +0545 Subject: [Gambas-user] How to make NoTabFocus property working in gb.qt5 Message-ID: Hi Although I set all types of controls' (except ToolBox) NoTabFocus property to True in gb.qt5, the event _GotFocus() is fired and control is focused on pressing Tab key. Am I doing something wrong? Attached project -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tabfocus.tar.xz Type: application/x-xz Size: 13064 bytes Desc: not available URL: From gambas.fr at gmail.com Thu Oct 14 11:15:23 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 14 Oct 2021 11:15:23 +0200 Subject: [Gambas-user] Need a trick Message-ID: Hi, On a gridView Used as a List with multiple column, If you click on a column on the right, the entire grid scroll on the left because of the call of "EnsureVisible" on each click How can we lock the list to not have this side effect if the total of the columns are more larger than the viewport ? Thank you -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Thu Oct 14 12:56:02 2021 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 14 Oct 2021 10:56:02 +0000 (UTC) Subject: [Gambas-user] databases References: <185190345.1443064.1634208962628.ref@mail.yahoo.com> Message-ID: <185190345.1443064.1634208962628@mail.yahoo.com> Hi All I came across a very strange occurrence, not sure what the problem may be.I have a couple of database interfaces (sqlite3), however (and this is only the second time this has occurred) I found that when creating tables gb sometimes kicks out 'gbSerial' as in the following code: ? ? hTable.Fields.Add("REF", gb.Serial)? ? hTable.Fields.Add("DATE", gb.Date)? ? hTable.Fields.Add("INVOICE", gb.String)? ? hTable.Fields.Add("QUANTITY", gb.Float)? ? hTable.Fields.Add("DESCRIPTION", gb.String)? ? hTable.Fields.Add("PRICE", gb.Float)? ? hTable.PrimaryKey = ["REF"]? ? hTable.Update I can only assume I am missing a library somewhere, however, when I checked the components on the other interfaces, they were all the same... so I have two interfaces that don't work and the rest do... (not in the same program). Can someone shed some light on this, please? What exactly have I done wrong on the 2 'problem children'?PS. I used the gb.db and gb.db.form components Thanks David -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Oct 14 13:25:17 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Oct 2021 13:25:17 +0200 Subject: [Gambas-user] databases In-Reply-To: <185190345.1443064.1634208962628@mail.yahoo.com> References: <185190345.1443064.1634208962628.ref@mail.yahoo.com> <185190345.1443064.1634208962628@mail.yahoo.com> Message-ID: Le 14/10/2021 ? 12:56, David Silverwood via User a ?crit?: > Hi All > > I came across a very strange occurrence, not sure what the problem may be. > I have a couple of database interfaces (sqlite3), however (and this is > only the second time this has occurred) I found that when creating > tables gb _sometimes_ kicks out 'gbSerial' as in the following code: > > ? ? hTable.Fields.Add("REF", gb.Serial) > ? ? hTable.Fields.Add("DATE", gb.Date) > ? ? hTable.Fields.Add("INVOICE", gb.String) > ? ? hTable.Fields.Add("QUANTITY", gb.Float) > ? ? hTable.Fields.Add("DESCRIPTION", gb.String) > ? ? hTable.Fields.Add("PRICE", gb.Float) > ? ? hTable.PrimaryKey = ["REF"] > ? ? hTable.Update > > I can only assume I am missing a library somewhere, however, when I > checked the components on the other interfaces, they were all the > same... so I have two interfaces that don't work and the rest do... (not > in the same program). Can someone shed some light on this, please? What > exactly have I done wrong on the 2 'problem children'? > PS. I used the gb.db and gb.db.form components > > Thanks > > David > I can't tell without a full project that could reproduce the bug. You can set the environment variable GB_DB_DEBUG=1, to see all SQL requests that are sent to the sqlite backend. Maybe you will get more information about the problem? Regards, -- Beno?t Minisini From tercoide at hotmail.com Thu Oct 14 13:46:07 2021 From: tercoide at hotmail.com (martin p cristia) Date: Thu, 14 Oct 2021 08:46:07 -0300 Subject: [Gambas-user] Gambas to C++/C# In-Reply-To: References: Message-ID: I am starting to make a game, with my daugther, in Godot (has its own scripting lang but also support "native" C code), but will also try to port my CAD viewer so it works in any plattform. Not any GUI, that would be impossible I beleive. But , yes, porting pure code Gb to C++ is fairly easy. Just asked if someone had a program to do so, like a two sided TextArea and a "Convert" button. Seems I would need to do my own, hard work ;) El 10/14/21 a las 2:07 AM, user-request at lists.gambas-basic.org escribi?: > I have ported some code to C, which is very easy. But I have never ported > any GUI stuff, only something where I have needed more performance. > But I would prefer C++, if necessary. May I ask why you need to port or > what is your goal? -- Saludos Ing. Martin P Cristia From t.lee.davidson at gmail.com Thu Oct 14 17:18:29 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 14 Oct 2021 11:18:29 -0400 Subject: [Gambas-user] How to make NoTabFocus property working in gb.qt5 In-Reply-To: References: Message-ID: On 10/14/21 1:06 AM, Safiur Rahman wrote: > Hi > Although I set all types of controls' (except ToolBox) NoTabFocus property to True in gb.qt5, the event _GotFocus() is fired and > control is focused on pressing Tab key. Am I doing something wrong? > Attached project > -- > Regards > Safiur Rahman No, I don't think you're doing anything wrong. It appears to be a bug. -- Lee From t.lee.davidson at gmail.com Thu Oct 14 17:28:31 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 14 Oct 2021 11:28:31 -0400 Subject: [Gambas-user] Need a trick In-Reply-To: References: Message-ID: <8d5ea573-7efd-277f-b220-eb68ef8d7a54@gmail.com> On 10/14/21 5:15 AM, Fabien Bodard wrote: > Hi, > > > On a gridView Used as a List with multiple column, > > If you click on a column on the right, the entire grid scroll?on the left because of the call of "EnsureVisible" on each click > > How can we lock the list to not have this side effect if the total of the columns are more larger than the viewport ? > > > Thank you > > > > -- > Fabien Bodard I'm not sure exactly what you are describing or trying to accomplish. But, perhaps you could utilize the ColumnClick event to manually handle horizontal scrolling with the ScrollX property, and then Stop the event. -- Lee From the_watchmann at yahoo.com Thu Oct 14 18:17:48 2021 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 14 Oct 2021 16:17:48 +0000 (UTC) Subject: [Gambas-user] databases In-Reply-To: References: <185190345.1443064.1634208962628.ref@mail.yahoo.com> <185190345.1443064.1634208962628@mail.yahoo.com> Message-ID: <1093021015.1522139.1634228268602@mail.yahoo.com> Found the bug... it was me... instead of db I typed gb... TWICE!!! Apologies... and thanks for taking the time to reply, Benoit. On Thursday, October 14, 2021, 01:35:36 PM GMT+2, Beno?t Minisini wrote: Le 14/10/2021 ? 12:56, David Silverwood via User a ?crit?: > Hi All > > I came across a very strange occurrence, not sure what the problem may be. > I have a couple of database interfaces (sqlite3), however (and this is > only the second time this has occurred) I found that when creating > tables gb _sometimes_ kicks out 'gbSerial' as in the following code: > >? ? ? hTable.Fields.Add("REF", gb.Serial) >? ? ? hTable.Fields.Add("DATE", gb.Date) >? ? ? hTable.Fields.Add("INVOICE", gb.String) >? ? ? hTable.Fields.Add("QUANTITY", gb.Float) >? ? ? hTable.Fields.Add("DESCRIPTION", gb.String) >? ? ? hTable.Fields.Add("PRICE", gb.Float) >? ? ? hTable.PrimaryKey = ["REF"] >? ? ? hTable.Update > > I can only assume I am missing a library somewhere, however, when I > checked the components on the other interfaces, they were all the > same... so I have two interfaces that don't work and the rest do... (not > in the same program). Can someone shed some light on this, please? What > exactly have I done wrong on the 2 'problem children'? > PS. I used the gb.db and gb.db.form components > > Thanks > > David > I can't tell without a full project that could reproduce the bug. You can set the environment variable GB_DB_DEBUG=1, to see all SQL requests that are sent to the sqlite backend. Maybe you will get more information about the problem? Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Oct 14 19:55:43 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 14 Oct 2021 20:55:43 +0300 Subject: [Gambas-user] Gambas to C++/C# In-Reply-To: References: Message-ID: I am starting to make a game, with my daugther, in Godot (has its own > scripting lang but also support "native" C code), but will also try to > port my CAD viewer so it works in any plattform. > I don't know what Godot offers, but if you need to use C for the game, I suspect any conversion from Gambas code is from too different framework to be very useful. Porting the whole CAD viewer.. no GUI (Graphical User Interface)? You mean it is on SDL/OpenGL instead of the normal Gambas widgets? > Not any GUI, that would be impossible I beleive. Just a lot of work. > But , yes, porting pure code Gb to C++ is fairly easy. Just asked if > someone had a program to do > so, like a two sided TextArea and a "Convert" button. Seems I would need > to do my own, hard work ;) > I use C, not C++ and thus no objects like that. And thus the approaches are a bit too different for converters to be very useful. Sorry, I can't help there! Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Oct 15 18:38:50 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Oct 2021 18:38:50 +0200 Subject: [Gambas-user] Gambas icon theme Message-ID: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> Hi, Here is an archive that you can decompress into "~/.local/share/icons" to use the Gambas icon theme in your desktop. https://we.tl/t-OfdxSQyYIM As the theme does not cover everything, it inherits "Papirus" and "breeze" theme. Maybe it should inherit a specific Gnome theme too? The theme has been generated by code, and the code will be integrated into the 'gb.form.stock' component source code. Enjoy it! -- Beno?t Minisini From claus.dietrich at freenet.de Fri Oct 15 19:31:45 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 15 Oct 2021 19:31:45 +0200 Subject: [Gambas-user] Method Paint.DrawText unclear Message-ID: <12992543-08e4-fa1b-f078-dd92b326829e@freenet.de> The method paint.DrawText is always puzzling me, because a variation of Width, Height and Alignment has no visual impact and the range of applicable Integer parameters for Alignment is undefined. For example: The following commands provide 100% identical results: Paint.DrawText("Hello", 0, 0, 0, 0) Paint.DrawText("Hello", 0, 0, 100, 100) Paint.DrawText("Hello", 0, 0, 0) Paint.DrawText("Hello", 0, 0, 10) and I tried several integers as Alignment-parameter without any visible change. Which parameters are allowed and what do they do? Since the wiki didn't solve my problem I kindly ask for help to understand the parameters. Regards Claus From g4mba5 at gmail.com Fri Oct 15 19:37:10 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Oct 2021 19:37:10 +0200 Subject: [Gambas-user] Method Paint.DrawText unclear In-Reply-To: <12992543-08e4-fa1b-f078-dd92b326829e@freenet.de> References: <12992543-08e4-fa1b-f078-dd92b326829e@freenet.de> Message-ID: <79748fc0-3d39-3d94-81df-15df5c323a63@gmail.com> Le 15/10/2021 ? 19:31, Claus Dietrich a ?crit?: > The method paint.DrawText is always puzzling me, because a variation of > Width, Height and Alignment has no visual impact and the range of > applicable Integer parameters for Alignment is undefined. > > For example: The following commands provide 100% identical results: > > Paint.DrawText("Hello", 0, 0, 0, 0) > > Paint.DrawText("Hello", 0, 0, 100, 100) > > Paint.DrawText("Hello", 0, 0, 0) > > Paint.DrawText("Hello", 0, 0, 10) Of course: as you don't specify any alignment, top left alignment is assumed (or top right if you use a rtl language), and so only the X and Y drawing coordinates have an impact of the text drawing position. > > and I tried several integers as Alignment-parameter without any visible > change. Which parameters are allowed and what do they do? The Alignment argument is one of the Align class constants, and tells where the text is drawn inside the specified rectangle. I don't see what is utterly complicated here... -- Beno?t Minisini From brian at westwoodsvcs.com Fri Oct 15 20:20:41 2021 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 15 Oct 2021 11:20:41 -0700 (PDT) Subject: [Gambas-user] Making a integer constant represent a long value Message-ID: <1822129572.1654.1634322041659.JavaMail.zimbra@westwoodsvcs.com> This may be a simple, perhaps silly question! Is there some short form way of identifying a literal number as a long? If I put the following into my code: dim a as variant = 1 ' this will always be a integer dim a as variant = clong(1) ' this will be a long. So is there a short form, like for hex value or so? something like: Dim a as variant = 1L ' this would be a long Maybe I just don't see this in the documentation? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Fri Oct 15 22:39:58 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 15 Oct 2021 22:39:58 +0200 Subject: [Gambas-user] Method Paint.DrawText unclear In-Reply-To: References: Message-ID: The examples were provided with a different focus and without the Alignment parameter. Of course I tried it as additional parameter. I simply wasn't aware that the Alignment class constants are applicable in this case. The wiki refers to a rectangle to which the text is constrained, but I found, that a rectangle is not mandatory. That Height can be provided without Width and vice versa and that any Height or Width parameter repositions the text seems to be obvious to everybody, but it wasn't for clumsy me. With best regards Claus From g4mba5 at gmail.com Fri Oct 15 23:13:32 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Oct 2021 23:13:32 +0200 Subject: [Gambas-user] Method Paint.DrawText unclear In-Reply-To: References: Message-ID: <1aff0a08-ad0f-fdb5-4e0e-68eae0271d5a@gmail.com> Le 15/10/2021 ? 22:39, Claus Dietrich a ?crit?: > The examples were provided with a different focus and without the > Alignment parameter. Of course I tried it as additional parameter. I > simply wasn't aware that the Alignment class constants are applicable in > this case. The wiki refers to a rectangle to which the text is > constrained, but I found, that a rectangle is not mandatory. That Height > can be provided without Width and vice versa and that any Height or > Width parameter repositions the text seems to be obvious to everybody, > but it wasn't for clumsy me. > > With best regards > > Claus > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I agree, the wiki page of Paint.DrawText() needs some examples to clarify the possible uses. -- Beno?t Minisini From g4mba5 at gmail.com Fri Oct 15 23:57:59 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Oct 2021 23:57:59 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> Message-ID: <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> Le 15/10/2021 ? 18:38, Beno?t Minisini a ?crit?: > Hi, > > Here is an archive that you can decompress into "~/.local/share/icons" > to use the Gambas icon theme in your desktop. > > https://we.tl/t-OfdxSQyYIM > > As the theme does not cover everything, it inherits "Papirus" and > "breeze" theme. Maybe it should inherit a specific Gnome theme too? > > The theme has been generated by code, and the code will be integrated > into the 'gb.form.stock' component source code. > > Enjoy it! > The Gambas icon theme can now be installed in your home directory directly from the option dialog of the IDE. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Sat Oct 16 20:02:48 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 16 Oct 2021 14:02:48 -0400 Subject: [Gambas-user] Bug in tray icon menu? In-Reply-To: References: Message-ID: On 10/12/21 8:13 AM, Cristiano Guadagnino wrote: > Hi all, > I think I have found a bug in the tray icon code. > > If you add a popup menu to a tray icon control programmatically (i.e. by code) and you have a submenu with items whose Radio > property?is true, the click() event is not raised and radios are not mutually exclusive (i.e. you can have more than one item > with the radio button checked). > > I am adding?a sample project. > In the project you see a couple menus, added to the main window, to a menu button and to the tray icon. They all work correctly > but for the one attached to the tray icon. > > And here are my system infos: > [System] > Gambas=3.16.3 > OperatingSystem=Linux > Kernel=5.14.6-2-default > Architecture=x86_64 > Distribution=openSUSE Tumbleweed 20211008 > Desktop=KDE5 > Font=Noto Sans,10 > Scale=7 > Theme=breeze > Language=it_IT.UTF-8 > Memory=11666M > > [Libraries] > Cairo=/usr/lib64/libcairo.so.2.11600.0 > Curl=/usr/lib64/libcurl.so.4.7.0 > DBus=/usr/lib64/libdbus-1.so.3.19.13 > GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.33 > GDK3=/usr/lib64/libgdk-3.so.0.2404.26 > GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1805.0 > GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.33 > GTK+3=/usr/lib64/libgtk-3.so.0.2404.26 > OpenGL=/usr/lib64/libGL.so.1.7.0 > Poppler=/usr/lib64/libpoppler.so.112.0.0 > Poppler=/usr/lib64/libpoppler.so.83.0.0 > Poppler=/usr/lib64/libpoppler.so.92.0.0 > Poppler=/usr/lib64/libpoppler.so.93.0.0 > QT4=/usr/lib64/libQtCore.so.4.8.7 > QT5=/usr/lib64/libQt5Core.so.5.15.2 > SDL=/usr/lib/libSDL-1.3.so.0.0.0 > SDL=/usr/lib64/libSDL-1.2.so.0.11.4 > SQLite=/usr/lib64/libsqlite3.so.0.8.6 > [snip] I confirm the tray icon menu does not behave as expected. -- Lee [System] Gambas=3.16.3 OperatingSystem=Linux Kernel=5.3.18-lp152.95-default Architecture=x86_64 Distribution=openSUSE Leap 15.2 Desktop=KDE5 Font=Noto Sans,10 Scale=7 Theme=breeze Language=en_US.UTF-8 Memory=16000M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.6.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.32 GDK3=/usr/lib64/libgdk-3.so.0.2404.16 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1603.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2404.16 OpenGL=/usr/lib64/libGL.so.1.7.0 Poppler=/usr/lib64/libpoppler.so.89.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.12.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 From gambas.fr at gmail.com Sun Oct 17 11:24:54 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 17 Oct 2021 11:24:54 +0200 Subject: [Gambas-user] Method Paint.DrawText unclear In-Reply-To: <79748fc0-3d39-3d94-81df-15df5c323a63@gmail.com> References: <12992543-08e4-fa1b-f078-dd92b326829e@freenet.de> <79748fc0-3d39-3d94-81df-15df5c323a63@gmail.com> Message-ID: you just have to imagin that the 4 values you give are a Rectangle where you draw a text ... and then the Alignment value tell how to align text in the rectangle. The text rectangle is not clipped so the text is drawn outside the rectangle if this one is too small to contain it. This allow to draw text even if you not give the height/width values By default the value of alignment is topleft. Le ven. 15 oct. 2021 ? 19:38, Beno?t Minisini a ?crit : > Le 15/10/2021 ? 19:31, Claus Dietrich a ?crit : > > The method paint.DrawText is always puzzling me, because a variation of > > Width, Height and Alignment has no visual impact and the range of > > applicable Integer parameters for Alignment is undefined. > > > > For example: The following commands provide 100% identical results: > > > > Paint.DrawText("Hello", 0, 0, 0, 0) > > > > Paint.DrawText("Hello", 0, 0, 100, 100) > > > > Paint.DrawText("Hello", 0, 0, 0) > > > > Paint.DrawText("Hello", 0, 0, 10) > > Of course: as you don't specify any alignment, top left alignment is > assumed (or top right if you use a rtl language), and so only the X and > Y drawing coordinates have an impact of the text drawing position. > > > > > and I tried several integers as Alignment-parameter without any visible > > change. Which parameters are allowed and what do they do? > > The Alignment argument is one of the Align class constants, and tells > where the text is drawn inside the specified rectangle. I don't see what > is utterly complicated here... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Oct 17 11:38:49 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 17 Oct 2021 11:38:49 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> Message-ID: Do you think about sharing a scalable version of your icons ? Regards, -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sun Oct 17 17:21:19 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sun, 17 Oct 2021 17:21:19 +0200 Subject: [Gambas-user] Method Paint.DrawText unclear Message-ID: >you just have to imagin that the 4 values you give are a Rectangle where >you draw a text ... and then the Alignment value tell how to align text in >the rectangle. >The text rectangle is not clipped so the text is drawn outside the >rectangle if this one is too small to contain it. This allow to draw text >even if you not give the height/width values >By default the value of alignment is topleft. Correct. This is what the wiki tries to say, but it is not the whole story: The following applies as well and wasn't obvious to me: 1. Height can be provided without Width and vice versa. This means, that a rectangle is not mandatory. In this case the Alignment parameter uses the Height or Width value as vertical resp. horizontal orientation value and only an according subset of the alignment parameters apply. 2. As soon as a Height and/or Width value is provided (even zero) the position of the text is offset by the height of the text (y + Height_of_Text). In other words: The upper border of the text is moved to the y-parameter instead of the lower baseline. 3. The Alignment class constants are to be applied. Regards Claus From g4mba5 at gmail.com Sun Oct 17 22:04:19 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 17 Oct 2021 22:04:19 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> Message-ID: <47e2b823-a04b-5197-afbf-0b386f81c31a@gmail.com> Le 17/10/2021 ? 11:38, Fabien Bodard a ?crit?: > Do you think about sharing a scalable version of your icons ? > > Regards, > > -- > Fabien Bodard > All the icons are PNG files, there is no scalable version. -- Beno?t Minisini From bagonergi at gmail.com Mon Oct 18 15:09:08 2021 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 18 Oct 2021 15:09:08 +0200 Subject: [Gambas-user] IDE (last master) crash Message-ID: With old program if i add code (eg Dim) i get: MHelp.InitWebViewWith.467: #11: Unknown symbol 'UnsetQuery' in class 'URL' MHelp.InitWebViewWith.467 FCompletion.timHelp_Timer.1119 With new program i get: MHelp.InitWebViewWith.467: #11: Unknown symbol 'UnsetQuery' in class 'URL' MHelp.InitWebViewWith.467 FProperty.RefreshAll.151 Project.Activate.3005 FMain.wrkProject_Activate.2777 Workspace._Activate.116 FWorkspace.ActivateWindow.484 FWorkspace.Add.131 Workspace.Add.46 Project.ShowFile.2166 Project.OpenFile.2225 FMain.tvwProject_Activate.175 _TreeView.GridView_Activate.806 GridView.ScrollArea_DblClick.1381 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 18 18:14:00 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 18 Oct 2021 18:14:00 +0200 Subject: [Gambas-user] IDE (last master) crash In-Reply-To: References: Message-ID: Le 18/10/2021 ? 15:09, Gianluigi a ?crit?: > With old program if i add code (eg Dim) i get: > > MHelp.InitWebViewWith.467: #11: Unknown symbol 'UnsetQuery' in class 'URL' > MHelp.InitWebViewWith.467 FCompletion.timHelp_Timer.1119 > > With new program i get: > > MHelp.InitWebViewWith.467: #11: Unknown symbol 'UnsetQuery' in class 'URL' > MHelp.InitWebViewWith.467 FProperty.RefreshAll.151 Project.Activate.3005 > FMain.wrkProject_Activate.2777 Workspace._Activate.116 > FWorkspace.ActivateWindow.484 FWorkspace.Add.131 Workspace.Add.46 > Project.ShowFile.2166 Project.OpenFile.2225 > FMain.tvwProject_Activate.175 _TreeView.GridView_Activate.806 > GridView.ScrollArea_DblClick.1381 > > > Regards > Gianluigi > > It should be fixed now. -- Beno?t Minisini From bagonergi at gmail.com Mon Oct 18 18:34:29 2021 From: bagonergi at gmail.com (Gianluigi Gradaschi) Date: Mon, 18 Oct 2021 18:34:29 +0200 Subject: [Gambas-user] IDE (last master) crash In-Reply-To: References: Message-ID: <09cfc212-2453-9096-fbdf-9e42f76e492c@gmail.com> Il 18/10/21 18:14, Beno?t Minisini ha scritto: > Le 18/10/2021 ? 15:09, Gianluigi a ?crit?: >> With old program if i add code (eg Dim) i get: >> >> MHelp.InitWebViewWith.467: #11: Unknown symbol 'UnsetQuery' in class >> 'URL' >> MHelp.InitWebViewWith.467 FCompletion.timHelp_Timer.1119 >> >> With new program i get: >> >> MHelp.InitWebViewWith.467: #11: Unknown symbol 'UnsetQuery' in class >> 'URL' >> MHelp.InitWebViewWith.467 FProperty.RefreshAll.151 >> Project.Activate.3005 FMain.wrkProject_Activate.2777 >> Workspace._Activate.116 FWorkspace.ActivateWindow.484 >> FWorkspace.Add.131 Workspace.Add.46 Project.ShowFile.2166 >> Project.OpenFile.2225 FMain.tvwProject_Activate.175 >> _TreeView.GridView_Activate.806 GridView.ScrollArea_DblClick.1381 >> >> >> Regards >> Gianluigi >> >> > > It should be fixed now. > Yes, thank you very much now it works fine. Regards Gianluigi From g4mba5 at gmail.com Wed Oct 20 02:41:36 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Oct 2021 02:41:36 +0200 Subject: [Gambas-user] New experimental feature : "remote" debugging Message-ID: <8328c72f-3421-c7dc-49f7-9e975c13b61f@gmail.com> Hi, In the last commit, I have implemented a new experimental feature that allows to do "remote" debugging, i.e. debug a process from the IDE that is not directly run by the IDE. With that, it is now possible to debug web applications, whose processes that handle the HTTP requests are run by the web server. If you find that useful for you too, check it and report any quirk - I have identified one problem already, but I won't tell you, it would be too easy. :-) Enjoy it. -- Beno?t Minisini From olivier.cruilles at yahoo.fr Wed Oct 20 03:22:46 2021 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Tue, 19 Oct 2021 21:22:46 -0400 Subject: [Gambas-user] New experimental feature : "remote" debugging In-Reply-To: <8328c72f-3421-c7dc-49f7-9e975c13b61f@gmail.com> References: <8328c72f-3421-c7dc-49f7-9e975c13b61f@gmail.com> Message-ID: Hello, That?s a great news, thanks, I will test it as soon is possible. Olivier Cruilles > Le 19 oct. 2021 ? 20:42, Beno?t Minisini a ?crit : > > ?Hi, > > In the last commit, I have implemented a new experimental feature that allows to do "remote" debugging, i.e. debug a process from the IDE that is not directly run by the IDE. > > With that, it is now possible to debug web applications, whose processes that handle the HTTP requests are run by the web server. > > If you find that useful for you too, check it and report any quirk - I have identified one problem already, but I won't tell you, it would be too easy. :-) > > Enjoy it. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From olivier.cruilles at yahoo.fr Wed Oct 20 14:33:12 2021 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 20 Oct 2021 08:33:12 -0400 Subject: [Gambas-user] New experimental feature : "remote" debugging In-Reply-To: References: <8328c72f-3421-c7dc-49f7-9e975c13b61f@gmail.com> Message-ID: Hi Benoit, Just a little point, can you explain quickly how to use this feature please. I understand that is for debug a remote process, as you said not started by the IDE, but not able to use this feature. Thank you Olivier Cruilles > Le 19 oct. 2021 ? 21:22, Yahoo via User a ?crit : > > Hello, > > That?s a great news, thanks, I will test it as soon is possible. > > > Olivier Cruilles > >> Le 19 oct. 2021 ? 20:42, Beno?t Minisini a ?crit : >> >> ?Hi, >> >> In the last commit, I have implemented a new experimental feature that allows to do "remote" debugging, i.e. debug a process from the IDE that is not directly run by the IDE. >> >> With that, it is now possible to debug web applications, whose processes that handle the HTTP requests are run by the web server. >> >> If you find that useful for you too, check it and report any quirk - I have identified one problem already, but I won't tell you, it would be too easy. :-) >> >> Enjoy it. >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 20 14:52:39 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Oct 2021 14:52:39 +0200 Subject: [Gambas-user] New experimental feature : "remote" debugging In-Reply-To: References: <8328c72f-3421-c7dc-49f7-9e975c13b61f@gmail.com> Message-ID: <6e07c24d-d1fa-1210-d157-781588530cf8@gmail.com> Le 20/10/2021 ? 14:33, Linus via User a ?crit?: > Hi Benoit, > > Just a little point, can you explain quickly how to use this feature please. > > I understand that is for debug a remote process, as you said not started > by the IDE, but not able to use this feature. > > Thank you > > > Olivier Cruilles > You click on the "Run remotely" menu. Then the IDE will wait for the first process that talks to him. Then you run the process that you want to debug, and it will contact the IDE provided that the process is from the same project as the project opened in the IDE. At the moment, the link relies on a symbolic link having the name of the project inside, as explained in the git log. Note that this may change in the future, by adding a key inside the executable shared with the IDE. But this may not be backward-compatible. During remote debugging, the debugged process is watched by looking at its entry in the '/proc' directory, to detect its end. This is not reliable and Linux specific. Apparently there is no reliable solution on Unix to detect the end of a process that is not a child process. If someone have any information about that problem on other Unix system, he is greatly welcome! Maybe the solution will be using a lock on a file, because locks are automatically released when a program ends. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Wed Oct 20 18:00:10 2021 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Oct 2021 09:00:10 -0700 (PDT) Subject: [Gambas-user] Variables as functions Message-ID: <1887318986.2755.1634745610769.JavaMail.zimbra@westwoodsvcs.com> It would be useful if variables could also have a type of function. This would really be useful for some applications such as dim funcList as function[] = [myfunc1, myfunc2, myfunc3] dim state as integer = 1 ....... ....... dim y as integer = funcList[state](parm1, parm2) "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Wed Oct 20 19:10:09 2021 From: isafiur at gmail.com (Safiur Rahman) Date: Wed, 20 Oct 2021 22:55:09 +0545 Subject: [Gambas-user] New experimental feature : "remote" debugging Message-ID: Hi Beno?t I want to get output of db.Debug = True in gb.web.gui I click "Run Remotely" in Debug menu of IDE. "Waiting for remote process" appears in bottom Debugging tab. But the application doesn't start (F5 doesnot work). How can I start IDE with "remote debugging" ? -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 20 20:34:21 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Oct 2021 20:34:21 +0200 Subject: [Gambas-user] New experimental feature : "remote" debugging In-Reply-To: References: Message-ID: Le 20/10/2021 ? 19:10, Safiur Rahman a ?crit?: > Hi Beno?t > > I want to get output of db.Debug = True in gb.web.gui > I click "Run Remotely" in Debug menu of IDE. "Waiting for remote > process" appears in bottom Debugging tab. But the application doesn't > start (F5 doesnot work). How can I start IDE with "remote debugging" ? > > -- > Regards > Safiur Rahman > You can't at the moment. Only the web server can see the standard error output of the a CGI script. The IDE can't. You need the ability to redirect the DEBUG instruction somewhere else. I will think about that. In the meanwhile, you can redirect the error output to your own file with "ERROR TO". -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Oct 20 23:29:57 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Oct 2021 00:29:57 +0300 Subject: [Gambas-user] New experimental feature : "remote" debugging In-Reply-To: <6e07c24d-d1fa-1210-d157-781588530cf8@gmail.com> References: <8328c72f-3421-c7dc-49f7-9e975c13b61f@gmail.com> <6e07c24d-d1fa-1210-d157-781588530cf8@gmail.com> Message-ID: > During remote debugging, the debugged process is watched by looking at > its entry in the '/proc' directory, to detect its end. > > This is not reliable and Linux specific. Apparently there is no reliable > solution on Unix to detect the end of a process that is not a child > process. > You can make it reliable (if the problem was the possibility of a new process taking the same PID), if you can look inside of /proc//status (or alternatively stat). There the first line is the name of the process and it offers other identification methods also. Stat has start time somewhere... Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Oct 20 23:50:41 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Oct 2021 00:50:41 +0300 Subject: [Gambas-user] New experimental feature : "remote" debugging In-Reply-To: References: <8328c72f-3421-c7dc-49f7-9e975c13b61f@gmail.com> <6e07c24d-d1fa-1210-d157-781588530cf8@gmail.com> Message-ID: Value 22 in /proc//stat is the starttime (value 2 is the name). Jussi On Thu, Oct 21, 2021 at 12:29 AM Jussi Lahtinen wrote: > > During remote debugging, the debugged process is watched by looking at >> its entry in the '/proc' directory, to detect its end. >> >> This is not reliable and Linux specific. Apparently there is no reliable >> solution on Unix to detect the end of a process that is not a child >> process. >> > > You can make it reliable (if the problem was the possibility of a new > process taking the same PID), if you can look inside of /proc//status > (or alternatively stat). > There the first line is the name of the process and it offers other > identification methods also. Stat has start time somewhere... > > > Jussi > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Oct 21 02:25:16 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Oct 2021 03:25:16 +0300 Subject: [Gambas-user] Variables as functions In-Reply-To: <1887318986.2755.1634745610769.JavaMail.zimbra@westwoodsvcs.com> References: <1887318986.2755.1634745610769.JavaMail.zimbra@westwoodsvcs.com> Message-ID: If you write a simple wrapper with C you can already do it like this: dim funcList as pointer[] = [myfunc1, myfunc2, myfunc3] dim state as integer = 1 ....... ....... dim y as integer = CWrapper(funcList[state], parm1, parm2) Jussi On Wed, Oct 20, 2021 at 7:01 PM Brian G wrote: > It would be useful if variables could also have a type of function. This > would really be useful for some applications > > such as > > dim funcList as function[] = [myfunc1, myfunc2, myfunc3] > dim state as integer = 1 > > ....... > ....... > > dim y as integer = funcList[state](parm1, parm2) > > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Oct 21 15:24:46 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 21 Oct 2021 06:24:46 -0700 (PDT) Subject: [Gambas-user] Variables as functions In-Reply-To: References: <1887318986.2755.1634745610769.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <27173814.3160.1634822686193.JavaMail.zimbra@westwoodsvcs.com> Yes I understand this can easily be a c wrapper, but we already have on x gosub, which can be used to implement a very fast State or Event driven application. It would be nice if some context information could be passed as well in those situations... Yes I know there are plenty of work around.. Also adding a c wrapper also raises the issue of having to include an external c lib to the distribution. I do use plenty of C externs in my applications where it is expedient, but always well established Linux/BSD/Unix libraries... I thought this would be a very powerful and useful extension to the language. I am not sure if others do this sort of thing, but there you have a couple of reasons I was asking about it. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Oct 20, 2021, at 5:25 PM, Jussi Lahtinen wrote: > If you write a simple wrapper with C you can already do it like this: > dim funcList as pointer[] = [myfunc1, myfunc2, myfunc3] > dim state as integer = 1 > ....... > ....... > dim y as integer = CWrapper(funcList[state], parm1, parm2) > Jussi > On Wed, Oct 20, 2021 at 7:01 PM Brian G < [ mailto:brian at westwoodsvcs.com | > brian at westwoodsvcs.com ] > wrote: >> It would be useful if variables could also have a type of function. This would >> really be useful for some applications >> such as >> dim funcList as function[] = [myfunc1, myfunc2, myfunc3] >> dim state as integer = 1 >> ....... >> ....... >> dim y as integer = funcList[state](parm1, parm2) >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G >> ----[ [ http://gambaswiki.org/wiki/doc/netiquette | >> http://gambaswiki.org/wiki/doc/netiquette ] ]---- > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Oct 21 18:27:09 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 21 Oct 2021 18:27:09 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <47e2b823-a04b-5197-afbf-0b386f81c31a@gmail.com> References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> <47e2b823-a04b-5197-afbf-0b386f81c31a@gmail.com> Message-ID: Le dim. 17 oct. 2021 ? 22:05, Beno?t Minisini a ?crit : > Le 17/10/2021 ? 11:38, Fabien Bodard a ?crit : > > Do you think about sharing a scalable version of your icons ? > > > > Regards, > > > > -- > > Fabien Bodard > > > > All the icons are PNG files, there is no scalable version. > Ha ok :-) > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Oct 21 22:17:15 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Oct 2021 23:17:15 +0300 Subject: [Gambas-user] Variables as functions In-Reply-To: <27173814.3160.1634822686193.JavaMail.zimbra@westwoodsvcs.com> References: <1887318986.2755.1634745610769.JavaMail.zimbra@westwoodsvcs.com> <27173814.3160.1634822686193.JavaMail.zimbra@westwoodsvcs.com> Message-ID: > I thought this would be a very powerful and useful extension to the > language. > I agree it would be a nice thing to have. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Oct 21 22:54:10 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Oct 2021 22:54:10 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> <47e2b823-a04b-5197-afbf-0b386f81c31a@gmail.com> Message-ID: <3cfa54bb-00d1-7abb-8bf1-54f4dbb70e8a@gmail.com> Le 21/10/2021 ? 18:27, Fabien Bodard a ?crit?: > > > Le?dim. 17 oct. 2021 ??22:05, Beno?t Minisini > a ?crit?: > > Le 17/10/2021 ? 11:38, Fabien Bodard a ?crit?: > > Do you think about sharing a scalable version of your icons ? > > > > Regards, > > > > -- > > Fabien Bodard > > > > All the icons are PNG files, there is no scalable version. > > > Ha ok :-) > But the icons are intended to be simple, so they are "vectorizable" easily. It just need someone who have a bit of time and who is easy with Inkscape too, that I'm not! -- Beno?t Minisini From g4mba5 at gmail.com Thu Oct 21 22:55:43 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Oct 2021 22:55:43 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <3cfa54bb-00d1-7abb-8bf1-54f4dbb70e8a@gmail.com> References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> <47e2b823-a04b-5197-afbf-0b386f81c31a@gmail.com> <3cfa54bb-00d1-7abb-8bf1-54f4dbb70e8a@gmail.com> Message-ID: <904552fe-3663-41a9-62ac-7ede5794c129@gmail.com> Le 21/10/2021 ? 22:54, Beno?t Minisini a ?crit?: > Le 21/10/2021 ? 18:27, Fabien Bodard a ?crit?: >> >> >> Le?dim. 17 oct. 2021 ??22:05, Beno?t Minisini > > a ?crit?: >> >> ??? Le 17/10/2021 ? 11:38, Fabien Bodard a ?crit?: >> ???? > Do you think about sharing a scalable version of your icons ? >> ???? > >> ???? > Regards, >> ???? > >> ???? > -- >> ???? > Fabien Bodard >> ???? > >> >> ??? All the icons are PNG files, there is no scalable version. >> >> >> Ha ok :-) >> > > But the icons are intended to be simple, so they are "vectorizable" > easily. It just need someone who have a bit of time and who is easy with > Inkscape too, that I'm not! > And another problem with svg icons: SVG support in Qt is buggy since version 4, and has never been fixed. I sometimes see svg icons incorrectly displayed in KDE. Apparently, no KDE icon has a problem, so I guess the KDE icons designer know how to avoid the bugs. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu Oct 21 23:20:01 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 22 Oct 2021 00:20:01 +0300 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <3cfa54bb-00d1-7abb-8bf1-54f4dbb70e8a@gmail.com> References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> <47e2b823-a04b-5197-afbf-0b386f81c31a@gmail.com> <3cfa54bb-00d1-7abb-8bf1-54f4dbb70e8a@gmail.com> Message-ID: > But the icons are intended to be simple, so they are "vectorizable" > easily. It just need someone who have a bit of time and who is easy with > Inkscape too, that I'm not! > I think there is software that can do it automatically by using approximations of the shapes. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Oct 22 11:31:10 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 22 Oct 2021 11:31:10 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: References: <3c0a0481-f141-aefa-2a78-ec238a196b51@gmail.com> <86984cdb-5458-7064-8c83-e2b249519ddd@gmail.com> <47e2b823-a04b-5197-afbf-0b386f81c31a@gmail.com> <3cfa54bb-00d1-7abb-8bf1-54f4dbb70e8a@gmail.com> Message-ID: on my tries with inkscape vectorisation tool there is some difficulties on border shadows and blur. well this is not an urgent job :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Oct 22 15:37:37 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 22 Oct 2021 15:37:37 +0200 Subject: [Gambas-user] Strange thing with Instr Message-ID: Why this sentence return me alway 0 ? Print InStr("n", "abcdefghijklmnopqrstuvwxyz0123456789", 0, gb.IgnoreCase) Have I made something wrong ? If not is it also the case for others ? -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Oct 22 15:39:39 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 22 Oct 2021 15:39:39 +0200 Subject: [Gambas-user] Strange thing with Instr In-Reply-To: References: Message-ID: Forget ...hahaha ... I need really to sleep a lot ... en dof harvesting I presume.. I've inverted string and pattern, shame on me Le ven. 22 oct. 2021 ? 15:37, Fabien Bodard a ?crit : > > Why this sentence return me alway 0 ? > > Print InStr("n", "abcdefghijklmnopqrstuvwxyz0123456789", 0, gb.IgnoreCase) > > > Have I made something wrong ? > > If not is it also the case for others ? > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Oct 24 10:49:19 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 24 Oct 2021 10:49:19 +0200 Subject: [Gambas-user] A question about Form_Open Event Message-ID: Hi Benoit, It seem that the Form_Open event is not raised when the form is embedded in a container. What is the best way to achieve an init on first load only ? _Load ? And finally, why this event is not fired on this case ? Best regards, -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From criguada at gmail.com Mon Oct 25 12:14:58 2021 From: criguada at gmail.com (Cristiano Guadagnino) Date: Mon, 25 Oct 2021 12:14:58 +0200 Subject: [Gambas-user] Creating a balloon pointing at a tray icon Message-ID: Hi Benoit, is it possible to create a balloon pointing at a tray icon? When I try to do it, I get a message saying "Type not corresponding: looking for Control, found TrayIcon" (approximately... I am translating from Italian). However, looking at the "control" class I see that everything derives from "control", except the "menu" class. So TrayIcon should be derived from "control" too. It it a bug? Attached you see a screenshot of the message. Thank you in advance Cris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_20211025_112242.png Type: image/png Size: 17154 bytes Desc: not available URL: From g4mba5 at gmail.com Mon Oct 25 14:42:01 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 25 Oct 2021 14:42:01 +0200 Subject: [Gambas-user] Creating a balloon pointing at a tray icon In-Reply-To: References: Message-ID: <31e8ea02-5d8c-d572-52f4-b931bd473714@gmail.com> Le 25/10/2021 ? 12:14, Cristiano Guadagnino a ?crit?: > Hi Benoit, > is it possible to create a balloon pointing?at a tray icon? > When I try to do it, I get a message saying "Type not corresponding: > looking for Control, found TrayIcon" (approximately... I am translating > from Italian). > However, looking at the "control" class I see that everything derives > from "control", except the "menu" class. So TrayIcon should be derived > from "control" too. > It it a bug? > > Attached you see a screenshot of the message. > > Thank you in advance > Cris > Not really. The system tray is now entirely controlled by the desktop. You can just give an icon, a menu, and a text, and the desktop does what it wants with that. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Oct 25 17:04:06 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 25 Oct 2021 16:04:06 +0100 Subject: [Gambas-user] Creating a balloon pointing at a tray icon In-Reply-To: References: Message-ID: As system tray uses DBus you could use a DBus desktop notification instead... DBus["session://org.freedesktop.Notifications"]["/org/freedesktop/Notifications", "org.freedesktop.Notifications"].Notify("", 0, "", "Hello world!", "This is the notification body.", Null, Null, 3000) BruceS On Mon, 25 Oct 2021 at 11:18, Cristiano Guadagnino wrote: > Hi Benoit, > is it possible to create a balloon pointing at a tray icon? > When I try to do it, I get a message saying "Type not corresponding: > looking for Control, found TrayIcon" (approximately... I am translating > from Italian). > However, looking at the "control" class I see that everything derives from > "control", except the "menu" class. So TrayIcon should be derived from > "control" too. > It it a bug? > > Attached you see a screenshot of the message. > > Thank you in advance > Cris > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Oct 25 20:32:31 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 25 Oct 2021 20:32:31 +0200 Subject: [Gambas-user] Creating a balloon pointing at a tray icon In-Reply-To: References: Message-ID: Or just re writing the notification dbus service :-) Le lun. 25 oct. 2021 ? 17:05, Bruce Steers a ?crit : > As system tray uses DBus you could use a DBus desktop notification > instead... > > DBus["session://org.freedesktop.Notifications"]["/org/freedesktop/Notifications", > "org.freedesktop.Notifications"].Notify("", 0, "", "Hello world!", "This is > the notification body.", Null, Null, 3000) > > BruceS > > > On Mon, 25 Oct 2021 at 11:18, Cristiano Guadagnino > wrote: > >> Hi Benoit, >> is it possible to create a balloon pointing at a tray icon? >> When I try to do it, I get a message saying "Type not corresponding: >> looking for Control, found TrayIcon" (approximately... I am translating >> from Italian). >> However, looking at the "control" class I see that everything derives >> from "control", except the "menu" class. So TrayIcon should be derived from >> "control" too. >> It it a bug? >> >> Attached you see a screenshot of the message. >> >> Thank you in advance >> Cris >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From criguada at gmail.com Tue Oct 26 12:10:12 2021 From: criguada at gmail.com (Cristiano Guadagnino) Date: Tue, 26 Oct 2021 12:10:12 +0200 Subject: [Gambas-user] Creating a balloon pointing at a tray icon In-Reply-To: References: Message-ID: Thank you Bruce!! This saved my day ;-) Cris [image: cloudHQ] Powered by cloudHQ Il giorno lun 25 ott 2021 alle ore 17:05 Bruce Steers ha scritto: > As system tray uses DBus you could use a DBus desktop notification > instead... > > DBus["session://org.freedesktop.Notifications"]["/org/freedesktop/Notifications", > "org.freedesktop.Notifications"].Notify("", 0, "", "Hello world!", "This is > the notification body.", Null, Null, 3000) > > BruceS > > > On Mon, 25 Oct 2021 at 11:18, Cristiano Guadagnino > wrote: > >> Hi Benoit, >> is it possible to create a balloon pointing at a tray icon? >> When I try to do it, I get a message saying "Type not corresponding: >> looking for Control, found TrayIcon" (approximately... I am translating >> from Italian). >> However, looking at the "control" class I see that everything derives >> from "control", except the "menu" class. So TrayIcon should be derived from >> "control" too. >> It it a bug? >> >> Attached you see a screenshot of the message. >> >> Thank you in advance >> Cris >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Oct 26 16:12:54 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 26 Oct 2021 15:12:54 +0100 Subject: [Gambas-user] Creating a balloon pointing at a tray icon In-Reply-To: <31e8ea02-5d8c-d572-52f4-b931bd473714@gmail.com> References: <31e8ea02-5d8c-d572-52f4-b931bd473714@gmail.com> Message-ID: On Mon, 25 Oct 2021 at 13:43, Beno?t Minisini wrote: > Le 25/10/2021 ? 12:14, Cristiano Guadagnino a ?crit : > > Hi Benoit, > > is it possible to create a balloon pointing at a tray icon? > > When I try to do it, I get a message saying "Type not corresponding: > > looking for Control, found TrayIcon" (approximately... I am translating > > from Italian). > > However, looking at the "control" class I see that everything derives > > from "control", except the "menu" class. So TrayIcon should be derived > > from "control" too. > > It it a bug? > > > > Attached you see a screenshot of the message. > > > > Thank you in advance > > Cris > > > > Not really. The system tray is now entirely controlled by the desktop. > You can just give an icon, a menu, and a text, and the desktop does what > it wants with that. > > Regards, > > -- > Beno?t Minisini > Just getting the x/y co-ords of the icon would be very useful, is it not possible? i've wanted to know if the icon was top or bottom of screen so a pop up window would be placed correctly. It would also work for balloons as x.y could be given. respects. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Oct 26 16:18:38 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 26 Oct 2021 15:18:38 +0100 Subject: [Gambas-user] Creating a balloon pointing at a tray icon In-Reply-To: References: Message-ID: Do we have a DBus desktop Notify() ? could be a good addition. :) BruceS On Mon, 25 Oct 2021 at 19:33, Fabien Bodard wrote: > Or just re writing the notification dbus service :-) > > Le lun. 25 oct. 2021 ? 17:05, Bruce Steers a ?crit : > >> As system tray uses DBus you could use a DBus desktop notification >> instead... >> >> DBus["session://org.freedesktop.Notifications"]["/org/freedesktop/Notifications", >> "org.freedesktop.Notifications"].Notify("", 0, "", "Hello world!", "This is >> the notification body.", Null, Null, 3000) >> >> BruceS >> >> >> On Mon, 25 Oct 2021 at 11:18, Cristiano Guadagnino >> wrote: >> >>> Hi Benoit, >>> is it possible to create a balloon pointing at a tray icon? >>> When I try to do it, I get a message saying "Type not corresponding: >>> looking for Control, found TrayIcon" (approximately... I am translating >>> from Italian). >>> However, looking at the "control" class I see that everything derives >>> from "control", except the "menu" class. So TrayIcon should be derived from >>> "control" too. >>> It it a bug? >>> >>> Attached you see a screenshot of the message. >>> >>> Thank you in advance >>> Cris >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Oct 26 16:22:15 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 26 Oct 2021 15:22:15 +0100 Subject: [Gambas-user] Creating a balloon pointing at a tray icon In-Reply-To: References: Message-ID: On Tue, 26 Oct 2021 at 11:11, Cristiano Guadagnino wrote: > Thank you Bruce!! > This saved my day ;-) > > Cris > [image: cloudHQ] Powered by > cloudHQ > > Il giorno lun 25 ott 2021 alle ore 17:05 Bruce Steers > ha scritto: > >> As system tray uses DBus you could use a DBus desktop notification >> instead... >> >> DBus["session://org.freedesktop.Notifications"]["/org/freedesktop/Notifications", >> "org.freedesktop.Notifications"].Notify("", 0, "", "Hello world!", "This is >> the notification body.", Null, Null, 3000) >> >> BruceS >> >> >> On Mon, 25 Oct 2021 at 11:18, Cristiano Guadagnino >> wrote: >> >>> Hi Benoit, >>> is it possible to create a balloon pointing at a tray icon? >>> When I try to do it, I get a message saying "Type not corresponding: >>> looking for Control, found TrayIcon" (approximately... I am translating >>> from Italian). >>> However, looking at the "control" class I see that everything derives >>> from "control", except the "menu" class. So TrayIcon should be derived from >>> "control" too. >>> It it a bug? >>> >>> Attached you see a screenshot of the message. >>> >>> Thank you in advance >>> Cris >>> >>> You are welcome, there is more to the Notify() command like giving icons and stuff. see here... https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html I've not used it much so cannot really help further, I'm just good with alternatives :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Oct 28 00:16:07 2021 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 Oct 2021 15:16:07 -0700 (PDT) Subject: [Gambas-user] Unable to build gb.form.htmlview Message-ID: <1688386861.4472.1635372967890.JavaMail.zimbra@westwoodsvcs.com> What needs to be installed to fix this || || Unable to find file: html.h || Unable to find file: gumbo.h || Unable to find file: libgumbo.so || Unable to find file: liblitehtml.so || gb.form.htmlview is disabled || New with latest main branch "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Oct 28 22:24:59 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 28 Oct 2021 23:24:59 +0300 Subject: [Gambas-user] =?utf-8?q?No_mails_for_two_day?= Message-ID: <1635452699.446249276@f8.my.com> Is the email working correctly, not been getting anything. -- Thanks Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Oct 28 22:30:56 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 28 Oct 2021 22:30:56 +0200 Subject: [Gambas-user] No mails for two day In-Reply-To: <1635452699.446249276@f8.my.com> References: <1635452699.446249276@f8.my.com> Message-ID: Il giorno gio 28 ott 2021 alle ore 22:26 Brian G ha scritto: > Is the email working correctly, not been getting anything. > > -- > Thanks > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I get your mails on the mailing list Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Thu Oct 28 23:45:16 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Thu, 28 Oct 2021 23:45:16 +0200 (CEST) Subject: [Gambas-user] Error with VarPtr() function Message-ID: Hello, if I run this simple code: =================== ?? Private s As String ?? Public Sub Main() ? ??????? Dim p As Pointer ??? ? ??? s = "abcde" ?? ????????? p = VarPtr(s) ?? End ===================== I obtain this error window message: ? This application has raised an unexpected error and must abort. ?? System error #3: Nessun processo corrisponde (#42) ?? Design.TimerWatch_Timer.1777? ? regards vuott P.s. my system: Gambas=3.16.90 57916c6 (master) OperatingSystem=Linux Kernel=5.11.0-38-generic Architecture=x86_64 Distribution=Linux Mint 20.2 Uma Desktop=Cinnamon Font=Ubuntu,10 Scale=7 Theme=mint-y Language=it_IT.UTF-8 Memory=5380M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri Oct 29 00:47:43 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Fri, 29 Oct 2021 01:47:43 +0300 Subject: [Gambas-user] =?utf-8?q?Error_with_VarPtr=28=29__function?= In-Reply-To: References: Message-ID: <1635461263.168140493@f24.my.com> S is a pointer when passed to extern functions, So varptr does not work here If you need a pointer do the following Extern getptr(dst as string, src as string, len as integer) as pointer in "libc:6 exec "memcpy" In your code Dim s as string = "ssdffghhhjj" Dim a as pointer = getptr(s,s,0) It returns the actual pointer to the string.... Be very careful it does not go out of scope Not a good idea if you don't really really know what you are doing. -- Thanks Brian G Thursday, 28 October 2021, 02:52PM -07:00 from vuott--- via User user at lists.gambas-basic.org : >Hello, >if I run this simple code: > >=================== >?? Private s As String > > >?? Public Sub Main() >? >??????? Dim p As Pointer > >??? ? ??? s = "abcde" >?? >????????? p = VarPtr(s) > >?? End >===================== > >I obtain this error window message: > >? This application has raised an unexpected error and must abort. >?? System error #3: Nessun processo corrisponde (#42) >?? Design.TimerWatch_Timer.1777? ? > >regards >vuott > >P.s. my system: > >Gambas=3.16.90 57916c6 (master) >OperatingSystem=Linux >Kernel=5.11.0-38-generic >Architecture=x86_64 >Distribution=Linux Mint 20.2 Uma >Desktop=Cinnamon >Font=Ubuntu,10 >Scale=7 >Theme=mint-y >Language=it_IT.UTF-8 >Memory=5380M > >[Libraries] >Cairo=libcairo.so.2.11600.0 >Curl=libcurl.so.4.6.0 >DBus=libdbus-1.so.3.19.11 >GDK2=libgdk-x11-2.0.so.0.2400.32 >GDK3=libgdk-3.so.0.2404.16 >GStreamer=libgstreamer-1.0.so.0.1602.0 >GTK+2=libgtk-x11-2.0.so.0.2400.32 >GTK+3=libgtk-3.so.0.2404.16 >OpenGL=libGL.so.1.7.0 >Poppler=libpoppler.so.97.0.0 >QT5=libQt5Core.so.5.12.8 >SDL=libSDL-1.2.so.0.11.4 >SQLite=libsqlite3.so.0.8.6 > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Oct 29 02:47:07 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 29 Oct 2021 02:47:07 +0200 Subject: [Gambas-user] Error with VarPtr() function In-Reply-To: References: Message-ID: <69b30210-8ddc-fc96-cd8d-5c4f513393fa@gmail.com> Le 28/10/2021 ? 23:45, vuott--- via User a ?crit?: > Hello, > if I run this simple code: > > =================== > ?? Private s As String > > > ?? Public Sub Main() > > ??????? Dim p As Pointer > > ??? ? ??? s = "abcde" > > ????????? p = VarPtr(s) > > ?? End > ===================== > > I obtain this error window message: > > ? This application has raised an unexpected error and must abort. > ?? System error #3: Nessun processo corrisponde (#42) > ?? Design.TimerWatch_Timer.1777? ? > > regards > vuott > Is it fixed by the last commit? This should be a race condition not related to your code at all. -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Oct 29 02:57:03 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 29 Oct 2021 03:57:03 +0300 Subject: [Gambas-user] Error with VarPtr() function In-Reply-To: <1635461263.168140493@f24.my.com> References: <1635461263.168140493@f24.my.com> Message-ID: > > S is a pointer when passed to extern functions, > So varptr does not work here > No, it is OK for global strings. You can read it with String@(Pointer@(p)). Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri Oct 29 02:51:14 2021 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Fri, 29 Oct 2021 03:51:14 +0300 Subject: [Gambas-user] =?utf-8?q?Error_with_VarPtr=28=29_function?= In-Reply-To: <69b30210-8ddc-fc96-cd8d-5c4f513393fa@gmail.com> References: <69b30210-8ddc-fc96-cd8d-5c4f513393fa@gmail.com> Message-ID: <1635468674.235456163@f40.my.com> I was wrong.... S was public... Sorry -- Thanks Brian G Thursday, 28 October 2021, 05:48PM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 28/10/2021 ? 23:45, vuott--- via User a ?crit?: > Hello, > if I run this simple code: > > =================== > ?? Private s As String > > > ?? Public Sub Main() > > ??????? Dim p As Pointer > > ??? ? ??? s = "abcde" > > ????????? p = VarPtr(s) > > ?? End > ===================== > > I obtain this error window message: > > ? This application has raised an unexpected error and must abort. > ?? System error #3: Nessun processo corrisponde (#42) > ?? Design.TimerWatch_Timer.1777? ? > > regards > vuott > > >Is it fixed by the last commit? > >This should be a race condition not related to your code at all. > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Oct 29 12:07:54 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 29 Oct 2021 12:07:54 +0200 Subject: [Gambas-user] Unable to build gb.form.htmlview In-Reply-To: <1688386861.4472.1635372967890.JavaMail.zimbra@westwoodsvcs.com> References: <1688386861.4472.1635372967890.JavaMail.zimbra@westwoodsvcs.com> Message-ID: You need to install libgumbo-dev and then do ./reconf-all ./configure -C ... etc Le jeu. 28 oct. 2021 ? 00:33, Brian G a ?crit : > What needs to be installed to fix this > > || > || Unable to find file: html.h > || Unable to find file: gumbo.h > || Unable to find file: libgumbo.so > || Unable to find file: liblitehtml.so > || gb.form.htmlview is disabled > || > > New with latest main branch > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Oct 29 12:10:07 2021 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 29 Oct 2021 12:10:07 +0200 Subject: [Gambas-user] Unable to build gb.form.htmlview In-Reply-To: References: <1688386861.4472.1635372967890.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Oups sorry and Warnig, You don't need to install libgumbo anymore now because Benoit have integrated the full gumbo code in the component code... no need of any new dependencies... cool :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Oct 29 12:43:24 2021 From: adamnt42 at gmail.com (bb) Date: Fri, 29 Oct 2021 21:13:24 +1030 Subject: [Gambas-user] Unable to build gb.form.htmlview In-Reply-To: References: <1688386861.4472.1635372967890.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <44265b229afa6f200fde7b728bf12a3156d743f0.camel@gmail.com> On Fri, 2021-10-29 at 12:10 +0200, Fabien Bodard wrote: > Oups sorry and Warnig, > > You don't need to install libgumbo anymore now because Benoit have > integrated the full gumbo code in the component code... no need of > any new > dependencies... cool :-) > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Which is good, I think. Whatever it is/was? The web site is specious. > "integrated the full gumbo code in the component code" > -> which component? So I can find out more. cheers bruce From vuott at tutanota.com Fri Oct 29 14:12:10 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Fri, 29 Oct 2021 14:12:10 +0200 (CEST) Subject: [Gambas-user] Error with VarPtr() function In-Reply-To: <69b30210-8ddc-fc96-cd8d-5c4f513393fa@gmail.com> References: <69b30210-8ddc-fc96-cd8d-5c4f513393fa@gmail.com> Message-ID: Yes, now it works. thank you 29 ott 2021, 02:47 da g4mba5 at gmail.com: > Le 28/10/2021 ? 23:45, vuott--- via User a ?crit?: > >> Hello, >> if I run this simple code: >> >> =================== >> ?? Private s As String >> >> >> ?? Public Sub Main() >> >> ??????? Dim p As Pointer >> >> ??? ? ??? s = "abcde" >> >> ????????? p = VarPtr(s) >> >> ?? End >> ===================== >> >> I obtain this error window message: >> >> ? This application has raised an unexpected error and must abort. >> ?? System error #3: Nessun processo corrisponde (#42) >> ?? Design.TimerWatch_Timer.1777? ? >> >> regards >> vuott >> > > Is it fixed by the last commit? > > This should be a race condition not related to your code at all. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at lixce.com Fri Oct 29 04:32:59 2021 From: james at lixce.com (james at lixce.com) Date: Fri, 29 Oct 2021 02:32:59 GMT Subject: [Gambas-user] How to stop a gb.inotify watch Message-ID: In my gb.qt5.webview based web browser I'm starting a file watch with: wchLink = New Watch("/tmp/Cntrl_lixce-nexus", True) As "extCntl" and then monitor for other programs to write a URL to that file. Everything works great but I cannot figure out how to stop the watch so that I can close the program gracefully. Tried using a pipe instead but it slows the browser to an absolute crawl, and I am avoiding dbus. I was using: Public Sub Form_Close() Try Kill "/tmp/Cntrl_lixce-nexus" 'segfaults with or without this line Wait Quit End Which effectively forces the program to exit but it is very ugly ending in a segfault. I'm currently using: Public Sub Form_Close() Try Kill "/tmp/Cntrl_lixce-nexus" Wait Exec ["kill", Application.Id] End Which is a little more graceful (no segfault) but is still pretty ugly. The inotify man 7 page shows an "inotify_rm_watch" command but I don't know of any way to call it from Gambas. Any insight would be greatly appreciated. J. Jordan From tobs at taboege.de Fri Oct 29 19:54:51 2021 From: tobs at taboege.de (Tobias Boege) Date: Fri, 29 Oct 2021 19:54:51 +0200 Subject: [Gambas-user] How to stop a gb.inotify watch In-Reply-To: <20211029173201.928DA20164F1@h08.hostsharing.net> References: <20211029173201.928DA20164F1@h08.hostsharing.net> Message-ID: <20211029175451.GC1105473@T580.localdomain> On Fri, 29 Oct 2021, james at lixce.com wrote: > In my gb.qt5.webview based web browser I'm starting a file watch with: > > wchLink = New Watch("/tmp/Cntrl_lixce-nexus", True) As "extCntl" > > and then monitor for other programs to write a URL to that file. > > Everything works great but I cannot figure out how to stop the watch so that I can close the program gracefully. Tried using a pipe instead but it slows the browser to an absolute crawl, and I am avoiding dbus. > > I was using: > > Public Sub Form_Close() > Try Kill "/tmp/Cntrl_lixce-nexus" 'segfaults with or without this line > Wait > Quit > End > > Which effectively forces the program to exit but it is very ugly ending in a segfault. > A Gambas program should not segfault at all if you're not playing with its memory directly. This is probably a bug worth diagnosing, making a minimal reproducing example for and then reporting on the bugtracker. > I'm currently using: > > Public Sub Form_Close() > Try Kill "/tmp/Cntrl_lixce-nexus" > Wait > Exec ["kill", Application.Id] > End > > Which is a little more graceful (no segfault) but is still pretty ugly. > > The inotify man 7 page shows an "inotify_rm_watch" command but I don't know of any way to call it from Gambas. > The watch is removed with inotify_rm_watch when the Watch object gets destroyed. This happens automatically in Gambas when its reference count drops to zero. If wchLink is the only variable holding a reference, then you do wchLink = Null to force the destruction and removal of the watch. If no more watches are active, then gb.inotify will release the backing inotify file descriptor and your program will be able to stop. If your goal is to give other processes a way to send instructions to your browser, another alternative is using a UNIX server socket from gb.net. This is also fully event-based. But unlike a file, it allows bidirectional communication in case you ever need it and you get one orderly socket per requester instead of having to worry about con- current writes to a single file. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Fri Oct 29 20:18:10 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 29 Oct 2021 21:18:10 +0300 Subject: [Gambas-user] How to stop a gb.inotify watch In-Reply-To: <20211029173201.8AC0A201634F@h08.hostsharing.net> References: <20211029173201.8AC0A201634F@h08.hostsharing.net> Message-ID: Do not use "wait" inside of an event handler (undefined behaviour). Use sleep instead. Jussi On Fri, Oct 29, 2021 at 8:32 PM wrote: > In my gb.qt5.webview based web browser I'm starting a file watch with: > > wchLink = New Watch("/tmp/Cntrl_lixce-nexus", True) As "extCntl" > > and then monitor for other programs to write a URL to that file. > > Everything works great but I cannot figure out how to stop the watch so > that I can close the program gracefully. Tried using a pipe instead but it > slows the browser to an absolute crawl, and I am avoiding dbus. > > I was using: > > Public Sub Form_Close() > Try Kill "/tmp/Cntrl_lixce-nexus" 'segfaults with or without this line > Wait > Quit > End > > Which effectively forces the program to exit but it is very ugly ending in > a segfault. > > I'm currently using: > > Public Sub Form_Close() > Try Kill "/tmp/Cntrl_lixce-nexus" > Wait > Exec ["kill", Application.Id] > End > > Which is a little more graceful (no segfault) but is still pretty ugly. > > The inotify man 7 page shows an "inotify_rm_watch" command but I don't > know of any way to call it from Gambas. > > Any insight would be greatly appreciated. > > J. Jordan > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at lixce.com Sat Oct 30 03:39:26 2021 From: james at lixce.com (james at lixce.com) Date: Sat, 30 Oct 2021 01:39:26 GMT Subject: [Gambas-user] Stop iNotify Watch Message-ID: Tobias: Thank you! wchLink = Null is exactly what I was looking for and works perfectly. I'll take a look at a server socket when I get some time but really like the simplicity of a watched file and have writing to it implemented in a dozen or so programs. Benoit: I will make a minimal segfault causing program as soon as I get some time. I'm really good at breaking things. Jussi: Uh, thanks... Overall the new WebView component works fantastic, much more reliable and (web) capable than the older WebKit based component, I have not been able to make it crash. I'm using it in my daily-driver web browser and it has allowed me to finally banish Chrome/Chromium from most of my systems. Yes, I know WebView is based on the Blink engine so I am not really banishing Google. With gb.qt5.webview I can even watch NetFlix in Gambas on my x86 sytems (not on ARM64 yet, no widevine). I still have Falkon installed for web-emergencies as it actually does NOT pull in any KDE junk, which is important to me. Regards, J. From jussi.lahtinen at gmail.com Sat Oct 30 17:59:57 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 30 Oct 2021 18:59:57 +0300 Subject: [Gambas-user] Stop iNotify Watch In-Reply-To: <20211030154001.A2F08201BEC8@h08.hostsharing.net> References: <20211030154001.A2F08201BEC8@h08.hostsharing.net> Message-ID: > > Jussi: Uh, thanks... > ? >From the documentation: *"If you call WAIT from an event handler, you may create infinite recursions, and then stack overflows."* https://gambaswiki.org/wiki/lang/wait So, I recommend to correct that, before anything else. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Sat Oct 30 18:29:16 2021 From: tobs at taboege.de (Tobias Boege) Date: Sat, 30 Oct 2021 18:29:16 +0200 Subject: [Gambas-user] Stop iNotify Watch In-Reply-To: References: <20211030154001.A2F08201BEC8@h08.hostsharing.net> Message-ID: <20211030162916.GC1844452@T580.localdomain> On Sat, 30 Oct 2021, Jussi Lahtinen wrote: > > > > Jussi: Uh, thanks... > > > > ? > From the documentation: *"If you call WAIT from an event handler, you may > create infinite recursions, and then stack overflows."* > https://gambaswiki.org/wiki/lang/wait > > So, I recommend to correct that, before anything else. > Yes, and the overflowing stack causes a segfault. But in this case, it is probably not caused by the event loop being called recursively with Wait, but by something very similar. The documentation also says: http://gambaswiki.org/wiki/lang/quit: > This instruction is not very successful in freeing things with > GUI programs. So you should use it only with console applications. Without having read the GUI source code, I could imagine that calling Quit from Form_Close causes infinite recursion, stack exhaustion and thus the segfault. Form_Close is part of the graceful shutdown process of the GUI application, but at the time the event handler runs, the window still exists. You interrupt the shutdown process to start a new one by calling Quit and the window, still existing because one of its event handlers is still running, fires the Close event recursively. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Sat Oct 30 22:25:37 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 30 Oct 2021 23:25:37 +0300 Subject: [Gambas-user] Stop iNotify Watch In-Reply-To: <20211030162916.GC1844452@T580.localdomain> References: <20211030154001.A2F08201BEC8@h08.hostsharing.net> <20211030162916.GC1844452@T580.localdomain> Message-ID: > Yes, and the overflowing stack causes a segfault. But in this case, it is > probably not caused by the event loop being called recursively with Wait, > but by something very similar > I don't know enough details to really say for sure, but if wait is used inside an event handle, wouldn't that mean commands of two (or more) different event handlers can be executed in kinda mixed order. I would not expect things to work correctly even without infinite recursion. IE, this: Public Sub Form_Close() Try Kill "/tmp/Cntrl_lixce-nexus" 'segfaults with or without this line Wait Quit End Can change on fly for example into this: Public Sub Form_Close() Try Kill "/tmp/Cntrl_lixce-nexus" 'segfaults with or without this line Process_Kill() '' or some other event handler, which could also contain wait and so on... Quit End Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Sat Oct 30 22:55:04 2021 From: tobs at taboege.de (Tobias Boege) Date: Sat, 30 Oct 2021 22:55:04 +0200 Subject: [Gambas-user] Stop iNotify Watch In-Reply-To: References: <20211030154001.A2F08201BEC8@h08.hostsharing.net> <20211030162916.GC1844452@T580.localdomain> Message-ID: <20211030205504.GD1844452@T580.localdomain> On Sat, 30 Oct 2021, Jussi Lahtinen wrote: > > Yes, and the overflowing stack causes a segfault. But in this case, it is > > probably not caused by the event loop being called recursively with Wait, > > but by something very similar > > > > I don't know enough details to really say for sure, but if wait is used > inside an event handle, wouldn't that mean commands of two (or more) > different event handlers can be executed in kinda mixed order. > I would not expect things to work correctly even without infinite recursion. > You are definitely right. I was just trying to say that in this case, the segfault happens deterministically with Quit inside Form_Close, even with- out the Wait. In general, Wait inside event handlers is dangerous. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From vuott at tutanota.com Sun Oct 31 01:41:46 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 31 Oct 2021 01:41:46 +0200 (CEST) Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" Message-ID: Hello, with? Master "bfddf7d4" I obtain these errors: Compiling 'gb.form.htmlview' component... gbc3: error: Component not found: gb.form Compiling 'gb.form.htmlview' component... gbc3: error: Component not found: gb.form Installing 'gb.form.htmlview' control icons if needed... Creating the information files for 'gb.form.htmlview' component... Installing the development environment... Compiling gambas3... FCompletion.form:6: error: Unknown identifier: HtmlView || || Unable to compile gambas3 || ........................ Regards vuott -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Oct 31 02:11:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Oct 2021 02:11:31 +0200 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: Message-ID: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> Le 31/10/2021 ? 01:41, vuott--- via User a ?crit?: > Hello, > with? Master "bfddf7d4" I obtain these errors: > > Compiling 'gb.form.htmlview' component... > gbc3: error: Component not found: gb.form > > Compiling 'gb.form.htmlview' component... > gbc3: error: Component not found: gb.form > Installing 'gb.form.htmlview' control icons if needed... > Creating the information files for 'gb.form.htmlview' component... > > Installing the development environment... > Compiling gambas3... > FCompletion.form:6: error: Unknown identifier: HtmlView > > || > || Unable to compile gambas3 > || > > ........................ > > Regards > vuott > It should be fixed in last commit. -- Beno?t Minisini From vuott at tutanota.com Sun Oct 31 02:58:32 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 31 Oct 2021 02:58:32 +0100 (CET) Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> Message-ID: No, errors again ! Compiling 'gb.form.htmlview' component... FTest.form:3: error: Unknown identifier: HBox HtmlView.class:18:26: error: Unknown identifier: Font Installing the development environment... Compiling gambas3... FCompletion.form:6: error: Unknown identifier: HtmlView || || Unable to compile gambas3 || 31 ott 2021, 02:11 da g4mba5 at gmail.com: > Le 31/10/2021 ? 01:41, vuott--- via User a ?crit?: > >> Hello, >> with? Master "bfddf7d4" I obtain these errors: >> >> Compiling 'gb.form.htmlview' component... >> gbc3: error: Component not found: gb.form >> >> Compiling 'gb.form.htmlview' component... >> gbc3: error: Component not found: gb.form >> Installing 'gb.form.htmlview' control icons if needed... >> Creating the information files for 'gb.form.htmlview' component... >> >> Installing the development environment... >> Compiling gambas3... >> FCompletion.form:6: error: Unknown identifier: HtmlView >> >> || >> || Unable to compile gambas3 >> || >> >> ........................ >> >> Regards >> vuott >> > > It should be fixed in last commit. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 31 11:14:28 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Oct 2021 10:14:28 +0000 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> Message-ID: It works okay here Vuott :( maybe try refreshing source with 'make clean' or the old "delete /usr/lib/gambas3 folder (i've not had to do that for a long long time) looks like your gb.form did not compile so anything using gb.form is failing. i'd try with source running './configure -C -q' after 'reconf-all' using -q with ./configure will only give error messages making it easier to spot the errors in the output. Best of luck. BruceS On Sun, 31 Oct 2021 at 01:59, vuott--- via User wrote: > No, errors again ! > > Compiling 'gb.form.htmlview' component... > FTest.form:3: error: Unknown identifier: HBox > HtmlView.class:18:26: error: Unknown identifier: Font > > Installing the development environment... > Compiling gambas3... > FCompletion.form:6: error: Unknown identifier: HtmlView > > || > || Unable to compile gambas3 > || > > > > > > 31 ott 2021, 02:11 da g4mba5 at gmail.com: > > Le 31/10/2021 ? 01:41, vuott--- via User a ?crit : > > Hello, > with Master "bfddf7d4" I obtain these errors: > > Compiling 'gb.form.htmlview' component... > gbc3: error: Component not found: gb.form > > Compiling 'gb.form.htmlview' component... > gbc3: error: Component not found: gb.form > Installing 'gb.form.htmlview' control icons if needed... > Creating the information files for 'gb.form.htmlview' component... > > Installing the development environment... > Compiling gambas3... > FCompletion.form:6: error: Unknown identifier: HtmlView > > || > || Unable to compile gambas3 > || > > ........................ > > Regards > vuott > > > It should be fixed in last commit. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From munix9 at googlemail.com Sun Oct 31 11:25:22 2021 From: munix9 at googlemail.com (munix9) Date: Sun, 31 Oct 2021 11:25:22 +0100 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> Message-ID: gitlab-jobs are also broken, although they are falsely declared as "job succeeded": https://gitlab.com/gambas/gambas/-/pipelines/398919145 eg: https://gitlab.com/gambas/gambas/-/jobs/1732669580 https://gitlab.com/gambas/gambas/-/jobs/1732669568 https://gitlab.com/gambas/gambas/-/jobs/1732669571 "|| Unable to compile gambas3" Am 31.10.21 um 11:14 schrieb Bruce Steers: > It works okay here Vuott :( > > maybe try refreshing source with 'make clean' > or the old "delete /usr/lib/gambas3 folder (i've not had to do that for > a long long time) > > looks like your gb.form did not compile so anything using gb.form is > failing. > > i'd try with source running './configure -C -q'? after 'reconf-all' > > using -q with ./configure will only give error messages making it easier > to spot the errors in the output. > > Best of luck. > BruceS > > > On Sun, 31 Oct 2021 at 01:59, vuott--- via User > > wrote: > > No, errors again ! > > Compiling 'gb.form.htmlview' component... > FTest.form:3: error: Unknown identifier: HBox > HtmlView.class:18:26: error: Unknown identifier: Font > > Installing the development environment... > Compiling gambas3... > FCompletion.form:6: error: Unknown identifier: HtmlView > > || > || Unable to compile gambas3 > || > > > > > > 31 ott 2021, 02:11 da g4mba5 at gmail.com : > > Le 31/10/2021 ? 01:41, vuott--- via User a ?crit?: > > Hello, > with? Master "bfddf7d4" I obtain these errors: > > Compiling 'gb.form.htmlview' component... > gbc3: error: Component not found: gb.form > > Compiling 'gb.form.htmlview' component... > gbc3: error: Component not found: gb.form > Installing 'gb.form.htmlview' control icons if needed... > Creating the information files for 'gb.form.htmlview' > component... > > Installing the development environment... > Compiling gambas3... > FCompletion.form:6: error: Unknown identifier: HtmlView > > || > || Unable to compile gambas3 > || > > ........................ > > Regards > vuott > > > It should be fixed in last commit. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From bsteers4 at gmail.com Sun Oct 31 11:29:05 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Oct 2021 10:29:05 +0000 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> Message-ID: the latest 2 or 3 are okay https://gitlab.com/gambas/gambas/-/commit/7b456ffc0bb2bcf5d43a6c37c7fde917fd6eeb93 On Sun, 31 Oct 2021 at 10:26, munix9 via User wrote: > > gitlab-jobs are also broken, although they are falsely declared as "job > succeeded": > > https://gitlab.com/gambas/gambas/-/pipelines/398919145 > > eg: > https://gitlab.com/gambas/gambas/-/jobs/1732669580 > https://gitlab.com/gambas/gambas/-/jobs/1732669568 > https://gitlab.com/gambas/gambas/-/jobs/1732669571 > > "|| Unable to compile gambas3" > > > Am 31.10.21 um 11:14 schrieb Bruce Steers: > > It works okay here Vuott :( > > > > maybe try refreshing source with 'make clean' > > or the old "delete /usr/lib/gambas3 folder (i've not had to do that for > > a long long time) > > > > looks like your gb.form did not compile so anything using gb.form is > > failing. > > > > i'd try with source running './configure -C -q' after 'reconf-all' > > > > using -q with ./configure will only give error messages making it easier > > to spot the errors in the output. > > > > Best of luck. > > BruceS > > > > > > On Sun, 31 Oct 2021 at 01:59, vuott--- via User > > > > wrote: > > > > No, errors again ! > > > > Compiling 'gb.form.htmlview' component... > > FTest.form:3: error: Unknown identifier: HBox > > HtmlView.class:18:26: error: Unknown identifier: Font > > > > Installing the development environment... > > Compiling gambas3... > > FCompletion.form:6: error: Unknown identifier: HtmlView > > > > || > > || Unable to compile gambas3 > > || > > > > > > > > > > > > 31 ott 2021, 02:11 da g4mba5 at gmail.com : > > > > Le 31/10/2021 ? 01:41, vuott--- via User a ?crit : > > > > Hello, > > with Master "bfddf7d4" I obtain these errors: > > > > Compiling 'gb.form.htmlview' component... > > gbc3: error: Component not found: gb.form > > > > Compiling 'gb.form.htmlview' component... > > gbc3: error: Component not found: gb.form > > Installing 'gb.form.htmlview' control icons if needed... > > Creating the information files for 'gb.form.htmlview' > > component... > > > > Installing the development environment... > > Compiling gambas3... > > FCompletion.form:6: error: Unknown identifier: HtmlView > > > > || > > || Unable to compile gambas3 > > || > > > > ........................ > > > > Regards > > vuott > > > > > > It should be fixed in last commit. > > > > -- > > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > ]---- > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > ]---- > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From munix9 at googlemail.com Sun Oct 31 11:43:03 2021 From: munix9 at googlemail.com (munix9) Date: Sun, 31 Oct 2021 11:43:03 +0100 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> Message-ID: <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> Am 31.10.21 um 11:29 schrieb Bruce Steers: > the latest 2 or 3 are okay > https://gitlab.com/gambas/gambas/-/commit/7b456ffc0bb2bcf5d43a6c37c7fde917fd6eeb93 > > Hm, I don't think so. As I wrote, they are incorrectly declared as "Job successful" (with a green icon). If you look deeper into the logs, you will see "Unable to compile gambas3". I think not being able to compile gambas3 is a major error. (oops, the reply should go to the list, probably sent it to bruce privately - sorry) > On Sun, 31 Oct 2021 at 10:26, munix9 via User > > wrote: > > > gitlab-jobs are also broken, although they are falsely declared as "job > succeeded": > > https://gitlab.com/gambas/gambas/-/pipelines/398919145 > > > eg: > https://gitlab.com/gambas/gambas/-/jobs/1732669580 > > https://gitlab.com/gambas/gambas/-/jobs/1732669568 > > https://gitlab.com/gambas/gambas/-/jobs/1732669571 > > > "|| Unable to compile gambas3" > > > Am 31.10.21 um 11:14 schrieb Bruce Steers: > > It works okay here Vuott :( > > > > maybe try refreshing source with 'make clean' > > or the old "delete /usr/lib/gambas3 folder (i've not had to do > that for > > a long long time) > > > > looks like your gb.form did not compile so anything using gb.form is > > failing. > > > > i'd try with source running './configure -C -q'? after 'reconf-all' > > > > using -q with ./configure will only give error messages making it > easier > > to spot the errors in the output. > > > > Best of luck. > > BruceS > > > > > > On Sun, 31 Oct 2021 at 01:59, vuott--- via User > > > >> wrote: > > > >? ? ?No, errors again ! > > > >? ? ?Compiling 'gb.form.htmlview' component... > >? ? ?FTest.form:3: error: Unknown identifier: HBox > >? ? ?HtmlView.class:18:26: error: Unknown identifier: Font > > > >? ? ?Installing the development environment... > >? ? ?Compiling gambas3... > >? ? ?FCompletion.form:6: error: Unknown identifier: HtmlView > > > >? ? ?|| > >? ? ?|| Unable to compile gambas3 > >? ? ?|| > > > > > > > > > > > >? ? ?31 ott 2021, 02:11 da g4mba5 at gmail.com > >: > > > >? ? ? ? ?Le 31/10/2021 ? 01:41, vuott--- via User a ?crit?: > > > >? ? ? ? ? ? ?Hello, > >? ? ? ? ? ? ?with? Master "bfddf7d4" I obtain these errors: > > > >? ? ? ? ? ? ?Compiling 'gb.form.htmlview' component... > >? ? ? ? ? ? ?gbc3: error: Component not found: gb.form > > > >? ? ? ? ? ? ?Compiling 'gb.form.htmlview' component... > >? ? ? ? ? ? ?gbc3: error: Component not found: gb.form > >? ? ? ? ? ? ?Installing 'gb.form.htmlview' control icons if needed... > >? ? ? ? ? ? ?Creating the information files for 'gb.form.htmlview' > >? ? ? ? ? ? ?component... > > > >? ? ? ? ? ? ?Installing the development environment... > >? ? ? ? ? ? ?Compiling gambas3... > >? ? ? ? ? ? ?FCompletion.form:6: error: Unknown identifier: HtmlView > > > >? ? ? ? ? ? ?|| > >? ? ? ? ? ? ?|| Unable to compile gambas3 > >? ? ? ? ? ? ?|| > > > >? ? ? ? ? ? ?........................ > > > >? ? ? ? ? ? ?Regards > >? ? ? ? ? ? ?vuott > > > > > >? ? ? ? ?It should be fixed in last commit. > > > >? ? ? ? ?-- > >? ? ? ? ?Beno?t Minisini > > > >? ? ? ? ?----[ http://gambaswiki.org/wiki/doc/netiquette > > >? ? ? ? ? > ]---- > > > > > > > >? ? ?----[ http://gambaswiki.org/wiki/doc/netiquette > > >? ? ? > ]---- > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From bsteers4 at gmail.com Sun Oct 31 13:52:06 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 31 Oct 2021 12:52:06 +0000 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> Message-ID: (inline) On Sun, 31 Oct 2021 at 10:44, munix9 via User wrote: > Am 31.10.21 um 11:29 schrieb Bruce Steers: > > the latest 2 or 3 are okay > > > https://gitlab.com/gambas/gambas/-/commit/7b456ffc0bb2bcf5d43a6c37c7fde917fd6eeb93 > > < > https://gitlab.com/gambas/gambas/-/commit/7b456ffc0bb2bcf5d43a6c37c7fde917fd6eeb93 > > > > > > Hm, I don't think so. As I wrote, they are incorrectly declared as "Job > successful" (with a green icon). > If you look deeper into the logs, you will see "Unable to compile gambas3". > I think not being able to compile gambas3 is a major error. > aah yes my apologies i did not notice that on gitlab. Oddly it has all compiled just fine here on my linux mint 20 ! including htmlview (I'm thinking knowing this might help Ben find the issue) > (oops, the reply should go to the list, probably sent it to bruce > privately - sorry) > haha, i was glad you posted this as i almost replied privately too lol :) Wishing well BruceS > On Sun, 31 Oct 2021 at 10:26, munix9 via User > > > > wrote: > > > > > > gitlab-jobs are also broken, although they are falsely declared as > "job > > succeeded": > > > > https://gitlab.com/gambas/gambas/-/pipelines/398919145 > > > > > > eg: > > https://gitlab.com/gambas/gambas/-/jobs/1732669580 > > > > https://gitlab.com/gambas/gambas/-/jobs/1732669568 > > > > https://gitlab.com/gambas/gambas/-/jobs/1732669571 > > > > > > "|| Unable to compile gambas3" > > > > > > Am 31.10.21 um 11:14 schrieb Bruce Steers: > > > It works okay here Vuott :( > > > > > > maybe try refreshing source with 'make clean' > > > or the old "delete /usr/lib/gambas3 folder (i've not had to do > > that for > > > a long long time) > > > > > > looks like your gb.form did not compile so anything using gb.form > is > > > failing. > > > > > > i'd try with source running './configure -C -q' after > 'reconf-all' > > > > > > using -q with ./configure will only give error messages making it > > easier > > > to spot the errors in the output. > > > > > > Best of luck. > > > BruceS > > > > > > > > > On Sun, 31 Oct 2021 at 01:59, vuott--- via User > > > > > > >> wrote: > > > > > > No, errors again ! > > > > > > Compiling 'gb.form.htmlview' component... > > > FTest.form:3: error: Unknown identifier: HBox > > > HtmlView.class:18:26: error: Unknown identifier: Font > > > > > > Installing the development environment... > > > Compiling gambas3... > > > FCompletion.form:6: error: Unknown identifier: HtmlView > > > > > > || > > > || Unable to compile gambas3 > > > || > > > > > > > > > > > > > > > > > > 31 ott 2021, 02:11 da g4mba5 at gmail.com > > > >: > > > > > > Le 31/10/2021 ? 01:41, vuott--- via User a ?crit : > > > > > > Hello, > > > with Master "bfddf7d4" I obtain these errors: > > > > > > Compiling 'gb.form.htmlview' component... > > > gbc3: error: Component not found: gb.form > > > > > > Compiling 'gb.form.htmlview' component... > > > gbc3: error: Component not found: gb.form > > > Installing 'gb.form.htmlview' control icons if > needed... > > > Creating the information files for 'gb.form.htmlview' > > > component... > > > > > > Installing the development environment... > > > Compiling gambas3... > > > FCompletion.form:6: error: Unknown identifier: > HtmlView > > > > > > || > > > || Unable to compile gambas3 > > > || > > > > > > ........................ > > > > > > Regards > > > vuott > > > > > > > > > It should be fixed in last commit. > > > > > > -- > > > Beno?t Minisini > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > > > > > > ]---- > > > > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > > > > > > ]---- > > > > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > ]---- > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > ]---- > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Sun Oct 31 14:44:24 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 31 Oct 2021 14:44:24 +0100 (CET) Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> Message-ID: I always delete any previous elements before updating my Gambas. I also use Linux Mint. My System: Kernel: 5.11.0-38-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.0.6 wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 31 ott 2021, 11:14 da bsteers4 at gmail.com: > It works okay here Vuott :( > > maybe try refreshing source with 'make clean' > or the old "delete /usr/lib/gambas3 folder (i've not had to do that for a long long time) > > looks like your gb.form did not compile so anything using gb.form is failing. > > i'd try with source running './configure -C -q'? after 'reconf-all' > > using -q with ./configure will only give error messages making it easier to spot the errors in the output. > > Best of luck. > BruceS > > > On Sun, 31 Oct 2021 at 01:59, vuott--- via User <> user at lists.gambas-basic.org> > wrote: > >> No, errors again ! >> >> Compiling 'gb.form.htmlview' component... >> FTest.form:3: error: Unknown identifier: HBox >> HtmlView.class:18:26: error: Unknown identifier: Font >> >> Installing the development environment... >> Compiling gambas3... >> FCompletion.form:6: error: Unknown identifier: HtmlView >> >> || >> || Unable to compile gambas3 >> || >> >> >> >> >> >> 31 ott 2021, 02:11 da >> g4mba5 at gmail.com>> : >> >>> Le 31/10/2021 ? 01:41, vuott--- via User a ?crit?: >>> >>>> Hello, >>>> with? Master "bfddf7d4" I obtain these errors: >>>> >>>> Compiling 'gb.form.htmlview' component... >>>> gbc3: error: Component not found: gb.form >>>> >>>> Compiling 'gb.form.htmlview' component... >>>> gbc3: error: Component not found: gb.form >>>> Installing 'gb.form.htmlview' control icons if needed... >>>> Creating the information files for 'gb.form.htmlview' component... >>>> >>>> Installing the development environment... >>>> Compiling gambas3... >>>> FCompletion.form:6: error: Unknown identifier: HtmlView >>>> >>>> || >>>> || Unable to compile gambas3 >>>> || >>>> >>>> ........................ >>>> >>>> Regards >>>> vuott >>>> >>> >>> It should be fixed in last commit. >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ >>> http://gambaswiki.org/wiki/doc/netiquette>>> ]---- >>> >> >> >> ----[>> http://gambaswiki.org/wiki/doc/netiquette>> ]---- >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Oct 31 16:35:38 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Oct 2021 16:35:38 +0100 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> Message-ID: <591351ed-edbf-3833-2bcd-bb5eb55b1d2f@gmail.com> Le 31/10/2021 ? 13:52, Bruce Steers a ?crit?: > (inline) > > On Sun, 31 Oct 2021 at 10:44, munix9 via User > > wrote: > > Am 31.10.21 um 11:29 schrieb Bruce Steers: > > the latest 2 or 3 are okay > > > https://gitlab.com/gambas/gambas/-/commit/7b456ffc0bb2bcf5d43a6c37c7fde917fd6eeb93 > > > > > > > > > > Hm, I don't think so. As I wrote, they are incorrectly declared as "Job > successful" (with a green icon). > If you look deeper into the logs, you will see "Unable to compile > gambas3". > I think not being able to compile gambas3 is a major error. > > > aah yes my apologies i did not notice that on gitlab. > > Oddly it has all compiled just fine here on my linux mint 20 ! > including htmlview > (I'm thinking knowing this might help Ben find the issue) > I know what the issue is, but this is Lord's day, so I was not in front on my computer. I put 'gb.form.htmlview' source code in the wrong place. The component depends on no libraries, but the project itself includes testing forms, and so require a GUI component and none is compiled at the moment. I will put 'gb.form.htmlview' source directory at the root of the source package, and everything should be ok. -- Beno?t Minisini From g4mba5 at gmail.com Sun Oct 31 18:00:01 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Oct 2021 18:00:01 +0100 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: <591351ed-edbf-3833-2bcd-bb5eb55b1d2f@gmail.com> References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> <591351ed-edbf-3833-2bcd-bb5eb55b1d2f@gmail.com> Message-ID: <19c8a416-ec78-a12f-9f71-b298a0e9f03f@gmail.com> Le 31/10/2021 ? 16:35, Beno?t Minisini a ?crit?: > > I know what the issue is, but this is Lord's day, so I was not in front > on my computer. I put 'gb.form.htmlview' source code in the wrong place. > The component depends on no libraries, but the project itself includes > testing forms, and so require a GUI component and none is compiled at > the moment. > > I will put 'gb.form.htmlview' source directory at the root of the source > package, and everything should be ok. > Is it better with the last commit? -- Beno?t Minisini From bagonergi at gmail.com Sun Oct 31 18:20:49 2021 From: bagonergi at gmail.com (Gianluigi Gradaschi) Date: Sun, 31 Oct 2021 18:20:49 +0100 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: <19c8a416-ec78-a12f-9f71-b298a0e9f03f@gmail.com> References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> <591351ed-edbf-3833-2bcd-bb5eb55b1d2f@gmail.com> <19c8a416-ec78-a12f-9f71-b298a0e9f03f@gmail.com> Message-ID: Il 31/10/21 18:00, Beno?t Minisini ha scritto: > Le 31/10/2021 ? 16:35, Beno?t Minisini a ?crit?: >> >> I know what the issue is, but this is Lord's day, so I was not in >> front on my computer. I put 'gb.form.htmlview' source code in the >> wrong place. The component depends on no libraries, but the project >> itself includes testing forms, and so require a GUI component and none >> is compiled at the moment. >> >> I will put 'gb.form.htmlview' source directory at the root of the >> source package, and everything should be ok. >> > > Is it better with the last commit? > Soory, but no :-( make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/gian/gambasdevel/comp' make[1]: Leaving directory '/home/gian/gambasdevel/comp' Making install in app make[1]: Entering directory '/home/gian/gambasdevel/app' Making install in . make[2]: Entering directory '/home/gian/gambasdevel/app' make[3]: Entering directory '/home/gian/gambasdevel/app' Installing the development environment... Compiling gambas3... FCompletion.form:6: error: Unknown identifier: HtmlView Compiling gbs3... OK Installing gbs3... Installing IDE application icon... Installing IDE application menu... Installing the scripter... Registering Gambas script mimetype... Registering Gambas server page mimetype... Installing the Gambas appdata file... Installing the Gambas template projects... make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/gian/gambasdevel/app' make[2]: Leaving directory '/home/gian/gambasdevel/app' Making install in man make[2]: Entering directory '/home/gian/gambasdevel/app/man' make[3]: Entering directory '/home/gian/gambasdevel/app/man' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/usr/share/man/man1' /usr/bin/install -c -m 644 gambas3.1 gbs3.1 gbw3.1 '/usr/share/man/man1' make[3]: Leaving directory '/home/gian/gambasdevel/app/man' make[2]: Leaving directory '/home/gian/gambasdevel/app/man' make[1]: Leaving directory '/home/gian/gambasdevel/app' Making install in . make[1]: Entering directory '/home/gian/gambasdevel' make[2]: Entering directory '/home/gian/gambasdevel' || || Unable to compile 'gb.form.htmlview' || Unable to compile gambas3 || make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/gian/gambasdevel' make[1]: Leaving directory '/home/gian/gambasdevel' Regards Gianluigi From g4mba5 at gmail.com Sun Oct 31 21:05:25 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 31 Oct 2021 21:05:25 +0100 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> <591351ed-edbf-3833-2bcd-bb5eb55b1d2f@gmail.com> <19c8a416-ec78-a12f-9f71-b298a0e9f03f@gmail.com> Message-ID: <01214ce0-1e91-7c3c-da6e-af0764edb4fb@gmail.com> Le 31/10/2021 ? 18:20, Gianluigi Gradaschi a ?crit?: > Il 31/10/21 18:00, Beno?t Minisini ha scritto: >> Le 31/10/2021 ? 16:35, Beno?t Minisini a ?crit?: >>> >>> I know what the issue is, but this is Lord's day, so I was not in >>> front on my computer. I put 'gb.form.htmlview' source code in the >>> wrong place. The component depends on no libraries, but the project >>> itself includes testing forms, and so require a GUI component and >>> none is compiled at the moment. >>> >>> I will put 'gb.form.htmlview' source directory at the root of the >>> source package, and everything should be ok. >>> >> >> Is it better with the last commit? >> > > > Soory, but no :-( > It should be ok now. At least it is on GitLab. -- Beno?t Minisini From bagonergi at gmail.com Sun Oct 31 22:37:29 2021 From: bagonergi at gmail.com (Gianluigi Gradaschi) Date: Sun, 31 Oct 2021 22:37:29 +0100 Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: <01214ce0-1e91-7c3c-da6e-af0764edb4fb@gmail.com> References: <785d8a40-6767-f099-b73d-65e1e34470d2@gmail.com> <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> <591351ed-edbf-3833-2bcd-bb5eb55b1d2f@gmail.com> <19c8a416-ec78-a12f-9f71-b298a0e9f03f@gmail.com> <01214ce0-1e91-7c3c-da6e-af0764edb4fb@gmail.com> Message-ID: Il 31/10/21 21:05, Beno?t Minisini ha scritto: > Le 31/10/2021 ? 18:20, Gianluigi Gradaschi a ?crit?: >> Il 31/10/21 18:00, Beno?t Minisini ha scritto: >>> Le 31/10/2021 ? 16:35, Beno?t Minisini a ?crit?: >>>> >>>> I know what the issue is, but this is Lord's day, so I was not in >>>> front on my computer. I put 'gb.form.htmlview' source code in the >>>> wrong place. The component depends on no libraries, but the project >>>> itself includes testing forms, and so require a GUI component and >>>> none is compiled at the moment. >>>> >>>> I will put 'gb.form.htmlview' source directory at the root of the >>>> source package, and everything should be ok. >>>> >>> >>> Is it better with the last commit? >>> >> >> >> Soory, but no :-( >> > > It should be ok now. At least it is on GitLab. > now it compiles well and works :-) Thanks a lot Gianluigi From vuott at tutanota.com Sun Oct 31 23:20:09 2021 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 31 Oct 2021 23:20:09 +0100 (CET) Subject: [Gambas-user] Unable to compile gambas3 with Master "bfddf7d4" In-Reply-To: References: <5edd9c41-699a-07ad-3315-43bb710a934f@googlemail.com> <591351ed-edbf-3833-2bcd-bb5eb55b1d2f@gmail.com> <19c8a416-ec78-a12f-9f71-b298a0e9f03f@gmail.com> <01214ce0-1e91-7c3c-da6e-af0764edb4fb@gmail.com> Message-ID: Yes, I can confirm:? it works for me too. OK 31 ott 2021, 22:37 da bagonergi at gmail.com: > Il 31/10/21 21:05, Beno?t Minisini ha scritto: > >> Le 31/10/2021 ? 18:20, Gianluigi Gradaschi a ?crit?: >> >>> Il 31/10/21 18:00, Beno?t Minisini ha scritto: >>> >>>> Le 31/10/2021 ? 16:35, Beno?t Minisini a ?crit?: >>>> >>>>> >>>>> I know what the issue is, but this is Lord's day, so I was not in front on my computer. I put 'gb.form.htmlview' source code in the wrong place. The component depends on no libraries, but the project itself includes testing forms, and so require a GUI component and none is compiled at the moment. >>>>> >>>>> I will put 'gb.form.htmlview' source directory at the root of the source package, and everything should be ok. >>>>> >>>> >>>> Is it better with the last commit? >>>> >>> >>> >>> Soory, but no :-( >>> >> >> It should be ok now. At least it is on GitLab. >> > > now it compiles well and works :-) > > Thanks a lot > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: