From charlie at cogier.com Thu Jul 2 16:45:44 2020 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 2 Jul 2020 15:45:44 +0100 Subject: [Gambas-user] Possible bug with ColorPalette Message-ID: Hi, I am trying to use ColorPalette1.Colors.Delete() but I can't get it to work. Please see example attached (Includes system details). Thanks, Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: ColorPaletteBug-0.0.1.tar.gz Type: application/gzip Size: 39969 bytes Desc: not available URL: From cedron at exede.net Thu Jul 2 17:31:11 2020 From: cedron at exede.net (Cedron Dawg) Date: Thu, 2 Jul 2020 11:31:11 -0400 (EDT) Subject: [Gambas-user] Possible bug with ColorPalette In-Reply-To: References: Message-ID: <309777284.20289080.1593703871860.JavaMail.zimbra@exede.net> Confirmed. I used these lines under button 1.: Print ColorPalette1.Colors.Count ColorPalette1.Colors.Delete(0, 1) ColorPalette1.Refresh() Print ColorPalette1.Colors.Count The count remains at 8, the Refresh appears to do nothing. When I did this: ColorPalette1.Colors = ColorPalette1.Colors.Delete(0, 1) Resulted in the deleted color being retained. Side note though: When I try to right click the file and "uncompress here" I get a popup error stating tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors So, I have to go to a terminal window and do this: gzip -d ColorPaletteBug-0.0.1.tar.gz tar -xf ColorPaletteBug-0.0.1.tar Which also deletes the original file, but leaves the .tar. When I save my projects using the \Project\Make\Source Archive option in the IDE menu, I don't have this problem. How are you creating the tar.gz? ----- Original Message ----- From: "Charlie Ogier" To: "user" Sent: Thursday, July 2, 2020 10:45:44 AM Subject: [Gambas-user] Possible bug with ColorPalette Hi, I am trying to use ColorPalette1.Colors.Delete() but I can't get it to work. Please see example attached (Includes system details). Thanks, Charlie ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From hans at gambas-buch.de Thu Jul 2 17:53:46 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 2 Jul 2020 17:53:46 +0200 Subject: [Gambas-user] Possible bug with ColorPalette In-Reply-To: References: Message-ID: <3e18e527-5afc-3d80-fc3c-e481ca1ff408@gambas-buch.de> Hello. p.d. ColorsInteger[].Extract (gb) Function Delete? ( Start As Integer [ , Length As Integer ] ) As Integer[] Function Extract ( Start As Integer [ , Length As Integer ] ) As Integer[] *Removes one or more elements from the array, and returns them. *If Length is -1, then all elements from the specified Start to the end of the array are removed. /Public Sub ButtonDelete1_Click()// // //? Dim iArray As Integer[] = ColorPalette1.Colors// // //? iArray = ColorPalette1.Colors.Delete(0, 3)// //? ColorPalette1.Colors = iArray// // //End/ Works exactly as specified... . Regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Thu Jul 2 20:25:44 2020 From: cedron at exede.net (Cedron Dawg) Date: Thu, 2 Jul 2020 14:25:44 -0400 (EDT) Subject: [Gambas-user] Possible bug with ColorPalette In-Reply-To: <3e18e527-5afc-3d80-fc3c-e481ca1ff408@gambas-buch.de> References: <3e18e527-5afc-3d80-fc3c-e481ca1ff408@gambas-buch.de> Message-ID: <1216344520.20390401.1593714344736.JavaMail.zimbra@exede.net> The two functions appear to be synonyms. They both work the same for me. I just tested with "Extract" in place, no difference in behavior. There was not a question of the return value being the removed members, that worked. It is that the original list remains unaltered. For Extract, that makes sense, for Delete, it doesn't. ----- Original Message ----- From: "Hans Lehmann" To: "user" Sent: Thursday, July 2, 2020 11:53:46 AM Subject: Re: [Gambas-user] Possible bug with ColorPalette Hello. p.d. ColorsInteger[].Extract (gb) Function Delete ( Start As Integer [ , Length As Integer ] ) As Integer[] Function Extract ( Start As Integer [ , Length As Integer ] ) As Integer[] Removes one or more elements from the array, and returns them. If Length is -1, then all elements from the specified Start to the end of the array are removed. Public Sub ButtonDelete1_Click() Dim iArray As Integer[] = ColorPalette1.Colors iArray = ColorPalette1.Colors.Delete(0, 3) ColorPalette1.Colors = iArray End Works exactly as specified... . Regards Hans ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Fri Jul 3 03:40:43 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 2 Jul 2020 18:40:43 -0700 (PDT) Subject: [Gambas-user] Moving from 64bit to 32 bit and back Message-ID: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> I replaced all c calls from Gambas3 that required Size_t data type with a pointer type in Gambas and cast the type using cint() or clong() when the value must be used. I did this because in most cases size_t follows the width of the address bus by convention. This seems to work so far. Does anyone have any thoughts on this? I would like to get some input about this if anyone have a better idea I can't see any where even in the structures I have used that this does not translate well. Was playing with the new raspi OS which defaults to 32 bit. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.aaron.rose at gmail.com Fri Jul 3 15:15:32 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Fri, 3 Jul 2020 14:15:32 +0100 Subject: [Gambas-user] Locale message Message-ID: <42418364-3841-b066-55f3-dcb42fa50cd3@gmail.com> When I try to run the terminal program get-iplayer using the Exec verb as in: Exec ["get-iplayer", ".", "--type=" & "TV"] Wait For Read As "getiplayerMessages" I get: /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8) This occurs in: Sub getiplayerMessages_Error as evidenced by Print "GIME" generating Console output. When I run the same terminal program get-iplayer in the Terminal, it works OK. To install get-iplayer (in Ubuntu 18.04) I used "snap install get-iplayer". TestApp attached. Interestingly, "cat /etc/locale.gen" shows: # en_GB ISO-8859-1 # en_GB.ISO-8859-15 ISO-8859-15 # en_GB.UTF-8 UTF-8 I presume that these lines should be uncommented but the /etc/locale.gen has not been changed since 2019: john at JohnPC:~$ ls -l /etc/locale.gen -rw-r--r-- 1 root root 9395 Feb 12? 2019 /etc/locale.gen I don't understand why running get-iplayer in Terminal works but it fails when being "Exec"d from Gambas (using latest stable version 3.14.3). -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp-0.0.1.tar.gz Type: application/gzip Size: 12192 bytes Desc: not available URL: From charlie at cogier.com Fri Jul 3 15:56:45 2020 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 3 Jul 2020 14:56:45 +0100 Subject: [Gambas-user] Possible bug with ColorPalette In-Reply-To: <3e18e527-5afc-3d80-fc3c-e481ca1ff408@gambas-buch.de> References: <3e18e527-5afc-3d80-fc3c-e481ca1ff408@gambas-buch.de> Message-ID: Thanks Hans, the work around works but 'ColorPalette1.Colors.Delete(0, 1)' doesn't. On 02/07/2020 16:53, Hans Lehmann wrote: > Hello. > > p.d. > > ColorsInteger[].Extract (gb) > > Function Delete? ( Start As Integer [ , Length As Integer ] ) As Integer[] > Function Extract ( Start As Integer [ , Length As Integer ] ) As Integer[] > > *Removes one or more elements from the array, and returns them. > > *If Length is -1, then all elements from the specified Start to the > end of the array are removed. > > > /Public Sub ButtonDelete1_Click()// > // > //? Dim iArray As Integer[] = ColorPalette1.Colors// > // > //? iArray = ColorPalette1.Colors.Delete(0, 3)// > //? ColorPalette1.Colors = iArray// > // > //End/ > > Works exactly as specified... . > > Regards > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Fri Jul 3 18:15:50 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 3 Jul 2020 18:15:50 +0200 Subject: [Gambas-user] Possible bug with ColorPalette In-Reply-To: References: <3e18e527-5afc-3d80-fc3c-e481ca1ff408@gambas-buch.de> Message-ID: <3e74faf4-bd94-4fdb-b752-fa65fdf6bb65@gambas-buch.de> Am 03.07.20 um 15:56 schrieb Charlie Ogier: > Thanks Hans, the work around works but 'ColorPalette1.Colors.Delete(0, > 1)' doesn't.? OK. Hello. I just wanted to show that the function ColorPalette1.Colors.Delete(0, n) is NOT the right function, because it returns only an array with the deleted colors! This does NOT trigger the deletion of colors from the array. With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Jul 3 18:53:03 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 4 Jul 2020 02:23:03 +0930 Subject: [Gambas-user] Possible bug with ColorPalette In-Reply-To: <3e74faf4-bd94-4fdb-b752-fa65fdf6bb65@gambas-buch.de> References: <3e18e527-5afc-3d80-fc3c-e481ca1ff408@gambas-buch.de> <3e74faf4-bd94-4fdb-b752-fa65fdf6bb65@gambas-buch.de> Message-ID: <0e1c1c04-4c15-0028-b1f7-e0b55738f714@gmail.com> On 4/7/20 1:45 am, Hans Lehmann wrote: > I just wanted to show that the function ColorPalette1.Colors.Delete(0, > n) is NOT the right function, because it returns only an array with the deleted colors! > This does NOT trigger the deletion of colors from the array. > > With kind regards > > Hans > Well spotted Hans! To remove a color from the --control-- Dim hList As Integer[] = ColorPalette1.Colors hList.Remove(0, 1) ColorPalette1.Colors = hList N.B. Contrary to what the help says ColorPalette.Colors is not a read only integer[] property. b From jussi.lahtinen at gmail.com Fri Jul 3 22:39:21 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 3 Jul 2020 23:39:21 +0300 Subject: [Gambas-user] Moving from 64bit to 32 bit and back In-Reply-To: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> References: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> Message-ID: I would rather use preprocessors to define the variables, but it depends... your way should work. http://gambaswiki.org/wiki/lang/.if Jussi On Fri, Jul 3, 2020 at 4:51 AM Brian G wrote: > I replaced all c calls from Gambas3 that required Size_t data type with a > pointer type in Gambas and cast the type using cint() or clong() when the > value must be used. > > I did this because in most cases size_t follows the width of the address > bus by convention. > > This seems to work so far. > > Does anyone have any thoughts on this? > > I would like to get some input about this if anyone have a better idea > > I can't see any where even in the structures I have used that this does > not translate well. > > Was playing with the new raspi OS which defaults to 32 bit. > > Thank You > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Jul 3 23:05:26 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 3 Jul 2020 17:05:26 -0400 Subject: [Gambas-user] Moving from 64bit to 32 bit and back In-Reply-To: References: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 7/3/20 4:39 PM, Jussi Lahtinen wrote: > I would rather use preprocessors to define the variables, but it depends... your way should work. > http://gambaswiki.org/wiki/lang/.if > > Jussi Just to pop in and out here real quick so as to not hijack the thread: Where in the Wiki documentation is this page linked? -- Lee From brian at westwoodsvcs.com Sat Jul 4 01:48:38 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Sat, 04 Jul 2020 02:48:38 +0300 Subject: [Gambas-user] =?utf-8?q?Moving_from_64bit_to_32_bit_and_back?= In-Reply-To: References: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1593820118.793359104@f13.my.com> Yes that would work, but then I have to figure out the address width myself at compile time. ?? I would need to compile for each architecture . ? I was trying to find a way to make the code portable that requires no recompile for SAME OS 32 AND 64 BIT VERSION. The same package can be installed on both versions and call c functions and pass structures without any issues....... So far lol? ... with such in-depth testing I have done... Three or four times ... Pointers are basically unsigned values which match size_t's nominal type and length. The cint and clong function are signed so it does take a little bit if fiddling to work properly. More testing needed of course. -- Thanks Brian Friday, 03 July 2020, 01:40PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com : >I would rather use preprocessors to define the variables, but it depends... your way should work. >http://gambaswiki.org/wiki/lang/.if > >Jussi > >On Fri, Jul 3, 2020 at 4:51 AM Brian G < brian at westwoodsvcs.com> wrote: >>I replaced all c calls from Gambas3 that required Size_t data type with a pointer type in Gambas and cast the type using cint() or clong() when the value must be used. >> >>I did this because in most cases size_t follows the width of the address bus by convention. >> >>This seems to work so far. >> >>Does anyone have any thoughts on this? >> >>I would like to get some input about this if anyone have a better idea >> >>I can't see any where even in the structures I have used that this does not translate well. >> >>Was playing with the new raspi OS which defaults to 32 bit. >> >>Thank You >>Brian G >>----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jul 4 02:16:49 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 4 Jul 2020 03:16:49 +0300 Subject: [Gambas-user] Moving from 64bit to 32 bit and back In-Reply-To: <1593820118.793359104@f13.my.com> References: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> <1593820118.793359104@f13.my.com> Message-ID: Then perhaps one alternative would be different classes for 32 and 64 bit systems and choose which one to use according to what System.Architecture returns at runtime. Jussi On Sat, Jul 4, 2020 at 2:59 AM Brian G wrote: > Yes that would work, but then I have to figure out the address width > myself at compile time. > > I would need to compile for each architecture . > > I was trying to find a way to make the code portable that requires no > recompile for SAME OS 32 AND 64 BIT VERSION. The same package can be > installed on both versions and call c functions and pass structures without > any issues....... So far lol ... with such in-depth testing I have done... > Three or four times ... > > Pointers are basically unsigned values which match size_t's nominal type > and length. > > The cint and clong function are signed so it does take a little bit if > fiddling to work properly. > > More testing needed of course. > > -- > Thanks > Brian > Friday, 03 July 2020, 01:40PM -07:00 from Jussi Lahtinen > jussi.lahtinen at gmail.com: > > I would rather use preprocessors to define the variables, but it > depends... your way should work. > http://gambaswiki.org/wiki/lang/.if > > Jussi > > On Fri, Jul 3, 2020 at 4:51 AM Brian G wrote: > > I replaced all c calls from Gambas3 that required Size_t data type with a > pointer type in Gambas and cast the type using cint() or clong() when the > value must be used. > > I did this because in most cases size_t follows the width of the address > bus by convention. > > This seems to work so far. > > Does anyone have any thoughts on this? > > I would like to get some input about this if anyone have a better idea > > I can't see any where even in the structures I have used that this does > not translate well. > > Was playing with the new raspi OS which defaults to 32 bit. > > Thank You > 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 brian at westwoodsvcs.com Sat Jul 4 05:11:56 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Sat, 04 Jul 2020 06:11:56 +0300 Subject: [Gambas-user] =?utf-8?q?Moving_from_64bit_to_32_bit_and_back?= In-Reply-To: References: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> <1593820118.793359104@f13.my.com> Message-ID: <1593832316.548492648@f27.my.com> So put every extern into two classes and then choose the one to use each time -- Thanks Brian Friday, 03 July 2020, 05:17PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com : >Then perhaps one alternative would be different classes for 32 and 64 bit systems and choose which one to use according to what System.Architecture returns at runtime. > >Jussi > >On Sat, Jul 4, 2020 at 2:59 AM Brian G < brian at westwoodsvcs.com> wrote: >>Yes that would work, but then I have to figure out the address width myself at compile time. >>?? I would need to compile for each architecture . >>? I was trying to find a way to make the code portable that requires no recompile for SAME OS 32 AND 64 BIT VERSION. The same package can be installed on both versions and call c functions and pass structures without any issues....... So far lol? ... with such in-depth testing I have done... Three or four times ... >>Pointers are basically unsigned values which match size_t's nominal type and length. >>The cint and clong function are signed so it does take a little bit if fiddling to work properly. >>More testing needed of course. >>-- >>Thanks >>Brian Friday, 03 July 2020, 01:40PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com : >> >>>I would rather use preprocessors to define the variables, but it depends... your way should work. >>>http://gambaswiki.org/wiki/lang/.if >>> >>>Jussi >>> >>>On Fri, Jul 3, 2020 at 4:51 AM Brian G < brian at westwoodsvcs.com> wrote: >>>>I replaced all c calls from Gambas3 that required Size_t data type with a pointer type in Gambas and cast the type using cint() or clong() when the value must be used. >>>> >>>>I did this because in most cases size_t follows the width of the address bus by convention. >>>> >>>>This seems to work so far. >>>> >>>>Does anyone have any thoughts on this? >>>> >>>>I would like to get some input about this if anyone have a better idea >>>> >>>>I can't see any where even in the structures I have used that this does not translate well. >>>> >>>>Was playing with the new raspi OS which defaults to 32 bit. >>>> >>>>Thank You >>>>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 g4mba5 at gmail.com Sat Jul 4 20:01:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 4 Jul 2020 20:01:58 +0200 Subject: [Gambas-user] Release of Gambas 3.15 Message-ID: <7391c017-7ee1-2480-3f8f-0d10be55fdd3@gmail.com> Hi, Today I released Gambas 3.15. The web site has not been updated yet, but you can download the source package on GitLab [1], and see the ChangeLog in the wiki [2] as usual. [1] https://gitlab.com/gambas/gambas/-/archive/3.15.0/gambas-3.15.0.tar.bz2 [2] https://gambaswiki.org/wiki/doc/release/3.15.0 The main features of this release are: - A new unit test system made by Christof Thalhofer and Tobias Boege. - A new diff mode in the IDE code editor. - The ability to save and restore custom IDE layouts. - Enhanced support for dark themes. - Many fixes in the packager. - A new trace mode in the interpreter. - A new 'OPEN NULL' syntax for opening a null stream. - A new 'PEEK' instruction. - A new 'WAIT NEXT' instruction. - The &= operator is now hundreds of times faster. - New special methods that allow any object to be serialized. - A new faster 'gb.web.gui' component that replaces 'gb.web.form'. - A new 'gb.poppler' component that replaces 'gb.pdf'. With of courses hundreds of bug fixes. Please report any problem you may encounter with compilation and installation. Enjoy it! -- Beno?t Minisini From chrisml at deganius.de Sat Jul 4 21:13:22 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jul 2020 21:13:22 +0200 Subject: [Gambas-user] Release of Gambas 3.15 In-Reply-To: <7391c017-7ee1-2480-3f8f-0d10be55fdd3@gmail.com> References: <7391c017-7ee1-2480-3f8f-0d10be55fdd3@gmail.com> Message-ID: <04cd09c2-0a73-58d1-adee-0a661af3a265@deganius.de> Am 04.07.20 um 20:01 schrieb Beno?t Minisini: > Today I released Gambas 3.15. Great, fantastic! Thank you!!! > The main features of this release are: > > - A new unit test system made by Christof Thalhofer and Tobias Boege and Beno?t Minisini! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Sun Jul 5 00:22:45 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 5 Jul 2020 01:22:45 +0300 Subject: [Gambas-user] Moving from 64bit to 32 bit and back In-Reply-To: <1593832316.548492648@f27.my.com> References: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> <1593820118.793359104@f13.my.com> <1593832316.548492648@f27.my.com> Message-ID: You don't have to make the choice everytime, only once. If System.Architecture = "x86_64" Then hClassToBeUsed = 32bitClass Else hClassToBeUsed = 64bitClass Endif hClassToBeUsed.Somefunction() Jussi On Sat, Jul 4, 2020 at 6:22 AM Brian G wrote: > So put every extern into two classes and then choose the one to use each > time > > -- > Thanks > Brian > Friday, 03 July 2020, 05:17PM -07:00 from Jussi Lahtinen > jussi.lahtinen at gmail.com: > > Then perhaps one alternative would be different classes for 32 and 64 bit > systems and choose which one to use according to what System.Architecture > returns at runtime. > > Jussi > > On Sat, Jul 4, 2020 at 2:59 AM Brian G wrote: > > Yes that would work, but then I have to figure out the address width > myself at compile time. > > I would need to compile for each architecture . > > I was trying to find a way to make the code portable that requires no > recompile for SAME OS 32 AND 64 BIT VERSION. The same package can be > installed on both versions and call c functions and pass structures without > any issues....... So far lol ... with such in-depth testing I have done... > Three or four times ... > > Pointers are basically unsigned values which match size_t's nominal type > and length. > > The cint and clong function are signed so it does take a little bit if > fiddling to work properly. > > More testing needed of course. > > -- > Thanks > Brian > Friday, 03 July 2020, 01:40PM -07:00 from Jussi Lahtinen > jussi.lahtinen at gmail.com: > > I would rather use preprocessors to define the variables, but it > depends... your way should work. > http://gambaswiki.org/wiki/lang/.if > > Jussi > > On Fri, Jul 3, 2020 at 4:51 AM Brian G wrote: > > I replaced all c calls from Gambas3 that required Size_t data type with a > pointer type in Gambas and cast the type using cint() or clong() when the > value must be used. > > I did this because in most cases size_t follows the width of the address > bus by convention. > > This seems to work so far. > > Does anyone have any thoughts on this? > > I would like to get some input about this if anyone have a better idea > > I can't see any where even in the structures I have used that this does > not translate well. > > Was playing with the new raspi OS which defaults to 32 bit. > > Thank You > 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 jussi.lahtinen at gmail.com Sun Jul 5 00:23:54 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 5 Jul 2020 01:23:54 +0300 Subject: [Gambas-user] Moving from 64bit to 32 bit and back In-Reply-To: References: <511841693.3998.1593740443064.JavaMail.zimbra@westwoodsvcs.com> <1593820118.793359104@f13.my.com> <1593832316.548492648@f27.my.com> Message-ID: Err... the bits are in wrong way. Jussi On Sun, Jul 5, 2020 at 1:22 AM Jussi Lahtinen wrote: > You don't have to make the choice everytime, only once. > > If System.Architecture = "x86_64" Then > hClassToBeUsed = 32bitClass > Else > hClassToBeUsed = 64bitClass > Endif > > hClassToBeUsed.Somefunction() > > > Jussi > > On Sat, Jul 4, 2020 at 6:22 AM Brian G wrote: > >> So put every extern into two classes and then choose the one to use each >> time >> >> -- >> Thanks >> Brian >> Friday, 03 July 2020, 05:17PM -07:00 from Jussi Lahtinen >> jussi.lahtinen at gmail.com: >> >> Then perhaps one alternative would be different classes for 32 and 64 bit >> systems and choose which one to use according to what System.Architecture >> returns at runtime. >> >> Jussi >> >> On Sat, Jul 4, 2020 at 2:59 AM Brian G wrote: >> >> Yes that would work, but then I have to figure out the address width >> myself at compile time. >> >> I would need to compile for each architecture . >> >> I was trying to find a way to make the code portable that requires no >> recompile for SAME OS 32 AND 64 BIT VERSION. The same package can be >> installed on both versions and call c functions and pass structures without >> any issues....... So far lol ... with such in-depth testing I have done... >> Three or four times ... >> >> Pointers are basically unsigned values which match size_t's nominal type >> and length. >> >> The cint and clong function are signed so it does take a little bit if >> fiddling to work properly. >> >> More testing needed of course. >> >> -- >> Thanks >> Brian >> Friday, 03 July 2020, 01:40PM -07:00 from Jussi Lahtinen >> jussi.lahtinen at gmail.com: >> >> I would rather use preprocessors to define the variables, but it >> depends... your way should work. >> http://gambaswiki.org/wiki/lang/.if >> >> Jussi >> >> On Fri, Jul 3, 2020 at 4:51 AM Brian G wrote: >> >> I replaced all c calls from Gambas3 that required Size_t data type with a >> pointer type in Gambas and cast the type using cint() or clong() when the >> value must be used. >> >> I did this because in most cases size_t follows the width of the address >> bus by convention. >> >> This seems to work so far. >> >> Does anyone have any thoughts on this? >> >> I would like to get some input about this if anyone have a better idea >> >> I can't see any where even in the structures I have used that this does >> not translate well. >> >> Was playing with the new raspi OS which defaults to 32 bit. >> >> Thank You >> 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 adamnt42 at gmail.com Sun Jul 5 09:15:35 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 5 Jul 2020 16:45:35 +0930 Subject: [Gambas-user] Release of Gambas 3.15 In-Reply-To: <7391c017-7ee1-2480-3f8f-0d10be55fdd3@gmail.com> References: <7391c017-7ee1-2480-3f8f-0d10be55fdd3@gmail.com> Message-ID: <1dd60108-1ff9-81e8-0bdc-0bf68e514d41@gmail.com> I am getting an error in the gb.qt5 make: Making all in gb.qt5 make[2]: Entering directory '/home/share/gambas3.14/gb.qt5' make all-recursive make[3]: Entering directory '/home/share/gambas3.14/gb.qt5' Making all in src make[4]: Entering directory '/home/share/gambas3.14/gb.qt5/src' Making all in . make[5]: Entering directory '/home/share/gambas3.14/gb.qt5/src' CXX gb_qt5_la-CWidget_moc.lo CWidget_moc.cpp:80:18: error: ?QMetaObject::SuperData? has not been declared 80 | QMetaObject::SuperData::link(), | ^~~~~~~~~ CWidget_moc.cpp:80:61: error: expected primary-expression before ?)? token 80 | QMetaObject::SuperData::link(), | ^ make[5]: *** [Makefile:851: gb_qt5_la-CWidget_moc.lo] Error 1 make[5]: Leaving directory '/home/share/gambas3.14/gb.qt5/src' make[4]: *** [Makefile:1339: all-recursive] Error 1 make[4]: Leaving directory '/home/share/gambas3.14/gb.qt5/src' make[3]: *** [Makefile:454: all-recursive] Error 1 make[3]: Leaving directory '/home/share/gambas3.14/gb.qt5' make[2]: *** [Makefile:386: all] Error 2 make[2]: Leaving directory '/home/share/gambas3.14/gb.qt5' make[1]: *** [Makefile:438: all-recursive] Error 1 make[1]: Leaving directory '/home/share/gambas3.14' make: *** [Makefile:379: all] Error 2 I think this came up soemwhere before but I can't find the post in the archive b From john.aaron.rose at gmail.com Sun Jul 5 09:25:34 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Sun, 5 Jul 2020 08:25:34 +0100 Subject: [Gambas-user] Exec Command problem Message-ID: <7e09cd6f-477a-c5a5-310e-e85e49c64bd1@gmail.com> When I use the following Exec command in a Terminal, I get thousands of lines generated to Standard Output: get-iplayer? .? --Type=TV I have attached the output (get-iplayer.output.txt in attached zip file) of the above Terminal command: using the command: get-iplayer . --Type=TV >Temporary/get-iplayer.output.txt The TestApp application is in the attached zip file which calls the above Terminal command from its Form_Open sub using an Exec command of the form: Exec ["get-iplayer", ". --Type=TV"] Wait For Read As "getiplayerMessages" This appears to only generate a few lines as shown on the TestApp screenshot (in the attached zip file). This is confirmed by the Console output. Why is this happening? I have tried amending the Exec command in various ways: Exec ["get-iplayer", ".", "--Type=TV"] Wait For Read As "getiplayerMessages" Exec ["get-iplayer . --Type=TV"] Wait For Read As "getiplayerMessages" but all give the same problem. I am using latest stable version of Gambas (3.14.3). -------------- next part -------------- A non-text attachment was scrubbed... Name: ExecProblem.zip Type: application/zip Size: 156508 bytes Desc: not available URL: From chrisml at deganius.de Sun Jul 5 10:34:55 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 5 Jul 2020 10:34:55 +0200 Subject: [Gambas-user] Exec Command problem In-Reply-To: <7e09cd6f-477a-c5a5-310e-e85e49c64bd1@gmail.com> References: <7e09cd6f-477a-c5a5-310e-e85e49c64bd1@gmail.com> Message-ID: Am 05.07.20 um 09:25 schrieb John Rose: > I have attached the output (get-iplayer.output.txt in attached zip file) Your mail was bounced by Google servers for (IMO) all gmail accounts. Seems that the tech giant Google cannot handle Zip-Files well. For instance: > : host > gmail-smtp-in.l.google.com[2a00:1450:400c:c0b::1b] said: 552-5.7.0 This > message was blocked because its content presents a potential 552-5.7.0 > security issue. Please visit 552-5.7.0 > https://support.google.com/mail/?p=BlockedMessage to review our 552 5.7.0 > message content and attachment content guidelines. y17si15054408wmi.218 - > gsmtp (in reply to end of DATA command) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From john.aaron.rose at gmail.com Sun Jul 5 12:32:04 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Sun, 5 Jul 2020 11:32:04 +0100 Subject: [Gambas-user] Exec Command Problem Message-ID: I previously attached 3 files compressed into a zip file. Gmail won't let me send zip or other compressed formats. So I have renamed the zip file with an odt extension. Please change it back to zip extension. Here's my original post: When I use the following Exec command in a Terminal, I get thousands of lines generated to Standard Output: get-iplayer? .? --Type=TV I have attached the output (get-iplayer.output.txt in attached zip file) of the above Terminal command: using the command: get-iplayer . --Type=TV >Temporary/get-iplayer.output.txt The TestApp application is in the attached zip file which calls the above Terminal command from its Form_Open sub using an Exec command of the form: Exec ["get-iplayer", ". --Type=TV"] Wait For Read As "getiplayerMessages" This appears to only generate a few lines as shown on the TestApp screenshot (in the attached zip file). This is confirmed by the Console output. Why is this happening? I have tried amending the Exec command in various ways: Exec ["get-iplayer", ".", "--Type=TV"] Wait For Read As "getiplayerMessages" Exec ["get-iplayer . --Type=TV"] Wait For Read As "getiplayerMessages" but all give the same problem. I am using latest stable version of Gambas (3.14.3). -------------- next part -------------- A non-text attachment was scrubbed... Name: ExecProblem.odt Type: application/vnd.oasis.opendocument.text Size: 156508 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Jul 5 18:14:17 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 5 Jul 2020 18:14:17 +0200 Subject: [Gambas-user] [CRASH REPORT] mailboxer In-Reply-To: References: Message-ID: <00e30f7f-3fa0-7f19-d614-fb4991803431@gmail.com> Le 05/07/2020 ? 15:34, OpenOS DevTeam a ?crit?: > Hello, > > Damned, my program crashed Gambas that way : > > This happens on LMDE 4 (Gambas 3.12.2). On Linux Mint 18.1 (Gambas > 3.8.4) and Devuan 2.1 (Gambas 3.13.0) the same code works flawless. > > ================================================== > > Private Function gPollExec(..., ..., ...) > > ??? Dim pop As New Pop3Client > ??? Dim hMMH As MimeMessage > ??? Dim sSubject As String > ??? Dim sSender As String > ??? Dim sMMText As String > ??? Dim i As Integer > > ??? pop.Host = [...] > ??? pop.Port = [...] > ??? pop.Encrypt = [...] > ??? pop.User = [...] > ??? pop.Password = [...] > ??? Try pop.Open > ??? If pop.Status = 7 Then > ??????? If pop.Count > 0 Then > ??????????? For i = 1 To pop.Count > ??????????????? Wait > ??????????????? sMMText = pop[i - 1].Text > ??????????????? hMMH = New MimeMessage(sMMText) > ??????????????? sSubject = hMMH.Subject & "\n" > ??????????????? '>>> reading property Subject: > ??????? '>>> OK! > ??????????????? ' > ??????????????? sSender = hMMH.Sender & "\n" > ??????????????? '>>> reading property Sender: > ??????? '>>> ERROR (segmentation fault) > ??????? ' > ??????? [... write vars to file] > ??????????? Next > ??????? Else > ??????????? [...] > ??????? Endif > ??? Else > ??????? [...] > ??? Endif > ??? [...] > > Finally > ??? If pop.Status = 7 Then pop.Close > > Catch > ??? [...] > > End > > ================================================== > > On this occasion: the Gambas IDE is a really impressive project. Thank > you very much for the many years of hard and first-class work! > > Respectfully yours .. > > the guys from OpenOS > Thanks. Is it possible for you to try a more recent version of Gambas? -- Beno?t Minisini From chrisml at deganius.de Mon Jul 6 08:44:26 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 6 Jul 2020 08:44:26 +0200 Subject: [Gambas-user] Using test interface for scripter testing In-Reply-To: <1943298479.3531.1593473926162.JavaMail.zimbra@westwoodsvcs.com> References: <417580033.2100.1592412751325.JavaMail.zimbra@westwoodsvcs.com> <1493165888.97.1592863219445.JavaMail.zimbra@westwoodsvcs.com> <967e9030-f61c-6639-22ea-ee88e16817a8@deganius.de> <1593264943.863220852@f36.my.com> <453122920.2839.1593281759691.JavaMail.zimbra@westwoodsvcs.com> <20200627192617.GF1527334@highrise.localdomain> <228930679.3145.1593331247915.JavaMail.zimbra@westwoodsvcs.com> <20200628113613.GG1527334@highrise.localdomain> <1943298479.3531.1593473926162.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Hello Brian, Am 30.06.20 um 01:38 schrieb Brian G: > Assert.Exported("namelist",......... ) ' list of expected exported > modules and classes fails if don't match > Assert.Interface("modOrClass", "interfaceFuncOrVarsOrProperty".....) > ' test exported mods or classes that the interface is correct ie > public functions and variables exposed, returns I find these things useful. If you are interested in enhancing gb.test then it should be done like this: To ensure it's stability gb.test tests itself so at first you should write tests for gb.test that require the new methods: Assert.Interface("ExistingClass", "ExistingSymbol") There should also be tests that test the right behavior on failure, like this: Test.IntendedFailure Assert.Interface("NotExistingClass", "AnySymbol") Test.IntendedFailure Assert.Interface("ExistingClass", "NotExportedSymbol") These tests must be part of the testsuite "All good" in gb.test. After that write the methods in 'Assert' that meet the requirements, they should be well documented. -------------------------------------------------------------------- To bring your work into Gambas you must fork Gambas on Gitlab, commit your changes and then create a merge request. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Mon Jul 6 09:06:42 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 6 Jul 2020 09:06:42 +0200 Subject: [Gambas-user] Using test interface for scripter testing In-Reply-To: References: <417580033.2100.1592412751325.JavaMail.zimbra@westwoodsvcs.com> <1493165888.97.1592863219445.JavaMail.zimbra@westwoodsvcs.com> <967e9030-f61c-6639-22ea-ee88e16817a8@deganius.de> <1593264943.863220852@f36.my.com> <453122920.2839.1593281759691.JavaMail.zimbra@westwoodsvcs.com> <20200627192617.GF1527334@highrise.localdomain> <228930679.3145.1593331247915.JavaMail.zimbra@westwoodsvcs.com> <20200628113613.GG1527334@highrise.localdomain> <1943298479.3531.1593473926162.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <598641e0-45ae-204e-be53-dbd53cfadbd0@deganius.de> Oh, I have overseen this: >> Assert.Exported("namelist",......... ) ' list of expected exported >> modules and classes fails if don't match I would prefer this signature: Assert.Exported(Classes as String[], Description as String) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From tercoide at hotmail.com Mon Jul 6 11:20:36 2020 From: tercoide at hotmail.com (martin p cristia) Date: Mon, 6 Jul 2020 06:20:36 -0300 Subject: [Gambas-user] Gambas 3.15. In-Reply-To: References: Message-ID: Wondering what are these... Thank you! > - Enhanced support for dark themes. > - A new 'WAIT NEXT' instruction. > - New special methods that allow any object to be serialized. -- Saludos Ing. Martin P Cristia From lordheavym at gmail.com Mon Jul 6 11:41:02 2020 From: lordheavym at gmail.com (Laurent Carlier) Date: Mon, 06 Jul 2020 11:41:02 +0200 Subject: [Gambas-user] Gambas 3.15. In-Reply-To: References: Message-ID: <1686701.t8e58ONAo8@lordh-pc> Le lundi 6 juillet 2020, 11:20:36 CEST martin p cristia a ?crit : > Wondering what are these... > > Thank you! > > > - Enhanced support for dark themes. > > - A new 'WAIT NEXT' instruction. http://gambaswiki.org/wiki/lang/wait > > - New special methods that allow any object to be serialized. http://gambaswiki.org/wiki/cat/special -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From g4mba5 at gmail.com Mon Jul 6 14:55:04 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 6 Jul 2020 14:55:04 +0200 Subject: [Gambas-user] Gambas 3.15. In-Reply-To: References: Message-ID: <84df63f9-855b-c1cf-ca5c-9377c0f0dd9e@gmail.com> Le 06/07/2020 ? 11:20, martin p cristia a ?crit?: > Wondering what are these... > > Thank you! > >> - Enhanced support for dark themes. If you are using a dark theme with your desktop, i.e. a dark background color, then the IDE GUI will adapt better: 1) Icons are automatically recolorized so that they are visible on a dark background. This is done by the Picture[] method. 2) Highlighting themes adapt its colors too. 3) The text editor control will draw bold text bolder so that it is visible. Note that 1) and 3) are not IDE-specific. Every Gambas application takes advantage of that. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Mon Jul 6 15:45:13 2020 From: mbelmonte at belmotek.net (Martin Belmonte) Date: Mon, 6 Jul 2020 15:45:13 +0200 Subject: [Gambas-user] How Gambas determine if the desktop is dark? Message-ID: <81543a65-28f5-1c13-0a4a-727e2fc77861@belmotek.net> Hi, What method uses Gambas to determine if the desktop theme is dark or light? I try to find out so that the programs I made with Gambas adapt to the desktop in other aspects beyond the standard icons and the color of the text. Specifically I use paint to draw by code the images that I will show in drawing tools. Regards. Mart?n. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jul 6 16:23:07 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 6 Jul 2020 16:23:07 +0200 Subject: [Gambas-user] How Gambas determine if the desktop is dark? In-Reply-To: <81543a65-28f5-1c13-0a4a-727e2fc77861@belmotek.net> References: <81543a65-28f5-1c13-0a4a-727e2fc77861@belmotek.net> Message-ID: Le 06/07/2020 ? 15:45, Martin Belmonte a ?crit?: > Hi, > > What method uses Gambas to determine if the desktop theme is dark or light? > I try to find out so that the programs I made with Gambas adapt to the > desktop in other aspects beyond the standard icons and the color of the > text. > Specifically I use paint to draw by code the images that I will show in > drawing tools. > Regards. > > Mart?n. > The Application.DarkTheme property is TRUE if: - The luminance of the default background color is lower or equal than 50%. - Or if the GB_GUI_DARK_THEME environment variable is set to an integer number different from zero. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Mon Jul 6 21:39:21 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Mon, 06 Jul 2020 22:39:21 +0300 Subject: [Gambas-user] =?utf-8?q?Using_test_interface_for_scripter_testin?= =?utf-8?q?g?= In-Reply-To: References: <417580033.2100.1592412751325.JavaMail.zimbra@westwoodsvcs.com> <1943298479.3531.1593473926162.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1594064361.376220749@f7.my.com> Will give it a try! -- Thanks Brian Sunday, 05 July 2020, 11:45PM -07:00 from Christof Thalhofer chrisml at deganius.de : >Hello Brian, > >Am 30.06.20 um 01:38 schrieb Brian G: > > Assert.Exported("namelist",......... ) ' list of expected exported > modules and classes fails if don't match > > Assert.Interface("modOrClass", "interfaceFuncOrVarsOrProperty".....) > ' test exported mods or classes that the interface is correct ie > public functions and variables exposed, returns > >I find these things useful. If you are interested in enhancing gb.test >then it should be done like this: > >To ensure it's stability gb.test tests itself so at first you should >write tests for gb.test that require the new methods: > >Assert.Interface("ExistingClass", "ExistingSymbol") > >There should also be tests that test the right behavior on failure, like >this: > >Test.IntendedFailure >Assert.Interface("NotExistingClass", "AnySymbol") > >Test.IntendedFailure >Assert.Interface("ExistingClass", "NotExportedSymbol") > >These tests must be part of the testsuite "All good" in gb.test. > >After that write the methods in 'Assert' that meet the requirements, >they should be well documented. > >-------------------------------------------------------------------- > >To bring your work into Gambas you must fork Gambas on Gitlab, commit >your changes and then create a merge request. > >Alles Gute > >Christof Thalhofer > >-- >Dies ist keine Signatur > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Jul 7 00:25:13 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 6 Jul 2020 15:25:13 -0700 (PDT) Subject: [Gambas-user] Add ToConsole to TextHighlighter class in gb.eval.highlight Message-ID: <156597427.4664.1594074313154.JavaMail.zimbra@westwoodsvcs.com> I would like to add a function : Public Sub ToConsole(Text As String, Optional Styles As TextHighlighterStyle[]) As String Into the TextHighlighter class in gb.eval.highlight Then submit it for merge. I have attached the code to this email if anyone wants to review it. IThe code is basically an edit of the ToHtml() function. Would anyone object to having this function added? I have tested it with, LXTerminal, Mate terminal, UXTerminal, xTerm Konsole and gnome-terminal All work as expected. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ToConsole Type: application/octet-stream Size: 2800 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Jul 7 10:10:30 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 7 Jul 2020 10:10:30 +0200 Subject: [Gambas-user] Add ToConsole to TextHighlighter class in gb.eval.highlight In-Reply-To: <156597427.4664.1594074313154.JavaMail.zimbra@westwoodsvcs.com> References: <156597427.4664.1594074313154.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 07/07/2020 ? 00:25, Brian G a ?crit?: > I would like to add a function : > > Public Sub ToConsole(Text As String, Optional Styles As > TextHighlighterStyle[]) As String > > Into the TextHighlighter class in gb.eval.highlight > > Then submit it for merge. > > I have attached the code to this email if anyone wants to review it. > IThe code is basically an edit of the ToHtml() function. > > Would anyone object to having this function added? > I have tested it with, LXTerminal, Mate terminal, UXTerminal, xTerm > Konsole and gnome-terminal > All work as expected. > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Please post a readable attachment if you want us to look at it. Anyway, I can tell you that if your code is not terminal-agnostic, it can't go as is inside TextHighlighter. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue Jul 7 10:14:04 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 7 Jul 2020 10:14:04 +0200 Subject: [Gambas-user] Locale message In-Reply-To: <42418364-3841-b066-55f3-dcb42fa50cd3@gmail.com> References: <42418364-3841-b066-55f3-dcb42fa50cd3@gmail.com> Message-ID: <222d4268-b47a-34e1-3276-c4029d9fc099@gmail.com> Le 03/07/2020 ? 15:15, John Rose a ?crit?: > When I try to run the terminal program get-iplayer using the Exec verb > as in: > Exec ["get-iplayer", ".", "--type=" & "TV"] Wait For Read As > "getiplayerMessages" > I get: > /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8) > No idea what this "get-iplayer" program is, so I can't test your code (which has *no* indentation by the way! How can you do that?) -- Beno?t Minisini From mbelmonte at belmotek.net Tue Jul 7 12:11:26 2020 From: mbelmonte at belmotek.net (Martin Belmonte) Date: Tue, 7 Jul 2020 12:11:26 +0200 Subject: [Gambas-user] How Gambas determine if the desktop is dark? In-Reply-To: References: <81543a65-28f5-1c13-0a4a-727e2fc77861@belmotek.net> Message-ID: <387721fe-3eae-ad2a-369a-6ec6fce0dc84@belmotek.net> Perfect. I followed the method of color luminance and as I use version 3.14 I used the code snippet from the gambas ide sources like. ??????????? hColor = Color[Color.ButtonBackground] ??????????? If hColor.Luminance > 160 Then ??????????????? Paint.Brush = Paint.Color(Color.Black) ??????????? Else ??????????????? Paint.Brush = Paint.Color(Color.White) ??????????? Endif Tanks. Mart?n. El 6/7/20 a las 16:23, Beno?t Minisini escribi?: > Le 06/07/2020 ? 15:45, Martin Belmonte a ?crit?: >> Hi, >> >> What method uses Gambas to determine if the desktop theme is dark or >> light? >> I try to find out so that the programs I made with Gambas adapt to >> the desktop in other aspects beyond the standard icons and the color >> of the text. >> Specifically I use paint to draw by code the images that I will show >> in drawing tools. >> Regards. >> >> Mart?n. >> > > The Application.DarkTheme property is TRUE if: > > - The luminance of the default background color is lower or equal than > 50%. > > - Or if the GB_GUI_DARK_THEME environment variable is set to an > integer number different from zero. > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Tue Jul 7 12:11:50 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Tue, 7 Jul 2020 12:11:50 +0200 Subject: [Gambas-user] Application with more SQL-tables Message-ID: Hi, I write a software which includes several SQL-tables. To avoid a lot of typing I want to write a function making the SQL-string for insert into and update the tables. Insert into and update differs in the format, so I want to make a function for that. For the fields I can use a simple array with the field names. But I am not quite aware of how I can put the fields on the GUI in an array. They are objects, I think. I do not use every field for all tables, so "for each" is not what I am looking for. Can anyone please tell me, how I can assign a single object to an array? Thanks in advance Dag From john.aaron.rose at gmail.com Tue Jul 7 13:06:30 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Tue, 7 Jul 2020 12:06:30 +0100 Subject: [Gambas-user] Locale message Message-ID: Beno?t, I solved the problem. It was due to /etc/locale.gen file which did not have the gb UTF-8 line uncommented. I don't believe in indenting lines of code which are part of a Sub, since I can see the start and end of a Sub by a line between each Sub. I do indent lies in such constructs as If, For & Select. John From john.aaron.rose at gmail.com Tue Jul 7 13:17:13 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Tue, 7 Jul 2020 12:17:13 +0100 Subject: [Gambas-user] Locale message Message-ID: <5472b21f-e82f-fc88-4380-9b3ee7186aca@gmail.com> Benoi?t, I forgot to include the paragraphs below when I sent my previous post on this subject. BTW get-iplayer (used to be called get_iplayer) is a ell known program which is used to list, search & download BBC (TV & radio) programmes directly from the BBC's servers. Unless you use a UK based Proxy Server or VPN, I understand that it is not available to users outside the UK. However, I could be wrong as get-iplayer may work outside the UK even though the BBC iPlayer website does not. I would be interested to know if get-iplayer works outside the UK. I am developing a Gambas GUI app called iRecorder which makes use of get-iplayer. I have put my first attempt on the Gambas Farm. But it does not work (at least on my computer) as it does not retrieve any programme's details when an attempt is made to retrieve all programmes' details in its Form_Open event. I have sent a post to Gambas Lists about this bug with the Subject of "Exec Command Problem". John From t.lee.davidson at gmail.com Tue Jul 7 13:38:56 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 7 Jul 2020 07:38:56 -0400 Subject: [Gambas-user] Application with more SQL-tables In-Reply-To: References: Message-ID: On 7/7/20 6:11 AM, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > I write a software which includes several SQL-tables. > To avoid a lot of typing I want to write a function making the SQL-string for insert into and update the tables. > Insert into and update differs in the format, so I want to make a function for that. > For the fields I can use a simple array with the field names. > But I am not quite aware of how I can put the fields on the GUI in an array. Not sure what you mean by, "fields on the GUI." Are you displaying the table columns in a GUI control such as a GridView or DataView? > They are objects, I think. > I do not use every field for all tables, so "for each" is not what I am looking for. > Can anyone please tell me, how I can assign a single object to an array? Also not sure why you would want to use an array for a single object. An array is used to store multiple objects. Do you mean how to *add* a single object to an array? If so, use the array's Add method. A simple example might help to illustrate what you are trying to accomplish. -- Lee From admin at gambas-es.org Tue Jul 7 13:34:36 2020 From: admin at gambas-es.org (Jesus Guardon) Date: Tue, 7 Jul 2020 13:34:36 +0200 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: References: Message-ID: El 07/07/20 a las 13:06, John Rose escribi?: > I don't believe in indenting lines of code which are part of a Sub, > since I can see the start and end of a Sub by a line between each Sub. I > do indent lies in such constructs as If, For & Select. > > John Hope you don't have to program on Python, though. Indentation is mandatory there, as it should be in all programming languages, for better visibility of blocks and better understanding at a glance. But I respect your decision. If you ever change your mind, Gambas has the ability of doing it for you, check the preferences dialog for automatic indentation. Best regards, Jesus From bagonergi at gmail.com Tue Jul 7 15:15:18 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 7 Jul 2020 15:15:18 +0200 Subject: [Gambas-user] Application with more SQL-tables In-Reply-To: References: Message-ID: Il giorno mar 7 lug 2020 alle ore 13:39 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 7/7/20 6:11 AM, Dag Jarle Nerland Johansen - Gambas wrote: > > Hi, > > I write a software which includes several SQL-tables. > A simple example might help to illustrate what you are trying to > accomplish. > ? Hi Dag, I'm afraid you are taking a wrong path, however I am attaching this code that I don't know if it can help. --------------------------------------- Public Sub Main() Dim aCell As New Variant[20] Dim i As Integer aCell[5] = "Pippo" aCell[10] = 12 aCell[19] = Date(Now) For Each v As Variant In aCell Print v;; " n."; i Inc i Next End --------------------------------------- Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Jul 7 17:01:48 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Tue, 07 Jul 2020 18:01:48 +0300 Subject: [Gambas-user] =?utf-8?q?Add_ToConsole_to_TextHighlighter_class_i?= =?utf-8?q?n_gb=2Eeval=2Ehighlight?= In-Reply-To: References: <156597427.4664.1594074313154.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1594134108.133012210@f25.my.com> Sorry, how did the attachment look. I checked it here seems fine Not sure what is going wrong -- Thanks Brian Tuesday, 07 July 2020, 01:11AM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 07/07/2020 ? 00:25, Brian G a ?crit?: > I would like to add a function : > > Public Sub ToConsole(Text As String, Optional Styles As > TextHighlighterStyle[]) As String > > Into the TextHighlighter class in gb.eval.highlight > > Then submit it for merge. > > I have attached the code to this email if anyone wants to review it. > IThe code is basically an edit of the ToHtml() function. > > Would anyone object to having this function added? > I have tested it with, LXTerminal, Mate terminal, UXTerminal, xTerm > Konsole and gnome-terminal > All work as expected. > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > >Please post a readable attachment if you want us to look at it. > >Anyway, I can tell you that if your code is not terminal-agnostic, it >can't go as is inside TextHighlighter. > >Regards, > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Jul 7 17:37:23 2020 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 7 Jul 2020 08:37:23 -0700 (PDT) Subject: [Gambas-user] Add ToConsole to TextHighlighter class in gb.eval.highlight In-Reply-To: <1594134108.133012210@f25.my.com> References: <156597427.4664.1594074313154.JavaMail.zimbra@westwoodsvcs.com> <1594134108.133012210@f25.my.com> Message-ID: <14961037.4952.1594136243318.JavaMail.zimbra@westwoodsvcs.com> I have attached a copy again with a different encoding I hope this is better. The code is completely terminal agnostic and uses only well published escape sequences. So here is the code again, It has functioned correctly on every single terminal I have tested it upon( that is all I could find in linux domain), Except the console page of Gambas IDE where it only displayed what looked like shades of grey, bold and underline. but did not fail. I also attach a text application project source code archive. Thank You Brian G Tuesday, 07 July 2020, 01:11AM -07:00 from Beno?t Minisini [ mailto:g4mba5 at gmail.com | g4mba5 at gmail.com ] : Le 07/07/2020 ? 00:25, Brian G a ?crit : > I would like to add a function : > > Public Sub ToConsole(Text As String, Optional Styles As > TextHighlighterStyle[]) As String > > Into the TextHighlighter class in gb.eval.highlight > > Then submit it for merge. > > I have attached the code to this email if anyone wants to review it. > IThe code is basically an edit of the ToHtml() function. > > Would anyone object to having this function added? > I have tested it with, LXTerminal, Mate terminal, UXTerminal, xTerm > Konsole and gnome-terminal > All work as expected. > > Thank You > Brian G > > > ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- > Please post a readable attachment if you want us to look at it. Anyway, I can tell you that if your code is not terminal-agnostic, it can't go as is inside TextHighlighter. Regards, -- Beno?t Minisini ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testtexthighlighter-0.0.1.tar.gz Type: application/x-compressed-tar Size: 13140 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ToConsole.txt URL: From karl.reinl at fen-net.de Tue Jul 7 18:47:12 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Tue, 07 Jul 2020 18:47:12 +0200 Subject: [Gambas-user] gambas3 3.15 IDE Message-ID: Salut, gambas3 3.15 IDE from git, shows still 3.14.90 [System] Gambas=3.14.90 8a8c10d57 (master) OperatingSystem=Linux Kernel=5.3.0-62-generic Architecture=x86_64 Distribution=Ubuntu 18.04.4 LTS -- Amicalement Charlie From g4mba5 at gmail.com Tue Jul 7 20:32:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 7 Jul 2020 20:32:31 +0200 Subject: [Gambas-user] gambas3 3.15 IDE In-Reply-To: References: Message-ID: <92b2f8bd-ad68-a049-a365-0fbb68cfa9b2@gmail.com> Le 07/07/2020 ? 18:47, Karl Reinl a ?crit?: > Salut, > > gambas3 3.15 IDE from git, shows still 3.14.90 > > [System] > Gambas=3.14.90 8a8c10d57 (master) > OperatingSystem=Linux > Kernel=5.3.0-62-generic > Architecture=x86_64 > Distribution=Ubuntu 18.04.4 LTS > Fixed. -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Jul 8 00:10:11 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 8 Jul 2020 01:10:11 +0300 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: References: Message-ID: > Indentation is mandatory there, as it should be in all programming > languages, for > better visibility of blocks and better understanding at a glance. > Indentation as syntax is absolutely horrible idea. It has zero benefits and a lot of down sides like easy silent bugs, hard to move code by copy&paste, etc. If you need it for readability, then just click on the automatic indentation. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at gambas-es.org Wed Jul 8 00:56:34 2020 From: admin at gambas-es.org (Jesus Guardon) Date: Wed, 8 Jul 2020 00:56:34 +0200 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: References: Message-ID: <387538cd-5e27-4893-5655-9b234941ab88@gambas-es.org> El 08/07/20 a las 00:10, Jussi Lahtinen escribi?: >> Indentation is mandatory there, as it should be in all programming >> languages, for >> better visibility of blocks and better understanding at a glance. >> > > Indentation as syntax is absolutely horrible idea. It has zero benefits and > a lot of down sides like easy silent bugs, hard to move code by copy&paste, > etc. If you need it for readability, then just click on the automatic > indentation. > > > Jussi > Not only indentation as syntax, but rules as PEP8 contributes to code readability and makes language less prone to syntax bugs, BTW. If I would be programming in a team, I'll stick with these rules for convenience, but some gambas programmers seem to not work in teams and/or refuse to stop bad habits from the past inherited from VB6 era. How can be gambas be taken as a serious programming language by seeing all that messy code spreading everywhere? Well, everyone has an opinion as well as everybody are free to choose for themselves. Best regards, Jesus From jussi.lahtinen at gmail.com Wed Jul 8 01:06:58 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 8 Jul 2020 02:06:58 +0300 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: <387538cd-5e27-4893-5655-9b234941ab88@gambas-es.org> References: <387538cd-5e27-4893-5655-9b234941ab88@gambas-es.org> Message-ID: > Not only indentation as syntax, but rules as PEP8 contributes to code > readability and makes language less prone to syntax bugs, BTW. > No, indentation makes code more readable and less prone to bugs, but indentation as syntax makes code less readable and more prone to bugs. Simply because it is easy to miss white space and for readability it doesn't matter, but when it is part of syntax it is bug. > How can be gambas be taken as a serious programming language by seeing > all that messy code spreading everywhere? > If that would be an issue, then no one would take C seriously. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Jul 8 02:01:44 2020 From: taboege at gmail.com (Tobias Boege) Date: Wed, 8 Jul 2020 02:01:44 +0200 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: References: <387538cd-5e27-4893-5655-9b234941ab88@gambas-es.org> Message-ID: <20200708000144.GA534575@highrise.localdomain> On Wed, 08 Jul 2020, Jussi Lahtinen wrote: > > How can be gambas be taken as a serious programming language by seeing > > all that messy code spreading everywhere? > > > > If that would be an issue, then no one would take C seriously. > Well, it might be a trade-off between utility (also consider prevalence) and suffering from using it, and C is a net positive. I think Jesus has a point. I've seen it countless times in forums, that people reflexively equate "(sample of) source code is unreadable or badly formatted" with "the language has no technical merits". Yes, something might be said about the correlation of technical merit and having a high proportion of professionally trained users of the language (as determined by how disciplined their source code looks??), but that isn't nearly as clear as people pretend it to be. The language and its standard library are not guilty by association with amateur users. It is my humble opinion that syntax and readability concerns are for most commentators simply a matter of first impression sympathy allowing them to hand-wavingly dismiss something without spending time to evaluate it on hard criteria. This is an easy position for me to take because I really like Perl and I say that syntax is a very shallow reason for people to avoid it. And I do know Gambas and there are a bunch of reasons why it is not the default choice for my everyday programming, but syntax isn't one of them and it wouldn't get on the list even if indentation became mandatory. Although I'll admit that I never bothered to learn how exactly I am allowed to linebreak long expressions in Python or if I am in fact allowed to program "in paragraphs", with empty lines between blocks or if I have to indent them to the current level and reconfigure my editor not to mark that as useless trailing whitespace. I did produce some horrible, unreadable Python code that hopefully only 5 people ever saw, keeping Python's reputation unsullied ;-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Wed Jul 8 02:18:05 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 8 Jul 2020 03:18:05 +0300 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: <20200708000144.GA534575@highrise.localdomain> References: <387538cd-5e27-4893-5655-9b234941ab88@gambas-es.org> <20200708000144.GA534575@highrise.localdomain> Message-ID: Well, missing/bad indentation can be corrected by single click (*if* it is not part of syntax). But it doesn't make bad code good or change the user base. I think the fact that language is easy to use/learn attracts amateurs, independently of indentation issue. Thus I don't think indentation is a real issue with languages such as Gambas. Jussi On Wed, Jul 8, 2020 at 3:02 AM Tobias Boege wrote: > On Wed, 08 Jul 2020, Jussi Lahtinen wrote: > > > How can be gambas be taken as a serious programming language by seeing > > > all that messy code spreading everywhere? > > > > > > > If that would be an issue, then no one would take C seriously. > > > > Well, it might be a trade-off between utility (also consider prevalence) > and suffering from using it, and C is a net positive. > > I think Jesus has a point. I've seen it countless times in forums, that > people reflexively equate "(sample of) source code is unreadable or badly > formatted" with "the language has no technical merits". Yes, something > might be said about the correlation of technical merit and having a high > proportion of professionally trained users of the language (as determined > by how disciplined their source code looks??), but that isn't nearly as > clear as people pretend it to be. The language and its standard library > are not guilty by association with amateur users. It is my humble opinion > that syntax and readability concerns are for most commentators simply a > matter of first impression sympathy allowing them to hand-wavingly dismiss > something without spending time to evaluate it on hard criteria. > > This is an easy position for me to take because I really like Perl and > I say that syntax is a very shallow reason for people to avoid it. > > And I do know Gambas and there are a bunch of reasons why it is not the > default choice for my everyday programming, but syntax isn't one of them > and it wouldn't get on the list even if indentation became mandatory. > > Although I'll admit that I never bothered to learn how exactly I am allowed > to linebreak long expressions in Python or if I am in fact allowed to > program > "in paragraphs", with empty lines between blocks or if I have to indent > them > to the current level and reconfigure my editor not to mark that as useless > trailing whitespace. I did produce some horrible, unreadable Python code > that > hopefully only 5 people ever saw, keeping Python's reputation unsullied ;-) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Jul 8 02:37:55 2020 From: taboege at gmail.com (Tobias Boege) Date: Wed, 8 Jul 2020 02:37:55 +0200 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: <20200708000144.GA534575@highrise.localdomain> References: <387538cd-5e27-4893-5655-9b234941ab88@gambas-es.org> <20200708000144.GA534575@highrise.localdomain> Message-ID: <20200708003755.GB534575@highrise.localdomain> On Wed, 08 Jul 2020, Tobias Boege wrote: > On Wed, 08 Jul 2020, Jussi Lahtinen wrote: > > > How can be gambas be taken as a serious programming language by seeing > > > all that messy code spreading everywhere? > > > > > I think Jesus has a point. [...] Oh, I definitely shouldn't have made it sound like what you wrote would confirm my views, Jesus, because I think we assess the situation differently. In my experience, yes, people will hold poorly written, publicly visible code against the Gambas language when they're forced to. You say mandatory indentation would shield Gambas against such shallow judgements, or maybe you don't view them as shallow. But from my ivory tower, I think people are committing an error no matter what when they link users' source code to the quality of the language or its runtime. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Wed Jul 8 11:24:42 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 8 Jul 2020 11:24:42 +0200 Subject: [Gambas-user] Application with more SQL-tables In-Reply-To: References: Message-ID: >Thanks, but I said clearly "for each" is no option >Dag Why, was it ordered to you by the doctor? Here he works well: -------------------------------------- Dim aCell As New Variant[20] Dim sType As String aCell[5] = "Pippo" aCell[10] = 12 aCell[19] = Date(Now) For Each v As Variant In aCell If Not v Then Continue Else Print "-----------------------------" Select TypeOf(v) Case gb.String sType = " is a string" Case gb.Integer sType = " is a integer" Case gb.Date sType = " is a date" End Select Print v; sType Print "-----------------------------" Endif Next -------------------------------------- or explain yourself better. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at gambas-es.org Wed Jul 8 11:40:48 2020 From: admin at gambas-es.org (Jesus Guardon) Date: Wed, 8 Jul 2020 11:40:48 +0200 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: <20200708003755.GB534575@highrise.localdomain> References: <387538cd-5e27-4893-5655-9b234941ab88@gambas-es.org> <20200708000144.GA534575@highrise.localdomain> <20200708003755.GB534575@highrise.localdomain> Message-ID: <7388d473-05a8-05e8-a5dc-f5d17080d70c@gambas-es.org> Thanks, Toby and Jussi El 08/07/20 a las 02:37, Tobias Boege escribi?: > On Wed, 08 Jul 2020, Tobias Boege wrote: >> I think Jesus has a point. [...] > > Oh, I definitely shouldn't have made it sound like what you wrote would > confirm my views, Jesus, Yeah, I know ;-) > > You say mandatory indentation would shield Gambas against such shallow > judgements, or maybe you don't view them as shallow. Well, not exactly, of course. But as a matter of fact, cleanliness of the code is a presentation card as itself towards people reading that code. At least for me, that I'm not by far a skilled programmer, it is important. Skills should come along the way on top of good writing habits. We all agree that a well written/presented code is not synonym of a well thought out and good quality code, but it helps as a whole, IMHO. BTW, please John Rose, accept my apologies for hijacking your thread that badly. I'm sorry. Best regards, Jesus From tercoide at hotmail.com Wed Jul 8 13:31:04 2020 From: tercoide at hotmail.com (martin p cristia) Date: Wed, 8 Jul 2020 08:31:04 -0300 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: References: Message-ID: It is a fact that very inteligent people have a bad calligraphy or have messed up desks :) If you translate that into coding, you will find a lot of examples in all languages. I allways do research before writing new code, to avoid inventing the wheel, and usually the better findings are not idented/commented at all. So forcing identation would be an error, but we all must thank then auto-identation feature that makes everyone here better programmers. El 7/8/20 a las 7:12 AM, user-request at lists.gambas-basic.org escribi?: > Well, not exactly, of course. But as a matter of fact, cleanliness of > the code is a presentation card as itself towards people reading that > code. At least for me, that I'm not by far a skilled programmer, it is > important. Skills should come along the way on top of good writing habits. > > We all agree that a well written/presented code is not synonym of a well > thought out and good quality code, but it helps as a whole, IMHO. -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Wed Jul 8 13:51:54 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 8 Jul 2020 13:51:54 +0200 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: References: Message-ID: <33876622-f01f-6c17-cfa9-4c6c6ee8e813@gmail.com> Le 08/07/2020 ? 13:31, martin p cristia a ?crit?: > It is a fact that very inteligent people have a bad calligraphy or have > messed up desks :) > > If you translate that into coding, you will find a lot of examples in > all languages. I allways do research before > > writing new code, to avoid inventing the wheel, and usually the better > findings are not idented/commented at all. > > So forcing identation would be an error, but we all must thank then > auto-identation feature that makes everyone here > > better programmers. > Hi, The indentation question is not theoretical, it's practical. How do you think anyone can read and debug a one hundred thousand lines of code project six months later without any indentation? And I don't tell if you didn't write that code, or, worse, if your language is LISP! Of course, if you just write small projects, this is not important. And this is not just indentation. This is naming convention too ; and coherency in that naming convention. All that are personal ; it should be enforced only for people working on the same project. It depends on the syntax of the language too. You won't have the same indentation and naming conventions in C than in Ruby. On the other hand I don't think that putting the indentation inside the language syntax like in Python is a good idea. My two cents. -- Beno?t Minisini From chrisml at deganius.de Wed Jul 8 14:32:10 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 8 Jul 2020 14:32:10 +0200 Subject: [Gambas-user] Locale message (offtopic) In-Reply-To: <33876622-f01f-6c17-cfa9-4c6c6ee8e813@gmail.com> References: <33876622-f01f-6c17-cfa9-4c6c6ee8e813@gmail.com> Message-ID: Am 08.07.20 um 13:51 schrieb Beno?t Minisini: > On the other hand I don't think that putting the indentation inside the > language syntax like in Python is a good idea. Yes, I've struggled a lot with Python and editors which destroyed the code by accident, which could not be seen. This was the main reason why I no longer wanted to work with Python. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From john.aaron.rose at gmail.com Wed Jul 8 14:32:11 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Wed, 8 Jul 2020 13:32:11 +0100 Subject: [Gambas-user] Exec Command Problem Message-ID: <11b794c0-a98b-57e5-1d22-5b7f1c088665@gmail.com> Jesus, No need to apologise for hijacking my thread. It's been an interesting discussion about indentation etc. I've still got the "Exec Command Problem" (as sent on 5/7/2020). Any suggestions would be welcome. John From t.lee.davidson at gmail.com Wed Jul 8 22:35:48 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 8 Jul 2020 16:35:48 -0400 Subject: [Gambas-user] Exec Command Problem In-Reply-To: <11b794c0-a98b-57e5-1d22-5b7f1c088665@gmail.com> References: <11b794c0-a98b-57e5-1d22-5b7f1c088665@gmail.com> Message-ID: <753dada0-8ce0-7a12-8afe-51fc06142fdb@gmail.com> On 7/8/20 8:32 AM, John Rose wrote: > Jesus, > > No need to apologise for hijacking my thread. It's been an interesting discussion about indentation etc. > > I've still got the "Exec Command Problem" (as sent on 5/7/2020). Any suggestions would be welcome. > > John I had to go to the Mailing List User Archives to find the message to which you refer in order to recall just what you are talking about. I first looked in the May archives. Nope. Fifth of July. https://lists.gambas-basic.org/pipermail/user/2020-July/069593.html Correct? Try removing Wait from Public Sub getiplayerMessages_Read() (Line 43). http://gambaswiki.org/wiki/lang/wait : "If you call WAIT from an event handler, you may create infinite recursions, and then stack overflows." And with Exec, each separate string of the command line should be a distinct array element as if it was Split on the space character: Exec ["get-iplayer", ".", "--Type=TV"] Wait For Read As "getiplayerMessages" With those two changes, I got exactly the same in the app as I did on the command line. -- Lee From brian at westwoodsvcs.com Thu Jul 9 03:11:37 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 8 Jul 2020 18:11:37 -0700 (PDT) Subject: [Gambas-user] Latest version 3.15 for opensuse Message-ID: <1125572448.5259.1594257097614.JavaMail.zimbra@westwoodsvcs.com> The latest version 3.15 for opensuse leap and tumbelweed is already available here: [ https://software.opensuse.org/download/package?package=gambas3&project=home%3Amunix9 | https://software.opensuse.org/download/package?package=gambas3&project=home%3Amunix9 ] Great! Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Jul 10 02:30:09 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 10 Jul 2020 10:00:09 +0930 Subject: [Gambas-user] FileProperties control quwstions Message-ID: <55de869e-ddc8-1f48-4d85-9bbae68eb700@gmail.com> 1) If the file concerned is a picture, how can I get ot to show in the icon upper left hand corner on the General tab? 2) If the file xoncerned is a picture and the Preview tab is automatically shown, how can I get it to zoom to 100% instead of to fit? (This is a problem to me where the picture is smaller than the available area. tia bruce From kicking177 at gmail.com Fri Jul 10 10:03:36 2020 From: kicking177 at gmail.com (KKing) Date: Fri, 10 Jul 2020 09:03:36 +0100 Subject: [Gambas-user] Running multiple versions of Gambas and or use of --program-suffix Message-ID: <079c8b3e-1e9b-ecab-d4bc-65e4c115196d@gmail.com> Hi @Benoit, I'm having another look at this, did you have any thoughts on the JIT error when trying the './configure --prefix=9.13' approach? $ export GB_PATH=/opt/gambas/9.13/bin/gbx3 $ gambas3 ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! ** Unable to find JIT compilation method ** ** ERROR: Unable to find method _Compile in class Jit. Return type does not match ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user ** From ujlain at gmail.com Fri Jul 10 11:53:55 2020 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Fri, 10 Jul 2020 15:23:55 +0530 Subject: [Gambas-user] Gambas not running on Linux Mint 20 In-Reply-To: <34e97abd-a1d3-9e98-02b6-7a9cf2d56b4b@gmail.com> References: <34e97abd-a1d3-9e98-02b6-7a9cf2d56b4b@gmail.com> Message-ID: Upgraded to Linux Mint 20 and the upgrade process automatically uninstalled Gambas 3.14.x I am trying to add GAMBAS PPA on Mint 20 using *sudo add-apt-repository ppa:gambas-team/gambas3* and getting this error *Cannot add PPA: ''This PPA does not support focal''* Am I missing some critical installation step or should I revert to Mint 19.3 ? Kindly suggest. Warm Regards, Vinode Singh Ujlain -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.aaron.rose at gmail.com Fri Jul 10 13:14:59 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Fri, 10 Jul 2020 12:14:59 +0100 Subject: [Gambas-user] 'Refreshing' controls e.g. ComboBox Message-ID: <46686f3a-944b-ee8c-9010-c9b433c7302d@gmail.com> What is the best way to refresh controls e.g. contents of a ComboBox after the addition of an item to its 'list' or the enabling of a button. For example, I have with the following code (in a Procedure called from Form_Open event): With ComboBoxTitle ? Add("New Item") ? .Refresh End With Wait Should I use the Refresh method? Should I have a Wait statement? -- John -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Fri Jul 10 16:40:44 2020 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 10 Jul 2020 15:40:44 +0100 Subject: [Gambas-user] FileProperties control quwstions In-Reply-To: <55de869e-ddc8-1f48-4d85-9bbae68eb700@gmail.com> References: <55de869e-ddc8-1f48-4d85-9bbae68eb700@gmail.com> Message-ID: Hi Bruce, 1/. Click on the icon to select the image you want. 2/. I don't understand the question. Where is this "Preview tab"? Charlie On 10/07/2020 01:30, Bruce wrote: > 1) If the file concerned is a picture, how can I get ot to show in the > icon upper left hand corner on the General tab? > 2) If the file xoncerned is a picture and the Preview tab is > automatically shown, how can I get it to zoom to 100% instead of to > fit? (This is a problem to me where the picture is smaller than the > available area. > > tia > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From charlie at cogier.com Fri Jul 10 16:46:38 2020 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 10 Jul 2020 15:46:38 +0100 Subject: [Gambas-user] Gambas in the top 10! Message-ID: Check out this link https://www.slant.co/topics/635/~best-languages-to-write-a-desktop-linux-application-in From charlie at cogier.com Fri Jul 10 16:31:29 2020 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 10 Jul 2020 15:31:29 +0100 Subject: [Gambas-user] Gambas not running on Linux Mint 20 In-Reply-To: References: <34e97abd-a1d3-9e98-02b6-7a9cf2d56b4b@gmail.com> Message-ID: <474e864a-e71c-7370-c7f9-6e09f4f09503@cogier.com> Hi Vinode, It seems that the 'Stable' ppa has not yet been updated for Ubuntu 20.04(focal) or Mint20. You have 2 options: - Use the 'Daily' ppa or install 3.14.3 with the following Terminal command: - sudo apt-get -y install gambas3 gambas3-gb-form-print gambas3-gb-gtk-opengl gambas3-gb-gtk3 gambas3-gb-gui-opengl gambas3-gb-gui-qt gambas3-gb-gui-qt-webkit gambas3-gb-gui-trayicon gambas3-gb-libxml gambas3-gb-option gambas3-gb-report gambas3-gb-sdl gambas3-gb-sdl-sound gambas3-gb-v4l gambas3-templates gambas3-gb-qt5gambas3-gb-qt5-ext gambas3-gb-qt5-opengl gambas3-gb-qt5-webkit Charlie On 10/07/2020 10:53, Vinode Singh Ujlain wrote: > > Upgraded to Linux Mint 20 and the upgrade process automatically > uninstalled Gambas 3.14.x > I am trying to add GAMBAS PPA on Mint 20 using *sudo > add-apt-repository ppa:gambas-team/gambas3* > and getting this error *Cannot add PPA: ''This PPA does not support > focal''* > > Am I missing some critical installation step or should I revert to > Mint 19.3 ? Kindly suggest. > > Warm Regards, > Vinode Singh Ujlain > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chabotdaniel at orange.fr Fri Jul 10 18:17:45 2020 From: chabotdaniel at orange.fr (chab) Date: Fri, 10 Jul 2020 18:17:45 +0200 Subject: [Gambas-user] Gambas not running on Linux Mint 20 Message-ID: sudo apt-get -y install gambas3 gambas3-gb-form-print gambas3-gb-gtk-opengl gambas3-gb-gtk3 gambas3-gb-gui-opengl gambas3-gb-gui-qt gambas3-gb-gui-qt-webkit gambas3-gb-gui-trayicon? gambas3-gb-libxml gambas3-gb-option gambas3-gb-report gambas3-gb-sdl gambas3-gb-sdl-sound gambas3-gb-v4l gambas3-templates gambas3-gb-qt5 gambas3-gb-qt5-ext? gambas3-gb-qt5-opengl? gambas3-gb-qt5-webkit Lecture des listes de paquets... Fait Construction de l'arbre des d?pendances Lecture des informations d'?tat... Fait Certains paquets ne peuvent ?tre install?s. Ceci peut signifier que vous avez demand? l'impossible, ou bien, si vous utilisez la distribution unstable, que certains paquets n'ont pas encore ?t? cr??s ou ne sont pas sortis d'Incoming. L'information suivante devrait vous aider ? r?soudre la situation?: Les paquets suivants contiennent des d?pendances non satisfaites?: ?gambas3 : D?pend: gambas3-examples (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-args (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-cairo (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-chart (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-complex (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-compress-bzlib2 (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-compress-zlib (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-crypt (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-db-form (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-db-mysql (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-db-odbc (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-db-postgresql (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-db-sqlite3 (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-dbus (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-dbus-trayicon (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-desktop (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-desktop-x11 (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-form-dialog (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-form-mdi (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-form-stock (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-form-terminal (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-gsl (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-httpd (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-image-effect (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-image-imlib (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-image-io (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-inotify (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-jit (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-logging (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-map (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-markdown (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-media-form (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-memcached (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-mime (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-mysql (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-ncurses (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-net-curl (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-net-pop3 (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-net-smtp (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-opengl-glsl (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-opengl-glu (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-opengl-sge (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-pcre (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-pdf (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-report2 (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-scanner (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-sdl2 (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-settings (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-util (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-util-web (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-term-form (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-vb mais ne sera pas install? ?????????? D?pend: gambas3-gb-web-feed (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-web-form (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-xml-html (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-xml-rpc (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-gb-xml-xslt (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-ide (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?????????? D?pend: gambas3-script mais ne sera pas install? ?gambas3-gb-form-print : D?pend: gambas3-gb-form (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-gb-gtk-opengl : D?pend: gambas3-gb-gtk (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ???????????????????????? D?pend: gambas3-gb-opengl (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-gb-gtk3 : D?pend: gambas3-gb-image (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-gb-qt5 : D?pend: gambas3-gb-image (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-gb-qt5-opengl : D?pend: gambas3-gb-opengl (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-gb-report : D?pend: gambas3-gb-form (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-gb-sdl : D?pend: gambas3-gb-image (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ????????????????? D?pend: gambas3-gb-image-io (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-gb-v4l : D?pend: gambas3-gb-image (>= 3.14.3-2ubuntu3.1) mais ne sera pas install? ?gambas3-runtime : Est en conflit avec: gambas3-gb-gui-opengl E: Erreur, pkgProblem::Resolve a g?n?r? des ruptures, ce qui a pu ?tre caus? par les paquets devant ?tre gard?s en l'?tat. ? From t.lee.davidson at gmail.com Fri Jul 10 23:03:32 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 10 Jul 2020 17:03:32 -0400 Subject: [Gambas-user] Gambas in the top 10! In-Reply-To: References: Message-ID: On 7/10/20 10:46 AM, Charlie Ogier wrote: > Check out this link https://www.slant.co/topics/635/~best-languages-to-write-a-desktop-linux-application-in > Nice! "You can't find such a level of easy GUI development in any other language on the Linux platform." -- Lee From brian at westwoodsvcs.com Sat Jul 11 08:24:08 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Sat, 11 Jul 2020 09:24:08 +0300 Subject: [Gambas-user] =?utf-8?q?Gambas_in_the_top_10!?= In-Reply-To: References: Message-ID: <1594448648.790859853@f1.my.com> It is a great accomplishment. Congratulation everyone who has worked so hard on this project. Especially Beno?t Minisini -- Thanks Brian Friday, 10 July 2020, 07:47AM -07:00 from Charlie Ogier charlie at cogier.com : >Check out this link >https://www.slant.co/topics/635/~best-languages-to-write-a-desktop-linux-application-in > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From lapisdecor at gmail.com Sat Jul 11 17:07:41 2020 From: lapisdecor at gmail.com (Luis Louro) Date: Sat, 11 Jul 2020 16:07:41 +0100 Subject: [Gambas-user] How to create a Gambas snap on Ubuntu Message-ID: I've tried in the past to create a gambas Linux snap here: https://forum.snapcraft.io/t/creation-of-a-plugin-for-gambas/14320 Help needed on solving this problem. It would be really nice to be able to have snaps of gambas projects sice they would appear in the Ubuntu software store. Hugs, Lu?s Louro -- AVISO DE CONFIDENCIALIDADE: Esta mensagem, assim como os ficheiros eventualmente anexos, ? confidencial e reservada apenas ao conhecimento da(s) pessoa(s) nela indicada(s) como destinat?ria(s). Se n?o ? o seu destinat?rio, solicitamos que n?o fa?a qualquer uso do respectivo conte?do e proceda ? sua destrui??o, notificando o remetente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.aaron.rose at gmail.com Sun Jul 12 09:36:14 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Sun, 12 Jul 2020 08:36:14 +0100 Subject: [Gambas-user] How to specify a string constant in an Exec statement Message-ID: I want to have a command's parameter containing double quotes characters (at the start & end) in an Exec statement. Running in Terminal, the line would be get-iplayer ".*" --type=TV My Gambas equivalent code for the above is: Exec ["get_iplayer", "\".*\"", "--type=TV" To sOutput where sOutput is a string. However, this does not work. I've tried omitting the 2 lots of \" but that doesn't help. PS if you want to install get-iplayer (latest version 3.26) to test this out, I suggest running in Terminal (on Ubuntu): snap install get-iplayer John -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Jul 12 10:47:04 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 12 Jul 2020 10:47:04 +0200 Subject: [Gambas-user] Gambas in the top 10! In-Reply-To: <1594448648.790859853@f1.my.com> References: <1594448648.790859853@f1.my.com> Message-ID: Well I don't want to be the black hat but the amount of votes is low.. we have to wait a little bit ? Le sam. 11 juil. 2020 ? 08:35, Brian G a ?crit : > It is a great accomplishment. Congratulation everyone who has worked so > hard on this project. > > Especially Beno?t Minisini > > -- > Thanks > Brian > Friday, 10 July 2020, 07:47AM -07:00 from Charlie Ogier charlie at cogier.com > : > > Check out this link > > https://www.slant.co/topics/635/~best-languages-to-write-a-desktop-linux-application-in > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Jul 12 11:19:03 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 12 Jul 2020 18:49:03 +0930 Subject: [Gambas-user] How to specify a string constant in an Exec statement In-Reply-To: References: Message-ID: <61f09e9c-a33b-58b2-28e2-527ce1ed6273@gmail.com> No,no,no,no,no! 1. There us no closing ] 2. Exec does NOT pre-process the arguments you give it. Try get_iplayer '\".\"' --type=TV in a terminal and see what it says. You have to understand exactly what gambas sends to the exec system call. N.B. exec system call not "Exec" system call. 3. try in gambas Exec ["get_iplayer","'.*","--type=TV"] To sOutput It's a guess 4. Pay particular attention to the single and double quotes in the above. hth bruce On 12/7/20 5:06 pm, John Rose wrote: > Exec ["get_iplayer", "\".*\"", "--type=TV" To sOutput From adamnt42 at gmail.com Sun Jul 12 11:26:26 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 12 Jul 2020 18:56:26 +0930 Subject: [Gambas-user] How to specify a string constant in an Exec statement In-Reply-To: <61f09e9c-a33b-58b2-28e2-527ce1ed6273@gmail.com> References: <61f09e9c-a33b-58b2-28e2-527ce1ed6273@gmail.com> Message-ID: On 12/7/20 6:49 pm, Bruce wrote: > No,no,no,no,no! > > 1. There us no closing ] > > 2. Exec does NOT pre-process the arguments you give it. Try > ????get_iplayer '\".\"' --type=TV > ? in a terminal and see what it says. You have to understand exactly > what gambas sends to the exec system call. N.B. exec system call not > "Exec" system call. > > 3. try in gambas > ????Exec ["get_iplayer","'.*","--type=TV"] To sOutput > ? It's a guess > > 4. Pay particular attention to the single and double quotes in the above. > > hth > bruce > > On 12/7/20 5:06 pm, John Rose wrote: >> Exec ["get_iplayer", "\".*\"", "--type=TV" To sOutput p.s. I just realised myself ! 3. Is not going to work because there is NO SHELL to expand the .* read the fine help. From gambas.fr at gmail.com Sun Jul 12 12:21:03 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 12 Jul 2020 12:21:03 +0200 Subject: [Gambas-user] How to create a Gambas snap on Ubuntu In-Reply-To: References: Message-ID: Yes me too but I've fail Le sam. 11 juil. 2020 ? 17:08, Luis Louro a ?crit : > I've tried in the past to create a gambas Linux snap here: > https://forum.snapcraft.io/t/creation-of-a-plugin-for-gambas/14320 > > Help needed on solving this problem. It would be really nice to be able to > have snaps of gambas projects sice they would appear in the Ubuntu software > store. > > Hugs, > Lu?s Louro > > -- > AVISO DE CONFIDENCIALIDADE: Esta mensagem, assim como os ficheiros > eventualmente anexos, ? confidencial e reservada apenas ao conhecimento > da(s) pessoa(s) nela indicada(s) como destinat?ria(s). Se n?o ? o seu > destinat?rio, solicitamos que n?o fa?a qualquer uso do respectivo conte?do > e proceda ? sua destrui??o, notificando o remetente. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Jul 12 12:23:41 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 12 Jul 2020 12:23:41 +0200 Subject: [Gambas-user] How to specify a string constant in an Exec statement In-Reply-To: References: <61f09e9c-a33b-58b2-28e2-527ce1ed6273@gmail.com> Message-ID: Le dim. 12 juil. 2020 ? 11:25, Bruce a ?crit : > > > > > p.s. I just realised myself ! > 3. Is not going to work because there is NO SHELL to expand the .* > read the fine help. > So you can use shell instead > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jul 12 17:26:23 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 12 Jul 2020 11:26:23 -0400 Subject: [Gambas-user] How to specify a string constant in an Exec statement In-Reply-To: References: <61f09e9c-a33b-58b2-28e2-527ce1ed6273@gmail.com> Message-ID: <29f386ab-e383-75d8-c35c-9ca2d065dda0@gmail.com> On 7/12/20 5:26 AM, Bruce wrote: > > > On 12/7/20 6:49 pm, Bruce wrote: [snip] >> 3. try in gambas >> ?????Exec ["get_iplayer","'.*","--type=TV"] To sOutput >> ?? It's a guess >> >> 4. Pay particular attention to the single and double quotes in the above. >> >> hth >> bruce >> >> On 12/7/20 5:06 pm, John Rose wrote: >>> Exec ["get_iplayer", "\".*\"", "--type=TV" To sOutput > > p.s. I just realised myself ! > 3. Is not going to work because there is NO SHELL to expand the .* > read the fine help. > As I understand it from a quick read of the man page, the ".*" is a regular expression passed to get-iplayer itself. As such it does not need to be expanded by a shell. But, your Exec command is missing a single quote. It should be: Exec ["get_iplayer","'.*'","--type=TV"] To sOutput -- Lee From john.aaron.rose at gmail.com Sun Jul 12 20:38:45 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Sun, 12 Jul 2020 19:38:45 +0100 Subject: [Gambas-user] How to specify a string constant in an Exec statement Message-ID: 1. There is no closing ] Apologies: my typo. 2. Exec does NOT pre-process the arguments you give it. Try ????get_iplayer '\".\"' --type=TV ? in a terminal and see what it says. You have to understand exactly what gambas sends to the exec system call. N.B. exec system call not "Exec" system call. There should be a * in the above. I tried it with & without. Didn't work i.e. TextAreaOutput in attached TestApp2 didn't display anything. 3. try in gambas ????Exec ["get_iplayer","'.*","--type=TV"] To sOutput ? It's a guess Didn't work. 4. Pay particular attention to the single and double quotes in the above. ?I have: see below for successful solution. 5. Is not going to work because there is NO SHELL to expand the .* read the fine help. I forgot about . and * being characters in a command that needed a Shell statement rather than an Exec statement. Now working with: Shell "get_iplayer \".*\" --type=tv" To sOutput or: Shell "get_iplayer --type=tv \".*\"" To sOutput -- John -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp2.tar.gz Type: application/gzip Size: 12353 bytes Desc: not available URL: From john.aaron.rose at gmail.com Mon Jul 13 13:50:43 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Mon, 13 Jul 2020 12:50:43 +0100 Subject: [Gambas-user] How to specify a string constant in an Exec statement Message-ID: As I understand it from a quick read of the man page, the ".*" is a regular expression passed to get-iplayer itself. As such it does not need to be expanded by a shell. But, your Exec command is missing a single quote. It should be: Exec ["get_iplayer","'.*'","--type=TV"] To sOutput Lee, Interestingly your solution gave less output (i.e. 4 programmes found) with code of: Shell "get_iplayer --type=tv \".*\"" To sOutput compared to to the number found (i.e. 5441 programmes found) when using Shell (see results of running TestApp2 in both FMain form & Console output) with code of: Shell "get_iplayer --type=tv \".*\"" To sOutput (or the 5441 programmes found? when using Shell with code of: Shell "get_iplayer --type=tv \".*\"" Wait For Read As "getiplayerMessages" and coding for the events getiplayerMessages_Read getiplayerMessages_Error). So I am now using Shell rather than Exec. BTW I have changed the input to Shell & Exec above (in the attached TestApp.tar.gz) so as to follow the documentation for .get-iplayer in the github get-iplayer wiki John -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp2.tar.gz Type: application/gzip Size: 12330 bytes Desc: not available URL: From brian at westwoodsvcs.com Mon Jul 13 16:33:49 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 13 Jul 2020 07:33:49 -0700 (PDT) Subject: [Gambas-user] using 'output to' and error to' Message-ID: <1507677513.5652.1594650829917.JavaMail.zimbra@westwoodsvcs.com> When using output to or error to It seems that it only changes the destination for print "this string and error "this string" but when using #print file.out, "this string" or print #file.err, "this string" the output is not redirected Is this deliberate? example: Public Sub Main() Dim mfile As File mfile = Open Temp() For Write Create Output To mfile Print "hello standard" Print #File.out, "Hello file.out" End Always put the second print to the console, and the first to the file. The same happens for Error to Error "Hello standard" print #file.err,"Hello file.err" Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Jul 14 12:26:19 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 14 Jul 2020 19:56:19 +0930 Subject: [Gambas-user] Where has the IDE Project Properties "Arguments" tab gone? Message-ID: It was there a minute ago, before I installed 3.15. Have I missed some important news? tia bruce From g4mba5 at gmail.com Tue Jul 14 14:42:56 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 Jul 2020 14:42:56 +0200 Subject: [Gambas-user] Where has the IDE Project Properties "Arguments" tab gone? In-Reply-To: References: Message-ID: Le 14/07/2020 ? 12:26, Bruce a ?crit?: > It was there a minute ago, before I installed 3.15. > > Have I missed some important news? > > tia > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- It's now a separate dialog opened through the "Run with..." menu. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Wed Jul 15 02:50:56 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 15 Jul 2020 10:20:56 +0930 Subject: [Gambas-user] using 'output to' and error to' In-Reply-To: <1507677513.5652.1594650829917.JavaMail.zimbra@westwoodsvcs.com> References: <1507677513.5652.1594650829917.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <09d54015-2dbe-b061-bc7d-79c98326d707@gmail.com> Public Sub Main() Dim mfile As File mfile = Open Temp() For Write Create Output To mfile Print "hello standard" Print #mfile, "Hello file.out" ' ====== End On 14/7/20 12:03 am, Brian G wrote: > When using output to or error to > > It seems that it only changes the destination for print "this string and error "this string" > > but when using #print file.out, "this string" or print #file.err, "this string" the output is not redirected > > Is this deliberate? > > example: > > Public Sub Main() > Dim mfile As File > mfile = Open Temp() For Write Create > Output To mfile > Print "hello standard" > Print #File.out, "Hello file.out" > End > > Always put the second print to the console, and the first to the file. > The same happens for Error to > Error "Hello standard" > print #file.err,"Hello file.err" > > > Thank You > Brian G > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From adamnt42 at gmail.com Wed Jul 15 03:28:17 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 15 Jul 2020 10:58:17 +0930 Subject: [Gambas-user] using 'output to' and error to' In-Reply-To: <09d54015-2dbe-b061-bc7d-79c98326d707@gmail.com> References: <1507677513.5652.1594650829917.JavaMail.zimbra@westwoodsvcs.com> <09d54015-2dbe-b061-bc7d-79c98326d707@gmail.com> Message-ID: <8d9025b5-afc8-65d4-a9ed-1a87c1b3076b@gmail.com> At a guess, File.Out is always stdout, regardless of redirection. That way you can ensure that you will print on the console. Maybe, maybe not. b On 15/7/20 10:20 am, Bruce wrote: > Public Sub Main() > > ? Dim mfile As File > > ? mfile = Open Temp() For Write Create > ? Output To mfile > > ? Print "hello standard" > > ? Print #mfile, "Hello file.out" > '?????? ====== > > End > > On 14/7/20 12:03 am, Brian G wrote: >> When using output to or error to >> >> It seems that it only changes the destination for print "this string >> and error "this string" >> >> but when using #print file.out, "this string" or print #file.err, >> "this string" the output is not redirected >> >> Is this deliberate? >> >> example: >> >> Public Sub Main() >> Dim mfile As File >> mfile = Open Temp() For Write Create >> Output To mfile >> Print "hello standard" >> Print #File.out, "Hello file.out" >> End >> >> Always put the second print to the console, and the first to the file. >> The same happens for Error to >> Error "Hello standard" >> print #file.err,"Hello file.err" >> >> >> Thank You >> Brian G >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> From adamnt42 at gmail.com Wed Jul 15 03:48:44 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 15 Jul 2020 11:18:44 +0930 Subject: [Gambas-user] using 'output to' and error to' In-Reply-To: <8d9025b5-afc8-65d4-a9ed-1a87c1b3076b@gmail.com> References: <1507677513.5652.1594650829917.JavaMail.zimbra@westwoodsvcs.com> <09d54015-2dbe-b061-bc7d-79c98326d707@gmail.com> <8d9025b5-afc8-65d4-a9ed-1a87c1b3076b@gmail.com> Message-ID: <7d8065e1-bd21-07ba-cb9c-1f8324b307a5@gmail.com> On 15/7/20 10:58 am, Bruce wrote: > At a guess, File.Out is always stdout, regardless of redirection. That > way you can ensure that you will print on the console. > Maybe, maybe not. > b > Consider the following, (somewhat stupid), example: Public Sub Main() Dim blackhole As File blackhole = Open Null If Not (User.Name = "myname") Then Error To #blackhole Error "User won't see this.\nIt's for special people only.\n" & System.Backtrace.Join("\n") Print #File.Err, "STOP! Call the IT crowd immediately" End From john.aaron.rose at gmail.com Wed Jul 15 12:21:28 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Wed, 15 Jul 2020 11:21:28 +0100 Subject: [Gambas-user] Font property of Frame not working Message-ID: <205eeadd-c1ca-7367-ad24-61acf23d12f9@gmail.com> When I set the Font property to another value (e.g. Bold Arial +2) for a Frame control using the ... symbol in the Frame's Font property line, it does not alter the Frame's font (of its Text) at runtime. Is this a bug? From adamnt42 at gmail.com Wed Jul 15 13:08:39 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 15 Jul 2020 20:38:39 +0930 Subject: [Gambas-user] Font property of Frame not working In-Reply-To: <205eeadd-c1ca-7367-ad24-61acf23d12f9@gmail.com> References: <205eeadd-c1ca-7367-ad24-61acf23d12f9@gmail.com> Message-ID: <2776c459-07f6-b86c-467e-4fb0811b9938@gmail.com> Does it change it at all in the form designer? I just tried it here and it works fine. Both in the form designer and the program as run. On 15/7/20 7:51 pm, John Rose wrote: > When I set the Font property to another value (e.g. Bold Arial +2) for a > Frame control using the ... symbol in the Frame's Font property line, it > does not alter the Frame's font (of its Text) at runtime. Is this a bug? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From matthew.charles.collins.75 at gmail.com Thu Jul 16 00:21:46 2020 From: matthew.charles.collins.75 at gmail.com (Matthew Collins) Date: Wed, 15 Jul 2020 23:21:46 +0100 Subject: [Gambas-user] Segmentation Fault - Deserialization Message-ID: Hi, I wrote an example for the new serialization methods: http://gambaswiki.org/wiki/lang/special/read If you change line 8 from: Write #f1, Item1 As Object To: Write #f1, Item1 As MyClass You get segmentation fault, is this a bug? Thanks Matt Sent from my iPhone -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Jul 16 03:27:13 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 16 Jul 2020 10:57:13 +0930 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies Message-ID: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> even if the "minimum gambaas version is unchecked! e.g. Requires: gambas3-runtime >= 3.15,gambas3-runtime < 3.99.0,gambas3-gb-image >= 3.15,gambas3-gb-image < 3.99.0,gambas3-gb-form >= 3.15,gambas3-gb-form < 3.99.0, None of these packages exist here as Gambas is built from source. Also, sometimes the dependencies are rediculous, such as Requires: gambas3-runtime >= 3.15,gambas3-runtime < 3.99.0,gambas3-gb-args >= 3.15,gambas3-gb-args < 3.99.0,gambas3-gb-image >= 3.15,gambas3-gb-image < 3.99.0,gambas3-gb-qt4 >= 3.15,gambas3-gb-qt4 < 3.99.0,gambas3-gb-form >= 3.15,gambas3-gb-form < 3.99.0,gambas3-gb-db >= 3.15,gambas3-gb-db < 3.99.0,gambas3-gb-desktop >= 3.15,gambas3-gb-desktop < 3.99.0,gambas3-gb-desktop-x11 >= 3.15,gambas3-gb-desktop-x11 < 3.99.0,gambas3-gb-util >= 3.15,gambas3-gb-util < 3.99.0,gambas3-gb-settings >= 3.15,gambas3-gb-settings < 3.99.0,gambas3-gb-form-mdi >= 3.15,gambas3-gb-form-mdi < 3.99.0,gambas3-gb-qt4-ext >= 3.15,gambas3-gb-qt4-ext < 3.99.0,gambas3-gb-qt4-webkit >= 3.15,gambas3-gb-qt4-webkit < 3.99.0,gambas3-gb-xml >= 3.15,gambas3-gb-xml < 3.99.0,gambas3-gb-xml-html >= 3.15,gambas3-gb-xml-html < 3.99.0,gambas3-ph-filtertree >= 3.15,gambas3-ph-filtertree < 3.99.0,gambas3-ph-genutil >= 3.15,gambas3-ph-genutil < 3.99.0,gambas3-ph-internalsrt >= 3.15,gambas3-ph-internalsrt < 3.99.0,gambas3-ph-phcontrols4 >= 3.15,gambas3-ph-phcontrols4 < 3.99.0,gambas3-ph-vmenu >= 3.15,gambas3-ph-vmenu < 3.99.0,gambas3-ph-vaboutme3 >= 3.15,gambas3-ph-vaboutme3 < 3.99.0,gambas3-ph-vappoptions >= 3.15,gambas3-ph-vappoptions < 3.99.0,gambas3-ph-vsysinfos >= 3.15,gambas3-ph-vsysinfos < 3.99.0,gambas3-ph-vrecentfiles >= 3.15,gambas3-ph-vrecentfiles < 3.99.0,gambas3-ph-vsysstatus >= 3.15,gambas3-ph-vsysstatus < 3.99.0 as it is enforcing a minimum versionb on local components that have no where near a version of 3.15 This is a major step backwards. regards bruce From adamnt42 at gmail.com Thu Jul 16 13:15:38 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 16 Jul 2020 20:45:38 +0930 Subject: [Gambas-user] 3.15 Run With confusing Message-ID: <017bd812-1dd0-e05b-78de-9d51b57639c1@gmail.com> While a project is running in the IDE the run with menu is still active, so if an error condition arises and the debugger stops the execution I can still click on run with and it pops up the new arguments form. This is confusing because if I haven't noticed the error and I think that the program has completed and I want to run it again with new CLI options... regards bruce From bagonergi at gmail.com Thu Jul 16 17:46:24 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 Jul 2020 17:46:24 +0200 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: Il giorno gio 16 lug 2020 alle ore 00:22 Matthew Collins < matthew.charles.collins.75 at gmail.com> ha scritto: > Hi, > > I wrote an example for the new serialization methods: > http://gambaswiki.org/wiki/lang/special/read > > If you change line 8 from: > Write #f1, Item1 As Object > To: > Write #f1, Item1 As MyClass > > You get segmentation fault, is this a bug? > Hi Matthew, Attached my simple example that gives no error with object. Zip to avoid problems Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ReadWriteObjectTest.zip Type: application/zip Size: 16304 bytes Desc: not available URL: From bagonergi at gmail.com Thu Jul 16 18:20:09 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 Jul 2020 18:20:09 +0200 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: Il giorno gio 16 lug 2020 alle ore 17:46 Gianluigi ha scritto: > > > Il giorno gio 16 lug 2020 alle ore 00:22 Matthew Collins < > matthew.charles.collins.75 at gmail.com> ha scritto: > >> Hi, >> >> I wrote an example for the new serialization methods: >> http://gambaswiki.org/wiki/lang/special/read >> >> If you change line 8 from: >> Write #f1, Item1 As Object >> To: >> Write #f1, Item1 As MyClass >> >> You get segmentation fault, is this a bug? >> > > Hi Matthew, > > Attached my simple example that gives no error with object. > > EDIT: Better with global variables? :-) Private hFile As File Private hObj As New Class1 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.charles.collins.75 at gmail.com Thu Jul 16 18:31:25 2020 From: matthew.charles.collins.75 at gmail.com (Matthew Collins) Date: Thu, 16 Jul 2020 17:31:25 +0100 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: Hi, Try this project attached...? i get segmentation fault.... Thanks Matt On 16/07/2020 16:46, Gianluigi wrote: > > > Il giorno gio 16 lug 2020 alle ore 00:22 Matthew Collins > > ha scritto: > > Hi, > > I wrote an example for the new serialization?methods: > http://gambaswiki.org/wiki/lang/special/read > > If you change line 8 from: > Write #f1, Item1 As Object > To: > Write #f1, Item1 As MyClass > > You get segmentation fault, is this a bug? > > > Hi Matthew, > > Attached my simple example that gives no error with object. > Zip to avoid problems > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ReadWriteObjectTest2.zip Type: application/zip Size: 15586 bytes Desc: not available URL: From bagonergi at gmail.com Thu Jul 16 19:24:56 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 Jul 2020 19:24:56 +0200 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: Il giorno gio 16 lug 2020 alle ore 18:32 Matthew Collins < matthew.charles.collins.75 at gmail.com> ha scritto: > Hi, > > Try this project attached... i get segmentation fault.... > But in the wiki it says "as Object" or "as Variant" if you change to Variant it works. Why should it work with Class1? However, I think the error should be handled by Gambas. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Jul 16 20:43:38 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 16 Jul 2020 21:43:38 +0300 Subject: [Gambas-user] =?utf-8?q?Segmentation_Fault_-_Deserialization?= In-Reply-To: References: Message-ID: <1594925018.165098953@f24.my.com> Is it possible to see the class definition you are using How you write the _read and _write methods -- Thanks Brian Thursday, 16 July 2020, 10:26AM -07:00 from Gianluigi bagonergi at gmail.com : > > >Il giorno gio 16 lug 2020 alle ore 18:32 Matthew Collins < matthew.charles.collins.75 at gmail.com> ha scritto: >>Hi, >>Try this project attached...? i get segmentation fault.... > >But in the wiki it says "as Object" or "as Variant" if you change to Variant it works. >Why should it work with Class1? >However, I think the error should be handled by Gambas. > >Regards >Gianluigi > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jul 16 21:07:11 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Jul 2020 15:07:11 -0400 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: <1594925018.165098953@f24.my.com> References: <1594925018.165098953@f24.my.com> Message-ID: <445cd41c-6c4c-5f65-5a67-b64f7e9d3195@gmail.com> On 7/16/20 2:43 PM, Brian G wrote: > Is it possible to see the class definition you are using > How you write the _read and _write methods The class is included in the project. -- Lee From t.lee.davidson at gmail.com Thu Jul 16 21:09:14 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Jul 2020 15:09:14 -0400 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: On 7/16/20 1:24 PM, Gianluigi wrote: > But in the wiki it says "as Object" or "as Variant" if you change to Variant it works. > Why should it work with Class1? > However, I think the error should be handled by Gambas. > > Regards > Gianluigi Where are you seeing the Wiki say "as Object" or "as Variant"? I haven't found that. I'm reading http://gambaswiki.org/wiki/lang/special/read which does not say that. -- Lee From brian at westwoodsvcs.com Thu Jul 16 21:10:26 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 16 Jul 2020 12:10:26 -0700 (PDT) Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> Ok I looked at you project, My understanding is that when you use as object or as variant, the serialization includes the name of the class in the stream, so that when its recreated Gambas can instantiate the object from the stream because it can read the class name before invoking the _read or _write special methods on that class.. I guess it should know the name from the - as class name -, But I have never used with a specific class name. I have been using this for about a year now, and have always used it that way with as object or variant. Is there a reason, you need to use the specific class name when you read and write? Thank You Brian G From: "Matthew Collins" To: "Gambas mailing list" Sent: Thursday, July 16, 2020 9:31:25 AM Subject: Re: [Gambas-user] Segmentation Fault - Deserialization Hi, Try this project attached... i get segmentation fault.... Thanks Matt On 16/07/2020 16:46, Gianluigi wrote: Il giorno gio 16 lug 2020 alle ore 00:22 Matthew Collins < [ mailto:matthew.charles.collins.75 at gmail.com | matthew.charles.collins.75 at gmail.com ] > ha scritto: BQ_BEGIN Hi, I wrote an example for the new serialization methods: [ http://gambaswiki.org/wiki/lang/special/read | http://gambaswiki.org/wiki/lang/special/read ] If you change line 8 from: Write #f1, Item1 As Object To: Write #f1, Item1 As MyClass You get segmentation fault, is this a bug? Hi Matthew, Attached my simple example that gives no error with object. Zip to avoid problems Regards Gianluigi ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- BQ_END ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jul 16 21:30:09 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 16 Jul 2020 22:30:09 +0300 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: Segmentation fault with native Gambas is always bug. Jussi On Thu, Jul 16, 2020 at 1:22 AM Matthew Collins < matthew.charles.collins.75 at gmail.com> wrote: > Hi, > > I wrote an example for the new serialization methods: > http://gambaswiki.org/wiki/lang/special/read > > If you change line 8 from: > Write #f1, Item1 As Object > To: > Write #f1, Item1 As MyClass > > You get segmentation fault, is this a bug? > > Thanks > Matt > > Sent from my iPhone > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jul 16 21:57:48 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Jul 2020 15:57:48 -0400 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> References: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> On 7/16/20 3:10 PM, Brian G wrote: > Ok I looked at you project, > > My understanding is that when you use?as object or as variant, the serialization includes the name of the class in the stream, > so that when its recreated Gambas can instantiate the object from the stream because it can read the class name before invoking > the _read or _write special methods on that class.. > > I guess it should know the name from the - as class name -, But I have never used with a specific class name. > > I have been using this for about a year now, and have always used it that way with as object or variant. > > Is there a reason, you need to use the specific class name when you read and write? > > Thank You > Brian G > Your understanding appears to be correct. Using the example given at http://gambaswiki.org/wiki/lang/special/read : - Write #f1, Item1 As Object 'Writes the class name to the output file, - Write #f1, Item1 As MyClass 'Does not write the class name to the output file and causes a SegFault upon read. However, in Matthew's project, changing line 19 to be "Write #hFile, hObj As Object" does not correct the issue since, for some reason, the class name is NOT written to the output file. The question is, why? I thought perhaps there was a collision between the Class1 {Name} property and the object's .Name property. But, changing the symbol name of the user-defined {Name} property did not solve the SegFault. -- Lee From brian at westwoodsvcs.com Thu Jul 16 21:58:15 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 16 Jul 2020 12:58:15 -0700 (PDT) Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: <565777384.6822.1594929495248.JavaMail.zimbra@westwoodsvcs.com> I agree, Just wondering if using other methods help bypass issue for now Thank You Brian G From: "Jussi Lahtinen" To: "Gambas mailing list" Sent: Thursday, July 16, 2020 12:30:09 PM Subject: Re: [Gambas-user] Segmentation Fault - Deserialization Segmentation fault with native Gambas is always bug. Jussi On Thu, Jul 16, 2020 at 1:22 AM Matthew Collins < [ mailto:matthew.charles.collins.75 at gmail.com | matthew.charles.collins.75 at gmail.com ] > wrote: Hi, I wrote an example for the new serialization methods: [ http://gambaswiki.org/wiki/lang/special/read | http://gambaswiki.org/wiki/lang/special/read ] If you change line 8 from: Write #f1, Item1 As Object To: Write #f1, Item1 As MyClass You get segmentation fault, is this a bug? Thanks Matt Sent from my iPhone ----[ [ 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 brian at westwoodsvcs.com Thu Jul 16 22:01:47 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 16 Jul 2020 13:01:47 -0700 (PDT) Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> References: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> Message-ID: <1652052283.6827.1594929707095.JavaMail.zimbra@westwoodsvcs.com> interesting because i just ran the provided project with both as object and as variant and both worked correctly only the as ClassName failed. I am using the latest Daily 3.15 Thank You Brian G ----- Original Message ----- From: "T Lee Davidson" To: "Gambas mailing list" Sent: Thursday, July 16, 2020 12:57:48 PM Subject: Re: [Gambas-user] Segmentation Fault - Deserialization On 7/16/20 3:10 PM, Brian G wrote: > Ok I looked at you project, > > My understanding is that when you use?as object or as variant, the serialization includes the name of the class in the stream, > so that when its recreated Gambas can instantiate the object from the stream because it can read the class name before invoking > the _read or _write special methods on that class.. > > I guess it should know the name from the - as class name -, But I have never used with a specific class name. > > I have been using this for about a year now, and have always used it that way with as object or variant. > > Is there a reason, you need to use the specific class name when you read and write? > > Thank You > Brian G > Your understanding appears to be correct. Using the example given at http://gambaswiki.org/wiki/lang/special/read : - Write #f1, Item1 As Object 'Writes the class name to the output file, - Write #f1, Item1 As MyClass 'Does not write the class name to the output file and causes a SegFault upon read. However, in Matthew's project, changing line 19 to be "Write #hFile, hObj As Object" does not correct the issue since, for some reason, the class name is NOT written to the output file. The question is, why? I thought perhaps there was a collision between the Class1 {Name} property and the object's .Name property. But, changing the symbol name of the user-defined {Name} property did not solve the SegFault. -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Thu Jul 16 22:05:22 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 16 Jul 2020 13:05:22 -0700 (PDT) Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> References: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> Message-ID: <297812923.6829.1594929922987.JavaMail.zimbra@westwoodsvcs.com> Just went back again and tested with as object and as variant and both work correctly is everyone using the latest 3.15 build Thank You Brian G ----- Original Message ----- From: "T Lee Davidson" To: "Gambas mailing list" Sent: Thursday, July 16, 2020 12:57:48 PM Subject: Re: [Gambas-user] Segmentation Fault - Deserialization On 7/16/20 3:10 PM, Brian G wrote: > Ok I looked at you project, > > My understanding is that when you use?as object or as variant, the serialization includes the name of the class in the stream, > so that when its recreated Gambas can instantiate the object from the stream because it can read the class name before invoking > the _read or _write special methods on that class.. > > I guess it should know the name from the - as class name -, But I have never used with a specific class name. > > I have been using this for about a year now, and have always used it that way with as object or variant. > > Is there a reason, you need to use the specific class name when you read and write? > > Thank You > Brian G > Your understanding appears to be correct. Using the example given at http://gambaswiki.org/wiki/lang/special/read : - Write #f1, Item1 As Object 'Writes the class name to the output file, - Write #f1, Item1 As MyClass 'Does not write the class name to the output file and causes a SegFault upon read. However, in Matthew's project, changing line 19 to be "Write #hFile, hObj As Object" does not correct the issue since, for some reason, the class name is NOT written to the output file. The question is, why? I thought perhaps there was a collision between the Class1 {Name} property and the object's .Name property. But, changing the symbol name of the user-defined {Name} property did not solve the SegFault. -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From t.lee.davidson at gmail.com Thu Jul 16 22:18:16 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Jul 2020 16:18:16 -0400 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: <297812923.6829.1594929922987.JavaMail.zimbra@westwoodsvcs.com> References: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> <297812923.6829.1594929922987.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 7/16/20 4:05 PM, Brian G wrote: > Just went back again and tested with as object and as variant and both work correctly > > is everyone using the latest 3.15 build > > Thank You > Brian G I just tried to write the object as Variant. Result: SegFault. -- Lee [System] Gambas=3.15 OperatingSystem=Linux Kernel=4.12.14-lp151.28.52-default Architecture=x86_64 Distribution=openSUSE Leap 15.1 Desktop=KDE5 Theme=breeze Language=en_US.UTF-8 Memory=16030M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11510.0 Curl=/usr/lib64/libcurl.so.4.5.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1205.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2200.30 OpenGL=/usr/lib64/libGL.so.1.0.0 Poppler=/usr/lib64/libpoppler.so.73.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.9.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 [Environment] ALSA_CONFIG_PATH=/etc/alsa-pulse.conf AUDIODRIVER=pulseaudio COLORTERM=1 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//1000/bus DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 FROM_HEADER= GB_GUI=gb.qt5 GPG_TTY=not a tty GS_LIB=/.fonts GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 JAVA_BINDIR=/usr/lib64/jvm/java/bin JAVA_HOME=/usr/lib64/jvm/java JAVA_ROOT=/usr/lib64/jvm/java JDK_HOME=/usr/lib64/jvm/java JRE_HOME=/usr/lib64/jvm/java KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 LANG=en_US.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MINICOM=-c on MORE=-sl OSTYPE=linux PAGER=less PATH=/bin:/usr/local/bin:/usr/bin:/bin:/snap/bin:/opt/GNAT/2019/bin PROFILEREAD=true PWD= QEMU_AUDIO_DRV=pa QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_LOGGING_RULES=*.debug=false QT_SYSTEM_DIR=/usr/share/desktop-data SDK_HOME=/usr/lib64/jvm/java SDL_AUDIODRIVER=pulse SESSION_MANAGER=local/:@/tmp/.ICE-unix/2612,unix/:/tmp/.ICE-unix/2612 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=2520 SSH_ASKPASS=/usr/lib/ssh/ssh-askpass SSH_AUTH_SOCK=/tmp/ssh-j08OHPCl2RVY/agent.2468 TERM=xterm TZ=:/etc/localtime USER= WINDOWMANAGER=/usr/bin/startkde XAUTHLOCALHOSTNAME= XAUTHORITY=/.Xauthority XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_RUNTIME_DIR=/run//1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS= 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=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes _=/usr/bin/kwrapper5 From brian at westwoodsvcs.com Thu Jul 16 22:25:04 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 16 Jul 2020 13:25:04 -0700 (PDT) Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> <297812923.6829.1594929922987.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <810683795.6877.1594931104839.JavaMail.zimbra@westwoodsvcs.com> Here is my system config If you like I can give you a logon here to play with it? [System] Gambas=3.15.90 17ab56cfd (master) OperatingSystem=Linux Kernel=5.4.0-40-generic Architecture=x86_64 Distribution=Linux Mint 19.3 Tricia Desktop=MATE Theme=qt5ctproxy Language=en_US.UTF-8 Memory=15993M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1405.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.73.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.5 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=mate GDM_LANG=en_US GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULE=qt5ct.debug=false QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/9749,unix/:/tmp/.ICE-unix/9749 SHELL=/usr/bin/gsh SHLVL=0 SSH_AGENT_PID=9852 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c15 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 ----- Original Message ----- From: "T Lee Davidson" To: "Gambas mailing list" Sent: Thursday, July 16, 2020 1:18:16 PM Subject: Re: [Gambas-user] Segmentation Fault - Deserialization On 7/16/20 4:05 PM, Brian G wrote: > Just went back again and tested with as object and as variant and both work correctly > > is everyone using the latest 3.15 build > > Thank You > Brian G I just tried to write the object as Variant. Result: SegFault. -- Lee [System] Gambas=3.15 OperatingSystem=Linux Kernel=4.12.14-lp151.28.52-default Architecture=x86_64 Distribution=openSUSE Leap 15.1 Desktop=KDE5 Theme=breeze Language=en_US.UTF-8 Memory=16030M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11510.0 Curl=/usr/lib64/libcurl.so.4.5.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1205.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2200.30 OpenGL=/usr/lib64/libGL.so.1.0.0 Poppler=/usr/lib64/libpoppler.so.73.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.9.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 [Environment] ALSA_CONFIG_PATH=/etc/alsa-pulse.conf AUDIODRIVER=pulseaudio COLORTERM=1 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//1000/bus DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 FROM_HEADER= GB_GUI=gb.qt5 GPG_TTY=not a tty GS_LIB=/.fonts GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 JAVA_BINDIR=/usr/lib64/jvm/java/bin JAVA_HOME=/usr/lib64/jvm/java JAVA_ROOT=/usr/lib64/jvm/java JDK_HOME=/usr/lib64/jvm/java JRE_HOME=/usr/lib64/jvm/java KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 LANG=en_US.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MINICOM=-c on MORE=-sl OSTYPE=linux PAGER=less PATH=/bin:/usr/local/bin:/usr/bin:/bin:/snap/bin:/opt/GNAT/2019/bin PROFILEREAD=true PWD= QEMU_AUDIO_DRV=pa QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_LOGGING_RULES=*.debug=false QT_SYSTEM_DIR=/usr/share/desktop-data SDK_HOME=/usr/lib64/jvm/java SDL_AUDIODRIVER=pulse SESSION_MANAGER=local/:@/tmp/.ICE-unix/2612,unix/:/tmp/.ICE-unix/2612 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=2520 SSH_ASKPASS=/usr/lib/ssh/ssh-askpass SSH_AUTH_SOCK=/tmp/ssh-j08OHPCl2RVY/agent.2468 TERM=xterm TZ=:/etc/localtime USER= WINDOWMANAGER=/usr/bin/startkde XAUTHLOCALHOSTNAME= XAUTHORITY=/.Xauthority XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_RUNTIME_DIR=/run//1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS= 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=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes _=/usr/bin/kwrapper5 ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From t.lee.davidson at gmail.com Thu Jul 16 22:55:50 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Jul 2020 16:55:50 -0400 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: <810683795.6877.1594931104839.JavaMail.zimbra@westwoodsvcs.com> References: <1717723883.6692.1594926626887.JavaMail.zimbra@westwoodsvcs.com> <0675f0be-bea2-7e83-fbbe-48e9d9876c25@gmail.com> <297812923.6829.1594929922987.JavaMail.zimbra@westwoodsvcs.com> <810683795.6877.1594931104839.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 7/16/20 4:25 PM, Brian G wrote: > Here is my system config > If you like I can give you a logon here to play with it? No need for that. I finally discovered why I've been about pulling my hair out trying to figure this out. I've been using Step and Forward to Debug the code after making a change here or a change there. But, for some reason, the code was not being recompiled automatically when I clicked either the Step or Forward buttons. Once I did Project -> Compile All and stepped through the code, "Write #hFile, hObj As Object" works just fine. I'm now wondering why the project is not recompiled automatically when using the Debug Step and Forward functions. -- Lee From bagonergi at gmail.com Thu Jul 16 22:58:14 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 Jul 2020 22:58:14 +0200 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: Il giorno gio 16 lug 2020 alle ore 21:10 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 7/16/20 1:24 PM, Gianluigi wrote: > > But in the wiki it says "as Object" or "as Variant" if you change to > Variant it works. > >... > Where are you seeing the Wiki say "as Object" or "as Variant"? I haven't > found that. > > Hi Lee, I read it here: http://gambaswiki.org/wiki/lang/write Here with Class1 this code works. '----------------------------------------- ' Gambas module file Private hFile As File Private hObj As New Class1 Public Sub Main() ' Once the file has been written, you can also Try To read (Leggi) it only, commenting On Scrivi (Write) Scrivi ' Write in italian Leggi ' Read ... End Private Sub Scrivi() ' Dim hFile As File ' Dim hObj As New Class1 hFile = Open "/tmp/TestReadWrite" For Write Create hObj.Name = "TestReadWrite" hObj.Bird = Date(Now) Write #hFile, hObj As Object ' or variant Close #hFile End Private Sub Leggi() ' Dim hFile As File ' Dim hObj As New Class1 ' The object must refer to the class otherwise it causes an error. hFile = Open "/tmp/TestReadWrite" For Read hObj = Read #hFile As Variant ' or object Print "The file is named "; Quote(hObj.Name); " and it is created the: "; Format(hObj.Bird, gb.LongDate) ' Print the name and date on the console Close #hFile End '------------------------------------------------ Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jul 16 23:09:05 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Jul 2020 17:09:05 -0400 Subject: [Gambas-user] Segmentation Fault - Deserialization In-Reply-To: References: Message-ID: <4a6137ef-d020-7c61-b34e-b1e8e3508626@gmail.com> On 7/16/20 4:58 PM, Gianluigi wrote: > I read it here: > http://gambaswiki.org/wiki/lang/write Ah, thank you. That page indicates that it can also be written as ClassName: Write #Stream, Object As < ObjectClass > Write #Stream, Object As Object Write #Stream, Object As Variant And also says, "If you read the object later by using 'As Variant' or 'As Object', you have to write it by using 'As Variant' or 'As Object'." That would seem to indicate that if is is written 'As < ObjectClass >', it should be read 'As < ObjectClass >'. But that causes a SegFault. At least Matthew now has a workaround. -- Lee From adamnt42 at gmail.com Fri Jul 17 10:28:33 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 17 Jul 2020 17:58:33 +0930 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> Message-ID: <11a2a868-dc9d-80ca-4fcc-15f12a6df8e4@gmail.com> OK, I think I found (part of) the problem, but not the solution. :-( At the beginning of the Make() method in the IDE Packager/Package module you are using the following: If Project.RuntimeVersion Then MIN_VERSION = Project.RuntimeVersion Else aVer = Split(System.FullVersion, ".") MIN_VERSION = aVer[0] & "." & aVer[1] Endif I think this is setting dependencies in the Else part regardless of whether the checkbox is true. Should not this be wrqpped in an If that refers to the state of the wizard checkbox? rgrds bruce On 16/7/20 10:57 am, Bruce wrote: > even if the "minimum gambaas version is unchecked! > > e.g. > Requires: gambas3-runtime >= 3.15,gambas3-runtime < > 3.99.0,gambas3-gb-image >= 3.15,gambas3-gb-image < > 3.99.0,gambas3-gb-form >= 3.15,gambas3-gb-form < 3.99.0, > > None of these packages exist here as Gambas is built from source. > > > Also, sometimes the dependencies are rediculous, such as > Requires: gambas3-runtime >= 3.15,gambas3-runtime < > 3.99.0,gambas3-gb-args >= 3.15,gambas3-gb-args < 3.99.0,gambas3-gb-image > >= 3.15,gambas3-gb-image < 3.99.0,gambas3-gb-qt4 >= 3.15,gambas3-gb-qt4 > < 3.99.0,gambas3-gb-form >= 3.15,gambas3-gb-form < 3.99.0,gambas3-gb-db > >= 3.15,gambas3-gb-db < 3.99.0,gambas3-gb-desktop >= > 3.15,gambas3-gb-desktop < 3.99.0,gambas3-gb-desktop-x11 >= > 3.15,gambas3-gb-desktop-x11 < 3.99.0,gambas3-gb-util >= > 3.15,gambas3-gb-util < 3.99.0,gambas3-gb-settings >= > 3.15,gambas3-gb-settings < 3.99.0,gambas3-gb-form-mdi >= > 3.15,gambas3-gb-form-mdi < 3.99.0,gambas3-gb-qt4-ext >= > 3.15,gambas3-gb-qt4-ext < 3.99.0,gambas3-gb-qt4-webkit >= > 3.15,gambas3-gb-qt4-webkit < 3.99.0,gambas3-gb-xml >= > 3.15,gambas3-gb-xml < 3.99.0,gambas3-gb-xml-html >= > 3.15,gambas3-gb-xml-html < 3.99.0,gambas3-ph-filtertree >= > 3.15,gambas3-ph-filtertree < 3.99.0,gambas3-ph-genutil >= > 3.15,gambas3-ph-genutil < 3.99.0,gambas3-ph-internalsrt >= > 3.15,gambas3-ph-internalsrt < 3.99.0,gambas3-ph-phcontrols4 >= > 3.15,gambas3-ph-phcontrols4 < 3.99.0,gambas3-ph-vmenu >= > 3.15,gambas3-ph-vmenu < 3.99.0,gambas3-ph-vaboutme3 >= > 3.15,gambas3-ph-vaboutme3 < 3.99.0,gambas3-ph-vappoptions >= > 3.15,gambas3-ph-vappoptions < 3.99.0,gambas3-ph-vsysinfos >= > 3.15,gambas3-ph-vsysinfos < 3.99.0,gambas3-ph-vrecentfiles >= > 3.15,gambas3-ph-vrecentfiles < 3.99.0,gambas3-ph-vsysstatus >= > 3.15,gambas3-ph-vsysstatus < 3.99.0 > > as it is enforcing a minimum versionb on local components that have no > where near a version of 3.15 > > This is a major step backwards. > > regards > bruce From gambas at cd-bahia.com Fri Jul 17 11:29:43 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Fri, 17 Jul 2020 11:29:43 +0200 Subject: [Gambas-user] IDE Problem Message-ID: <6d880fa4-0473-3946-db0d-151eb4654170@cd-bahia.com> Hi, I use Ubuntu Mate 18.04.4 and have the ppa.launchpad.net/gambas-team/gambas3/ubuntu. The Gambas Info shows me the version 3.14.3. The problem in the IDE is: When I double-click on an object to get to the source of the object, it shows me the source what I last edited, not of that object. That means, I have to search for the right source part, what is somehow annoying. Can it be, that this was a bug, and I don't get the upgrades? It has been a while since I saw Gambas made an upgrade on my PC. Thanks in advance, Dag From isafiur at gmail.com Fri Jul 17 13:39:38 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 17 Jul 2020 17:24:38 +0545 Subject: [Gambas-user] Gambas 3.15 in Gambas stable PPA Message-ID: Requesting to upload Gambas 3.15 version to gambas stable PPA (ppa:gambas-team/gambas3). Waiting stable package for Ubuntu 20.04 From g4mba5 at gmail.com Fri Jul 17 21:25:57 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jul 2020 21:25:57 +0200 Subject: [Gambas-user] Gambas 3.15 in Gambas stable PPA In-Reply-To: References: Message-ID: Le 17/07/2020 ? 13:39, Safiur Rahman a ?crit?: > Requesting to upload Gambas 3.15 version to gambas stable PPA > (ppa:gambas-team/gambas3). Waiting stable package for Ubuntu 20.04 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > They arrive... -- Beno?t Minisini From g4mba5 at gmail.com Fri Jul 17 22:48:39 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jul 2020 22:48:39 +0200 Subject: [Gambas-user] Gambas 3.15 in Gambas stable PPA In-Reply-To: References: Message-ID: Le 17/07/2020 ? 21:25, Beno?t Minisini a ?crit?: > Le 17/07/2020 ? 13:39, Safiur Rahman a ?crit?: >> Requesting to upload Gambas 3.15 version to gambas stable PPA >> (ppa:gambas-team/gambas3). Waiting stable package for Ubuntu 20.04 >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > They arrive... > That's done. Gambas stable ppa now provides binary packages of Gambas 3.15.0 for all Ubuntu LTS releases since 12.04 and Ubuntu 19.10 (i.e. all Ubuntu version supported by Launchpad except the future 20.10). Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri Jul 17 22:49:50 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jul 2020 22:49:50 +0200 Subject: [Gambas-user] Gambas 3.15 in Gambas stable PPA In-Reply-To: References: Message-ID: Le 17/07/2020 ? 22:48, Beno?t Minisini a ?crit?: > Le 17/07/2020 ? 21:25, Beno?t Minisini a ?crit?: >> Le 17/07/2020 ? 13:39, Safiur Rahman a ?crit?: >>> Requesting to upload Gambas 3.15 version to gambas stable PPA >>> (ppa:gambas-team/gambas3). Waiting stable package for Ubuntu 20.04 >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> They arrive... >> > > That's done. Gambas stable ppa now provides binary packages of Gambas > 3.15.0 for all Ubuntu LTS releases since 12.04 and Ubuntu 19.10 (i.e. > all Ubuntu version supported by Launchpad except the future 20.10). > > Regards, > Important note: the gambas-dev package has been renamed gambas-devel. Please tell if you have any problem with the upgrade (it's the first time I make package rename). Regards, -- Beno?t Minisini From fmfdario at gmail.com Fri Jul 17 23:05:23 2020 From: fmfdario at gmail.com (Francisco Martinez Dario) Date: Fri, 17 Jul 2020 23:05:23 +0200 Subject: [Gambas-user] gbc3 is not included in the new ppa for Gambas 3.15 Message-ID: <08c48dbc-c663-b961-9368-84979ad59961@gmail.com> Hello!. Sorry if I'm wrong about something. I haven't written in a long time, but I read the international list. I sent a reply message to a colleague on the list, but not to the list which is how it should have been. The error message when compiling a Gambas code with new the PPA for Gambas 3.15 is: 1: /usr/bin/gbc not found in sh I'm using Linux Mint 19.1, no problem with PPA for Gambas 3.14. I hope not to repeat the message by mistake. :-) Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jul 17 23:07:30 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jul 2020 23:07:30 +0200 Subject: [Gambas-user] gbc3 is not included in the new ppa for Gambas 3.15 In-Reply-To: <08c48dbc-c663-b961-9368-84979ad59961@gmail.com> References: <08c48dbc-c663-b961-9368-84979ad59961@gmail.com> Message-ID: <3a894931-1ad8-10ac-244b-cdb92c284980@gmail.com> Le 17/07/2020 ? 23:05, Francisco Martinez Dario a ?crit?: > Hello!. > > Sorry if I'm wrong about something. I haven't written in a long time, > but I read the international list. > I sent a reply message to a colleague on the list, but not to the list > which is how it should have been. > > The error message when compiling a Gambas code with new the PPA for > Gambas 3.15 is: > > 1: /usr/bin/gbc not found in sh > > I'm using Linux Mint 19.1, no problem with PPA for Gambas 3.14. > > I hope not to repeat the message by mistake. :-) > > Regards > Is Mint 19.1 using packages of Ubuntu 19.10? If not please tell me which Ubuntu version it is based on. Thanks. -- Beno?t Minisini From g4mba5 at gmail.com Fri Jul 17 23:09:00 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jul 2020 23:09:00 +0200 Subject: [Gambas-user] gbc3 is not included in the new ppa for Gambas 3.15 In-Reply-To: <3a894931-1ad8-10ac-244b-cdb92c284980@gmail.com> References: <08c48dbc-c663-b961-9368-84979ad59961@gmail.com> <3a894931-1ad8-10ac-244b-cdb92c284980@gmail.com> Message-ID: <7ffcb7e2-e3c4-2aad-4987-b2c879643a27@gmail.com> Le 17/07/2020 ? 23:07, Beno?t Minisini a ?crit?: > Le 17/07/2020 ? 23:05, Francisco Martinez Dario a ?crit?: >> Hello!. >> >> Sorry if I'm wrong about something. I haven't written in a long time, >> but I read the international list. >> I sent a reply message to a colleague on the list, but not to the list >> which is how it should have been. >> >> The error message when compiling a Gambas code with new the PPA for >> Gambas 3.15 is: >> >> 1: /usr/bin/gbc not found in sh >> >> I'm using Linux Mint 19.1, no problem with PPA for Gambas 3.14. >> >> I hope not to repeat the message by mistake. :-) >> >> Regards >> > > Is Mint 19.1 using packages of Ubuntu 19.10? If not please tell me which > Ubuntu version it is based on. > > Thanks. > Anyway you're right. -- Beno?t Minisini From g4mba5 at gmail.com Fri Jul 17 23:53:57 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jul 2020 23:53:57 +0200 Subject: [Gambas-user] gbc3 is not included in the new ppa for Gambas 3.15 In-Reply-To: <7ffcb7e2-e3c4-2aad-4987-b2c879643a27@gmail.com> References: <08c48dbc-c663-b961-9368-84979ad59961@gmail.com> <3a894931-1ad8-10ac-244b-cdb92c284980@gmail.com> <7ffcb7e2-e3c4-2aad-4987-b2c879643a27@gmail.com> Message-ID: <1e178536-0059-7a6a-3c47-2277b31b08ad@gmail.com> Le 17/07/2020 ? 23:09, Beno?t Minisini a ?crit?: > Le 17/07/2020 ? 23:07, Beno?t Minisini a ?crit?: >> Le 17/07/2020 ? 23:05, Francisco Martinez Dario a ?crit?: >>> Hello!. >>> >>> Sorry if I'm wrong about something. I haven't written in a long time, >>> but I read the international list. >>> I sent a reply message to a colleague on the list, but not to the >>> list which is how it should have been. >>> >>> The error message when compiling a Gambas code with new the PPA for >>> Gambas 3.15 is: >>> >>> 1: /usr/bin/gbc not found in sh >>> >>> I'm using Linux Mint 19.1, no problem with PPA for Gambas 3.14. >>> >>> I hope not to repeat the message by mistake. :-) >>> >>> Regards >>> >> >> Is Mint 19.1 using packages of Ubuntu 19.10? If not please tell me >> which Ubuntu version it is based on. >> >> Thanks. >> > > Anyway you're right. > Apparently all packages are without any binary file! I don't understand, as the stable ppa now uses the same configuration file than the daily ppa, whose packages seem to be correct... -- Beno?t Minisini From g4mba5 at gmail.com Sat Jul 18 00:07:16 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Jul 2020 00:07:16 +0200 Subject: [Gambas-user] gbc3 is not included in the new ppa for Gambas 3.15 In-Reply-To: <1e178536-0059-7a6a-3c47-2277b31b08ad@gmail.com> References: <08c48dbc-c663-b961-9368-84979ad59961@gmail.com> <3a894931-1ad8-10ac-244b-cdb92c284980@gmail.com> <7ffcb7e2-e3c4-2aad-4987-b2c879643a27@gmail.com> <1e178536-0059-7a6a-3c47-2277b31b08ad@gmail.com> Message-ID: <3dc26883-e04a-d39f-423c-1d63c9d12b59@gmail.com> Le 17/07/2020 ? 23:53, Beno?t Minisini a ?crit?: > > Apparently all packages are without any binary file! I don't understand, > as the stable ppa now uses the same configuration file than the daily > ppa, whose packages seem to be correct... > OK, I found the problem. Now rebuilding all 3.15.0 packages. -- Beno?t Minisini From fmfdario at gmail.com Sat Jul 18 10:16:29 2020 From: fmfdario at gmail.com (Francisco Martinez Dario) Date: Sat, 18 Jul 2020 10:16:29 +0200 Subject: [Gambas-user] gbc3 is not included in the new ppa for Gambas 3.15 In-Reply-To: <3dc26883-e04a-d39f-423c-1d63c9d12b59@gmail.com> References: <08c48dbc-c663-b961-9368-84979ad59961@gmail.com> <3a894931-1ad8-10ac-244b-cdb92c284980@gmail.com> <7ffcb7e2-e3c4-2aad-4987-b2c879643a27@gmail.com> <1e178536-0059-7a6a-3c47-2277b31b08ad@gmail.com> <3dc26883-e04a-d39f-423c-1d63c9d12b59@gmail.com> Message-ID: <63a85dd9-e5d4-2b96-cbbc-95b5c342553d@gmail.com> Thank you very much for the speed in solving the error. Now all the executables appear in the /usr/bin directory El 18/7/20 a las 0:07, Beno?t Minisini escribi?: > Le 17/07/2020 ? 23:53, Beno?t Minisini a ?crit?: >> >> Apparently all packages are without any binary file! I don't >> understand, as the stable ppa now uses the same configuration file >> than the daily ppa, whose packages seem to be correct... >> > > OK, I found the problem. Now rebuilding all 3.15.0 packages. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Jul 18 11:11:13 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 18 Jul 2020 02:11:13 -0700 (PDT) Subject: [Gambas-user] Test Module Order of test unit execution Message-ID: <1043333966.7202.1595063473416.JavaMail.zimbra@westwoodsvcs.com> Thanks Christof Thalhofer I did that and it works fine. One issue That I did find is that the _Setup _Teardown are not case insensative if you don't type it just like _Setup it is never found, I had that problem I put _setup and spent quite a while trying to figure out why it did not work! Thank You Brian G Hi Brian, Am 18.07.20 um 01:26 schrieb Brian G: > eg setupall.test - contains the _setup for all of the units and > a dummy assert to make it execute > testMod1.test - some tests > TestMod2.test > testMod3.test > teardownall.test - contains the _teardown and a dummy assert > to make it execute > > How do i control the order in which these are executed? Testmodules and testmethods are executed in alphabetical order of their names. So if you want to do it the way you want, you should name the modules that way: Asetup.test TestMod1.test TestMod2.test ... ZTeardown.test Btw I don't like such dependencies. They destroy the idea of testsuites. I don't recommend it. Testmodules should always be independent of each other! You could also do this with hidden helper methods called by _Setup() and _Teardown() inside each testmodule. If you had answered this in the mailinglist, my answer could be found in future by others who face the same problem. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Jul 18 11:19:24 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 18 Jul 2020 02:19:24 -0700 (PDT) Subject: [Gambas-user] Test Module, First try Message-ID: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> Hi I have attached a first try at using the test module to test the Scripter gbs3 Maybe Christof could have a look at it and well Point out the error of my way! Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gbs3-3.15.90.tar.gz Type: application/x-compressed-tar Size: 37527 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Jul 18 12:09:54 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Jul 2020 12:09:54 +0200 Subject: [Gambas-user] 3.15 Run With confusing In-Reply-To: <017bd812-1dd0-e05b-78de-9d51b57639c1@gmail.com> References: <017bd812-1dd0-e05b-78de-9d51b57639c1@gmail.com> Message-ID: <84524781-9442-3121-a8bc-7cff20012256@gmail.com> Le 16/07/2020 ? 13:15, Bruce a ?crit?: > While a project is running in the IDE the run with menu is still active, > so if an error condition arises and the debugger stops the execution I > can still click on run with and it pops up the new arguments form. > This is confusing because if I haven't noticed the error and I think > that the program has completed and I want to run it again with new CLI > options... > > regards > bruce > Yes, it should be disabled until the debugger is really stopped. -- Beno?t Minisini From chrisml at deganius.de Sat Jul 18 12:52:20 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jul 2020 12:52:20 +0200 Subject: [Gambas-user] Test Module Order of test unit execution In-Reply-To: <1043333966.7202.1595063473416.JavaMail.zimbra@westwoodsvcs.com> References: <1043333966.7202.1595063473416.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Am 18.07.20 um 11:11 schrieb Brian G: > One issue That I did find is that the _Setup _Teardown are not case > insensative > if you don't type it just like _Setup it is never found,? > > I had that problem I put _setup and spent quite a while trying to figure > out why it did not work! Ok, that's counterintuitive. I fixed that here: https://gitlab.com/gambas/gambas/-/commit/fffe0cc8dbfd16c383fcbc9ecc9989047b527d83 Thank you! Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Jul 18 13:08:51 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Jul 2020 13:08:51 +0200 Subject: [Gambas-user] 3.15 Run With confusing In-Reply-To: <84524781-9442-3121-a8bc-7cff20012256@gmail.com> References: <017bd812-1dd0-e05b-78de-9d51b57639c1@gmail.com> <84524781-9442-3121-a8bc-7cff20012256@gmail.com> Message-ID: Le 18/07/2020 ? 12:09, Beno?t Minisini a ?crit?: > Le 16/07/2020 ? 13:15, Bruce a ?crit?: >> While a project is running in the IDE the run with menu is still >> active, so if an error condition arises and the debugger stops the >> execution I can still click on run with and it pops up the new >> arguments form. >> This is confusing because if I haven't noticed the error and I think >> that the program has completed and I want to run it again with new CLI >> options... >> >> regards >> bruce >> > > Yes, it should be disabled until the debugger is really stopped. > Done in master. -- Beno?t Minisini From chrisml at deganius.de Sat Jul 18 13:13:12 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jul 2020 13:13:12 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <51b5feb2-1cf0-15c5-f1b4-30a5dce22ef3@deganius.de> Am 18.07.20 um 11:19 schrieb Brian G: > Hi I have attached a first try at using the test module to test the > Scripter gbs3 > > Maybe?Christof could have a look at it and well > > Point out the error of my way! I do not understand well. There are a couple of tests which report not ok. I attach the TAP output I get here on my machine. Some of them occur because I have another language than you. To see that please have a look at the result of: TbCommandLinePrograms:CreateProgramFromCommandLineArgs If you have a problem with a specific test please tell me it's name. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- 1..11 # Initialize the component collection # When Gambas ide creates a library with no vendor using make executable then an (unknown) directory is created in the users .local library # This differs from create installation which forces a vendor name before continuing Test TaSetupForAllTests:SetupForTests # This sets up env for all following tests ok 1 - Used to force test setup 1..1 ok 1 - TaSetupForAllTests:SetupForTests Test TbCommandLinePrograms:CreateProgramFromCommandLineArgs not ok 1 - Test For bad Component # # ------------- Expected ------------- # gbs3: Dim i as integer:Print i:inc i.0: Unknown component: gb.inotifyt # # ---------------- Got --------------- # gbs3: Dim i as integer:Print i:inc i.0: Unbekannte Komponente: gb.inotifyt # ------------------------------------ # # Compare size a=6, b=6 # 0001 = "Public.Sub.Main()" | "Public.Sub.Main()" # 0002 = "Dim.i.As.Integer" | "Dim.i.As.Integer" # 0003 = "i=9" | "i=9" # 0004 = "Print.i" | "Print.i" # 0005 = "inc.i" | "inc.i" # 0006 = "End" | "End" ok 2 - Verify program is formatted Correctly from command Line 1..2 not ok 2 - TbCommandLinePrograms:CreateProgramFromCommandLineArgs Test TbCommandLinePrograms:ExecuteACommandLineProgram # Application Output # We say Hello World # 0 # 1 # 2 # ok 1 - Check the output from the Executed command line script 1..1 ok 3 - TbCommandLinePrograms:ExecuteACommandLineProgram Test TbCommandLinePrograms:Precompile # Testing PreCompile ok 1 - Test precompile short forms I ok 2 - Test precompile short forms F ok 3 - Test precompile short forms L not ok 4 - Test for error # # ------------- Expected ------------- # gbs3: {l}Acar=45.1: ReDefinition of variable Dim Acar As Long From Dim Acar As Integer Not Allowed # # ---------------- Got --------------- # gbs3: {l}Acar=45.1: Neudefinition der Variablen Dim Acar As Long Von Dim Acar As Integer Nicht erlaubt # ------------------------------------ # 1..4 not ok 4 - TbCommandLinePrograms:Precompile Test TcMMainFunctions:CheckLibraryVersions ok 1 - Veryify we can get the correct library n.n.x ok 2 - Veryify we can get the correct library n.x.x ok 3 - Veryify we can get the correct library n.n.n ok 4 - Veryify we can get the correct library n.x.x ok 5 - Veryify we can get the correct library x.x.x ok 6 - Veryify we can get the correct library bad directory name ok 7 - Veryify we can get the correct library Bad Lib Name 1..7 ok 5 - TcMMainFunctions:CheckLibraryVersions Test TcMMainFunctions:CheckProcessLibrary # Verify Library search and versioning # not ok 1 - Verify that error is generated when not found # # ------------- Expected ------------- # gbs3: ~/projects.1: Unknown Library: DummyLibName # # ---------------- Got --------------- # gbs3: ~/projects.1: Unbekannte Bibliothek: DummyLibName # ------------------------------------ # ok 2 - Test for absolute path in library name # # You must have a directory called /usr/lib/gambas3/biz1 in your system for this test # It must contain liba:1.1.0.gambas, liba:2.1.0.gambas, liba:3.1.3 # The tests will fail if not present, not a problem. You can copy and paste following into a terminal and try again # sudo mkdir /usr/lib/gambas3/biz1 # sudo touch /usr/lib/gambas3/biz1/liba:1.1.0.gambas # sudo touch /usr/lib/gambas3/biz1/liba:1.2.0.gambas # sudo touch /usr/lib/gambas3/biz1/liba:2.1.0.gambas # sudo touch /usr/lib/gambas3/biz1/liba:3.1.3.gambas # # not ok 3 - TcMMainFunctions:CheckProcessLibrary crashed with error 'gbs3: ~/DummyProg.1: Unbekannte Bibliothek: biz1.liba:3.1' 1..3 not ok 6 - TcMMainFunctions:CheckProcessLibrary Test TcMMainFunctions:Components # Testing Needed Component ok 1 - Check if form is correctly set on init ok 2 - Forms need gui first 1..2 ok 7 - TcMMainFunctions:Components Test TcMMainFunctions:FullReadCompileCheck # Compare size a=32, b=32 # 0001 = "Class.Testit.Defined.{" | "Class.Testit.Defined.{" # 0002 = "...public.a.as.integer" | "...public.a.as.integer" # 0003 = "public.sub.GetA().as.integer" | "public.sub.GetA().as.integer" # 0004 = "...return.a" | "...return.a" # 0005 = "end" | "end" # 0006 = "}" | "}" # 0007 = "Project.file.{" | "Project.file.{" # 0008 = "#.Gambas.Project.File.3.0" | "#.Gambas.Project.File.3.0" # 0009 = "Title=Gambas.Script" | "Title=Gambas.Script" # 0010 = "Startup=MMain" | "Startup=MMain" # 0011 = "Component=gb.eval" | "Component=gb.eval" # 0012 = "Component=gb.eval.highlight" | "Component=gb.eval.highlight" # 0013 = "Component=gb.pcre" | "Component=gb.pcre" # 0014 = "}" | "}" # 0015 = "'.Gambas.module.file" | "'.Gambas.module.file" # 0016 = "Public.x.as.string.=.\"hello\"" | "Public.x.as.string.=.\"hello\"" # 0017 = "public.struct.testStruct" | "public.struct.testStruct" # 0018 = "....H.as.string." | "....H.as.string." # 0019 = "....g.as.integer" | "....g.as.integer" # 0020 = "....f.as.variant" | "....f.as.variant" # 0021 = "end.struct" | "end.struct" # 0022 = "public.sub.WriteSomething()" | "public.sub.WriteSomething()" # 0023 = "..print.\"Write.Something\"" | "..print.\"Write.Something\"" # 0024 = "end" | "end" # 0025 = "public.sub.MoreFunctions().as.string" | "public.sub.MoreFunctions().as.string" # 0026 = "print.\"More.stuff.as.string\"" | "print.\"More.stuff.as.string\"" # 0027 = "end" | "end" # 0028 = "Public.Sub.Main()" | "Public.Sub.Main()" # 0029 = "for.i.as.integer.=.0.to.20" | "for.i.as.integer.=.0.to.20" # 0030 = "...print.x;;i" | "...print.x;;i" # 0031 = "next" | "next" # 0032 = "End" | "End" ok 1 - Test a Basic App with all supported types 1..1 ok 8 - TcMMainFunctions:FullReadCompileCheck Test TcMMainFunctions:ValidFileRebuildCheck # Testing If rebuild Of script required check ok 1 - Check if rebuild required . not needed ok 2 - Check if rebuild required . Needed 1..2 ok 9 - TcMMainFunctions:ValidFileRebuildCheck Test TdMServerPages:RunWebPageGeneratedProgram # Run the full web page generation and check we have valid output from the generated program # Compare size a=12, b=12 # 0001 = "Content-type:.text/html;charset=utf-8 | "Content-type:.text/html;charset=utf-8 # 0002 = "Content-Length:.146\r" | "Content-Length:.146\r" # 0003 = "\r" | "\r" # 0004 = ".#!/bin/env./usr/bin/gbw3" | ".#!/bin/env./usr/bin/gbw3" # 0005 = "........" | "........" # 0006 = "........" | "........" # 0007 = "........" | "........" # 0008 = "........

Gambas3.Web.Server.

" | "........

Gambas3.Web.Server.

" # 0009 = "........" | "........" # 0010 = "........A01.ON\r" | "........A01.ON\r" # 0011 = "........" | "........" # 0012 = "........" | "........" ok 1 - Verify That a correct Basic webpage is generated # 1..1 ok 10 - TdMServerPages:RunWebPageGeneratedProgram Test TdMServerPages:WebPageProgramCreation # Generate the script to be executed from the web page # Compare size a=12, b=12 # 0001 = "USE.\"gb.web\"" | "USE.\"gb.web\"" # 0002 = "PUBLIC.SUB.Main()" | "PUBLIC.SUB.Main()" # 0003 = "..Response.Buffered.=.TRUE" | "..Response.Buffered.=.TRUE" # 0004 = "..Response.Begin" | "..Response.Begin" # 0005 = ".._PrintPage()" | ".._PrintPage()" # 0006 = "..Response.End" | "..Response.End" # 0007 = "END" | "END" # 0008 = "PRIVATE.SUB._PrintPage()" | "PRIVATE.SUB._PrintPage()" # 0009 = "PRINT.\".#!/bin/env./usr/bin/gbw3\\n. | "PRINT.\".#!/bin/env./usr/bin/gbw3\\n. # 0010 = "print.\"A01.ON\"" | "print.\"A01.ON\"" # 0011 = "PRINT.\"\\n........\\n........ | "PRINT.\"\\n........\\n........ # 0012 = "END" | "END" ok 1 - Compile Web Page, test for correct source code output 1..1 ok 11 - TdMServerPages:WebPageProgramCreation # Ausgef?hrt: 'TaSetupForAllTests.SetupForTests,TbCommandLinePrograms.CreateProgramFromCommandLineArgs;ExecuteACommandLineProgram;Precompile,TcMMainFunction s.CheckLibraryVersions;CheckProcessLibrary;Components;FullReadCompileCheck;ValidFileRebuildCheck,TdMServerPages.RunWebPageGeneratedProgram;WebPageProgramCre ation' # # 4 tests failed: # 1: TbCommandLinePrograms:CreateProgramFromCommandLineArgs -- Test For bad Component # 4: TbCommandLinePrograms:Precompile -- Test for error # 1: TcMMainFunctions:CheckProcessLibrary -- Verify that error is generated when not found # 3: TcMMainFunctions:CheckProcessLibrary -- TcMMainFunctions:CheckProcessLibrary crashed with error 'gbs3: ~/DummyProg.1: Unbekannte Bibliothek: biz1.liba: 3.1' # # FAILED -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat Jul 18 14:40:25 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jul 2020 14:40:25 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <249bf723-58ce-cd5a-86d8-bce537c8ba39@deganius.de> Am 18.07.20 um 11:19 schrieb Brian G: > Point out the error of my way! I see a design flaw: 'TaSetupForAllTests' is not really a test. Is tests nothing but creates an environment. If you want to do sth like that it is better to create a helper module/method and call that in each testmodule via _Setup() individually. So you can ensure that the environment is already created even when you run a single testmethod in a separated testsuite. Look at the project I have attached. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: gbs3-3.15.90.tar.gz Type: application/gzip Size: 37188 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Jul 18 18:05:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Jul 2020 18:05:43 +0200 Subject: [Gambas-user] IDE Problem In-Reply-To: <6d880fa4-0473-3946-db0d-151eb4654170@cd-bahia.com> References: <6d880fa4-0473-3946-db0d-151eb4654170@cd-bahia.com> Message-ID: <6ea57895-a547-f704-9273-ea357fcf92f3@gmail.com> Le 17/07/2020 ? 11:29, Dag Jarle Nerland Johansen - Gambas a ?crit?: > Hi, > I use Ubuntu Mate 18.04.4 and have the > ppa.launchpad.net/gambas-team/gambas3/ubuntu. > The Gambas Info shows me the version 3.14.3. > The problem in the IDE is: > When I double-click on an object to get to the source of the object, it > shows me the source what I last edited, not of that object. > That means, I have to search for the right source part, what is somehow > annoying. > Can it be, that this was a bug, and I don't get the upgrades? > It has been a while since I saw Gambas made an upgrade on my PC. > Thanks in advance, > Dag > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Sorry, I don't understand what you are writing. Try to reformulate in better english, or send a video! Regards, -- Beno?t Minisini From adamnt42 at gmail.com Sat Jul 18 20:36:29 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 19 Jul 2020 04:06:29 +0930 Subject: [Gambas-user] 3.15 Code editor, , Add a toolbar button that toggles display of differences with last commit. Message-ID: <177c42a1-5418-f5ac-d9dc-996722455bb5@gmail.com> Beno?t, That is seriously a wonderful piece of work! Wow! b From karl.reinl at fen-net.de Sat Jul 18 21:39:09 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 18 Jul 2020 21:39:09 +0200 Subject: [Gambas-user] git describe says 3.14.0 Message-ID: Salut, -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Grafik-4P4ZN0.png Type: image/png Size: 21984 bytes Desc: not available URL: From vuott at tiscali.it Sat Jul 18 23:15:28 2020 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sat, 18 Jul 2020 23:15:28 +0200 Subject: [Gambas-user] ERROR: [11] Unknown symbol 'Tooltip' in class 'Menu' Message-ID: <7425c07e7ebe0426c421d690451257fa@tiscali.it> Hello, I updated my Gambas to MASTER version 84706609. When I try to open the IDE, I obtain a warning window: This applicationhas raised an unexpected error and must abort. [11] Unknown symbol 'Tooltip' in class 'Menu' ^Action.Tooltip_Write.416 Look at attached image file. Regards vuott Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error.png Type: image/png Size: 18637 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Jul 19 00:53:11 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 19 Jul 2020 00:53:11 +0200 Subject: [Gambas-user] ERROR: [11] Unknown symbol 'Tooltip' in class 'Menu' In-Reply-To: <7425c07e7ebe0426c421d690451257fa@tiscali.it> References: <7425c07e7ebe0426c421d690451257fa@tiscali.it> Message-ID: <621f1b1c-b7d8-c8b0-6fb6-f41943bb495b@gmail.com> Le 18/07/2020 ? 23:15, vuott at tiscali.it a ?crit?: > Hello, > I updated my Gambas to MASTER version 84706609. > When I try to open the IDE, I obtain a warning window: > ?? This applicationhas raised an unexpected error and must abort. > ?? [11] Unknown symbol 'Tooltip' in class 'Menu' > ?? ^Action.Tooltip_Write.416 > Look at attached image file. > Regards > vuott > > > > Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga > in 4G a soli 8,99? al mese. http://tisca.li/smart30 > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Fixed in last commit. -- Beno?t Minisini From brian at westwoodsvcs.com Sun Jul 19 00:58:45 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 18 Jul 2020 15:58:45 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: <249bf723-58ce-cd5a-86d8-bce537c8ba39@deganius.de> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <249bf723-58ce-cd5a-86d8-bce537c8ba39@deganius.de> Message-ID: <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> Great Thanks, I used your suggestions and moved it to the TSR module which already had a number of my helper functions I ran into one issue though. I attach the final...hopefully acceptable style wise version! When I delete a test module, the default or any other test suite does not recalculate itself, It will crash BailOut , because the test is missing, It is required to use shift-F4 to enter the default plan then exit it. This corrects the issue. Is it possible to fix this so that it is automatic and it detects that a test is missing and give opportunity to fix or bail? Its not intuitive from the message what needs to be done to fix the issue. Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Saturday, July 18, 2020 5:40:25 AM Subject: Re: [Gambas-user] Test Module, First try Am 18.07.20 um 11:19 schrieb Brian G: > Point out the error of my way! I see a design flaw: 'TaSetupForAllTests' is not really a test. Is tests nothing but creates an environment. If you want to do sth like that it is better to create a helper module/method and call that in each testmodule via _Setup() individually. So you can ensure that the environment is already created even when you run a single testmethod in a separated testsuite. Look at the project I have attached. Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- A non-text attachment was scrubbed... Name: gbs3-3.15.90.tar.gz Type: application/x-compressed-tar Size: 37605 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sun Jul 19 04:16:34 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 18 Jul 2020 22:16:34 -0400 Subject: [Gambas-user] IDE Problem In-Reply-To: <6ea57895-a547-f704-9273-ea357fcf92f3@gmail.com> References: <6d880fa4-0473-3946-db0d-151eb4654170@cd-bahia.com> <6ea57895-a547-f704-9273-ea357fcf92f3@gmail.com> Message-ID: On 7/18/20 12:05 PM, Beno?t Minisini wrote: > Le 17/07/2020 ? 11:29, Dag Jarle Nerland Johansen - Gambas a ?crit?: >> Hi, >> I use Ubuntu Mate 18.04.4 and have the ppa.launchpad.net/gambas-team/gambas3/ubuntu. >> The Gambas Info shows me the version 3.14.3. >> The problem in the IDE is: >> When I double-click on an object to get to the source of the object, it shows me the source what I last edited, not of that >> object. >> That means, I have to search for the right source part, what is somehow annoying. >> Can it be, that this was a bug, and I don't get the upgrades? >> It has been a while since I saw Gambas made an upgrade on my PC. >> Thanks in advance, >> Dag >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Sorry, I don't understand what you are writing. Try to reformulate in better english, or send a video! > > Regards, > I think the following is what Dag is saying. For example, when you double-click on a Button, the code editor tab is activated with the text cursor at the Button1_Click() event handler code. Apparently, Dag is instead presented with the location in the code where the last edit was made, ie. where the text cursor's location previous to the double-click on the control. -- Lee From adamnt42 at gmail.com Sun Jul 19 09:18:39 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 19 Jul 2020 16:48:39 +0930 Subject: [Gambas-user] Bug #1834: Toolbar key is not forced to be unique across a project (user config file problem) In-Reply-To: <5f13f261.1c69fb81.29120.d685SMTPIN_ADDED_BROKEN@mx.google.com> References: <5f13f261.1c69fb81.29120.d685SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: On 19/7/20 4:42 pm, bugtracker at gambaswiki.org wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1834&from=L21haW4- > > Comment #2 by Bruce BRUEN: > > Alas, I cannot agree with you. That is multiple instances of the same form. > I am talking about different forms in a project where more than one form has a toolbar with the same Key as a toolbar in a different form. > > Tried to attach a demo project but got this: Error in CGI script [4687] 19/07/2020 09:14:20.118 /edit?object=BUG.1834&from=L21haW4.dGFiPTEmdXBkYXRlPS5tZW51JnNjcm9sbD0wJmZvY3VzPWJ1Zy0lQzMlQTl0YXQmdHM9JTVFJTJB Document.GetContentType.137: File or directory does not exist Document.GetContentType.137 GuygleObject.AddDocument.8131 GuygleObject.Modify.8592 Edit.Save.95 Main.Guygle.1666 Main.Main.2610 gbx3: warning: circular references detected: gbx3: 3 CTab gbx3: 8 CGroup gbx3: 2 GuygleObject gbx3: 0 CField gbx3: 0 CClass From chrisml at deganius.de Sun Jul 19 09:51:32 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 19 Jul 2020 09:51:32 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <249bf723-58ce-cd5a-86d8-bce537c8ba39@deganius.de> <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> Am 19.07.20 um 00:58 schrieb Brian G: > I attach the final...hopefully acceptable style wise version! On my machine some tests fail, I attach the TAP output. It is because tests search for language agnostic strings which is not a really good idea: > # ------------- Expected ------------- > # gbs3: Dim i as integer:Print i:inc i.0: Unknown component: gb.inotifyt > # > # ---------------- Got --------------- > # gbs3: Dim i as integer:Print i:inc i.0: Unbekannte Komponente: gb.inotifyt > # ------------------------------------ Also you do not test for the existence of the bad component but instead for a string message. Apart from the language problem your test will fail if someone decides to change the message later, for instance 'Unknown component' to 'Component not found', which is not what you want! I did not inspect all of your tests but please ask yourself: "Do I really test the state of my program that I want to test? Or do I test something other which is influenced by the state that I really want to test." In the latter case you cannot rely on your tests! > When I delete a test module, the default or any other test suite does > not recalculate itself, It will crash BailOut , because the test is > missing, It is required to use shift-F4 to enter the default plan > then exit it. This corrects the issue. > > Is it possible to fix this so that it is automatic and it detects > that a test is missing and give opportunity to fix or bail? > > Its not intuitive from the message what needs to be done to fix the > issue. IMO this is not a bug. The test system has to bail out if a test is called which does not exist. It says to you that sth is wrong and you have to fix it. This is the real job the test system has to do. One thing I saw in the TAP output I personally would avoid: > Test TbCommandLinePrograms:ExecuteACommandLineProgram > # Application Output > # We say Hello World > # 0 > # 1 > # 2 > # > ok 1 - Check the output from the Executed command line script > 1..1 > ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram These notes are nice if you are debugging your program as well as the test code. But if it is done and the test reports 'ok', get rid of it: > Test TbCommandLinePrograms:ExecuteACommandLineProgram > ok 1 - Check the output from the Executed command line script > 1..1 > ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram Sometimes you want to read the TAP output (if you are looking for failures) and then you will be focused on searching notes beginning with "# " which will tell you what failed. Then notes which tell sth obvious will annoy you: > Test TbCommandLinePrograms:Precompile > # Testing PreCompile > ok 1 - Test precompile short forms I > ok 2 - Test precompile short forms F Have a nice sunday! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- 1..10 # Initialize the component collection # # When Gambas ide creates a library with no vendor using make executable then an (unknown) directory is created in the users .local library # This differs from create installation which forces a vendor name before continuing Test TbCommandLinePrograms:CreateProgramFromCommandLineArgs not ok 1 - Test For bad Component # # ------------- Expected ------------- # gbs3: Dim i as integer:Print i:inc i.0: Unknown component: gb.inotifyt # # ---------------- Got --------------- # gbs3: Dim i as integer:Print i:inc i.0: Unbekannte Komponente: gb.inotifyt # ------------------------------------ # # Compare size a=6, b=6 # 0001 = "Public.Sub.Main()" | "Public.Sub.Main()" # 0002 = "Dim.i.As.Integer" | "Dim.i.As.Integer" # 0003 = "i=9" | "i=9" # 0004 = "Print.i" | "Print.i" # 0005 = "inc.i" | "inc.i" # 0006 = "End" | "End" ok 2 - Verify program is formatted Correctly from command Line 1..2 not ok 1 - TbCommandLinePrograms:CreateProgramFromCommandLineArgs Test TbCommandLinePrograms:ExecuteACommandLineProgram # Application Output # We say Hello World # 0 # 1 # 2 # ok 1 - Check the output from the Executed command line script 1..1 ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram Test TbCommandLinePrograms:Precompile # Testing PreCompile ok 1 - Test precompile short forms I ok 2 - Test precompile short forms F ok 3 - Test precompile short forms L not ok 4 - Test for error # # ------------- Expected ------------- # gbs3: {l}Acar=45.1: ReDefinition of variable Dim Acar As Long From Dim Acar As Integer Not Allowed # # ---------------- Got --------------- # gbs3: {l}Acar=45.1: Neudefinition der Variablen Dim Acar As Long Von Dim Acar As Integer Nicht erlaubt # ------------------------------------ # 1..4 not ok 3 - TbCommandLinePrograms:Precompile Test TcMMainFunctions:CheckLibraryVersions ok 1 - Veryify we can get the correct library n.n.x ok 2 - Veryify we can get the correct library n.x.x ok 3 - Veryify we can get the correct library n.n.n ok 4 - Veryify we can get the correct library n.x.x ok 5 - Veryify we can get the correct library x.x.x ok 6 - Veryify we can get the correct library bad directory name ok 7 - Veryify we can get the correct library Bad Lib Name 1..7 ok 4 - TcMMainFunctions:CheckLibraryVersions Test TcMMainFunctions:CheckProcessLibrary # Verify Library search and versioning # not ok 1 - Verify that error is generated when not found # # ------------- Expected ------------- # gbs3: ~/projects.1: Unknown Library: DummyLibName # # ---------------- Got --------------- # gbs3: ~/projects.1: Unbekannte Bibliothek: DummyLibName # ------------------------------------ # ok 2 - Test for absolute path in library name ok 3 - Test for auto select from system library n.n.x ok 4 - Test for auto select from User .local library n.n.n ok 5 - Test for auto select from User .local library n.n.n ok 6 - Test for auto select from User .local library n.n.x ok 7 - Test for auto select from User .local library n.x.x ok 8 - Test for auto select from User .local unknown library x.x.x 1..8 not ok 5 - TcMMainFunctions:CheckProcessLibrary Test TcMMainFunctions:Components # Testing Needed Component ok 1 - Check if form is correctly set on init ok 2 - Forms need gui first 1..2 ok 6 - TcMMainFunctions:Components Test TcMMainFunctions:FullReadCompileCheck # Compare size a=32, b=32 # 0001 = "Class.Testit.Defined.{" | "Class.Testit.Defined.{" # 0002 = "...public.a.as.integer" | "...public.a.as.integer" # 0003 = "public.sub.GetA().as.integer" | "public.sub.GetA().as.integer" # 0004 = "...return.a" | "...return.a" # 0005 = "end" | "end" # 0006 = "}" | "}" # 0007 = "Project.file.{" | "Project.file.{" # 0008 = "#.Gambas.Project.File.3.0" | "#.Gambas.Project.File.3.0" # 0009 = "Title=Gambas.Script" | "Title=Gambas.Script" # 0010 = "Startup=MMain" | "Startup=MMain" # 0011 = "Component=gb.eval" | "Component=gb.eval" # 0012 = "Component=gb.eval.highlight" | "Component=gb.eval.highlight" # 0013 = "Component=gb.pcre" | "Component=gb.pcre" # 0014 = "}" | "}" # 0015 = "'.Gambas.module.file" | "'.Gambas.module.file" # 0016 = "Public.x.as.string.=.\"hello\"" | "Public.x.as.string.=.\"hello\"" # 0017 = "public.struct.testStruct" | "public.struct.testStruct" # 0018 = "....H.as.string." | "....H.as.string." # 0019 = "....g.as.integer" | "....g.as.integer" # 0020 = "....f.as.variant" | "....f.as.variant" # 0021 = "end.struct" | "end.struct" # 0022 = "public.sub.WriteSomething()" | "public.sub.WriteSomething()" # 0023 = "..print.\"Write.Something\"" | "..print.\"Write.Something\"" # 0024 = "end" | "end" # 0025 = "public.sub.MoreFunctions().as.string" | "public.sub.MoreFunctions().as.string" # 0026 = "print.\"More.stuff.as.string\"" | "print.\"More.stuff.as.string\"" # 0027 = "end" | "end" # 0028 = "Public.Sub.Main()" | "Public.Sub.Main()" # 0029 = "for.i.as.integer.=.0.to.20" | "for.i.as.integer.=.0.to.20" # 0030 = "...print.x;;i" | "...print.x;;i" # 0031 = "next" | "next" # 0032 = "End" | "End" ok 1 - Test a Basic App with all supported types 1..1 ok 7 - TcMMainFunctions:FullReadCompileCheck Test TcMMainFunctions:ValidFileRebuildCheck # Testing If rebuild Of script required check ok 1 - Check if rebuild required . not needed ok 2 - Check if rebuild required . Needed 1..2 ok 8 - TcMMainFunctions:ValidFileRebuildCheck Test TdMServerPages:RunWebPageGeneratedProgram # Run the full web page generation and check we have valid output from the generated program # Compare size a=12, b=12 # 0001 = "Content-type:.text/html;charset=utf-8 | "Content-type:.text/html;charset=utf-8 # 0002 = "Content-Length:.146\r" | "Content-Length:.146\r" # 0003 = "\r" | "\r" # 0004 = ".#!/bin/env./usr/bin/gbw3" | ".#!/bin/env./usr/bin/gbw3" # 0005 = "........" | "........" # 0006 = "........" | "........" # 0007 = "........" | "........" # 0008 = "........

Gambas3.Web.Server.

" | "........

Gambas3.Web.Server.

" # 0009 = "........" | "........" # 0010 = "........A01.ON\r" | "........A01.ON\r" # 0011 = "........" | "........" # 0012 = "........" | "........" ok 1 - Verify That a correct Basic webpage is generated # 1..1 ok 9 - TdMServerPages:RunWebPageGeneratedProgram Test TdMServerPages:WebPageProgramCreation # Generate the script to be executed from the web page # Compare size a=12, b=12 # 0001 = "USE.\"gb.web\"" | "USE.\"gb.web\"" # 0002 = "PUBLIC.SUB.Main()" | "PUBLIC.SUB.Main()" # 0003 = "..Response.Buffered.=.TRUE" | "..Response.Buffered.=.TRUE" # 0004 = "..Response.Begin" | "..Response.Begin" # 0005 = ".._PrintPage()" | ".._PrintPage()" # 0006 = "..Response.End" | "..Response.End" # 0007 = "END" | "END" # 0008 = "PRIVATE.SUB._PrintPage()" | "PRIVATE.SUB._PrintPage()" # 0009 = "PRINT.\".#!/bin/env./usr/bin/gbw3\\n. | "PRINT.\".#!/bin/env./usr/bin/gbw3\\n. # 0010 = "print.\"A01.ON\"" | "print.\"A01.ON\"" # 0011 = "PRINT.\"\\n........\\n........ | "PRINT.\"\\n........\\n........ # 0012 = "END" | "END" ok 1 - Compile Web Page, test for correct source code output 1..1 ok 10 - TdMServerPages:WebPageProgramCreation # Ausgef?hrt: 'TbCommandLinePrograms.CreateProgramFromCommandLineArgs;ExecuteACommandLineProgram;Precompile,TcMMainFunctions.CheckLibraryVersions;CheckProce ssLibrary;Components;FullReadCompileCheck;ValidFileRebuildCheck,TdMServerPages.RunWebPageGeneratedProgram;WebPageProgramCreation' # # 3 tests failed: # 1: TbCommandLinePrograms:CreateProgramFromCommandLineArgs -- Test For bad Component # 4: TbCommandLinePrograms:Precompile -- Test for error # 1: TcMMainFunctions:CheckProcessLibrary -- Verify that error is generated when not found # # FAILED -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sun Jul 19 10:31:41 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Sun, 19 Jul 2020 11:31:41 +0300 Subject: [Gambas-user] =?utf-8?q?Test_Module=2C_First_try?= In-Reply-To: <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> Message-ID: <1595147501.745462423@f33.my.com> I see your point about the text strings, I added the german and french translations after I wrote? the tests, oh well once more into the frey.... I understand it should bail if a test disappears, It would be nice if it told you how to fix the issue when you really do want to delete a test. Like I had to hunt around, experiment to find a way to fix it. The default had to be reset.? By opening iand closing the test suite. -- Thanks Brian Sunday, 19 July 2020, 00:52AM -07:00 from Christof Thalhofer chrisml at deganius.de : >Am 19.07.20 um 00:58 schrieb Brian G: > > I attach the final...hopefully acceptable style wise version! > >On my machine some tests fail, I attach the TAP output. It is because >tests search for language agnostic strings which is not a really good idea: > > # ------------- Expected ------------- > # gbs3: Dim i as integer:Print i:inc i.0: Unknown component: gb.inotifyt > # > # ---------------- Got --------------- > # gbs3: Dim i as integer:Print i:inc i.0: Unbekannte Komponente: gb.inotifyt > # ------------------------------------ > >Also you do not test for the existence of the bad component but instead >for a string message. Apart from the language problem your test will >fail if someone decides to change the message later, for instance >'Unknown component' to 'Component not found', which is not what you want! > >I did not inspect all of your tests but please ask yourself: > >"Do I really test the state of my program that I want to test? Or do I >test something other which is influenced by the state that I really want >to test." > >In the latter case you cannot rely on your tests! > > When I delete a test module, the default or any other test suite does > not recalculate itself, It will crash BailOut , because the test is > missing, It is required to use shift-F4 to enter the default plan > then exit it. This corrects the issue. > > Is it possible to fix this so that it is automatic and it detects > that a test is missing and give opportunity to fix or bail? > > Its not intuitive from the message what needs to be done to fix the > issue. > >IMO this is not a bug. The test system has to bail out if a test is >called which does not exist. It says to you that sth is wrong and you >have to fix it. This is the real job the test system has to do. > >One thing I saw in the TAP output I personally would avoid: > > Test TbCommandLinePrograms:ExecuteACommandLineProgram > # Application Output > # We say Hello World > # 0 > # 1 > # 2 > # > ok 1 - Check the output from the Executed command line script > 1..1 > ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram > >These notes are nice if you are debugging your program as well as the >test code. But if it is done and the test reports 'ok', get rid of it: > > Test TbCommandLinePrograms:ExecuteACommandLineProgram > ok 1 - Check the output from the Executed command line script > 1..1 > ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram > >Sometimes you want to read the TAP output (if you are looking for >failures) and then you will be focused on searching notes beginning with >"# " which will tell you what failed. > >Then notes which tell sth obvious will annoy you: > > Test TbCommandLinePrograms:Precompile > # Testing PreCompile > ok 1 - Test precompile short forms I > ok 2 - Test precompile short forms F > >Have a nice sunday! :-) > >Alles Gute > >Christof Thalhofer > >-- >Dies ist keine Signatur > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Jul 19 11:37:59 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 19 Jul 2020 11:37:59 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <1595147501.745462423@f33.my.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> Message-ID: Am 19.07.20 um 10:31 schrieb Brian G: > I understand it should bail if a test disappears, It would be nice if it > told you how to fix the issue when you really do want to delete a test. > Like I had to hunt around, experiment to find a way to fix it. The > default had to be reset.? By opening iand closing the test suite. If I delete a testmodule with the name 'TcMMainFunctions' which I defined to be called in a testsuite and then hit F4 the system says: "Bail out! Cannot load class 'TcMMainFunctions'" Yes, if I do not remember that I deleted 'TcMMainFunctions' this might be confusing and I have a problem. But: "Cannot load class" comes from the interpreter which crashed because of that. The test system itself detects a crash of the interpreter and reports that with "Bail out!" and the error message of the interpreter. There is no layer between it and the interpreter which does jobs the interpreter has to do (for instance check the existence of classes or report the non-existence). The reason is: This would add more complexity and with that came more possibility for failures of the test system itself. We want to keep it as stable and as concise as possible. And btw. If you delete any class in a program which is called by another part of your program and hit F5 the IDE says: "Cannot load class ...". Here it is the same, the IDE reports the error message of the interpreter. A testsuite can be seen as a program, which is defined by you and has to be executed. If it calls parts which do not exist the interpreter crashes. So at this point you might get a bit more familiar with it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Mon Jul 20 01:36:34 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 20 Jul 2020 01:36:34 +0200 Subject: [Gambas-user] git describe says 3.14.0 In-Reply-To: References: Message-ID: Le 18/07/2020 ? 21:39, Karl Reinl a ?crit?: > Salut, > > > > > > > -- > > Amicalement > Charlie > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > The result of 'git describe' has no real meaning, so it's not really a problem. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Mon Jul 20 14:40:12 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 20 Jul 2020 05:40:12 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> Message-ID: <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> Thanks, That was a great explanation of what happens when you remove a test module, Maybe that could be in the documentation? Ok so your previous email talks about not monitoring string returned when testing for errors. I am retrofitting the tests to a system which only returns string as errors, or raises and error when they happen. If I want to test that the internal modules are returning the correct error in different situations, what would/should be the correct model to use when using the test harness to test this App. And I would like to emphasize check that the correct error is returned. Should the modules return an error code, then print the actual text thru another function in order to separate the module functionality from the displayed text? This would imply that it's difficult to throw errors anymore as error.raise does not seem to allow a code to be passed. I don't really understand how to re-implement error handling such that it will fit nicely with the test suite. There are many more tests that need to be added to properly test the Apps functionality many of which will cause it to throw an error. if the app is correctly implemented there should be no random interpreter errors hopefully. I would be happy for some input in this area regarding how you clearly see this working in a well implemented app within the test framework. I had a great Sunday, I was off hiking in the mountains, did a 16 mile section of the high Sierra trail, so cool the whole thing is above 10,000 feet(3048 meters). Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Sunday, July 19, 2020 2:37:59 AM Subject: Re: [Gambas-user] Test Module, First try Am 19.07.20 um 10:31 schrieb Brian G: > I understand it should bail if a test disappears, It would be nice if it > told you how to fix the issue when you really do want to delete a test. > Like I had to hunt around, experiment to find a way to fix it. The > default had to be reset.? By opening iand closing the test suite. If I delete a testmodule with the name 'TcMMainFunctions' which I defined to be called in a testsuite and then hit F4 the system says: "Bail out! Cannot load class 'TcMMainFunctions'" Yes, if I do not remember that I deleted 'TcMMainFunctions' this might be confusing and I have a problem. But: "Cannot load class" comes from the interpreter which crashed because of that. The test system itself detects a crash of the interpreter and reports that with "Bail out!" and the error message of the interpreter. There is no layer between it and the interpreter which does jobs the interpreter has to do (for instance check the existence of classes or report the non-existence). The reason is: This would add more complexity and with that came more possibility for failures of the test system itself. We want to keep it as stable and as concise as possible. And btw. If you delete any class in a program which is called by another part of your program and hit F5 the IDE says: "Cannot load class ...". Here it is the same, the IDE reports the error message of the interpreter. A testsuite can be seen as a program, which is defined by you and has to be executed. If it calls parts which do not exist the interpreter crashes. So at this point you might get a bit more familiar with it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From adamnt42 at gmail.com Tue Jul 21 11:34:09 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 21 Jul 2020 19:04:09 +0930 Subject: [Gambas-user] ListView.Clear() doesn't seem to clear evertyhing Message-ID: From a colleague: ------------------------------------ I have a listview on a form that I want to clear entirely and then rebuild from a new set of similar things, so I try: lvwX.Clear For each item in newlist lvwX.Add(item,item) Next but I keep getting an error about ~"Key already exists". So I try lvwX.Clear lvw.Keys.Clear For each item in newlist lvwX.Add(item,item) Next and still get the sam error. Is this correct or are we using a bad version of ListView? ------------------------------------ I have confirmed it but I am sure we haven't a local version of ListView, so.. Any comments? tia bruce From chrisml at deganius.de Tue Jul 21 11:38:14 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 21 Jul 2020 11:38:14 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Am 20.07.20 um 14:40 schrieb Brian G: > Thanks, That was a great explanation of what happens when you remove > a test module, Maybe that could be in the documentation? Maybe it lacks an explanation what gb.test really does: It runs the tests (Assert.*) which can access all the public available interfaces of the project at runtime *from inside the project*. The tests are organized as little programs (testmethods) which again can be organized in testmodules and testsuites at the end. A testsuite is nothing other that a string which contains the names of the testmodules and testmethods to be executed. gb.test takes this string and executes all tests which are defined by it. By default (if the string is empty) gb.test executes all testmodules and the included testmethods it finds in the project. The execution order is always alphabetically by the names of the testmodules and testmethods. So it is natural, that a deleted (or nonexistent) testmethod or testmodule which is called by the testsuite crashes the system. > Ok so your previous email talks about not monitoring string returned > when testing for errors. I am retrofitting the tests to a system > which only returns string as errors, or raises and error when they > happen. > > If I want to test that the internal modules are returning the correct > error in different situations, what would/should be the correct model > to use when using the test harness to test this App. And I would like > to emphasize check that the correct error is returned. > > Should the modules return an error code, then print the actual text > thru another function in order to separate the module functionality > from the displayed text? This would imply that it's difficult to > throw errors anymore as error.raise does not seem to allow a code to > be passed. I don't really understand how to re-implement error > handling such that it will fit nicely with the test suite. As long as you control the errors inside the tested project in this way: Error.Raise("My error description") ... IMO* it is no problem, it is fully reliable. You can test with: ' create the error situation and then test it: Assert.Error("My error description") * I said IMO because I am unsure when the translation of errors happen if the project is internationalized and has translated error strings. We would have to ask Beno?t for that or try it out. In that case you had to test with: Assert.Error(("My error description")) But if you rely on error message strings of the interpreter or any other component or program, as you did in the case I mentioned**, you have to be aware that it could have been altered or translated. ** You tried to test the non-existence of a component by testing for an error string of the interpreter, as I remember. But in reality *you tested the error string of the interpreter* and not *whether or not the component existed*. > I had a great Sunday, I was off hiking in the mountains, did a 16 > mile section of the high Sierra trail, so cool the whole thing is > above 10,000 feet(3048 meters). Wow, cool, that sounds beautiful! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Tue Jul 21 15:15:30 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 21 Jul 2020 09:15:30 -0400 Subject: [Gambas-user] ListView.Clear() doesn't seem to clear evertyhing In-Reply-To: References: Message-ID: <20f08a7d-0732-4766-54aa-72473c4b17de@gmail.com> On 7/21/20 5:34 AM, Bruce wrote: > From a colleague: > ------------------------------------ > I have a listview on a form that I want to clear entirely and then rebuild from a new set of similar things, so I try: > ????lvwX.Clear > ????For each item in newlist > ??????? lvwX.Add(item,item) > ????Next > but I keep getting an error about ~"Key already exists". So I try > ????lvwX.Clear > ????lvw.Keys.Clear > ????For each item in newlist > ??????? lvwX.Add(item,item) > ????Next > and still get the sam error. > Is this correct or are we using a bad version of ListView? > ------------------------------------ > > I have confirmed it but I am sure we haven't a local version of ListView, so.. > > Any comments? > tia > bruce > It works here with Qt5 and GTK3. -- Lee [System] Gambas=3.15 OperatingSystem=Linux Kernel=4.12.14-lp151.28.52-default Architecture=x86_64 Distribution=openSUSE Leap 15.1 Desktop=KDE5 Theme=breeze Language=en_US.UTF-8 Memory=16030M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.5.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1205.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2200.30 OpenGL=/usr/lib64/libGL.so.1.0.0 Poppler=/usr/lib64/libpoppler.so.73.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.9.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 From adamnt42 at gmail.com Tue Jul 21 16:04:18 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 21 Jul 2020 23:34:18 +0930 Subject: [Gambas-user] ListView.Clear() doesn't seem to clear evertyhing In-Reply-To: <20f08a7d-0732-4766-54aa-72473c4b17de@gmail.com> References: <20f08a7d-0732-4766-54aa-72473c4b17de@gmail.com> Message-ID: <1870912f-ef2e-6af6-9ad7-4ffdd39d52d3@gmail.com> On 21/7/20 10:45 pm, T Lee Davidson wrote: > On 7/21/20 5:34 AM, Bruce wrote: >> ?From a colleague: >> ------------------------------------ >> I have a listview on a form that I want to clear entirely and then >> rebuild from a new set of similar things, so I try: >> ?????????lvwX.Clear >> ?????????For each item in newlist >> ??????????????? lvwX.Add(item,item) >> ?????????Next >> but I keep getting an error about ~"Key already exists". So I try >> ?????????lvwX.Clear >> ?????????lvw.Keys.Clear >> ?????????For each item in newlist >> ??????????????? lvwX.Add(item,item) >> ?????????Next >> and still get the sam error. >> Is this correct or are we using a bad version of ListView? >> ------------------------------------ >> >> I have confirmed it but I am sure we haven't a local version of >> ListView, so.. >> >> Any comments? >> tia >> bruce >> > > It works here with Qt5 and GTK3. > > Hmmmm. Neither of us uses QT5 so maybe its a QT4 thing. b From adamnt42 at gmail.com Tue Jul 21 17:13:41 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 22 Jul 2020 00:43:41 +0930 Subject: [Gambas-user] ListView.Clear() doesn't seem to clear evertyhing In-Reply-To: <1870912f-ef2e-6af6-9ad7-4ffdd39d52d3@gmail.com> References: <20f08a7d-0732-4766-54aa-72473c4b17de@gmail.com> <1870912f-ef2e-6af6-9ad7-4ffdd39d52d3@gmail.com> Message-ID: On 21/7/20 11:34 pm, Bruce wrote: > > > On 21/7/20 10:45 pm, T Lee Davidson wrote: >> On 7/21/20 5:34 AM, Bruce wrote: >>> ??From a colleague: >>> ------------------------------------ >>> I have a listview on a form that I want to clear entirely and then >>> rebuild from a new set of similar things, so I try: >>> ??????????????????lvwX.Clear >>> ??????????????????For each item in newlist >>> ?????????????????????????????? lvwX.Add(item,item) >>> ??????????????????Next >>> but I keep getting an error about ~"Key already exists". So I try >>> ??????????????????lvwX.Clear >>> ??????????????????lvw.Keys.Clear >>> ??????????????????For each item in newlist >>> ?????????????????????????????? lvwX.Add(item,item) >>> ??????????????????Next >>> and still get the sam error. >>> Is this correct or are we using a bad version of ListView? >>> ------------------------------------ >>> >>> I have confirmed it but I am sure we haven't a local version of >>> ListView, so.. >>> >>> Any comments? >>> tia >>> bruce >>> >> >> It works here with Qt5 and GTK3. >> >> > > Hmmmm. Neither of us uses QT5 so maybe its a QT4 thing. > b Found it! He was clearing the wrong, but very similalry named ListView. :-( Sorry for the noise b From john.aaron.rose at gmail.com Tue Jul 21 18:53:16 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Tue, 21 Jul 2020 17:53:16 +0100 Subject: [Gambas-user] Gtk-CRITICAL message Message-ID: <0ca72a32-2c0d-60a3-5f20-e84ebf40fc15@gmail.com> I'm getting when running in Debug mode (though the iRecorder app carries on): (iRecorder:29795): Gtk-CRITICAL **: 17:48:20.329: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkRadioButton What does it mean and how can I find out the cause and its solution? From g4mba5 at gmail.com Tue Jul 21 19:43:17 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 21 Jul 2020 19:43:17 +0200 Subject: [Gambas-user] Gtk-CRITICAL message In-Reply-To: <0ca72a32-2c0d-60a3-5f20-e84ebf40fc15@gmail.com> References: <0ca72a32-2c0d-60a3-5f20-e84ebf40fc15@gmail.com> Message-ID: Le 21/07/2020 ? 18:53, John Rose a ?crit?: > I'm getting when running in Debug mode (though the iRecorder app carries > on): > > (iRecorder:29795): Gtk-CRITICAL **: 17:48:20.329: > gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkRadioButton > > What does it mean and how can I find out the cause and its solution? > I have sometimes these kind of messages with GTK+, and ask myself the same questions as yours. :-) Can you try to change your GTK+ widget theme, to see if these messages depend on it? Regards, -- Beno?t Minisini From john.aaron.rose at gmail.com Wed Jul 22 10:46:04 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Wed, 22 Jul 2020 09:46:04 +0100 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property Message-ID: Using Gambas 3.15 from stable builds. I have a string array sProgrammes. The first item in the array passes validation and is split into 4 strings: sIndex, sName, sChannel & sPID (e.g. the first Programme with value of "51:??? A History of Art in Three Colours - Blue, BBC Four, b01lcz2s" is split as follows: sIndex=51, sName="A History of Art in Three Colours - Blue", sChannel="BBC Four", sPID="b01lcz2s" The code should then add each value to its correspondingly named ComboBox. At the end of the code, the idea is for the user to select an item in ComboBoxName and for the app to display the corresponding values in the appropriate ComboBoxes What seems to happen is that the Click event's code for ComboBoxName is entered. I see no reason why that should happen. Also, the ComboBoxName's Index property is set to-1 as though the Click event has not happened! When I put Print ComboBoxName.Max after the first Next code line (in Form_Open), there is a runtime problem, which I'm baffled by. -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp.tar.gz Type: application/gzip Size: 13051 bytes Desc: not available URL: From chrisml at deganius.de Wed Jul 22 12:06:07 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 22 Jul 2020 12:06:07 +0200 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: Message-ID: Am 22.07.20 um 10:46 schrieb John Rose: > Using Gambas 3.15 from stable builds. You mail is beeing bonced from all Gmail servers because of the 'TestApp.tar.gz' attachment. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Wed Jul 22 13:21:58 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 22 Jul 2020 20:51:58 +0930 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: Message-ID: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> On 22/7/20 7:36 pm, Christof Thalhofer wrote: > Am 22.07.20 um 10:46 schrieb John Rose: > >> Using Gambas 3.15 from stable builds. > > You mail is beeing bonced from all Gmail servers because of the > 'TestApp.tar.gz' attachment. > > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Aren't they wonderful! Not. I just had a thought, maybe if we just renamed the file from "xyzzy.tar.gz" to "xyzzy,sourcearchive" before attaching it, would that get through? ... or are Google looking inside our email attachments" No, they wouldn't do that, surely :-( I'll have a play around with this later. bruce From john.aaron.rose at gmail.com Wed Jul 22 13:26:14 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Wed, 22 Jul 2020 12:26:14 +0100 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property Message-ID: <23bbd7a5-0787-32d1-7b2c-64a7db60115a@gmail.com> Sorry, I forgot that gmail bounces tar.gz files. I have attached the compressed source with a .txt extension instead. BTW can any body recommend a better email provider than gmail? I guess that I'll have to pay! -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TestApp.txt URL: From bagonergi at gmail.com Wed Jul 22 14:50:43 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 22 Jul 2020 14:50:43 +0200 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: Message-ID: Il giorno mer 22 lug 2020 alle ore 13:06 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 22.07.20 um 10:46 schrieb John Rose: > > > Using Gambas 3.15 from stable builds. > > You mail is beeing bonced from all Gmail servers because of the > 'TestApp.tar.gz' attachment. > Maybe attaching zip files will bypass the problem... I would propose to John such a thing: [code] Public Sub Form_Open() Dim sProgrammes As New String[] ' NEW Dim sProgramme As String Dim aProg, aIndex, aChannel, aPid As New String[] Me.Title = "TestApp: Version " & Application.Version sProgrammes.Add("51: A History of Art in Three Colours - Blue, BBC Four, b01lcz2s") sProgrammes.Add("52: A House Through Time: Series 1 - Episode 1, BBC Two, b09l64zg") sProgrammes.Add("xyz: Rubbish, BBC Two, r123qw9x") sProgrammes.Add("7691: Your Money and Your Life: Series 1 - Episode 10, BBC One, m000kc5x") '------------------------------------------- ComboBoxProgramme.List = sProgrammes For i As Integer = 0 To sProgrammes.Max sProgramme = sProgrammes.Pop() aIndex.Add(Trim(Scan(sProgramme, "*:*,*,*")[0])) aProg.Add(Trim(Scan(sProgramme, "*:*,*,*")[1])) aChannel.Add(Trim(Scan(sProgramme, "*:*,*,*")[2])) aPid.Add(Trim(Scan(sProgramme, "*:*,*,*")[3])) Next ComboBoxIndex.List = aIndex.Reverse() ComboBoxName.List = aProg.Reverse() ComboBoxChannel.List = aChannel.Reverse() ComboBoxPID.List = aPid.Reverse() End Public Sub ComboBoxProgramme_Click() Dim s As String = ComboBoxProgramme.Text Dim ss As String[] = Scan(s, "*:*,*,*") ComboBoxIndex.Text = Trim(ss[0]) ComboBoxName.Text = Trim(ss[1]) ComboBoxChannel.Text = Trim(ss[2]) ComboBoxPID.Text = Trim(ss[3]) End [/code] Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jul 22 15:01:04 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 22 Jul 2020 15:01:04 +0200 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: Message-ID: Il giorno mer 22 lug 2020 alle ore 14:50 Gianluigi ha scritto: > > > Maybe attaching zip files will bypass the problem... > Test of sending attachment (zip) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp-2.zip Type: application/zip Size: 17716 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed Jul 22 15:52:50 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 22 Jul 2020 09:52:50 -0400 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: Message-ID: On 7/22/20 9:01 AM, Gianluigi wrote: > > > Il giorno mer 22 lug 2020 alle ore 14:50 Gianluigi > ha scritto: > > > > Maybe attaching zip files will bypass the problem... > > > Test of sending attachment (zip) > > Regards > Gianluigi > Received. -- Lee From jussi.lahtinen at gmail.com Wed Jul 22 21:48:54 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 22 Jul 2020 22:48:54 +0300 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> References: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> Message-ID: > I just had a thought, maybe if we just renamed the file from > "xyzzy.tar.gz" to ... > It shouldn't be about .tar.gz as they most of the time arrive normally and I always use it. More likely the content included forbidden file type or something other that triggered the filter falsely. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jul 22 21:52:08 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 22 Jul 2020 22:52:08 +0300 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> Message-ID: It seems John got his .tar.gz attachments through in the thread "How to specify a string constant in an Exec statement". Jussi On Wed, Jul 22, 2020 at 10:48 PM Jussi Lahtinen wrote: > > I just had a thought, maybe if we just renamed the file from >> "xyzzy.tar.gz" to ... >> > > It shouldn't be about .tar.gz as they most of the time arrive normally and > I always use it. More likely the content included forbidden file type or > something other that triggered the filter falsely. > > > Jussi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Jul 22 23:06:05 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 22 Jul 2020 23:06:05 +0200 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> Message-ID: <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> Am 22.07.20 um 21:48 schrieb Jussi Lahtinen: > > I just had a thought, maybe if we just renamed the file from > "xyzzy.tar.gz" to ... > > > It shouldn't be about .tar.gz as they most of the time arrive normally > and I always use it. More likely the content included forbidden file > type or something other that triggered the filter falsely. No one knows that except the admins at Google. It also seems that no one of us has a telephone number or an email address to talk with them and call their attention to the problem. In view of this, i have to say that this would not be a provider i wanted to entrust my mail traffic to. Of course i don't have such a provider. Here the mails arrive as they were sent. Of course also mails with viruses etc. But I can differentiate myself and much better than google. Basically i would always recommend providers who are specialized in mail and who earn money from it, like in germany posteo.de or mailbox.org. You pay 12 Euros per year, which is negligible considering the service they offer. Or one has an own domain at a reliable provider, which is also available for little money and has the unbeatable advantage that one can simply move the domain to the next one, if the provider screws up. Google is not really interested in email, a clear sign is their lack of support. Like Microsoft or Facebook they have an interest in attracting as many users as possible and then offering the service proprietarily in walled gardens. A free protocol only disturbs them and I suspect that they don't like the free protocol and want to get rid of it sooner or later. Fortunately, e-mail has survived for a long time now, but when there is a significantly high percentage of users on Gmail, the trap closes. At least that is my fear. In the meantime, they will work to incorporate features that are unique to them, disrupting the broad usability and compatibility. Then users will come and say: "This and that is much better solved here at Gmail" and attract all those who do not know or no longer remember what the corporations have already destroyed only because they want to become bigger, more powerful and richer. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed Jul 22 23:09:53 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 22 Jul 2020 23:09:53 +0200 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> References: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> Message-ID: <9f914a00-ceef-3065-7299-00b71792b1b2@deganius.de> Am 22.07.20 um 23:06 schrieb Christof Thalhofer: > In the meantime, they will work to incorporate features that are unique P.S.: Sorry for the long rant and that I've highjacked the thread. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Thu Jul 23 01:05:21 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Jul 2020 02:05:21 +0300 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> References: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> Message-ID: Well, I have used gmail for 15 years and now solely, because other providers have not offered comparable features (free to use, huge storage size, thread view, two step sign in for travelling, filters & labels [example in practice multiple inboxes], actually working spell checker), but maybe they do now, I don't know. This is the only issue I have had with it and only in this mail list. That being said, I would rather use open source version of gmail. Juss On Thu, Jul 23, 2020 at 12:07 AM Christof Thalhofer wrote: > Am 22.07.20 um 21:48 schrieb Jussi Lahtinen: > > > > I just had a thought, maybe if we just renamed the file from > > "xyzzy.tar.gz" to ... > > > > > > It shouldn't be about .tar.gz as they most of the time arrive normally > > and I always use it. More likely the content included forbidden file > > type or something other that triggered the filter falsely. > > No one knows that except the admins at Google. It also seems that no one > of us has a telephone number or an email address to talk with them and > call their attention to the problem. > > In view of this, i have to say that this would not be a provider i > wanted to entrust my mail traffic to. Of course i don't have such a > provider. Here the mails arrive as they were sent. Of course also mails > with viruses etc. But I can differentiate myself and much better than > google. > > Basically i would always recommend providers who are specialized in mail > and who earn money from it, like in germany posteo.de or mailbox.org. > You pay 12 Euros per year, which is negligible considering the service > they offer. > > Or one has an own domain at a reliable provider, which is also available > for little money and has the unbeatable advantage that one can simply > move the domain to the next one, if the provider screws up. > > Google is not really interested in email, a clear sign is their lack of > support. Like Microsoft or Facebook they have an interest in attracting > as many users as possible and then offering the service proprietarily in > walled gardens. A free protocol only disturbs them and I suspect that > they don't like the free protocol and want to get rid of it sooner or > later. Fortunately, e-mail has survived for a long time now, but when > there is a significantly high percentage of users on Gmail, the trap > closes. At least that is my fear. > > In the meantime, they will work to incorporate features that are unique > to them, disrupting the broad usability and compatibility. Then users > will come and say: "This and that is much better solved here at Gmail" > and attract all those who do not know or no longer remember what the > corporations have already destroyed only because they want to become > bigger, more powerful and richer. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Jul 23 06:13:23 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 23 Jul 2020 07:13:23 +0300 Subject: [Gambas-user] =?utf-8?q?String_array_items_filling_ComboBox_give?= =?utf-8?q?s_unexpected_Click_event_with_Index_value_of_-1_and_invalid_Max?= =?utf-8?q?_property?= In-Reply-To: <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> References: <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> Message-ID: <1595477603.639362791@f38.my.com> Agreed, that's why everyone should have thier own email server like Zimbra. Full open source version -- Thanks Brian Wednesday, 22 July 2020, 02:07PM -07:00 from Christof Thalhofer chrisml at deganius.de : >Am 22.07.20 um 21:48 schrieb Jussi Lahtinen: > > I just had a thought, maybe if we just renamed the file from > "xyzzy.tar.gz" to ... > > > It shouldn't be about .tar.gz as they most of the time arrive normally > and I always use it. More likely the content included forbidden file > type or something other that triggered the filter falsely. > >No one knows that except the admins at Google. It also seems that no one >of us has a telephone number or an email address to talk with them and >call their attention to the problem. > >In view of this, i have to say that this would not be a provider i >wanted to entrust my mail traffic to. Of course i don't have such a >provider. Here the mails arrive as they were sent. Of course also mails >with viruses etc. But I can differentiate myself and much better than >google. > >Basically i would always recommend providers who are specialized in mail >and who earn money from it, like in germany posteo.de or mailbox.org. >You pay 12 Euros per year, which is negligible considering the service >they offer. > >Or one has an own domain at a reliable provider, which is also available >for little money and has the unbeatable advantage that one can simply >move the domain to the next one, if the provider screws up. > >Google is not really interested in email, a clear sign is their lack of >support. Like Microsoft or Facebook they have an interest in attracting >as many users as possible and then offering the service proprietarily in >walled gardens. A free protocol only disturbs them and I suspect that >they don't like the free protocol and want to get rid of it sooner or >later. Fortunately, e-mail has survived for a long time now, but when >there is a significantly high percentage of users on Gmail, the trap >closes. At least that is my fear. > >In the meantime, they will work to incorporate features that are unique >to them, disrupting the broad usability and compatibility. Then users >will come and say: "This and that is much better solved here at Gmail" >and attract all those who do not know or no longer remember what the >corporations have already destroyed only because they want to become >bigger, more powerful and richer. > >Alles Gute > >Christof Thalhofer > >-- >Dies ist keine Signatur > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Jul 23 14:53:50 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 23 Jul 2020 14:53:50 +0200 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> Message-ID: Am 23.07.20 um 01:05 schrieb Jussi Lahtinen: > Well, I have used gmail for 15 years and now solely, because other > providers have not offered comparable features (free to use, huge > storage size, thread view, two step sign in for travelling, filters & > labels [example in practice multiple inboxes], actually working spell > checker), but maybe they do now, I don't know. This is the only issue I > have had with it and only in this mail list. That being said, I would > rather use open source version of gmail. Ah you mean a web client for mail? At Hostsharing they use Roundcube, this is something like that, but I don't know how it is compared to Gmail. Well, I may be a little too paranoid ... I've seen them buying up deja news and swallowing the usenet into Google Groups. The usenet is now quite dead. Something similar happened with XMPP and WhatsApp. So here I'm a burnt child. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Thu Jul 23 23:53:52 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 23 Jul 2020 14:53:52 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> Hi, Been busy the last few days so a long delay, I posted a Gambas bug report regarding case sensitivity before I sent the email from which you fixed the issue. Sorry about any confusion. So attached is a project with the ideas from bellow, removed any reference in tests to text output from the compiler/interpreter error messages. Internationalized the error checks for the assert.error parts from the scripter(this works well). Removed all extra notes, only print output from Compare when the test result fails. It makes for a much more tidy output for sure. Perhaps now this is a fair to middling use of the test harness. Still learning of course!!! Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Tuesday, July 21, 2020 9:38:14 AM Subject: Re: [Gambas-user] Test Module, First try Am 20.07.20 um 14:40 schrieb Brian G: > Thanks, That was a great explanation of what happens when you remove > a test module, Maybe that could be in the documentation? Maybe it lacks an explanation what gb.test really does: It runs the tests (Assert.*) which can access all the public available interfaces of the project at runtime *from inside the project*. The tests are organized as little programs (testmethods) which again can be organized in testmodules and testsuites at the end. A testsuite is nothing other that a string which contains the names of the testmodules and testmethods to be executed. gb.test takes this string and executes all tests which are defined by it. By default (if the string is empty) gb.test executes all testmodules and the included testmethods it finds in the project. The execution order is always alphabetically by the names of the testmodules and testmethods. So it is natural, that a deleted (or nonexistent) testmethod or testmodule which is called by the testsuite crashes the system. > Ok so your previous email talks about not monitoring string returned > when testing for errors. I am retrofitting the tests to a system > which only returns string as errors, or raises and error when they > happen. > > If I want to test that the internal modules are returning the correct > error in different situations, what would/should be the correct model > to use when using the test harness to test this App. And I would like > to emphasize check that the correct error is returned. > > Should the modules return an error code, then print the actual text > thru another function in order to separate the module functionality > from the displayed text? This would imply that it's difficult to > throw errors anymore as error.raise does not seem to allow a code to > be passed. I don't really understand how to re-implement error > handling such that it will fit nicely with the test suite. As long as you control the errors inside the tested project in this way: Error.Raise("My error description") ... IMO* it is no problem, it is fully reliable. You can test with: ' create the error situation and then test it: Assert.Error("My error description") * I said IMO because I am unsure when the translation of errors happen if the project is internationalized and has translated error strings. We would have to ask Beno?t for that or try it out. In that case you had to test with: Assert.Error(("My error description")) But if you rely on error message strings of the interpreter or any other component or program, as you did in the case I mentioned**, you have to be aware that it could have been altered or translated. ** You tried to test the non-existence of a component by testing for an error string of the interpreter, as I remember. But in reality *you tested the error string of the interpreter* and not *whether or not the component existed*. > I had a great Sunday, I was off hiking in the mountains, did a 16 > mile section of the high Sierra trail, so cool the whole thing is > above 10,000 feet(3048 meters). Wow, cool, that sounds beautiful! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- A non-text attachment was scrubbed... Name: gbs3-3.15.90.tar.gz Type: application/x-compressed-tar Size: 39755 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Fri Jul 24 00:13:10 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 24 Jul 2020 01:13:10 +0300 Subject: [Gambas-user] String array items filling ComboBox gives unexpected Click event with Index value of -1 and invalid Max property In-Reply-To: References: <449f09a8-b89c-d3ce-93a7-8231bd9a82a9@gmail.com> <9cca219d-a7d4-5bcc-c8ad-c330ef9ef568@deganius.de> Message-ID: > Well, I may be a little too paranoid ... I've seen them buying up deja > news and swallowing the usenet into Google Groups. The usenet is now > quite dead. Something similar happened with XMPP and WhatsApp. So here > I'm a burnt child. > Google groups is still alive, but I use only the email interface for it. I don't see any other use for it. Sometimes we should throw old stuff away. And I say this as a person who just threw away his over ten year old cell phone (didn't work anymore). XMPP is an open protocol, which has non-standard or closed extensions (just as it was designed). Nothing wrong with that, and there is healthy competition in IM apps, so I don't see any problem here. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri Jul 24 06:02:28 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 23 Jul 2020 21:02:28 -0700 (PDT) Subject: [Gambas-user] When Is the Test Suite included and when not during packaging Message-ID: <396610619.8525.1595563348822.JavaMail.zimbra@westwoodsvcs.com> Hi, I see the flag when creating a gambas executable to not include the test suite into the executable which is great! Does that flag also control the inclusion of the test suite into an uninstallable package, when built by the IDE? Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.aaron.rose at gmail.com Fri Jul 24 07:15:54 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Fri, 24 Jul 2020 06:15:54 +0100 Subject: [Gambas-user] String array items filling ComboBox gives unexpected, Click event with Index value of -1 and invalid Max property Message-ID: <88d36c65-22c4-47ba-b2a1-b54f860ccfce@gmail.com> Interesting discussion about email 'suppliers. I'm thinking about moving from gmail because of use of labels, rejection of tar.gz (or perhaps contents). I've looked at various ones and one that looks best to me is mailbox.org. I've signed up for a 30 day free trial period. After that it's ?1 per month which allows 3 email addresses. It's fast response on both Thunderbird and browser. And the Browser method is more intuitive than gmail's. I'm waiting to hear from them about use of Thunderbird Lists (in the Address Book) which allow bulk emailing: I don't do much but it's very useful. Currently, I use the Thunderbird extension tbsync for synchronisation of Address Book, Calendar & Tasks. I used to use gcontactsync for Address Book, but Google changed something and it stopped syncing properly. tbsync works well and is fast. mailbox,.org are based in Berlin and only uses servers in the EU (or maybe only in Berlin). I like the idea of being under the 'rule' of the GDPR. I'd be interested to know if anyone else has had experience of mailbox.org. PS even though Britain has left the EU, I'm hopeful that we'll rejoin when the coming disastrous effects are fully felt which will be fairly soon in 2021. Perhaps I shouldn't introduce politics into this user list! From brian at westwoodsvcs.com Fri Jul 24 16:37:28 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Fri, 24 Jul 2020 17:37:28 +0300 Subject: [Gambas-user] =?utf-8?q?When_Is_the_Test_Suite_included_and_when?= =?utf-8?q?_not_during_packaging?= In-Reply-To: <396610619.8525.1595563348822.JavaMail.zimbra@westwoodsvcs.com> References: <396610619.8525.1595563348822.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1595601448.184275169@f40.my.com> The installable package, .... -- Thanks Brian Thursday, 23 July 2020, 09:13PM -07:00 from Brian G brian at westwoodsvcs.com : >Hi, > >I see the flag when creating a gambas executable to not include the test suite into the executable which is great! > >Does that flag also control the inclusion of the test suite into an uninstallable package, when built by the IDE? > >Thank You >Brian G > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jul 25 10:57:49 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 25 Jul 2020 10:57:49 +0200 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: <11a2a868-dc9d-80ca-4fcc-15f12a6df8e4@gmail.com> References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> <11a2a868-dc9d-80ca-4fcc-15f12a6df8e4@gmail.com> Message-ID: <78efbb04-c7ac-d194-ed32-3af279d157ea@gmail.com> Le 17/07/2020 ? 10:28, Bruce a ?crit?: > OK, I think I found (part of) the problem, but not the solution. :-( > At the beginning of the Make() method in the IDE Packager/Package module > you are using the following: > > ????If Project.RuntimeVersion Then > ??????????? MIN_VERSION = Project.RuntimeVersion > ????? Else > ??????????? aVer = Split(System.FullVersion, ".") > ??????????? MIN_VERSION = aVer[0] & "." & aVer[1] > ????? Endif > > I think this is setting dependencies in the Else part regardless of > whether the checkbox is true. If the checkbox is false, then Project.RuntimeVersion is void, so the test is correct. -- Beno?t Minisini From g4mba5 at gmail.com Sat Jul 25 11:00:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 25 Jul 2020 11:00:31 +0200 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> Message-ID: <19da0810-e1ec-cbf0-7562-374bcecd33f2@gmail.com> Le 16/07/2020 ? 03:27, Bruce a ?crit?: > even if the "minimum gambaas version is unchecked! > > e.g. > Requires: gambas3-runtime >= 3.15,gambas3-runtime < > 3.99.0,gambas3-gb-image >= 3.15,gambas3-gb-image < > 3.99.0,gambas3-gb-form >= 3.15,gambas3-gb-form < 3.99.0, > > None of these packages exist here as Gambas is built from source. > > > Also, sometimes the dependencies are rediculous, such as > Requires: gambas3-runtime >= 3.15,gambas3-runtime < > 3.99.0,gambas3-gb-args >= 3.15,gambas3-gb-args < 3.99.0,gambas3-gb-image > >= 3.15,gambas3-gb-image < 3.99.0,gambas3-gb-qt4 >= 3.15,gambas3-gb-qt4 > < 3.99.0,gambas3-gb-form >= 3.15,gambas3-gb-form < 3.99.0,gambas3-gb-db > >= 3.15,gambas3-gb-db < 3.99.0,gambas3-gb-desktop >= > 3.15,gambas3-gb-desktop < 3.99.0,gambas3-gb-desktop-x11 >= > 3.15,gambas3-gb-desktop-x11 < 3.99.0,gambas3-gb-util >= > 3.15,gambas3-gb-util < 3.99.0,gambas3-gb-settings >= > 3.15,gambas3-gb-settings < 3.99.0,gambas3-gb-form-mdi >= > 3.15,gambas3-gb-form-mdi < 3.99.0,gambas3-gb-qt4-ext >= > 3.15,gambas3-gb-qt4-ext < 3.99.0,gambas3-gb-qt4-webkit >= > 3.15,gambas3-gb-qt4-webkit < 3.99.0,gambas3-gb-xml >= > 3.15,gambas3-gb-xml < 3.99.0,gambas3-gb-xml-html >= > 3.15,gambas3-gb-xml-html < 3.99.0,gambas3-ph-filtertree >= > 3.15,gambas3-ph-filtertree < 3.99.0,gambas3-ph-genutil >= > 3.15,gambas3-ph-genutil < 3.99.0,gambas3-ph-internalsrt >= > 3.15,gambas3-ph-internalsrt < 3.99.0,gambas3-ph-phcontrols4 >= > 3.15,gambas3-ph-phcontrols4 < 3.99.0,gambas3-ph-vmenu >= > 3.15,gambas3-ph-vmenu < 3.99.0,gambas3-ph-vaboutme3 >= > 3.15,gambas3-ph-vaboutme3 < 3.99.0,gambas3-ph-vappoptions >= > 3.15,gambas3-ph-vappoptions < 3.99.0,gambas3-ph-vsysinfos >= > 3.15,gambas3-ph-vsysinfos < 3.99.0,gambas3-ph-vrecentfiles >= > 3.15,gambas3-ph-vrecentfiles < 3.99.0,gambas3-ph-vsysstatus >= > 3.15,gambas3-ph-vsysstatus < 3.99.0 > > as it is enforcing a minimum versionb on local components that have no > where near a version of 3.15 > > This is a major step backwards. > > regards > bruce > A component, whether it is local or part of Gambas sources, must have the same version number as the Gambas version it is compatible with. As I often say, a Gambas component is for Gambas like a Linux driver is for Linux. They follow the same version. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Sat Jul 25 12:34:54 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 25 Jul 2020 20:04:54 +0930 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: <19da0810-e1ec-cbf0-7562-374bcecd33f2@gmail.com> References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> <19da0810-e1ec-cbf0-7562-374bcecd33f2@gmail.com> Message-ID: <87759c30-614a-35f8-1b66-0d27286d7579@gmail.com> My confusion lies in the supposed relationship between the Gambas project version and the package required version.If I have ComponentA at project version 0.1.6 and ComponentB at version 16.4.9998 how do I tell the IDE packager to create a package version 3.15? Further, if ProjectXYZ has a dependency on ComponentA at a minimum project version of 0.1.6 and won't work with 0.1.5 then the IDE packager would say that "you need to have ComponentA.3.15" whether or not my ComponetA-3.15 package is currently containing ComponentA projecct version 0.1.6 or some prior version? Worse, if ComponentB project version 16.4.9998 and my package is ComponentB-3.15 but ProjectXYZ depends on componentB project version 16.4.9998 and nothing earlier will do. Then how can I tell that to the Rotten Package Manager? regards Bruce On 25/7/20 6:30 pm, Beno?t Minisini wrote: > > A component, whether it is local or part of Gambas sources, must have > the same version number as the Gambas version it is compatible with. > > As I often say, a Gambas component is for Gambas like a Linux driver is > for Linux. They follow the same version. > > Regards, > From chrisml at deganius.de Sun Jul 26 10:25:29 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 26 Jul 2020 10:25:29 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <940271392.7490.1595113125875.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Am 23.07.20 um 23:53 schrieb Brian G: > Hi, > > Been busy the last few days so a long delay, Here also. Here 2 tests fail. I attached the TAP. In 'CreateProgramFromCommandLineArgs()' crashes 'MMain.GenerateFilesFromArgs("{i}i=9:Print i:inc i")' Language problem. And this also fails (I do not understand what it does, especially the call 'TSR.CompareStringArray(CompiledResult, ShouldBeFile) = True' is crazy): > Assert.Equals(TSR.CompareStringArray(CompiledResult, ShouldBeFile) = True, True, "Test a Basic App with all supported types") As the result of 'TSR.CompareStringArray(CompiledResult, ShouldBeFile)' is a boolean, you should test it so: > Assert.Ok(TSR.CompareStringArray(CompiledResult, ShouldBeFile), "Test a Basic App with all supported types") Do you agree? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- 1..10 Test TbCommandLinePrograms:CreateProgramFromCommandLineArgs ok 1 - Test For bad Component # gbs3: Dim i as integer:Print i:inc i.0: Unbekannte Komponente: gb.inotifyt # gbs3: Dim i as integer:Print i:inc i.0: Unbekannte Komponente: gb.inotifyt not ok 2 - TbCommandLinePrograms:CreateProgramFromCommandLineArgs crashed with error 'gbs3: {i}i=9:Print i:inc i.0: Unbekannte Komponente: gb.inotify' 1..2 not ok 1 - TbCommandLinePrograms:CreateProgramFromCommandLineArgs Test TbCommandLinePrograms:ExecuteACommandLineProgram ok 1 - Check the output from the Executed command line script 1..1 ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram Test TbCommandLinePrograms:Precompile ok 1 - Test precompile short forms I ok 2 - Test precompile short forms F ok 3 - Test precompile short forms L ok 4 - Test For Error 1..4 ok 3 - TbCommandLinePrograms:Precompile Test TcMMainFunctions:CheckLibraryVersions ok 1 - Veryify we can get the correct library n.n.x ok 2 - Veryify we can get the correct library n.x.x ok 3 - Veryify we can get the correct library n.n.n ok 4 - Veryify we can get the correct library n.x.x ok 5 - Veryify we can get the correct library x.x.x ok 6 - Veryify we can get the correct library bad directory name ok 7 - Veryify we can get the correct library Bad Lib Name 1..7 ok 4 - TcMMainFunctions:CheckLibraryVersions Test TcMMainFunctions:CheckProcessLibrary ok 1 - Verify that error is generated when not found ok 2 - Test for absolute path in library name ok 3 - Test for auto select from system library n.n.x ok 4 - Test for auto select from User .local library n.n.n ok 5 - Test for auto select from User .local library n.n.n ok 6 - Test for auto select from User .local library n.n.x ok 7 - Test for auto select from User .local library n.x.x ok 8 - Test for auto select from User .local unknown library x.x.x 1..8 ok 5 - TcMMainFunctions:CheckProcessLibrary Test TcMMainFunctions:Components ok 1 - Check if 'form' is correctly set on init of components ok 2 - Forms need gui first in components 1..2 ok 6 - TcMMainFunctions:Components Test TcMMainFunctions:FullReadCompileCheck # Compare size a=32, b=32 # 0001 = "Class.Testit.Defined.{" | "Class.Testit.Defined.{" # 0002 = "...public.a.as.integer" | "...public.a.as.integer" # 0003 = "public.sub.GetA().as.integer" | "public.sub.GetA().as.integer" # 0004 = "...return.a" | "...return.a" # 0005 = "end" | "end" # 0006 = "}" | "}" # 0007 = "Project.file.{" | "Project.file.{" # 0008 = "#.Gambas.Project.File.3.0" | "#.Gambas.Project.File.3.0" # 0009 = "Title=Gambas.Script" | "Title=Gambas.Script" # 0010 = "Startup=MMain" | "Startup=MMain" # 0011 - "Component=gb.pcre" | "Component=gb.eval" # 0012 - "Component=gb.eval" | "Component=gb.eval.highlight" # 0013 - "Component=gb.eval.highlight" | "Component=gb.pcre" # 0014 = "}" | "}" # 0015 = "'.Gambas.module.file" | "'.Gambas.module.file" # 0016 = "Public.x.as.string.=.\"hello\"" | "Public.x.as.string.=.\"hello\"" # 0017 = "public.struct.testStruct" | "public.struct.testStruct" # 0018 = "....H.as.string." | "....H.as.string." # 0019 = "....g.as.integer" | "....g.as.integer" # 0020 = "....f.as.variant" | "....f.as.variant" # 0021 = "end.struct" | "end.struct" # 0022 = "public.sub.WriteSomething()" | "public.sub.WriteSomething()" # 0023 = "..print.\"Write.Something\"" | "..print.\"Write.Something\"" # 0024 = "end" | "end" # 0025 = "public.sub.MoreFunctions().as.string" | "public.sub.MoreFunctions().as.string" # 0026 = "print.\"More.stuff.as.string\"" | "print.\"More.stuff.as.string\"" # 0027 = "end" | "end" # 0028 = "Public.Sub.Main()" | "Public.Sub.Main()" # 0029 = "for.i.as.integer.=.0.to.20" | "for.i.as.integer.=.0.to.20" # 0030 = "...print.x;;i" | "...print.x;;i" # 0031 = "next" | "next" # 0032 = "End" | "End" not ok 1 - Test a Basic App with all supported types # # ------------- Expected ------------- # T # # ---------------- Got --------------- # # ------------------------------------ # 1..1 not ok 7 - TcMMainFunctions:FullReadCompileCheck Test TcMMainFunctions:ValidFileRebuildCheck ok 1 - Check if rebuild required - not needed ok 2 - Check if rebuild required - Needed 1..2 ok 8 - TcMMainFunctions:ValidFileRebuildCheck Test TdMServerPages:RunWebPageGeneratedProgram ok 1 - Verify That a correct Basic webpage is generated 1..1 ok 9 - TdMServerPages:RunWebPageGeneratedProgram Test TdMServerPages:WebPageProgramCreation ok 1 - Compile Web Page, test for correct source code output 1..1 ok 10 - TdMServerPages:WebPageProgramCreation # Ran 'TbCommandLinePrograms.CreateProgramFromCommandLineArgs;ExecuteACommandLineProgram;Precompile,TcMMainFunctions.CheckLibraryVersions;CheckProcessLibrary;Components;FullR eadCompileCheck;ValidFileRebuildCheck,TdMServerPages.RunWebPageGeneratedProgram;WebPageProgramCreation' # # 2 tests failed: # 2: TbCommandLinePrograms:CreateProgramFromCommandLineArgs -- TbCommandLinePrograms:CreateProgramFromCommandLineArgs crashed with error 'gbs3: {i}i=9:Print i:inc i.0: Unbekannte Komponente: gb.inotify' # 1: TcMMainFunctions:FullReadCompileCheck -- Test a Basic App with all supported types # # FAILED -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sun Jul 26 18:29:59 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 26 Jul 2020 09:29:59 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> Hi, Ok I tested here in , English US, French, Italian, German, UTF-8 and 8859-1 all pass here with no issues, can you tell me which language pack your using so I can try to test with that one, and see what is going wrong. Otherwise I will just drop the language altogether, or just force the test to use default. System.language=.... IN the TSR module As for the other issue Yes you are correct it should just assume true of false and not do the equal. Looking back at my notes, It looks like I thought that there was an error early one where when I did not put the '= true' the test function seemed to have a error at compile time saying that a string was expected.... Don't know how true that was I could have been done something wrong as it works fine without. I see that the order of component definition changes when running on your system, that is unexpected, interesting. That should have been predictable! That could be a real bug as the order seems to matter to the compiler. Will have to investigate! Thank You Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Sent: Sunday, July 26, 2020 8:28:43 AM Subject: Re: [Gambas-user] Test Module, First try Interesting, It is running fine here, all the tests pass Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Sunday, July 26, 2020 1:25:29 AM Subject: Re: [Gambas-user] Test Module, First try Am 23.07.20 um 23:53 schrieb Brian G: > Hi, > > Been busy the last few days so a long delay, Here also. Here 2 tests fail. I attached the TAP. In 'CreateProgramFromCommandLineArgs()' crashes 'MMain.GenerateFilesFromArgs("{i}i=9:Print i:inc i")' Language problem. And this also fails (I do not understand what it does, especially the call 'TSR.CompareStringArray(CompiledResult, ShouldBeFile) = True' is crazy): > Assert.Equals(TSR.CompareStringArray(CompiledResult, ShouldBeFile) = True, True, "Test a Basic App with all supported types") As the result of 'TSR.CompareStringArray(CompiledResult, ShouldBeFile)' is a boolean, you should test it so: > Assert.Ok(TSR.CompareStringArray(CompiledResult, ShouldBeFile), "Test a Basic App with all supported types") Do you agree? Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From chrisml at deganius.de Sun Jul 26 19:39:30 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 26 Jul 2020 19:39:30 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Am 26.07.20 um 18:29 schrieb Brian G: > Ok I tested here in , English US, French, Italian, German, UTF-8 and > 8859-1 all pass here with no issues, can you tell me which language > pack your using so I can try to test with that one, and see what is > going wrong. Strange. Here is my system info: > [System] > Gambas=3.15 > OperatingSystem=Linux > Kernel=4.15.0-111-generic > Architecture=x86_64 > Distribution=Ubuntu 18.04.4 LTS > Desktop=XFCE > Theme=fusion > Language=de_DE.UTF-8 > Memory=7676M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.1405.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2200.30 > OpenGL=libGL.so.1.0.0 > Poppler=libpoppler.so.44.0.0 > Poppler=libpoppler.so.73.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.9.5 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CLUTTER_IM_MODULE=xim > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/xfce.default.path > DESKTOP_SESSION=xfce > DISPLAY=:0.0 > GB_GUI=gb.qt5 > GDMSESSION=xfce > GLADE_CATALOG_PATH=: > GLADE_MODULE_PATH=: > GLADE_PIXMAP_PATH=: > GTK_IM_MODULE=xim > GTK_MODULES=canberra-gtk-module:canberra-gtk-module:gail:atk-bridge > HOME= > IM_CONFIG_PHASE=2 > LANG=de_DE.UTF-8 > LIBVIRT_DEFAULT_URI=qemu:///system > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/xfce.mandatory.path > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin > PWD= > QT4_IM_MODULE=xim > QT_ACCESSIBILITY=1 > QT_LOGGING_RULES=*.debug=false > QT_QPA_PLATFORMTHEME=appmenu-qt5 > SESSION_MANAGER=local/:@/tmp/.ICE-unix/3660,unix/:/tmp/.ICE-unix/3660 > SHELL=/usr/bin/zsh > SHLVL=0 > SSH_AGENT_PID=3638 > SSH_AUTH_SOCK=/tmp/ssh-63XEYBISE2Cg/agent.3426 > S_COLORS=auto > TEXTDOMAIN=im-config > TEXTDOMAINDIR=/usr/share/locale/ > TZ=:/etc/localtime > USER= > USERNAME= > WINDOWPATH=1 > XAUTHORITY=/run/user/1000/gdm/Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg:/etc/xdg > XDG_CURRENT_DESKTOP=XFCE > XDG_DATA_DIRS=/usr/share/xfce4:/usr/share/xfce:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/var/lib/snapd/desktop:/usr/share > XDG_MENU_PREFIX=xfce- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SESSION_COOKIE=87078baa605ff4b5a30b83020000001b-1595019261.959965-1030921021 > XDG_SESSION_DESKTOP=xfce > XDG_SESSION_ID=1 > XDG_SESSION_TYPE=x11 > XDG_VTNR=1 > XMODIFIERS=@im=none Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun Jul 26 20:48:50 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 26 Jul 2020 20:48:50 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <26306f7a-c604-4717-b937-daf7eac75082@deganius.de> <1595147501.745462423@f33.my.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Btw: I saw something I do not recommend for testing situations. You used 'Try' together with 'If Error Then'. I can only say that I have a bad feeling with that. Because at minimum Error should be cleared afterwards with Error.Clear, which does not happen in your code. I add a version of the function CompareStringArray to show that the same can be achieved without 'Try' through the nice (or ugly depending on the view) trick: bResult = sA[i] = sB[i] Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- '' ************************************************************************************** '' Test Support routines '' ************************************************************************************** Public Sub CompareStringArray(sA As String[], sB As String[]) As Boolean Dim bResult As Boolean = True Dim bFinalResult As Boolean = True Dim sPrintLine As String For i As Integer = 0 To IIf(sA.max > sB.max, sA.max, sB.max) bResult = sA[i] = sB[i] If Not bResult Then bFinalResult = False Next If bFinalResult = False Then Test.Note(Subst("Compare size a=&1, b=&2", sA.count, sB.count)) For i As Integer = 0 To IIf(sA.max > sB.max, sA.max, sB.max) bResult = sA[i] = sB[i] sPrintLine = Format(i + 1, "000#") & IIf(bResult = True, " = ", " - ") If i <= sA.max Then sPrintLine &= Mid(Replace(Quote(sA[i]), " ", ".") & Space(38), 1, 38) & " | " Else sPrintLine &= Space(25) & " | " Endif If i <= sB.max Then sPrintLine &= Mid(Replace(Quote(sB[i]), " ", ".") & Space(38), 1, 38) Endif Test.Note(sPrintLine) Next Endif Return bFinalResult End -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sun Jul 26 22:17:49 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Sun, 26 Jul 2020 23:17:49 +0300 Subject: [Gambas-user] =?utf-8?q?Test_Module=2C_First_try?= In-Reply-To: References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1595794669.780854221@f40.my.com> How does that trick work, it is not very intuitive to understand Please explain -- Thanks Brian Sunday, 26 July 2020, 11:49AM -07:00 from Christof Thalhofer chrisml at deganius.de : >Btw: I saw something I do not recommend for testing situations. > >You used 'Try' together with 'If Error Then'. I can only say that I have >a bad feeling with that. Because at minimum Error should be cleared >afterwards with Error.Clear, which does not happen in your code. > >I add a version of the function CompareStringArray to show that the same >can be achieved without 'Try' through the nice (or ugly depending on the >view) trick: > >bResult = sA[i] = sB[i] > >Alles Gute > >Christof Thalhofer > >-- >Dies ist keine Signatur > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Jul 26 22:42:05 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 26 Jul 2020 13:42:05 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <250553546.9593.1595796125339.JavaMail.zimbra@westwoodsvcs.com> Your method works very well as long as the number of entries, in both tables match but as soon as they don't, it throws an error and ends, I want to print out the full comparison to see what was actually delivered and what entries don't match. Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Sunday, July 26, 2020 11:48:50 AM Subject: Re: [Gambas-user] Test Module, First try Btw: I saw something I do not recommend for testing situations. You used 'Try' together with 'If Error Then'. I can only say that I have a bad feeling with that. Because at minimum Error should be cleared afterwards with Error.Clear, which does not happen in your code. I add a version of the function CompareStringArray to show that the same can be achieved without 'Try' through the nice (or ugly depending on the view) trick: bResult = sA[i] = sB[i] Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From james at lixce.com Sun Jul 26 20:58:48 2020 From: james at lixce.com (james at lixce.com) Date: Sun, 26 Jul 2020 18:58:48 GMT Subject: [Gambas-user] Install on ARM64 under Arch or Manjaro Message-ID: Found a howto on Gambas-One which also appears on the Gambas Wiki. Tried to respond on Gambas-One but I am not smart enough to figure out the whole Gambas Wiki vs Gambas-One Forums vs Gambas-One the website so I will post here and maybe someone can make use of the information. The directions on Gambas-One and Gambas Wiki no longer work because abs has been deprecated and no longer exists including the web-side infrastructure to make it work. Here is what worked for me on a ROCKPro64, will be copying the packages to a PineBook Pro later today after I destroy the debian install on that (which by-the-way gambas3 installs from SID and works fine but I am an Arch user) Build Gambas on Arch (Mangaro) ARM for ROCKPro64 and PineBook Pro Refs: https://wiki.archlinux.org/index.php/Arch_Build_System https://wordpress.gambas.one/2017/01/03/install-gambas-on-arch-linux-arm/ (partly depricated) http://gambaswiki.org/wiki/install/archlinux Install Base development files: sudo pacman -S base-devel Install asp: sudo pacman -S asp Retrieve the PKGBUID: asp checkout gambas3 Modify PKGBUILD: replace "arch=('x86_64')" with "arch=('aarch64')" Install dependencies (list is at Ref #3 but remove qt4 and add gmime3): sudo pacman -S --needed alure autoconf automake bzip2 coreutils curl dbus gcc gdk-pixbuf2 git glew glib2 gmime gmime3 gsl gst-plugins-base gstreamer gtk2 gtk3 gtkglext imlib2 intltool libffi libgnome-keyring libmariadbclient librsvg libsm libxcursor libxml2 libxslt libxtst mariadb make mesa ncurses pcre pkg-config poppler-glib postgresql postgresql-libs qt5-svg qt5-webkit qt5-x11extras sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf sdl_mixer sdl_ttf smpeg sqlite unixodbc v4l-utils xdg-utils zlib Make the packages in the same dir as PKGBUILD: makepkg (took 1 hour and 20 minutes on ROCKPro64 4GB RAM) Install packages: sudo pacman -U *.xz Enjoy Gambas on ARM -j From chrisml at deganius.de Tue Jul 28 23:57:25 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 28 Jul 2020 23:57:25 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <1595794669.780854221@f40.my.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> <1595794669.780854221@f40.my.com> Message-ID: <56f7d7ec-4d7f-ea6f-910e-c191adc338b3@deganius.de> Am 26.07.20 um 22:17 schrieb Brian G: > How does that trick work, it is not very intuitive to understand > bResult = sA[i] = sB[i] sA[i] = sB[i], the result is True or False bResult = the result of sA[i] = sB[i] Ok? I find it intuitive and I like it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed Jul 29 00:33:34 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 29 Jul 2020 00:33:34 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <250553546.9593.1595796125339.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <2091138457.7765.1595248812129.JavaMail.zimbra@westwoodsvcs.com> <1965879024.8290.1595541232764.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> <250553546.9593.1595796125339.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <058a5ba1-de4a-9595-9700-7f1080ceba3c@deganius.de> Am 26.07.20 um 22:42 schrieb Brian G: > Your method works very well as long as the number of entries, in both > tables match but as soon as they don't, it throws an error and ends, > I want to print out the full comparison to see what was actually > delivered and what entries don't match. I don't know what you really want to test. You are the only one who knows what the state of your program has to be. If the two arrays have to have the exact same count of entries, test it! If every entry in the first array with index x hast to be identical with array2[x], test it. I saw that you printed out some variables, but that's not a test and printing some strings is not the purpose of gb.test. It helps, while debugging, yes, but as soon as your work is done, switch it off. gb.test is there to test a predictable state of a program at runtime. And if the predicted state of the program at runtime is not fulfilled, gb.test will report that, the test will fail. This is what helps you now and later on. But it will report that only if you have asked the right question. If you asked an ambiguous question, it may give you an answer, but that answer could be ambiguous as well and that won't help you. Therefor I recommend to do test driven development (TDD) in this way: First write a test which lets your program run and tests whether the answer of your program is right. Without the program it will fail. Then write the program and test it until it does not fail any more. If you have to write tests for a program that already exists, you have to be very careful not to ask wrong questions. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Wed Jul 29 00:25:40 2020 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 28 Jul 2020 15:25:40 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: <56f7d7ec-4d7f-ea6f-910e-c191adc338b3@deganius.de> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> <1595794669.780854221@f40.my.com> <56f7d7ec-4d7f-ea6f-910e-c191adc338b3@deganius.de> Message-ID: <2143311851.9803.1595975140029.JavaMail.zimbra@westwoodsvcs.com> This only works if the number of entries in the table are equal, in most errors cases they are not, that means this does not work, as it errors out when the two tables don't have the same count! I am trying to print the whole content in every case! I have added the error.clear() Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Tuesday, July 28, 2020 2:57:25 PM Subject: Re: [Gambas-user] Test Module, First try Am 26.07.20 um 22:17 schrieb Brian G: > How does that trick work, it is not very intuitive to understand > bResult = sA[i] = sB[i] sA[i] = sB[i], the result is True or False bResult = the result of sA[i] = sB[i] Ok? I find it intuitive and I like it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Wed Jul 29 01:47:17 2020 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 28 Jul 2020 16:47:17 -0700 (PDT) Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: <87759c30-614a-35f8-1b66-0d27286d7579@gmail.com> References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> <19da0810-e1ec-cbf0-7562-374bcecd33f2@gmail.com> <87759c30-614a-35f8-1b66-0d27286d7579@gmail.com> Message-ID: <1111434329.9841.1595980037026.JavaMail.zimbra@westwoodsvcs.com> Can your components, be libraries instead? Thank You Brian G ----- Original Message ----- From: "Bruce" To: "Gambas mailing list" Sent: Saturday, July 25, 2020 3:34:54 AM Subject: Re: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies My confusion lies in the supposed relationship between the Gambas project version and the package required version.If I have ComponentA at project version 0.1.6 and ComponentB at version 16.4.9998 how do I tell the IDE packager to create a package version 3.15? Further, if ProjectXYZ has a dependency on ComponentA at a minimum project version of 0.1.6 and won't work with 0.1.5 then the IDE packager would say that "you need to have ComponentA.3.15" whether or not my ComponetA-3.15 package is currently containing ComponentA projecct version 0.1.6 or some prior version? Worse, if ComponentB project version 16.4.9998 and my package is ComponentB-3.15 but ProjectXYZ depends on componentB project version 16.4.9998 and nothing earlier will do. Then how can I tell that to the Rotten Package Manager? regards Bruce On 25/7/20 6:30 pm, Beno?t Minisini wrote: > > A component, whether it is local or part of Gambas sources, must have > the same version number as the Gambas version it is compatible with. > > As I often say, a Gambas component is for Gambas like a Linux driver is > for Linux. They follow the same version. > > Regards, > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From adamnt42 at gmail.com Wed Jul 29 13:53:41 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 29 Jul 2020 21:23:41 +0930 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: <1111434329.9841.1595980037026.JavaMail.zimbra@westwoodsvcs.com> References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> <19da0810-e1ec-cbf0-7562-374bcecd33f2@gmail.com> <87759c30-614a-35f8-1b66-0d27286d7579@gmail.com> <1111434329.9841.1595980037026.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <8d4d90be-a505-f860-945f-fc572017a9b3@gmail.com> On 29/7/20 9:17 am, Brian G wrote: > Can your components, be libraries instead? > > Thank You > Brian G > No, a large number of them are custom controls. Anyway, why should I change my architecture to suit the damn package manager when they work as components anyway? Suppose I release a component that needs to be installed from an autotools package because it requires something RPM cannot handle. Then when I package a program that uses that component, RPM **DEMANDS** that anRPM package for that component exists and is installeable. Iam beginning to see why some peoplr think RPM has had it's day. b From g4mba5 at gmail.com Wed Jul 29 14:40:56 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 29 Jul 2020 14:40:56 +0200 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: <87759c30-614a-35f8-1b66-0d27286d7579@gmail.com> References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> <19da0810-e1ec-cbf0-7562-374bcecd33f2@gmail.com> <87759c30-614a-35f8-1b66-0d27286d7579@gmail.com> Message-ID: Le 25/07/2020 ? 12:34, Bruce a ?crit?: > My confusion lies in the supposed relationship between the Gambas > project version and the package required version.If I have ComponentA at > project version 0.1.6 and ComponentB at version 16.4.9998 how do I tell > the IDE packager to create a package version 3.15? > > Further, if ProjectXYZ has a dependency on ComponentA at a minimum > project version of 0.1.6 and won't work with 0.1.5 then the IDE packager > would say that "you need to have ComponentA.3.15" whether or not my > ComponetA-3.15 package is currently containing ComponentA projecct > version? 0.1.6? or some prior version? > > Worse, if ComponentB project version 16.4.9998 and my package is > ComponentB-3.15 but ProjectXYZ depends on componentB project version > 16.4.9998 and nothing earlier will do. Then how can I tell that to the > Rotten Package Manager? > > regards > Bruce > > On 25/7/20 6:30 pm, Beno?t Minisini wrote: >> >> A component, whether it is local or part of Gambas sources, must have >> the same version number as the Gambas version it is compatible with. >> >> As I often say, a Gambas component is for Gambas like a Linux driver >> is for Linux. They follow the same version. >> >> Regards, >> > As I said, the version of a Gambas component *must be* the same as the Gambas version it is done with. Because a Gambas component is supposed to be part of the language. If you want a component (in a generic sense) whose version is completely independent, then you must write a Gambas library. Regards, -- Beno?t Minisini From chrisml at deganius.de Wed Jul 29 17:08:20 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 29 Jul 2020 17:08:20 +0200 Subject: [Gambas-user] 3.15 RPM packager creates SPEC file with unwanted dependencies In-Reply-To: References: <7f8827a7-e55f-fba2-d4d7-73f8d495b337@gmail.com> <19da0810-e1ec-cbf0-7562-374bcecd33f2@gmail.com> <87759c30-614a-35f8-1b66-0d27286d7579@gmail.com> Message-ID: <90e13cb1-dacd-7d9a-8a34-bccc56b1dfc0@deganius.de> Am 29.07.20 um 14:40 schrieb Beno?t Minisini: > As I said, the version of a Gambas component *must be* the same as the > Gambas version it is done with. Because a Gambas component is supposed > to be part of the language. > > If you want a component (in a generic sense) whose version is completely > independent, then you must write a Gambas library. Hmm ... I have here a self-written component which has the Version number 3.10.40 and works well since Gambas 3.10 now up to Gambas 3.15: Content of /usr/lib/gambas3/gb.deg.form.component: > > [Component] > Key=gb.deg.form > Version=3.10.40 > Authors=Christof Thalhofer (Deganius) > Needs=Form > Requires=gb.form,gb.qt4,gb.db,gb.image,gb.pcre,gb.web I would appreciate if you don't see this as a bug but a feature. ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed Jul 29 20:35:07 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 29 Jul 2020 20:35:07 +0200 Subject: [Gambas-user] Install on ARM64 under Arch or Manjaro In-Reply-To: <20200727032302.69929200C64F@h08.hostsharing.net> References: <20200727032302.69929200C64F@h08.hostsharing.net> Message-ID: Le 26/07/2020 ? 20:58, james at lixce.com a ?crit : > Found a howto on Gambas-One which also appears on the Gambas Wiki. > Tried to respond on Gambas-One but I am not smart enough to figure > out the whole Gambas Wiki vs Gambas-One Forums vs Gambas-One the > website so I will post here and maybe someone can make use of the > information. > Hi, The information should be centralized in the wiki. Is it possible for you to subscribe to it and add a new page for ARM64 at '/install/archlinuxarm64' with the information you provide? Thanks in advance! -- Beno?t Minisini From brian at westwoodsvcs.com Thu Jul 30 08:25:13 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 29 Jul 2020 23:25:13 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: <2143311851.9803.1595975140029.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> <1595794669.780854221@f40.my.com> <56f7d7ec-4d7f-ea6f-910e-c191adc338b3@deganius.de> <2143311851.9803.1595975140029.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <2067075190.10044.1596090313966.JavaMail.zimbra@westwoodsvcs.com> You are correct, and I changed the test to only print the resulting comparison if it fails the test, so that if someone is interested in the reason it failed, it will be obvious. I have added the error.clear() when errors happen at your suggestion. I also agree that a good way of implementing a new program is to develop the tests and meet the test standards with your coding. In this case the test is being applied to existing code. I am doing my best to use test without doing a major rewrite of the the very good code implemented by Beno?t Minisini and Fabien Bodard. I am thinking to remove the test code as right now it would seem that perhaps it is not suitable to retrofit the tester into existing code. It has been very helpful in detecting some bugs in the code. and also extending my understanding of it. It would be nice to keep it but it appears that not all systems are equal, and the code is working including the test modules in all of the following systems, but not your system. I have now tested the code with the test framework, on ubuntu 18,ubuntu 20, Debian bullseye, mint 19.3 & 20.0, suse 15.2, arch, all seem to work correctly, each was also configured for fr_FR UTF-8, de_DE UTF-8, it_IT UTF-8. en_US UTF-8, I also tested 8859-1. with the test module and it passes in every language and and character code type. Except Arch, where I discovered and fixed why you were getting the first error, Arch makes you select and install each part of gambas separately LOL! I also tested it on mint 19.2 32 bit, and raspi os 32 bit systems, and they both seem to work correctly as well! I am concerned that it happens differently on your computer, would it be possible to have a logon to your computer to do some testing? I have run scripter thru, a large number of scripts in each case on the systems mentioned, and it seems to be functioning correctly with the scripts I have written for system management and for a number of test scripts designed to exercise the scripter and using gambas3 3.15 code base. Referring back to the test output with error you sent: I am a little disappointed that I can not easily find the reason it is behaving differently for you during the test of component sorted order causing the second error. I believe the first error that your getting is because the gambas-gb-inotify component is not installed on your system not because of language as was first thought. The second one I am working on. I will be adding some checks to ensure the components needed for testing are in fact installed on the system. Cheers Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Sent: Tuesday, July 28, 2020 3:25:40 PM Subject: Re: [Gambas-user] Test Module, First try This only works if the number of entries in the table are equal, in most error cases they are not, that means this does not work, as it errors out when the two tables don't have the same count! I am trying to print the whole content in every case! I have added the error.clear() Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Tuesday, July 28, 2020 2:57:25 PM Subject: Re: [Gambas-user] Test Module, First try Am 26.07.20 um 22:17 schrieb Brian G: > How does that trick work, it is not very intuitive to understand > bResult = sA[i] = sB[i] sA[i] = sB[i], the result is True or False bResult = the result of sA[i] = sB[i] Ok? I find it intuitive and I like it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From chrisml at deganius.de Fri Jul 31 08:50:23 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 31 Jul 2020 08:50:23 +0200 Subject: [Gambas-user] Test Module, First try In-Reply-To: <2067075190.10044.1596090313966.JavaMail.zimbra@westwoodsvcs.com> References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> <1595794669.780854221@f40.my.com> <56f7d7ec-4d7f-ea6f-910e-c191adc338b3@deganius.de> <2143311851.9803.1595975140029.JavaMail.zimbra@westwoodsvcs.com> <2067075190.10044.1596090313966.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Hello Brian, Am 30.07.20 um 08:25 schrieb Brian G: > In this case the test is being applied to existing code. I am doing > my best to use test without doing a major rewrite of the the very > good code implemented by Beno?t Minisini and Fabien Bodard. > > I am thinking to remove the test code as right now it would seem that > perhaps it is not suitable to retrofit the tester into existing code. No, please don't do that. There are possibilities to avoid that the whole project's test fails. If a test fails but should not be reported as failure you can mark it as 'TODO'. http://gambaswiki.org/wiki/comp/gb.test/test/todo Test.TODO("Description why the next assertion is a TODO.") Assert.Ok(False, "Must be true") This will ensure that the whole project will not fail because of this. As long as this single test fails, it will be marked as "Todo" in the summary and as soon as it is fixed it will be marked as "Bonus" until the line with 'Test.TODO' is being removed. > It has been very helpful in detecting some bugs in the code. and also > extending my understanding of it. It would be nice to keep it but it > appears that not all systems are equal, and the code is working > including the test modules in all of the following systems, but not > your system. I tested it on two different machines, but with the same Ubuntu on it and quite the same packages. > I have now tested the code with the test framework, on ubuntu > 18,ubuntu 20, Debian bullseye, mint 19.3 & 20.0, suse 15.2, arch, all > seem to work correctly, each was also configured for fr_FR UTF-8, > de_DE UTF-8, it_IT UTF-8. en_US UTF-8, I also tested 8859-1. with the > test module and it passes in every language and and character code > type. Wow! Lots of work! > Except Arch, where I discovered and fixed why you were getting the > first error, Arch makes you select and install each part of gambas > separately LOL! > > I also tested it on mint 19.2 32 bit, and raspi os 32 bit systems, > and they both seem to work correctly as well! > > I am concerned that it happens differently on your computer, would it > be possible to have a logon to your computer to do some testing? Ugh ... I think that is not possible, because I had to change firewall settings in my networks ... and I won't do that because I hate poking around in our firewalls. But: It's an Ubuntu system, so I can give you a list of every package installed (dpkg --get-selections) so that you can restore it on a virtual machine if you want. > I have run scripter thru, a large number of scripts in each case on > the systems mentioned, and it seems to be functioning correctly with > the scripts I have written for system management and for a number of > test scripts designed to exercise the scripter and using gambas3 3.15 > code base. > > Referring back to the test output with error you sent: > > I am a little disappointed that I can not easily find the reason it > is behaving differently for you during the test of component sorted > order causing the second error. > > I believe the first error that your getting is because the > gambas-gb-inotify component is not installed on your system not > because of language as was first thought. Yes you're right. I just installed gambas3-gb-inotify, now it looks like so (only one test fails): > # 1 tests failed: > # 1: TcMMainFunctions:FullReadCompileCheck -- Test a Basic App with all supported types Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Fri Jul 31 20:48:02 2020 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 31 Jul 2020 11:48:02 -0700 (PDT) Subject: [Gambas-user] Test Module, First try In-Reply-To: References: <2074705573.7240.1595063964682.JavaMail.zimbra@westwoodsvcs.com> <31061094.9541.1595780999360.JavaMail.zimbra@westwoodsvcs.com> <1595794669.780854221@f40.my.com> <56f7d7ec-4d7f-ea6f-910e-c191adc338b3@deganius.de> <2143311851.9803.1595975140029.JavaMail.zimbra@westwoodsvcs.com> <2067075190.10044.1596090313966.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <2096157403.42.1596221282514.JavaMail.zimbra@westwoodsvcs.com> Yes, If you can help me create an identical virtual machine here that matches your machine, I am not sure how to use dpkg to do this type of restore, Maybe you could give me a few pointers. I would like to figure out what the difference is in your environment that causes the components to be sorted and loaded in a different order .... for sure! If you are willing I can give you access to the virtual machine server, its using qemu/KVM , once I do the initial restore, maybe you can verify its the same as your configuration. Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Thursday, July 30, 2020 11:50:23 PM Subject: Re: [Gambas-user] Test Module, First try Hello Brian, Am 30.07.20 um 08:25 schrieb Brian G: > In this case the test is being applied to existing code. I am doing > my best to use test without doing a major rewrite of the the very > good code implemented by Beno?t Minisini and Fabien Bodard. > > I am thinking to remove the test code as right now it would seem that > perhaps it is not suitable to retrofit the tester into existing code. No, please don't do that. There are possibilities to avoid that the whole project's test fails. If a test fails but should not be reported as failure you can mark it as 'TODO'. http://gambaswiki.org/wiki/comp/gb.test/test/todo Test.TODO("Description why the next assertion is a TODO.") Assert.Ok(False, "Must be true") This will ensure that the whole project will not fail because of this. As long as this single test fails, it will be marked as "Todo" in the summary and as soon as it is fixed it will be marked as "Bonus" until the line with 'Test.TODO' is being removed. > It has been very helpful in detecting some bugs in the code. and also > extending my understanding of it. It would be nice to keep it but it > appears that not all systems are equal, and the code is working > including the test modules in all of the following systems, but not > your system. I tested it on two different machines, but with the same Ubuntu on it and quite the same packages. > I have now tested the code with the test framework, on ubuntu > 18,ubuntu 20, Debian bullseye, mint 19.3 & 20.0, suse 15.2, arch, all > seem to work correctly, each was also configured for fr_FR UTF-8, > de_DE UTF-8, it_IT UTF-8. en_US UTF-8, I also tested 8859-1. with the > test module and it passes in every language and and character code > type. Wow! Lots of work! > Except Arch, where I discovered and fixed why you were getting the > first error, Arch makes you select and install each part of gambas > separately LOL! > > I also tested it on mint 19.2 32 bit, and raspi os 32 bit systems, > and they both seem to work correctly as well! > > I am concerned that it happens differently on your computer, would it > be possible to have a logon to your computer to do some testing? Ugh ... I think that is not possible, because I had to change firewall settings in my networks ... and I won't do that because I hate poking around in our firewalls. But: It's an Ubuntu system, so I can give you a list of every package installed (dpkg --get-selections) so that you can restore it on a virtual machine if you want. > I have run scripter thru, a large number of scripts in each case on > the systems mentioned, and it seems to be functioning correctly with > the scripts I have written for system management and for a number of > test scripts designed to exercise the scripter and using gambas3 3.15 > code base. > > Referring back to the test output with error you sent: > > I am a little disappointed that I can not easily find the reason it > is behaving differently for you during the test of component sorted > order causing the second error. > > I believe the first error that your getting is because the > gambas-gb-inotify component is not installed on your system not > because of language as was first thought. Yes you're right. I just installed gambas3-gb-inotify, now it looks like so (only one test fails): > # 1 tests failed: > # 1: TcMMainFunctions:FullReadCompileCheck -- Test a Basic App with all supported types Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]----