From mckaygerhard at gmail.com Tue May 1 03:34:34 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 30 Apr 2018 21:34:34 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: References: <20160212122546.GA745@aurora> Message-ID: that's not taking about, i talk about that: Color*[**0**]* *=* "&FFFFFF&"Color*[**1**]* *=* "&000000&"Color*[**2**]* *=* "&00C0A0&"Color*[**3**]* *=* "&00C000&" Benoit? here are a key with a number's slots Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-30 14:09 GMT-04:00 T Lee Davidson : > The slot is to group related key/value pairs together. > > If you have: > Public Sub Form_Close() > ' Save window settings when application closes > Settings["Window/Top"] = Me.Top > Settings["Window/Left"] = Me.Left > Settings["Window/Height"] = Me.Height > Settings["Window/Width"] = Me.Width > End > > The saved settings file would look something like the following: > [Window] > Top = 13 > Left = 18 > Height = 154 > Width = 235 > > To save a setting, the syntax is Settings["SLOT/KEY"] = VALUE > > When retrieving a setting, you can set a default value in case the setting > is not found in the file. > To retrieve a setting, the syntax is VALUE = Settings["SLOT/KEY", > DEFAULT_VALUE] > > > See http://gambaswiki.org/wiki/comp/gb.settings/settings > > > -- > Lee > > > On 04/29/2018 04:53 PM, PICCORO McKAY Lenz wrote: > > thanks for clarification Benoit, great! > > > > and about the slot line, which begins with a '|[|' character, and ends > with a '|]|' character. > > > > wiki said: "This groups key/value lines together in a slot" but due a > language barrier i cannot understand that in a gambas > > example code > > > > i have sne d apreviously mail about that! > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue May 1 03:35:50 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 30 Apr 2018 21:35:50 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: References: <20160212122546.GA745@aurora> Message-ID: that's i not taking about: see one level up in wiki doc: http://gambaswiki.org/wiki/comp/gb.settings [editor] Color*[**0**]* *=* "&FFFFFF&"Color*[**1**]* *=* "&000000&"Color*[**2**]* *=* "&00C0A0&"Color*[**3**]* *=* "&00C000&" Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-30 14:09 GMT-04:00 T Lee Davidson : > The slot is to group related key/value pairs together. > > If you have: > Public Sub Form_Close() > ' Save window settings when application closes > Settings["Window/Top"] = Me.Top > Settings["Window/Left"] = Me.Left > Settings["Window/Height"] = Me.Height > Settings["Window/Width"] = Me.Width > End > > The saved settings file would look something like the following: > [Window] > Top = 13 > Left = 18 > Height = 154 > Width = 235 > > To save a setting, the syntax is Settings["SLOT/KEY"] = VALUE > > When retrieving a setting, you can set a default value in case the setting > is not found in the file. > To retrieve a setting, the syntax is VALUE = Settings["SLOT/KEY", > DEFAULT_VALUE] > > > See http://gambaswiki.org/wiki/comp/gb.settings/settings > > > -- > Lee > > > On 04/29/2018 04:53 PM, PICCORO McKAY Lenz wrote: > > thanks for clarification Benoit, great! > > > > and about the slot line, which begins with a '|[|' character, and ends > with a '|]|' character. > > > > wiki said: "This groups key/value lines together in a slot" but due a > language barrier i cannot understand that in a gambas > > example code > > > > i have sne d apreviously mail about that! > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue May 1 08:59:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 01 May 2018 06:59:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Opened. From bugtracker at gambaswiki.org Tue May 1 09:09:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 01 May 2018 07:09:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1301: the image selector does not detect that an image has been deleted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1301&from=L21haW4- Comment #1 by Beno?t MINISINI: Apparently it works in the development version, so I guess the bug has been fixed. Beno?t MINISINI changed the state of the bug to: Fixed. From bagonergi at gmail.com Tue May 1 14:28:16 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 1 May 2018 14:28:16 +0200 Subject: [Gambas-user] seHelpBuilder 0.2.3 Message-ID: I inform you that an important conceptual error has been fixed. The program did not take into account future changes. Now this malfunction is been solved, but on the already finished jobs it will be necessary to intervene manually, see the new code in Data> help-mod> HelpMod.txt. Fixed (I hope) Index guide bug on old Gambas versions. Grateful to anyone who wanted to confirm it. Beg your pardon for my mistakes Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Tue May 1 14:39:15 2018 From: kicking177 at gmail.com (KKing) Date: Tue, 1 May 2018 13:39:15 +0100 Subject: [Gambas-user] User Controls and Font resizing to fit content Message-ID: <95541fb9-1a7a-94b7-f873-32ff20554f14@gmail.com> Sorry to repeat and if any is covered by wiki/doco but I didn't seem to find any recent info on easily. 1. Does Gambas have a concept similar to the VB User Control concept (i.e. you build a control with the standard label/textbox/buttons save it and be able to reuse multiple times in another form)? 2. Suggestions if convenient way to get the font size to automatically change to fit provided text in a (can be any of) label/textbox/or other control? KK From bugtracker at gambaswiki.org Tue May 1 14:47:43 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 01 May 2018 12:47:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1302: Problem with the version Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1302&from=L21haW4- javier GARCIA reported a new bug. Summary ------- Problem with the version Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Problema con la versi?n I installed gambas3 on ubuntu 18.04 using the PPA and when I compiled and created the installation package, when I try to install it I get that the dependencies are not met. It says that I must have version 3.11 of the gambas3-runtime when the version 3.10.0+git5961.cdd5be4+build1.4250560.1.fb554bc~ubuntu18.04.1 is installed with the PPA From t.lee.davidson at gmail.com Tue May 1 15:08:15 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 1 May 2018 09:08:15 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: References: <20160212122546.GA745@aurora> Message-ID: <06c6e3de-2034-7863-2fdb-454bf7ddb943@gmail.com> Public Sub Form_Close() Settings["Editor/Color[0]"] = "&FFFFFF&" Settings["Editor/Color[1]"] = "&000000&" Settings["Editor/Color[2]"] = "&00C0A0&" Settings["Editor/Color[3]"] = "&00C000&" End ~~OR~~ Public Sub Form_Close() Dim Color As New String[] Color.Add("&FFFFFF&", 0) Color.Add("&000000&", 1) Color.Add("&00C0A0&", 2) Color.Add("&00C000&", 3) Settings["Editor/Color"] = Color End -- Lee On 04/30/2018 09:35 PM, PICCORO McKAY Lenz wrote: > that's i not taking about: > > see one level up in wiki doc: http://gambaswiki.org/wiki/comp/gb.settings > > > [editor] > > Color*[**0**]* *=* "&FFFFFF&" Color*[**1**]* *=* "&000000&" Color*[**2**]* *=* "&00C0A0&" Color*[**3**]* *=* "&00C000&" > > > > Lenz McKAY Gerardo (PICCORO) From taboege at gmail.com Tue May 1 15:16:00 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 1 May 2018 15:16:00 +0200 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: <95541fb9-1a7a-94b7-f873-32ff20554f14@gmail.com> References: <95541fb9-1a7a-94b7-f873-32ff20554f14@gmail.com> Message-ID: <20180501131600.GE22921@highrise.localdomain> On Tue, 01 May 2018, KKing wrote: > Sorry to repeat and if any is covered by wiki/doco but I didn't seem to find > any recent info on easily. > > 1. Does Gambas have a concept similar to the VB User Control concept > (i.e. you build a control with the standard label/textbox/buttons save > it and be able to reuse multiple times in another form)? > I put an answer off the first time around, because this question actually needs a whole tutorial to be answered. I don't know VB but Gambas does have a UserControl class for creating custom controls. This is usually a two-step process: 1. Create a form FMyControl and use the form editor to place your Labels, Buttons and everything else, then write their functionality into FMyControl's code. 2. Create a class MyControl which inherits UserControl. This class will create an instance of FMyControl and embed it into itself. This way, you get the widget FMyControl but don't inherit all the methods and properties of the Form class. You will have to proxy the interface parts of FMyControl which you do want to expose yourself. This technique is used in Gambas a lot. You should look through the source code of gb.form for examples, or ask followup questions. The ListEditor [1] is a very good starting point, because it is small, easy to read and does only the things mentioned above. You will find some UserControls without a corresponding form; these build their appearance by code only, without the help of the form editor. This makes sense for ValueBox, for example, which switches between multiple input controls. A tutorial for this would be nice to have, along with how to use Arrangement, Expand, Spacing and Margin -- something like "Advanced GUI techniques" -- does the Gambas magazine still exist? :-) > 2. Suggestions if convenient way to get the font size to automatically > change to fit provided text in a (can be any of) label/textbox/or other > control? > I don't know. Something like that would be nice for translated projects, where you can't estimate the content size of a Label at development time. [ Not sure if reducing the font size or enlarging the label is the right way to go, but I guess anything but cutting off excessive text can go horribly wrong. ] Regards, Tobi [1] https://gitlab.com/gambas/gambas/tree/master/comp/src/gb.form/.src/ListEditor -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From charlie at cogier.com Tue May 1 15:09:00 2018 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 1 May 2018 14:09:00 +0100 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: <95541fb9-1a7a-94b7-f873-32ff20554f14@gmail.com> References: <95541fb9-1a7a-94b7-f873-32ff20554f14@gmail.com> Message-ID: Hi KK, 1/. You can right click on FMain in the 'Project window' (Press [F10] in the IDE to see which one is the 'Project window') and import a Form from another Gambas program 2/. Run this code in a new 'graphical' program *' Gambas class file** ** **hButton As Button** ** **Public Sub Form_Open()** ** **With Me** **? .Width = 200** **? .Height = 200** **? .Arrangement = Arrange.Vertical** **? .Padding = 5** **? .Title = "Expand me!"** **End With** ** **hButton = New Button(Me)** **hButton.Text = "W"** **hButton.Expand = True** ** **Form_Resize** ** **End** ** **Public Sub Form_Resize()** **Dim siFontH As Short** ** **If Me.Width > Me.Height Then** **? siFontH = Me.Height** **Else** **? siFontH = Me.Width** **End If** ** **hButton.Font.size = siFontH / 2** ** **End* Charlie On 01/05/18 13:39, KKing wrote: > Sorry to repeat and if any is covered by wiki/doco but I didn't seem > to find any recent info on easily. > > 1. Does Gambas have a concept similar to the VB User Control concept > (i.e. you build a control with the standard label/textbox/buttons save > it and be able to reuse multiple times in another form)? > > 2. Suggestions if convenient way to get the font size to automatically > change to fit provided text in a (can be any of) label/textbox/or other > control? > > KK > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue May 1 15:52:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 01 May 2018 13:52:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Comment #4 by Petro SAVCHUK: Hi, What about tomorrow? It's still blocked. It's not a good hosting work at all. When will you fix it? Petro SAVCHUK changed the state of the bug to: Opened. From bugtracker at gambaswiki.org Tue May 1 16:05:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 01 May 2018 14:05:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1303: Supress all breakpoints not working Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1303&from=L21haW4- Mourad REGGADI reported a new bug. Summary ------- Supress all breakpoints not working Type : Bug Priority : Medium Gambas version : 3.10 Product : Development Environment Description ----------- Since last TRUNK version, suppress all breakpoints in debugging menu seems not to work anymore. When hitting it, breakpoints remains visible in editor. System information ------------------ Linux Mint 17.3 rosa From bagonergi at gmail.com Tue May 1 16:19:34 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 1 May 2018 16:19:34 +0200 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: <20180501131600.GE22921@highrise.localdomain> References: <95541fb9-1a7a-94b7-f873-32ff20554f14@gmail.com> <20180501131600.GE22921@highrise.localdomain> Message-ID: 2018-05-01 15:16 GMT+02:00 Tobias Boege : > On Tue, 01 May 2018, KKing wrote: > > Sorry to repeat and if any is covered by wiki/doco but I didn't seem to > find > > any recent info on easily. > > > > 1. Does Gambas have a concept similar to the VB User Control concept > > (i.e. you build a control with the standard label/textbox/buttons save > > it and be able to reuse multiple times in another form)? > > > > I put an answer off the first time around, because this question actually > needs a whole tutorial to be answered. > > I don't know VB but Gambas does have a UserControl class for creating > custom controls. This is usually a two-step process: > > 1. Create a form FMyControl and use the form editor to place your > Labels, Buttons and everything else, then write their functionality > into FMyControl's code. > > 2. Create a class MyControl which inherits UserControl. This class > will create an instance of FMyControl and embed it into itself. > This way, you get the widget FMyControl but don't inherit all the > methods and properties of the Form class. You will have to proxy > the interface parts of FMyControl which you do want to expose > yourself. > > This technique is used in Gambas a lot. You should look through the > source code of gb.form for examples, or ask followup questions. > > The ListEditor [1] is a very good starting point, because it is small, > easy to read and does only the things mentioned above. You will find > some UserControls without a corresponding form; these build their > appearance by code only, without the help of the form editor. > This makes sense for ValueBox, for example, which switches between > multiple input controls. > > A tutorial for this would be nice to have, along with how to use > Arrangement, Expand, Spacing and Margin -- something like > "Advanced GUI techniques" -- does the Gambas magazine still exist? :-) > > > 2. Suggestions if convenient way to get the font size to automatically > > change to fit provided text in a (can be any of) label/textbox/or other > > control? > > > > I don't know. Something like that would be nice for translated projects, > where you can't estimate the content size of a Label at development time. > [ Not sure if reducing the font size or enlarging the label is the right > way > to go, but I guess anything but cutting off excessive text can go horribly > wrong. ] > > Regards, > Tobi > > [1] https://gitlab.com/gambas/gambas/tree/master/comp/src/ > gb.form/.src/ListEditor > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > You have to forget about VB, Gambas is different, it's better and with a few clicks you create windows that do everything you want. You have to understand the containers, you have to study the IDE as Tobias advised you. See small attached example, look at the properties of the controls Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: QTExample-0.0.1.tar.gz Type: application/gzip Size: 11507 bytes Desc: not available URL: From bugtracker at gambaswiki.org Tue May 1 17:20:26 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 01 May 2018 15:20:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1303: Supress all breakpoints not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1303&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Tue May 1 17:50:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 01 May 2018 15:50:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1303: Supress all breakpoints not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1303&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/90b70ed78b3ce3b7ada7b6641d6d5f86f3281ce1 Beno?t MINISINI changed the state of the bug to: Fixed. From bagonergi at gmail.com Tue May 1 20:23:44 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 1 May 2018 20:23:44 +0200 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: References: <95541fb9-1a7a-94b7-f873-32ff20554f14@gmail.com> <20180501131600.GE22921@highrise.localdomain> Message-ID: 2018-05-01 16:19 GMT+02:00 Gianluigi : > > > 2018-05-01 15:16 GMT+02:00 Tobias Boege : > >> On Tue, 01 May 2018, KKing wrote: >> > Sorry to repeat and if any is covered by wiki/doco but I didn't seem to >> find >> > any recent info on easily. >> > >> > 1. Does Gambas have a concept similar to the VB User Control concept >> > (i.e. you build a control with the standard label/textbox/buttons save >> > it and be able to reuse multiple times in another form)? >> > >> >> I put an answer off the first time around, because this question actually >> needs a whole tutorial to be answered. >> >> I don't know VB but Gambas does have a UserControl class for creating >> custom controls. This is usually a two-step process: >> >> 1. Create a form FMyControl and use the form editor to place your >> Labels, Buttons and everything else, then write their functionality >> into FMyControl's code. >> >> 2. Create a class MyControl which inherits UserControl. This class >> will create an instance of FMyControl and embed it into itself. >> This way, you get the widget FMyControl but don't inherit all the >> methods and properties of the Form class. You will have to proxy >> the interface parts of FMyControl which you do want to expose >> yourself. >> >> This technique is used in Gambas a lot. You should look through the >> source code of gb.form for examples, or ask followup questions. >> >> The ListEditor [1] is a very good starting point, because it is small, >> easy to read and does only the things mentioned above. You will find >> some UserControls without a corresponding form; these build their >> appearance by code only, without the help of the form editor. >> This makes sense for ValueBox, for example, which switches between >> multiple input controls. >> >> A tutorial for this would be nice to have, along with how to use >> Arrangement, Expand, Spacing and Margin -- something like >> "Advanced GUI techniques" -- does the Gambas magazine still exist? :-) >> >> > 2. Suggestions if convenient way to get the font size to automatically >> > change to fit provided text in a (can be any of) label/textbox/or other >> > control? >> > >> >> I don't know. Something like that would be nice for translated projects, >> where you can't estimate the content size of a Label at development time. >> [ Not sure if reducing the font size or enlarging the label is the right >> way >> to go, but I guess anything but cutting off excessive text can go horribly >> wrong. ] >> >> Regards, >> Tobi >> >> [1] https://gitlab.com/gambas/gambas/tree/master/comp/src/gb. >> form/.src/ListEditor >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> > You have to forget about VB, Gambas is different, it's better and with a > few clicks you create windows that do everything you want. > You have to understand the containers, you have to study the IDE as Tobias > advised you. > > See small attached example, look at the properties of the controls > > Regards > Gianluigi > > That's better Regards Gianluigi > -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ExpandTest-0.0.1.tar.gz Type: application/gzip Size: 11515 bytes Desc: not available URL: From bugtracker at gambaswiki.org Wed May 2 03:14:36 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 02 May 2018 01:14:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1303: Supress all breakpoints not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1303&from=L21haW4- Comment #2 by Mourad REGGADI: Thanks ! From mckaygerhard at gmail.com Wed May 2 06:57:48 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 2 May 2018 00:57:48 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: <06c6e3de-2034-7863-2fdb-454bf7ddb943@gmail.com> References: <20160212122546.GA745@aurora> <06c6e3de-2034-7863-2fdb-454bf7ddb943@gmail.com> Message-ID: 2018-05-01 9:08 GMT-04:00 T Lee Davidson : > Public Sub Form_Close() > > Settings["Editor/Color[0]"] = "&FFFFFF&" > Settings["Editor/Color[1]"] = "&000000&" > Settings["Editor/Color[2]"] = "&00C0A0&" > Settings["Editor/Color[3]"] = "&00C000&" > > End > this was working, of course, but.. > > ~~OR~~ > > Public Sub Form_Close() > > Dim Color As New String[] > > Color.Add("&FFFFFF&", 0) > Color.Add("&000000&", 1) > Color.Add("&00C0A0&", 2) > Color.Add("&00C000&", 3) > Settings["Editor/Color"] = Color > > End > that's was lokking for! thanks, but there's any other way? > > > -- > Lee > > > On 04/30/2018 09:35 PM, PICCORO McKAY Lenz wrote: > > that's i not taking about: > > > > see one level up in wiki doc: http://gambaswiki.org/wiki/ > comp/gb.settings > > > > > > [editor] > > > > Color*[**0**]* *=* "&FFFFFF&" Color*[**1**]* *=* "&000000&" > Color*[**2**]* *=* "&00C0A0&" Color*[**3**]* *=* "&00C000&" > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Wed May 2 12:22:37 2018 From: kicking177 at gmail.com (KKing) Date: Wed, 2 May 2018 11:22:37 +0100 Subject: [Gambas-user] User Controls and Font resizing to fit content Message-ID: <7b6134ee-ed70-2208-2992-1bf17c2224c6@gmail.com> Tobi, Charlie, Gianluigi. Thankyou for your responses I will try to find time to followup << because this question actually needs a whole tutorial to be answered. >> +1 tutorials and specific short working examples are the best ways to enlighten. From sharon at 455.co.il Wed May 2 15:18:38 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 2 May 2018 16:18:38 +0300 Subject: [Gambas-user] problem with the CDate function Message-ID: <20180502131231.M12297@455.co.il> Hello Operating system: Fedora 27 64 BIT Gambas 3.10.0 I have a problem with the CDate function when I run the example that appears in this documentation: It takes me back one day I run: Print CDate ("09/06/1972 01:45:12") And it returns to me: 09/05/1972 22:45:12 From bagonergi at gmail.com Wed May 2 15:38:09 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 2 May 2018 15:38:09 +0200 Subject: [Gambas-user] problem with the CDate function In-Reply-To: <20180502131231.M12297@455.co.il> References: <20180502131231.M12297@455.co.il> Message-ID: 2018-05-02 15:18 GMT+02:00 Mayost Sharon : > Hello > > Operating system: Fedora 27 64 BIT > Gambas 3.10.0 > > I have a problem with the CDate function when I run the example that > appears in this > documentation: > > It takes me back one day > > I run: > > > Print CDate ("09/06/1972 01:45:12") > > And it returns to me: > > 09/05/1972 22:45:12 > > You must use Date and not CDate which locates the UTC date [0]. Regards Gianluigi [0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 2 15:46:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 2 May 2018 15:46:44 +0200 Subject: [Gambas-user] problem with the CDate function In-Reply-To: References: <20180502131231.M12297@455.co.il> Message-ID: Le 02/05/2018 ? 15:38, Gianluigi a ?crit?: > > > 2018-05-02 15:18 GMT+02:00 Mayost Sharon >: > > Hello > > Operating system: Fedora 27 64 BIT > Gambas 3.10.0 > > I have a problem with the CDate function when I run the example that > appears in this > documentation: > > It takes me back one day > > I run: > > > Print CDate ("09/06/1972 01:45:12") > > And it returns to me: > > 09/05/1972 22:45:12 > > > You must use Date and not CDate which locates the UTC date [0]. > > Regards > Gianluigi > [0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time > No, it's not the problem. It's just that people must understand that CDate() interprets its argument as an UTC date, and that Str() (hence Print) converts a date into a local representation. So if you use CDate(), you must use CStr() to go back to the original string. Otherwise, use Val() and Str(). See the documentation about these functions. I think some non-american examples should be added to make things clearer. Regards, -- Beno?t Minisini From bagonergi at gmail.com Wed May 2 16:08:49 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 2 May 2018 16:08:49 +0200 Subject: [Gambas-user] problem with the CDate function In-Reply-To: References: <20180502131231.M12297@455.co.il> Message-ID: 2018-05-02 15:46 GMT+02:00 Beno?t Minisini : > Le 02/05/2018 ? 15:38, Gianluigi a ?crit : > >> >> >> 2018-05-02 15:18 GMT+02:00 Mayost Sharon > sharon at 455.co.il>>: >> >> Hello >> >> Operating system: Fedora 27 64 BIT >> Gambas 3.10.0 >> >> I have a problem with the CDate function when I run the example that >> appears in this >> documentation: >> >> It takes me back one day >> >> I run: >> >> >> Print CDate ("09/06/1972 01:45:12") >> >> And it returns to me: >> >> 09/05/1972 22:45:12 >> >> >> You must use Date and not CDate which locates the UTC date [0]. >> >> Regards >> Gianluigi >> [0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time >> >> > No, it's not the problem. > > It's just that people must understand that CDate() interprets its argument > as an UTC date, and that Str() (hence Print) converts a date into a local > representation. > > So if you use CDate(), you must use CStr() to go back to the original > string. Otherwise, use Val() and Str(). > > See the documentation about these functions. I think some non-american > examples should be added to make things clearer. > > Regards, > > -- > Beno?t Minisini > > Every time I think I have finally understood the dates and its conversions... :-( Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed May 2 16:22:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 02 May 2018 14:22:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Comment #5 by Beno?t MINISINI: I can't fix it myself. I wrote to my boss today directly. The hosting manager is in holidays. From t.lee.davidson at gmail.com Wed May 2 17:25:14 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 2 May 2018 11:25:14 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: References: <20160212122546.GA745@aurora> <06c6e3de-2034-7863-2fdb-454bf7ddb943@gmail.com> Message-ID: Any other way to accomplish what, exactly? -- Lee On 05/02/2018 12:57 AM, PICCORO McKAY Lenz wrote: > ~~OR~~ > > Public Sub Form_Close() > > ? Dim Color As New String[] > > ? Color.Add("&FFFFFF&", 0) > ? Color.Add("&000000&", 1) > ? Color.Add("&00C0A0&", 2) > ? Color.Add("&00C000&", 3) > ? Settings["Editor/Color"] = Color > > End > > > that's was lokking for! thanks, but there's any other way? From sebikul at gmail.com Wed May 2 18:12:29 2018 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Wed, 02 May 2018 16:12:29 +0000 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: <5ae9cfc9.1c69fb81.4dda5.8188SMTPIN_ADDED_BROKEN@mx.google.com> References: <5ae9cfc9.1c69fb81.4dda5.8188SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: As a workaround, if you want, I've set up a reverse proxy in a domain I own so that you can access the wiki. Because of cookie domains, you will not be able to access the bugtracker, but other parts of the website should work just fine. You can access it at https://gambas.sebikul.me. I hope this helps you in the meantime! I'm only logging as per the nginx default, and all data is passed directly to the real gambas wiki server, nothing else is stored. Here is the nginx configuration I used, just FYI: server { listen 443 ssl http2; ssl_certificate /etc/letsencrypt/live/sebikul.me-0001/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/sebikul.me-0001/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_dhparam /home/sebikul/sebikul.me/dhparams.pem; ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384: DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SH A:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128 -SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256 -GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aE CDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; ssl_session_timeout 1d; ssl_session_cache shared:SSL:50m; ssl_stapling on; ssl_stapling_verify on; add_header Strict-Transport-Security max-age=15768000; server_name gambas.sebikul.me; root /var/www/html; location / { proxy_set_header Host "gambaswiki.org"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://gambaswiki.org/; } location ~ /.well-known { allow all; } } server { listen 80; server_name gambas.sebikul.me; return 301 https://$host$request_uri; } On Wed, May 2, 2018 at 11:48 AM wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- > > Comment #5 by Beno?t MINISINI: > > I can't fix it myself. I wrote to my boss today directly. The hosting > manager is in holidays. > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed May 2 21:31:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 02 May 2018 19:31:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1304: "ME" autocompletion not showing private symbols Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1304&from=L21haW4- Mourad REGGADI reported a new bug. Summary ------- "ME" autocompletion not showing private symbols Type : Request Priority : Medium Gambas version : 3.10 Product : Development Environment Description ----------- When using "ME" autocomplete in editor does not show private symbols (functions, sub, variables). I think it should, "Me" is used inside the same object scope, so private symbols should be visible. System information ------------------ Linux Mint 17.3 rosa From bagonergi at gmail.com Thu May 3 16:10:42 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 3 May 2018 16:10:42 +0200 Subject: [Gambas-user] Switch qt4 in qt5 Message-ID: Having both the qt4 and the qt5 libraries in my computers, I would like to know if for those who only own the qt5 libraries it is possible to Download from the Software farm a project created with the components gb.gui.qt and gb.gui.qt.webkit and changed before publishing in gb.qt4 and gb.qt4.webkit, then changing it back to gb.gui.qt and gb.gui.qt.webkit or gb.qt5 and gb.qt5.webkit. I hope I managed to explain me Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 3 17:48:13 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 3 May 2018 17:48:13 +0200 Subject: [Gambas-user] Function keys F1 and F2 to call online help Message-ID: Hi Benoit, not being able to use the Application_KeyPress event to manage the function keys and seen what you say in this discussion [0], here's what I wrote in the last seHelpBuilder 0.2.4: In the main form I entered this code: [code]Public Sub RaiseHelp(sKey As String) Action_Activate(sKey) End[/code] And in the other windows the code: [code]Public Sub Form_KeyPress() If Key.Code = Key.F2 Then FMain.RaiseHelp("help-current") Else If Key.Code = Key.F1 Then FMain.RaiseHelp("help-open") Endif End[/code] How can I get response on F1 or F2 even from the Gambas dialogs? Regards Gianluigi [0] https://lists.gambas-basic.org/pipermail/user/2014-February/047379.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu May 3 19:30:08 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 03 May 2018 17:30:08 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1305: Gambas Farm - Version issue Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1305&from=L21haW4- Charlie OGIER reported a new bug. Summary ------- Gambas Farm - Version issue Type : Bug Priority : Low Gambas version : Unknown Product : Unknown Description ----------- If a file (VERSION) for version number is used and is set to 0.1.0 but the disabled version in the IDE is set at 0.0.1 then when I try to publish a program on the Farm I am not allowed to as a message similar to "you can not publish V0.0.1" is raised. From bagonergi at gmail.com Thu May 3 20:12:00 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 3 May 2018 20:12:00 +0200 Subject: [Gambas-user] Function keys F1 and F2 to call online help In-Reply-To: References: Message-ID: 2018-05-03 17:48 GMT+02:00 Gianluigi : > Hi Benoit, > not being able to use the Application_KeyPress event to manage the > function keys and seen what you say in this discussion [0], here's what I > wrote in the last seHelpBuilder 0.2.4: > > In the main form I entered this code: > [code]Public Sub RaiseHelp(sKey As String) > > Action_Activate(sKey) > > End[/code] > > And in the other windows the code: > > [code]Public Sub Form_KeyPress() > > If Key.Code = Key.F2 Then > FMain.RaiseHelp("help-current") > Else If Key.Code = Key.F1 Then > FMain.RaiseHelp("help-open") > Endif > > End[/code] > How can I get response on F1 or F2 even from the Gambas dialogs? > > Regards > Gianluigi > [0] https://lists.gambas-basic.org/pipermail/user/2014- > February/047379.html > I mean OpenFile, SelectColor etc. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Fri May 4 18:41:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 04 May 2018 16:41:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1304: "ME" autocompletion not showing private symbols In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1304&from=L21haW4- Comment #1 by Beno?t MINISINI: ME returns an object reference, and you cannot access private symbols through an object reference (otherwise they would be public, not private). Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Fri May 4 18:42:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 04 May 2018 16:42:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1302: Problem with the version In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1302&from=L21haW4- Comment #1 by Beno?t MINISINI: Please use the mailing-list for installation and compilation problems. Beno?t MINISINI changed the state of the bug to: Invalid. From bugtracker at gambaswiki.org Fri May 4 18:56:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 04 May 2018 16:56:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1305: Gambas Farm - Version issue In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1305&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri May 4 18:56:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 04 May 2018 16:56:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1305: Gambas Farm - Version issue In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1305&from=L21haW4- Comment #1 by Beno?t MINISINI: Is it fixed with commit https://gitlab.com/gambas/gambas/commit/a9f852d5c5577c8a62a065db7982dfd0797eba81 ? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From kicking177 at gmail.com Fri May 4 20:02:23 2018 From: kicking177 at gmail.com (KKing) Date: Fri, 4 May 2018 19:02:23 +0100 Subject: [Gambas-user] Serial Port Reading and triggered upon receiving data Message-ID: Any useful examples of code listening to a Serial Port and acting upon binary data being received as will need to interrogate bits set within bytes? Can you setup a watch like event on a serial port? KK From gambasml at junkheaven.com Fri May 4 20:04:39 2018 From: gambasml at junkheaven.com (Ernest Wilson) Date: Fri, 4 May 2018 13:04:39 -0500 Subject: [Gambas-user] DataSource filter using Like operator Message-ID: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> I am using Gambas 3.10.0 and trying to implement a "Find" on a form displaying a database of people. So far, the form works perfectly for maintaining the database, however, the "Find" is not working as I would like. I have attempted to implement the "Find" using a DataSource filter as described below, but, the result is not as I expected. Any guidance will be appreciated. On a form I have a DataBrowser displaying the content of an SQLite database table containing a list of people. The fields consist of: ??? ID - ID Number ??? FName - Persons first name and possibly an initial ??? LName - Persons surname ??? Company - Persons employer ??? Various other fields with persons information Also, on the form are a TextBox for user entry, a button for "Find" and a button for "Clear". The desired action is as follows: User enters any substring of the persons name (first name or surname) in the TextBox and clicks the "Find" Button. The matching records are displayed in the DataBrowser. When the user clicks the "Clear" button, the DataBrowser displays all the records. Example: If I have records for (1) Jack Smith, (2) Sally Simple, (3) Jack B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: "Jack" should return records 1, 3, 5 "im" should return records 2, 3 "s" should return records 1, 2 "Jack B" should return records 3, 5 I have implemented the "Find" button as follows: Public Sub Button1_Click() ? 'Find Button ? Dim $findtext As String ? Dim $filterstr As String ? $findtext = TextBox1.Text 'Assignment to a variable seems to be required for DB.Subst ? $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", $findtext) 'Look for Find entry in either First or Last name ? TextBox2.Text = $filterstr 'Debugging output ? DataSource1.Filter = $filterstr ? DataBrowser1.Refresh ? FormatDataBrowser1 'Set column widths, header alignment, etc. End The result I get is only an exact match of the string entered in the TextBox, as if I had used "=" instead of "Like" as the operator in the filter string. I am obviously missing something, or have taken a wrong approach. Suggestions will be appreciated. Regards, Ernest Wilson From bagonergi at gmail.com Fri May 4 22:16:59 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 4 May 2018 22:16:59 +0200 Subject: [Gambas-user] DataSource filter using Like operator In-Reply-To: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> References: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> Message-ID: If you Download seHelpBuilder from the Software farm the help index works just the way you want it. Regards Gianluigi 2018-05-04 20:04 GMT+02:00 Ernest Wilson : > I am using Gambas 3.10.0 and trying to implement a "Find" on a form > displaying a database of people. So far, the form works perfectly for > maintaining the database, however, the "Find" is not working as I would > like. I have attempted to implement the "Find" using a DataSource filter as > described below, but, the result is not as I expected. Any guidance will be > appreciated. > > On a form I have a DataBrowser displaying the content of an SQLite > database table containing a list of people. The fields consist of: > > ID - ID Number > FName - Persons first name and possibly an initial > LName - Persons surname > Company - Persons employer > Various other fields with persons information > > Also, on the form are a TextBox for user entry, a button for "Find" and a > button for "Clear". > > The desired action is as follows: > > User enters any substring of the persons name (first name or surname) in > the TextBox and clicks the "Find" Button. The matching records are > displayed in the DataBrowser. When the user clicks the "Clear" button, the > DataBrowser displays all the records. > > Example: If I have records for (1) Jack Smith, (2) Sally Simple, (3) Jack > B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: > > "Jack" should return records 1, 3, 5 > "im" should return records 2, 3 > "s" should return records 1, 2 > "Jack B" should return records 3, 5 > > I have implemented the "Find" button as follows: > > Public Sub Button1_Click() > 'Find Button > Dim $findtext As String > Dim $filterstr As String > > $findtext = TextBox1.Text 'Assignment to a variable seems to be required > for DB.Subst > > $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", $findtext) 'Look > for Find entry in either First or Last name > > TextBox2.Text = $filterstr 'Debugging output > > DataSource1.Filter = $filterstr > DataBrowser1.Refresh > FormatDataBrowser1 'Set column widths, header alignment, etc. > End > > The result I get is only an exact match of the string entered in the > TextBox, as if I had used "=" instead of "Like" as the operator in the > filter string. > > I am obviously missing something, or have taken a wrong approach. > Suggestions will be appreciated. > > Regards, > > Ernest Wilson > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri May 4 22:19:25 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 4 May 2018 22:19:25 +0200 Subject: [Gambas-user] DataSource filter using Like operator In-Reply-To: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> References: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> Message-ID: 2018-05-04 20:04 GMT+02:00 Ernest Wilson : > I am using Gambas 3.10.0 and trying to implement a "Find" on a form > displaying a database of people. So far, the form works perfectly for > maintaining the database, however, the "Find" is not working as I would > like. I have attempted to implement the "Find" using a DataSource filter as > described below, but, the result is not as I expected. Any guidance will be > appreciated. > > On a form I have a DataBrowser displaying the content of an SQLite > database table containing a list of people. The fields consist of: > > ID - ID Number > FName - Persons first name and possibly an initial > LName - Persons surname > Company - Persons employer > Various other fields with persons information > > Also, on the form are a TextBox for user entry, a button for "Find" and a > button for "Clear". > > The desired action is as follows: > > User enters any substring of the persons name (first name or surname) in > the TextBox and clicks the "Find" Button. The matching records are > displayed in the DataBrowser. When the user clicks the "Clear" button, the > DataBrowser displays all the records. > > Example: If I have records for (1) Jack Smith, (2) Sally Simple, (3) Jack > B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: > > "Jack" should return records 1, 3, 5 > "im" should return records 2, 3 > "s" should return records 1, 2 > "Jack B" should return records 3, 5 > > I have implemented the "Find" button as follows: > > Public Sub Button1_Click() > 'Find Button > Dim $findtext As String > Dim $filterstr As String > > $findtext = TextBox1.Text 'Assignment to a variable seems to be required > for DB.Subst > > $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", $findtext) 'Look > for Find entry in either First or Last name > > TextBox2.Text = $filterstr 'Debugging output > > DataSource1.Filter = $filterstr > DataBrowser1.Refresh > FormatDataBrowser1 'Set column widths, header alignment, etc. > End > > The result I get is only an exact match of the string entered in the > TextBox, as if I had used "=" instead of "Like" as the operator in the > filter string. > > I am obviously missing something, or have taken a wrong approach. > Suggestions will be appreciated. > > Regards, > > Ernest Wilson > > If you Download seHelpBuilder from the Software farm the help index works just the way you want it. Regards Gianluigi > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri May 4 23:03:59 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 4 May 2018 23:03:59 +0200 Subject: [Gambas-user] DataSource filter using Like operator In-Reply-To: References: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> Message-ID: Hi Hernest, excuse me so much, I did not understand that your request is about the DataBrowser component. The search in the Help index is completely different. I still apologize. Regards Gianluigi 2018-05-04 22:24 GMT+02:00 Ernest Wilson : > I'll take a look. Thanks for the suggestion. > Regards, > Ernest Wilson > > > On 05/04/2018 03:16 PM, Gianluigi wrote: > > If you Download seHelpBuilder from the Software farm the help index works > just the way you want it. > > Regards > Gianluigi > > 2018-05-04 20:04 GMT+02:00 Ernest Wilson : > >> I am using Gambas 3.10.0 and trying to implement a "Find" on a form >> displaying a database of people. So far, the form works perfectly for >> maintaining the database, however, the "Find" is not working as I would >> like. I have attempted to implement the "Find" using a DataSource filter as >> described below, but, the result is not as I expected. Any guidance will be >> appreciated. >> >> On a form I have a DataBrowser displaying the content of an SQLite >> database table containing a list of people. The fields consist of: >> >> ID - ID Number >> FName - Persons first name and possibly an initial >> LName - Persons surname >> Company - Persons employer >> Various other fields with persons information >> >> Also, on the form are a TextBox for user entry, a button for "Find" and a >> button for "Clear". >> >> The desired action is as follows: >> >> User enters any substring of the persons name (first name or surname) in >> the TextBox and clicks the "Find" Button. The matching records are >> displayed in the DataBrowser. When the user clicks the "Clear" button, the >> DataBrowser displays all the records. >> >> Example: If I have records for (1) Jack Smith, (2) Sally Simple, (3) Jack >> B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: >> >> "Jack" should return records 1, 3, 5 >> "im" should return records 2, 3 >> "s" should return records 1, 2 >> "Jack B" should return records 3, 5 >> >> I have implemented the "Find" button as follows: >> >> Public Sub Button1_Click() >> 'Find Button >> Dim $findtext As String >> Dim $filterstr As String >> >> $findtext = TextBox1.Text 'Assignment to a variable seems to be >> required for DB.Subst >> >> $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", $findtext) >> 'Look for Find entry in either First or Last name >> >> TextBox2.Text = $filterstr 'Debugging output >> >> DataSource1.Filter = $filterstr >> DataBrowser1.Refresh >> FormatDataBrowser1 'Set column widths, header alignment, etc. >> End >> >> The result I get is only an exact match of the string entered in the >> TextBox, as if I had used "=" instead of "Like" as the operator in the >> filter string. >> >> I am obviously missing something, or have taken a wrong approach. >> Suggestions will be appreciated. >> >> Regards, >> >> Ernest Wilson >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 5 00:22:08 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 May 2018 00:22:08 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 Message-ID: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> Hi, I have just created the 3.11.0-rc1 git tag. Please download it at: https://gitlab.com/gambas/gambas/-/archive/v3.11.0-rc1/gambas-v3.11.0-rc1.tar.bz2, And report any compilation or installation problem. If no problem is found, it will become the official 3.11.0 version. I have already written the ChangeLog in the wiki. Once the 3.11.0 is (finally!) released, maybe we could search for a new host for the website so that there is no dependency on SourceForge anymore. Best regards, -- Beno?t Minisini From chrisml at deganius.de Sat May 5 09:44:49 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 5 May 2018 09:44:49 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> Message-ID: <9c9e6e65-3cca-30c9-f3c9-6e623b947057@deganius.de> Am 05.05.2018 um 00:22 schrieb Beno?t Minisini: > Hi, > > I have just created the 3.11.0-rc1 git tag. > > Please download it at: > > https://gitlab.com/gambas/gambas/-/archive/v3.11.0-rc1/gambas-v3.11.0-rc1.tar.bz2, > > And report any compilation or installation problem. I could not find it in the Git Repo: ~/programming/gambas/gambas ?master ? git branch * master ~/programming/gambas/gambas ?master ? git pull Already up-to-date. ~/programming/gambas/gambas ?master ? git tag | grep 11 v2.11 v2.11.1 There is no Tag v3.11.0-rc1 ??? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Sat May 5 10:02:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 04:02:15 -0400 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <9c9e6e65-3cca-30c9-f3c9-6e623b947057@deganius.de> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <9c9e6e65-3cca-30c9-f3c9-6e623b947057@deganius.de> Message-ID: 2018-05-05 3:44 GMT-04:00 Christof Thalhofer : > I could not find it in the Git Repo: > > ~/programming/gambas/gambas ?master ? git branch > * master > ~/programming/gambas/gambas ?master ? git pull > Already up-to-date. > ~/programming/gambas/gambas ?master ? git tag | grep 11 > v2.11 > v2.11.1 > > There is no Tag v3.11.0-rc1 > > ??? > your git copy clone does not yet track the remote tracking branch... i dont remenber just right now the command to check this.. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat May 5 10:27:43 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 5 May 2018 10:27:43 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <9c9e6e65-3cca-30c9-f3c9-6e623b947057@deganius.de> Message-ID: <8ad415c6-ee53-bc92-5cd7-a5447a353ea4@deganius.de> Am 05.05.2018 um 10:02 schrieb PICCORO McKAY Lenz: > your git copy clone does not yet track the remote tracking branch... i > dont remenber just right now the command to check this.. I was wrong, I am pulling from my own fork that has not been mirrored currently by Gitlab. Sorry. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat May 5 11:15:08 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 5 May 2018 11:15:08 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> Message-ID: <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> Am 05.05.2018 um 00:22 schrieb Beno?t Minisini: > And report any compilation or installation problem. I did ./reconf-all ./configure -C and make and got this (File-not found error for trunk_version.h): > christof at chrisvirt ~/programming/gambas/gambas ?(v3.11.0-rc1) ? make > make all-recursive > make[1]: Verzeichnis ?/home/christof/programming/gambas/gambas? wird betreten > Making all in main > make[2]: Verzeichnis ?/home/christof/programming/gambas/gambas/main? wird betreten > make all-recursive > make[3]: Verzeichnis ?/home/christof/programming/gambas/gambas/main? wird betreten > Making all in gbc > make[4]: Verzeichnis ?/home/christof/programming/gambas/gambas/main/gbc? wird betreten > CC gbc3-gb_error.o > CC gbc3-gb_alloc.o > CC gbc3-gb_array.o > CC gbc3-gbc_class.o > CC gbc3-gbc_read.o > CC gbc3-gbc_preprocess.o > CC gbc3-gbc_type.o > CC gbc3-gbc_compile.o > CC gbc3-gbc_header.o > CC gbc3-gbc_help.o > CC gbc3-gbc_output.o > CC gbc3-gbc_trans_expr.o > CC gbc3-gbc_trans_tree.o > CC gbc3-gbc_trans_ctrl.o > CC gbc3-gbc_trans_subr.o > CC gbc3-gbc_reserved.o > CC gbc3-gb_buffer.o > CC gbc3-gbc_dump.o > CC gbc3-gbc_code.o > CC gbc3-gbc_trans.o > CC gbc3-gbc_trans_code.o > CC gbc3-gbc_pcode.o > CC gbc3-gb_file.o > CC gbc3-gbc_form.o > CC gbc3-gbc_form_webpage.o > CC gbc3-gb_str.o > CC gbc3-gbc_chown.o > CC gbc3-gb_common.o > CC gbc3-gbc_arch.o > CC gbc3-gb_table.o > CC gbc3-gbc.o > gbc.c:27:27: fatal error: trunk_version.h: Datei oder Verzeichnis nicht gefunden > #include "trunk_version.h" > ^ > compilation terminated. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From kicking177 at gmail.com Sat May 5 11:58:29 2018 From: kicking177 at gmail.com (KKing) Date: Sat, 5 May 2018 10:58:29 +0100 Subject: [Gambas-user] Shortcut Key and or toolbar icon to comment line or lines Message-ID: <4de865b8-776c-2593-6deb-7fe69c7f7e52@gmail.com> is there a Shortcut Key and or toolbar icon to comment a highlighted line or range of lines? KK From g4mba5 at gmail.com Sat May 5 13:25:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 May 2018 13:25:59 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> Message-ID: <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> Le 05/05/2018 ? 11:15, Christof Thalhofer a ?crit?: > Am 05.05.2018 um 00:22 schrieb Beno?t Minisini: > >> And report any compilation or installation problem. > > I did ./reconf-all ./configure -C and make and got this (File-not found > error for trunk_version.h): > >> christof at chrisvirt ~/programming/gambas/gambas ?(v3.11.0-rc1) ? make >> make all-recursive >> make[1]: Verzeichnis ?/home/christof/programming/gambas/gambas? wird betreten >> Making all in main >> make[2]: Verzeichnis ?/home/christof/programming/gambas/gambas/main? wird betreten >> make all-recursive >> make[3]: Verzeichnis ?/home/christof/programming/gambas/gambas/main? wird betreten >> Making all in gbc >> make[4]: Verzeichnis ?/home/christof/programming/gambas/gambas/main/gbc? wird betreten >> CC gbc3-gb_error.o >> CC gbc3-gb_alloc.o >> CC gbc3-gb_array.o >> CC gbc3-gbc_class.o >> CC gbc3-gbc_read.o >> CC gbc3-gbc_preprocess.o >> CC gbc3-gbc_type.o >> CC gbc3-gbc_compile.o >> CC gbc3-gbc_header.o >> CC gbc3-gbc_help.o >> CC gbc3-gbc_output.o >> CC gbc3-gbc_trans_expr.o >> CC gbc3-gbc_trans_tree.o >> CC gbc3-gbc_trans_ctrl.o >> CC gbc3-gbc_trans_subr.o >> CC gbc3-gbc_reserved.o >> CC gbc3-gb_buffer.o >> CC gbc3-gbc_dump.o >> CC gbc3-gbc_code.o >> CC gbc3-gbc_trans.o >> CC gbc3-gbc_trans_code.o >> CC gbc3-gbc_pcode.o >> CC gbc3-gb_file.o >> CC gbc3-gbc_form.o >> CC gbc3-gbc_form_webpage.o >> CC gbc3-gb_str.o >> CC gbc3-gbc_chown.o >> CC gbc3-gb_common.o >> CC gbc3-gbc_arch.o >> CC gbc3-gb_table.o >> CC gbc3-gbc.o >> gbc.c:27:27: fatal error: trunk_version.h: Datei oder Verzeichnis nicht gefunden >> #include "trunk_version.h" >> ^ >> compilation terminated. > > > > > > Alles Gute > > Christof Thalhofer > Strange, I don't have this problem. The file 'trunk_version.h' is generated each time "make" is run. Are you sure you get the right package? Are you sure you did "./reconf-all && ./configure -C" before running make? -- Beno?t Minisini From chrisml at deganius.de Sat May 5 13:42:06 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 5 May 2018 13:42:06 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> Message-ID: <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> Am 05.05.2018 um 13:25 schrieb Beno?t Minisini: > Strange, I don't have this problem. The file 'trunk_version.h' is > generated each time "make" is run. > > Are you sure you get the right package? Are you sure you did > "./reconf-all && ./configure -C" before running make? Yes (while looking at .zsh_history). I did it on a Ubuntu Trusty. Currently I am upgrading this VM. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat May 5 13:50:16 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 May 2018 13:50:16 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> Message-ID: <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> Le 05/05/2018 ? 13:42, Christof Thalhofer a ?crit?: > Am 05.05.2018 um 13:25 schrieb Beno?t Minisini: > >> Strange, I don't have this problem. The file 'trunk_version.h' is >> generated each time "make" is run. >> >> Are you sure you get the right package? Are you sure you did >> "./reconf-all && ./configure -C" before running make? > > Yes (while looking at .zsh_history). I did it on a Ubuntu Trusty. > Currently I am upgrading this VM. > > > Alles Gute > > Christof Thalhofer > Try to remove spaces for your directory names. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Sat May 5 15:02:28 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:02:28 -0400 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> Message-ID: the directory not have spaces.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-05 7:50 GMT-04:00 Beno?t Minisini : > Le 05/05/2018 ? 13:42, Christof Thalhofer a ?crit : > >> Am 05.05.2018 um 13:25 schrieb Beno?t Minisini: >> >> Strange, I don't have this problem. The file 'trunk_version.h' is >>> generated each time "make" is run. >>> >>> Are you sure you get the right package? Are you sure you did >>> "./reconf-all && ./configure -C" before running make? >>> >> >> Yes (while looking at .zsh_history). I did it on a Ubuntu Trusty. >> Currently I am upgrading this VM. >> >> >> Alles Gute >> >> Christof Thalhofer >> >> > Try to remove spaces for your directory names. > > Regards, > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 5 15:03:50 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:03:50 -0400 Subject: [Gambas-user] Serial Port Reading and triggered upon receiving data In-Reply-To: References: Message-ID: i dont thnik can be made a wacht event on a serial port, its a stream object... there's a code example SerialPort at the software farm Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-04 14:02 GMT-04:00 KKing : > Any useful examples of code listening to a Serial Port and acting upon > binary data being received as will need to interrogate bits set within > bytes? > > Can you setup a watch like event on a serial port? > > KK > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 5 15:09:56 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:09:56 -0400 Subject: [Gambas-user] better aproach for wiki offline Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Comment #2 by Petro SAVCHUK: It's not good to block whole country, not by separate bad IP. Tomorrow they will block Earth - there is Ukraine on the Earth. It's hard to use Gambas - no wiki help, no the examples farm... THIS ARE A GOOD QUESTION/AFIRMATION there's some possibility to build the wiki during build time and packages with gambas? also the old examples behavior too? as some time was explained.. its important for those tih limited connections.. in my case i cannot spend all the sync data of conection only just for update one wiki page: i explain better: 1. my wiki are out of date only by two pages of all 2. to update that i must go onlune and then offline again 3. this makes download the hole wiki again! nonsense the sense its ahta i upgrade 3.11 and again i must download the wiki, why not just include it with tarball? if i update the gambas build from a vendor/distro just with download the package are better (in debian case are compresed with xz format) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 5 15:14:09 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:14:09 -0400 Subject: [Gambas-user] DataSource filter using Like operator In-Reply-To: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> References: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> Message-ID: 2018-05-04 14:04 GMT-04:00 Ernest Wilson : > > On a form I have a DataBrowser displaying the content of an SQLite > database table containing a list of people. The fields consist of: > hi,please can you make same test in a mysql and report feedback.. ??? it might be a bug i guess! i use always odbc and have experience same problem in the past (and i very angry due the so many commits to the mysql-puach module and lesss to the others that are more significativelly) > > ID - ID Number > FName - Persons first name and possibly an initial > LName - Persons surname > Company - Persons employer > Various other fields with persons information > > Also, on the form are a TextBox for user entry, a button for "Find" and a > button for "Clear". > > The desired action is as follows: > > User enters any substring of the persons name (first name or surname) in > the TextBox and clicks the "Find" Button. The matching records are > displayed in the DataBrowser. When the user clicks the "Clear" button, the > DataBrowser displays all the records. > > Example: If I have records for (1) Jack Smith, (2) Sally Simple, (3) Jack > B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: > > "Jack" should return records 1, 3, 5 > "im" should return records 2, 3 > "s" should return records 1, 2 > "Jack B" should return records 3, 5 > > I have implemented the "Find" button as follows: > > Public Sub Button1_Click() > 'Find Button > Dim $findtext As String > Dim $filterstr As String > > $findtext = TextBox1.Text 'Assignment to a variable seems to be required > for DB.Subst > > $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", $findtext) 'Look > for Find entry in either First or Last name > > TextBox2.Text = $filterstr 'Debugging output > > DataSource1.Filter = $filterstr > DataBrowser1.Refresh > FormatDataBrowser1 'Set column widths, header alignment, etc. > End > > The result I get is only an exact match of the string entered in the > TextBox, as if I had used "=" instead of "Like" as the operator in the > filter string. > > I am obviously missing something, or have taken a wrong approach. > Suggestions will be appreciated. > > Regards, > > Ernest Wilson > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 5 15:18:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:18:18 -0400 Subject: [Gambas-user] Function keys F1 and F2 to call online help In-Reply-To: References: Message-ID: maybe use the keycode constants? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-03 14:12 GMT-04:00 Gianluigi : > > > 2018-05-03 17:48 GMT+02:00 Gianluigi : > >> Hi Benoit, >> not being able to use the Application_KeyPress event to manage the >> function keys and seen what you say in this discussion [0], here's what I >> wrote in the last seHelpBuilder 0.2.4: >> >> In the main form I entered this code: >> [code]Public Sub RaiseHelp(sKey As String) >> >> Action_Activate(sKey) >> >> End[/code] >> >> And in the other windows the code: >> >> [code]Public Sub Form_KeyPress() >> >> If Key.Code = Key.F2 Then >> FMain.RaiseHelp("help-current") >> Else If Key.Code = Key.F1 Then >> FMain.RaiseHelp("help-open") >> Endif >> >> End[/code] >> How can I get response on F1 or F2 even from the Gambas dialogs? >> >> Regards >> Gianluigi >> [0] https://lists.gambas-basic.org/pipermail/user/2014-February/ >> 047379.html >> > > I mean OpenFile, SelectColor etc. > > Regards > Gianluigi > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 5 15:20:27 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:20:27 -0400 Subject: [Gambas-user] Shortcut Key and or toolbar icon to comment line or lines In-Reply-To: <4de865b8-776c-2593-6deb-7fe69c7f7e52@gmail.com> References: <4de865b8-776c-2593-6deb-7fe69c7f7e52@gmail.com> Message-ID: in right click menu -> avanced Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-05 5:58 GMT-04:00 KKing : > is there a Shortcut Key and or toolbar icon to comment a highlighted line > or range of lines? > > KK > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 5 15:22:22 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:22:22 -0400 Subject: [Gambas-user] Switch qt4 in qt5 In-Reply-To: References: Message-ID: in old mailist there's a variable to envront?ment that set and force the qt5 gui to be used.. maybe this info must be posted in the wiki.. but in the IDE if the required components are installed you can choose where gui toolkit wil be run the gambas code from debug tool menu Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-03 10:10 GMT-04:00 Gianluigi : > Having both the qt4 and the qt5 libraries in my computers, I would like to > know if for those who only own the qt5 libraries it is possible to Download > from the Software farm a project created with the components gb.gui.qt and > gb.gui.qt.webkit and changed before publishing in gb.qt4 and gb.qt4.webkit, > then changing it back to gb.gui.qt and gb.gui.qt.webkit or gb.qt5 and > gb.qt5.webkit. > > I hope I managed to explain me > > Regards > Gianluigi > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 5 15:25:08 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 09:25:08 -0400 Subject: [Gambas-user] EXIT keyword In-Reply-To: <20180426211636.GA22921@highrise.localdomain> References: <20180426211636.GA22921@highrise.localdomain> Message-ID: this are still missing in the wiki ... i can document but i need the proper info... when i used program exit, but in a loop or similar event how its the behaviour? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-26 17:16 GMT-04:00 Tobias Boege : > Hi, > > I noticed that the EXIT keyword is highlighted in the IDE. I couldn't find > it anywhere in the docs. When I wrote it into a program, the compiler told > me that it's an "unexpected BREAK". Is it an intentional synonym for BREAK > or a relic? (I get that feeling, reading the "VB warning" box in on the > documentation page.) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat May 5 16:46:41 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 5 May 2018 16:46:41 +0200 Subject: [Gambas-user] Serial Port Reading and triggered upon receiving data In-Reply-To: References: Message-ID: <20180505144641.GO22921@highrise.localdomain> On Fri, 04 May 2018, KKing wrote: > Any useful examples of code listening to a Serial Port and acting upon > binary data being received as will need to interrogate bits set within > bytes? > > Can you setup a watch like event on a serial port? > As usual with streams in Gambas, that event is called Read [1]. I don't have anything to connect to a serial port (if I even have one), but it would look like this: ' Assuming you have a SerialPort1 object Public Sub SerialPort1_Read() Dim iByte As Byte iByte = Read #Last, 1 ' Do something with your byte... End Gambas has builtins for bit manipulation [2]. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.net/serialport/.read [2] http://gambaswiki.org/wiki/cat/bit -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Sat May 5 17:06:16 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 5 May 2018 17:06:16 +0200 Subject: [Gambas-user] EXIT keyword In-Reply-To: References: <20180426211636.GA22921@highrise.localdomain> Message-ID: <20180505150616.GP22921@highrise.localdomain> On Sat, 05 May 2018, PICCORO McKAY Lenz wrote: > this are still missing in the wiki ... i can document but i need the proper > info... when i used program exit, but in a loop or similar event how its > the behaviour? > FWIW, as far as the git/svn log reaches back (2007), the EXIT keyword has been there and wired to the same opcode as BREAK [1]. I guess it is either an old keyword from Gambas 1 that was later superseded by BREAK, or an alternative that wasn't documented. Regards, Tobi [1] https://gitlab.com/gambas/gambas/blob/ba19f3c1dd82323822/main/gbc/gbc_trans_code.c#L158 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Sat May 5 17:22:00 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 5 May 2018 17:22:00 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> Message-ID: <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> Am 05.05.2018 um 13:50 schrieb Beno?t Minisini: > Try to remove spaces for your directory names. There are no spaces in the path. This is what I did: git clone https://gitlab.com/gambas/gambas.git cd gambas git checkout v3.11.0-rc1 ./reconf-all ./configure -C make > ... > CC gbc3-gbc.o > gbc.c:27:27: fatal error: trunk_version.h: Datei oder Verzeichnis nicht gefunden > compilation terminated. > Makefile:1219: die Regel f?r Ziel ?gbc3-gbc.o? scheiterte > make[4]: *** [gbc3-gbc.o] Fehler 1 > make[4]: Verzeichnis ?/home/christof/programming/gambas/gambas/main/gbc? wird verlassen > Makefile:457: die Regel f?r Ziel ?all-recursive? scheiterte > make[3]: *** [all-recursive] Fehler 1 > make[3]: Verzeichnis ?/home/christof/programming/gambas/gambas/main? wird verlassen > Makefile:389: die Regel f?r Ziel ?all? scheiterte > make[2]: *** [all] Fehler 2 > make[2]: Verzeichnis ?/home/christof/programming/gambas/gambas/main? wird verlassen > Makefile:439: die Regel f?r Ziel ?all-recursive? scheiterte > make[1]: *** [all-recursive] Fehler 1 > make[1]: Verzeichnis ?/home/christof/programming/gambas/gambas? wird verlassen > Makefile:380: die Regel f?r Ziel ?all? scheiterte > make: *** [all] Fehler 2 Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Sat May 5 17:31:20 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 5 May 2018 11:31:20 -0400 Subject: [Gambas-user] DataSource filter using Like operator In-Reply-To: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> References: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> Message-ID: <22a11eb9-7fcb-0d0d-a0bb-78d348653921@gmail.com> I'm fairly sure you need to use wildcards to represent the part of the string not searched for. Try: $findtext = "*" & TextBox1.Text & "*" -- Lee On 05/04/2018 02:04 PM, Ernest Wilson wrote: > I am using Gambas 3.10.0 and trying to implement a "Find" on a form displaying a database of people. So far, the form works > perfectly for maintaining the database, however, the "Find" is not working as I would like. I have attempted to implement the > "Find" using a DataSource filter as described below, but, the result is not as I expected. Any guidance will be appreciated. > > On a form I have a DataBrowser displaying the content of an SQLite database table containing a list of people. The fields > consist of: > > ??? ID - ID Number > ??? FName - Persons first name and possibly an initial > ??? LName - Persons surname > ??? Company - Persons employer > ??? Various other fields with persons information > > Also, on the form are a TextBox for user entry, a button for "Find" and a button for "Clear". > > The desired action is as follows: > > User enters any substring of the persons name (first name or surname) in the TextBox and clicks the "Find" Button. The matching > records are displayed in the DataBrowser. When the user clicks the "Clear" button, the DataBrowser displays all the records. > > Example: If I have records for (1) Jack Smith, (2) Sally Simple, (3) Jack B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: > > "Jack" should return records 1, 3, 5 > "im" should return records 2, 3 > "s" should return records 1, 2 > "Jack B" should return records 3, 5 > > I have implemented the "Find" button as follows: > > Public Sub Button1_Click() > ? 'Find Button > ? Dim $findtext As String > ? Dim $filterstr As String > > ? $findtext = TextBox1.Text 'Assignment to a variable seems to be required for DB.Subst > > ? $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", $findtext) 'Look for Find entry in either First or Last name > > ? TextBox2.Text = $filterstr 'Debugging output > > ? DataSource1.Filter = $filterstr > ? DataBrowser1.Refresh > ? FormatDataBrowser1 'Set column widths, header alignment, etc. > End > > The result I get is only an exact match of the string entered in the TextBox, as if I had used "=" instead of "Like" as the > operator in the filter string. > > I am obviously missing something, or have taken a wrong approach. Suggestions will be appreciated. > > Regards, > > Ernest Wilson From taboege at gmail.com Sat May 5 17:37:58 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 5 May 2018 17:37:58 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> Message-ID: <20180505153758.GQ22921@highrise.localdomain> On Sat, 05 May 2018, Christof Thalhofer wrote: > Am 05.05.2018 um 13:50 schrieb Beno?t Minisini: > > > Try to remove spaces for your directory names. > > There are no spaces in the path. This is what I did: > > git clone https://gitlab.com/gambas/gambas.git > cd gambas > git checkout v3.11.0-rc1 > ./reconf-all > ./configure -C > make > I can reproduce it and will try to fix. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Sat May 5 17:34:45 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 5 May 2018 11:34:45 -0400 Subject: [Gambas-user] Shortcut Key and or toolbar icon to comment line or lines In-Reply-To: <4de865b8-776c-2593-6deb-7fe69c7f7e52@gmail.com> References: <4de865b8-776c-2593-6deb-7fe69c7f7e52@gmail.com> Message-ID: <5cfc2e38-8247-a9bb-677d-44521e18fa51@gmail.com> I always use the tool bar icon. It's the one that looks like an apostrophe or single-quote. You can uncomment a highlighted line or block with the icon that has the red 'x' underneath the single-quote. -- Lee On 05/05/2018 05:58 AM, KKing wrote: > is there a Shortcut Key and or toolbar icon to comment a highlighted line or range of lines? > > KK From taboege at gmail.com Sat May 5 18:01:22 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 5 May 2018 18:01:22 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <20180505153758.GQ22921@highrise.localdomain> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> Message-ID: <20180505160122.GR22921@highrise.localdomain> On Sat, 05 May 2018, Tobias Boege wrote: > On Sat, 05 May 2018, Christof Thalhofer wrote: > > Am 05.05.2018 um 13:50 schrieb Beno?t Minisini: > > > > > Try to remove spaces for your directory names. > > > > There are no spaces in the path. This is what I did: > > > > git clone https://gitlab.com/gambas/gambas.git > > cd gambas > > git checkout v3.11.0-rc1 > > ./reconf-all > > ./configure -C > > make > > > > I can reproduce it and will try to fix. > It should be fixed in https://gitlab.com/gambas/gambas/commit/e4bfb99a471ee15b307236ff2c9d53869e9caad7 I also made it print the git tag of the compiled commit if there is one. In that case, it takes the place of the branch name: $ gbx/gbx3 -V 3.11.0 b4b51a45c (v3.11.0-rc1) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Sat May 5 20:53:56 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 5 May 2018 20:53:56 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <20180505160122.GR22921@highrise.localdomain> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> Message-ID: <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> Am 05.05.2018 um 18:01 schrieb Tobias Boege: > It should be fixed in https://gitlab.com/gambas/gambas/commit/e4bfb99a471ee15b307236ff2c9d53869e9caad7 > I also made it print the git tag of the compiled commit if there is one. > In that case, it takes the place of the branch name: > > $ gbx/gbx3 -V > 3.11.0 b4b51a45c (v3.11.0-rc1) Works (compiles and installs) :-) Thank you! But shouldn't you create a Tag v3.11.0-rc2? I'll test further more tomorrow. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Sun May 6 02:19:43 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 20:19:43 -0400 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> Message-ID: umm i thnk with the branch are enought, dont be necesary specific tags due remember that gitlab uses tags for release versions too Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-05 14:53 GMT-04:00 Christof Thalhofer : > Am 05.05.2018 um 18:01 schrieb Tobias Boege: > > > It should be fixed in https://gitlab.com/gambas/gambas/commit/ > e4bfb99a471ee15b307236ff2c9d53869e9caad7 > > I also made it print the git tag of the compiled commit if there is one. > > In that case, it takes the place of the branch name: > > > > $ gbx/gbx3 -V > > 3.11.0 b4b51a45c (v3.11.0-rc1) > > Works (compiles and installs) :-) > Thank you! > > But shouldn't you create a Tag v3.11.0-rc2? > I'll test further more tomorrow. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sun May 6 02:22:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 20:22:05 -0400 Subject: [Gambas-user] DataSource filter using Like operator In-Reply-To: <22a11eb9-7fcb-0d0d-a0bb-78d348653921@gmail.com> References: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> <22a11eb9-7fcb-0d0d-a0bb-78d348653921@gmail.com> Message-ID: no! there-s no wildcars issue and its not related.. its a sql transliteration issue, please trry as i specify in previousllllly mail qnd report feedback Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-05 11:31 GMT-04:00 T Lee Davidson : > I'm fairly sure you need to use wildcards to represent the part of the > string not searched for. Try: > $findtext = "*" & TextBox1.Text & "*" > > > -- > Lee > > > On 05/04/2018 02:04 PM, Ernest Wilson wrote: > > I am using Gambas 3.10.0 and trying to implement a "Find" on a form > displaying a database of people. So far, the form works > > perfectly for maintaining the database, however, the "Find" is not > working as I would like. I have attempted to implement the > > "Find" using a DataSource filter as described below, but, the result is > not as I expected. Any guidance will be appreciated. > > > > On a form I have a DataBrowser displaying the content of an SQLite > database table containing a list of people. The fields > > consist of: > > > > ID - ID Number > > FName - Persons first name and possibly an initial > > LName - Persons surname > > Company - Persons employer > > Various other fields with persons information > > > > Also, on the form are a TextBox for user entry, a button for "Find" and > a button for "Clear". > > > > The desired action is as follows: > > > > User enters any substring of the persons name (first name or surname) in > the TextBox and clicks the "Find" Button. The matching > > records are displayed in the DataBrowser. When the user clicks the > "Clear" button, the DataBrowser displays all the records. > > > > Example: If I have records for (1) Jack Smith, (2) Sally Simple, (3) > Jack B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: > > > > "Jack" should return records 1, 3, 5 > > "im" should return records 2, 3 > > "s" should return records 1, 2 > > "Jack B" should return records 3, 5 > > > > I have implemented the "Find" button as follows: > > > > Public Sub Button1_Click() > > 'Find Button > > Dim $findtext As String > > Dim $filterstr As String > > > > $findtext = TextBox1.Text 'Assignment to a variable seems to be > required for DB.Subst > > > > $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", $findtext) > 'Look for Find entry in either First or Last name > > > > TextBox2.Text = $filterstr 'Debugging output > > > > DataSource1.Filter = $filterstr > > DataBrowser1.Refresh > > FormatDataBrowser1 'Set column widths, header alignment, etc. > > End > > > > The result I get is only an exact match of the string entered in the > TextBox, as if I had used "=" instead of "Like" as the > > operator in the filter string. > > > > I am obviously missing something, or have taken a wrong approach. > Suggestions will be appreciated. > > > > Regards, > > > > Ernest Wilson > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sun May 6 02:26:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 5 May 2018 20:26:21 -0400 Subject: [Gambas-user] EXIT keyword In-Reply-To: <20180505150616.GP22921@highrise.localdomain> References: <20180426211636.GA22921@highrise.localdomain> <20180505150616.GP22921@highrise.localdomain> Message-ID: so then will be officialy the EXIT as an alternate equal to BREEEAK? or will be removed in the futurrrrrrrre? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-05 11:06 GMT-04:00 Tobias Boege : > On Sat, 05 May 2018, PICCORO McKAY Lenz wrote: > > this are still missing in the wiki ... i can document but i need the > proper > > info... when i used program exit, but in a loop or similar event how its > > the behaviour? > > > > FWIW, as far as the git/svn log reaches back (2007), the EXIT keyword > has been there and wired to the same opcode as BREAK [1]. I guess it is > either an old keyword from Gambas 1 that was later superseded by BREAK, > or an alternative that wasn't documented. > > Regards, > Tobi > > [1] https://gitlab.com/gambas/gambas/blob/ba19f3c1dd82323822/main/gbc/ > gbc_trans_code.c#L158 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambasml at junkheaven.com Sun May 6 03:22:47 2018 From: gambasml at junkheaven.com (Ernest Wilson) Date: Sat, 5 May 2018 20:22:47 -0500 Subject: [Gambas-user] DataSource filter using Like operator In-Reply-To: References: <40e0130c-0a83-090a-8ea7-8c8850b145df@junkheaven.com> Message-ID: <1621635a-b1a7-fa7b-9c9a-a4e57c8268b0@junkheaven.com> I found the problem to be the syntax I was using. The correct syntax is documented in the SQLite docs. As noted in the post from Lee, I did need a wildcard, but the wildcard is "%" instead of the traditional "*" Here is the code that works properly: Public Sub Button1_Click() ? 'Find Button ? Dim $findtext As String ? Dim $filterstr As String ? 'Assignment to a variable seems to be required for DB.Subst ? 'also facilitates prepend & append of wildcard "%" ? $findtext = "%" & TextBox1.Text & "%" ? 'Look for Find entry in first name or last name or company ? 'See SQLite documentation for syntax of Like operator ? $filterstr = DB.Subst("LIKE(&1,LName) OR LIKE(&1,FName) OR LIKE(&1,Company)", $findtext) ? DataSource1.Filter = $filterstr ? DataBrowser1.Refresh ? FormatDataBrowser1 'Set column widths, header alignment, etc. End I will eventually test with mySQL, but I'm not ready yet. Regards, Ernest Wilson On 05/05/2018 08:14 AM, PICCORO McKAY Lenz wrote: > 2018-05-04 14:04 GMT-04:00 Ernest Wilson >: > > > On a form I have a DataBrowser displaying the content of an SQLite > database table containing a list of people. The fields consist of: > > > hi,please can you make same test in a mysql and report feedback.. ??? > it might be a bug i guess! > > i use always odbc and have experience same problem in the past (and i > very angry due the so many commits to the mysql-puach module and lesss > to the others that are more significativelly) > > > ??? ID - ID Number > ??? FName - Persons first name and possibly an initial > ??? LName - Persons surname > ??? Company - Persons employer > ??? Various other fields with persons information > > Also, on the form are a TextBox for user entry, a button for > "Find" and a button for "Clear". > > The desired action is as follows: > > User enters any substring of the persons name (first name or > surname) in the TextBox and clicks the "Find" Button. The matching > records are displayed in the DataBrowser. When the user clicks the > "Clear" button, the DataBrowser displays all the records. > > Example: If I have records for (1) Jack Smith, (2) Sally Simple, > (3) Jack B. Nimble, (4) John Dough, (5) Jack B. Quick, entering: > > "Jack" should return records 1, 3, 5 > "im" should return records 2, 3 > "s" should return records 1, 2 > "Jack B" should return records 3, 5 > > I have implemented the "Find" button as follows: > > Public Sub Button1_Click() > ? 'Find Button > ? Dim $findtext As String > ? Dim $filterstr As String > > ? $findtext = TextBox1.Text 'Assignment to a variable seems to be > required for DB.Subst > > ? $filterstr = DB.Subst("LName LIKE &1 OR FName LIKE &1", > $findtext) 'Look for Find entry in either First or Last name > > ? TextBox2.Text = $filterstr 'Debugging output > > ? DataSource1.Filter = $filterstr > ? DataBrowser1.Refresh > ? FormatDataBrowser1 'Set column widths, header alignment, etc. > End > > The result I get is only an exact match of the string entered in > the TextBox, as if I had used "=" instead of "Like" as the > operator in the filter string. > > I am obviously missing something, or have taken a wrong approach. > Suggestions will be appreciated. > > Regards, > > Ernest Wilson > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun May 6 08:17:00 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 6 May 2018 08:17:00 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> Message-ID: <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> Am 06.05.2018 um 02:19 schrieb PICCORO McKAY Lenz: > umm i thnk with????? the branch are enought, dont be necesary specific > tags???? due remember that gitlab uses tags for release versions too Do you mean that there should be created a branch called 3.11.0-rc1 instead of a tag? Yes, I would agree. In 3.10 there were bugs that I reported and were fixed *before* 3.10 but did not made it into the final release so that I had to stay on 3.9 for my work since then. :-( Now the fix of Tobi is just on master, if Beno?t releases 3.11.0-rc1 as 3.11 there would be the same bad situation. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From kicking177 at gmail.com Sun May 6 13:12:33 2018 From: kicking177 at gmail.com (KKing) Date: Sun, 6 May 2018 12:12:33 +0100 Subject: [Gambas-user] Serial Port Reading and triggered upon receiving data Message-ID: << ? ' Assuming you have a SerialPort1 object ? Public Sub SerialPort1_Read() ??? Dim iByte As Byte ??? iByte = Read #Last, 1 ??? ' Do something with your byte... ? End Gambas has builtins for bit manipulation [2]. >> Got it, all working. Many thanks KK From kicking177 at gmail.com Sun May 6 13:13:17 2018 From: kicking177 at gmail.com (KKing) Date: Sun, 6 May 2018 12:13:17 +0100 Subject: [Gambas-user] Shortcut Key and or toolbar icon to comment line or lines Message-ID: <02cbc8f6-9c93-7132-9f5f-b325b19803b5@gmail.com> < avanced>> ta, from there I could see shortcut keys were Ctrl+K and Ctrl+U <> Must be going mad, did not see them before and thought I had checked each icon for it's hover text. From bugtracker at gambaswiki.org Sun May 6 15:18:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 06 May 2018 13:18:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1306: Ceil and Floor do not return integer value Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1306&from=L21haW4- Safiur RAHMAN reported a new bug. Summary ------- Ceil and Floor do not return integer value Type : Bug Priority : High Gambas version : 3.10 Product : Language Description ----------- Ceil and Floor do not return integer value. Take an example: Dim aa As Float Dim xx As String aa = 1.4 Print TypeOf(Ceil(aa)) xx = Space(Ceil(aa)) TypeOff Print 7 (gb.Float) There is error with Space System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.13.0-39-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=UNITY Theme=Gtk Language=en_US.UTF-8 Memory=3827M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-vph3yotURn DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=6769 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=ne_NP LC_IDENTIFICATION=ne_NP LC_MEASUREMENT=ne_NP LC_MONETARY=ne_NP LC_NAME=ne_NP LC_NUMERIC=ne_NP LC_PAPER=ne_NP LC_TELEPHONE=ne_NP LC_TIME=ne_NP LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UNITY_DEFAULT_PROFILE=unity UNITY_HAS_3D_SUPPORT=true UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1407 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop 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=ubuntu XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus From bugtracker at gambaswiki.org Sun May 6 15:31:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 06 May 2018 13:31:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1306: Ceil and Floor do not return integer value In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1306&from=L21haW4- Comment #1 by Tobias BOEGE: This is good as it is. The (double) floating point range is wider than the (long) integer range, so if you went from Float to Long with Ceil, you'd get an overflow where you wouldn't expect it: $ gbx3 -e "CLong(Ceil(10e160))" -9223372036854775808 $ gbx3 -e "Ceil(10e160)" 1E+161 To avoid that, it is best if the result stays as Float. You can convert it to an integer type yourself using CInt or CLong, after checking the magnitude. Tobias BOEGE changed the state of the bug to: Rejected. From g4mba5 at gmail.com Sun May 6 15:43:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 6 May 2018 15:43:43 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> Message-ID: <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> Le 06/05/2018 ? 08:17, Christof Thalhofer a ?crit?: > Am 06.05.2018 um 02:19 schrieb PICCORO McKAY Lenz: > >> umm i thnk with????? the branch are enought, dont be necesary specific >> tags???? due remember that gitlab uses tags for release versions too > > Do you mean that there should be created a branch called 3.11.0-rc1 > instead of a tag? Yes, I would agree. > > In 3.10 there were bugs that I reported and were fixed *before* 3.10 but > did not made it into the final release so that I had to stay on 3.9 for > my work since then. > > :-( > > Now the fix of Tobi is just on master, if Beno?t releases 3.11.0-rc1 as > 3.11 there would be the same bad situation. > > > Alles Gute > > Christof Thalhofer > No: The tags are made from the 'stable' branch, where I merge all changes from master that must go into 3.11 (look at the git commits). The 'stable' branch is the branch you want to call "3.11.0-rc1". I don't need anything else, because I only work on the developement version (branch "master") and on the last stable version (branch "stable"). Once 3.11 is release, "stable" becomes the branch for "3.11.1", or "3.12.0" if there is no minor release of 3.11. By the way, I think I will name the tag "3.11.0" and not "v3.11.0". Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sun May 6 15:46:53 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 6 May 2018 15:46:53 +0200 Subject: [Gambas-user] EXIT keyword In-Reply-To: References: <20180426211636.GA22921@highrise.localdomain> <20180505150616.GP22921@highrise.localdomain> Message-ID: Le 06/05/2018 ? 02:26, PICCORO McKAY Lenz a ?crit?: > so then will be officialy the EXIT as an alternate equal to BREEEAK? or > will be removed in the futurrrrrrrre? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > I think it may be a background-compatible keyword from gambas 1.0. It should be removed. But, as a principle, only in 4.0! -- Beno?t Minisini From bugtracker at gambaswiki.org Sun May 6 17:29:03 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 06 May 2018 15:29:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1307: English spelling error Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1307&from=L21haW4- Charlie OGIER reported a new bug. Summary ------- English spelling error Type : Bug Priority : Low Gambas version : 3.10 Product : Development Environment Description ----------- The '?' menu has 'System informations' this should be 'System information' From bugtracker at gambaswiki.org Sun May 6 17:29:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 06 May 2018 15:29:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1307: English spelling error In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1307&from=L21haW4- Charlie OGIER added an attachment: spelling.png From bugtracker at gambaswiki.org Sun May 6 17:30:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 06 May 2018 15:30:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1307: English spelling error In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1307&from=L21haW4- Comment #1 by Charlie OGIER: As you can see from the underlining in my spell checker From bugtracker at gambaswiki.org Sun May 6 17:35:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 06 May 2018 15:35:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1307: English spelling error In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1307&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun May 6 17:36:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 06 May 2018 15:36:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1308: Software Farm filter Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1308&from=L21haW4- Charlie OGIER reported a new bug. Summary ------- Software Farm filter Type : Bug Priority : Low Gambas version : 3.10 Product : Development Environment Description ----------- In the Farm and after selecting 'Show filters' I find it very difficult to get text into the 'Tags' TextBox. I have to write it somewhere else and paste it in. System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.10.0-38-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=en_GB.UTF-8 Memory=7853M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.6.7 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-SBnKdtnWyz,guid=35d4bdf59d3bea7b23b2dee25aef1061 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=en_GB GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME=/home/ LANG=en_GB.UTF-8 LANGUAGE=en_GB LC_ADDRESS=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PAPERSIZE=letter PATH=/home//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home//bin PWD=/home/ QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1245,unix/:/tmp/.ICE-unix/1245 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1311 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/home//.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/share/cinnamon:/usr/share/gnome:/home//.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=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From chrisml at deganius.de Sun May 6 20:22:56 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 6 May 2018 20:22:56 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> Message-ID: Am 06.05.2018 um 15:43 schrieb Beno?t Minisini: > No: The tags are made from the 'stable' branch, where I merge all > changes from master that must go into 3.11 (look at the git commits). Ok, thank you for your explanation. Now I've tested Gambas 3.11 with the last commit from Tobi and till now I could not find any further error or misbehaviour (as long as my own tests cover functionality). It looks very 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: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sun May 6 21:43:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 6 May 2018 21:43:12 +0200 Subject: [Gambas-user] Replacing the JIT component Message-ID: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> Hi, This is just an idea in the fly. There is nothing concrete at the moment. As you may know, there is a JIT component in Gambas (not made by me) based on LLVM. Alas it does not work with recent versions of LLVM, because apparently this huge project is not able to keep backward compatibility between minor versions. (Worse than GTK+, I couldn't imagine it was possible!) What to do now? 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the original author does not give any news, and I have no knowledge about LLVM, and its C++ interface looks horrible to me. 2) gcc has now a JIT library, but it is an alpha version with a big warning that everything may change between releases, even if it is apparently relatively stable. Moreover, no idea about how many bugs the library has. 3) Writing a Gambas -> C translator. My idea is that the compiler, or maybe an external program eventually written in Gambas, takes a class/module source code, and transform it into a C source file. That C source file will call the interpreter functions when needed through a dedicated interpreter API. Then the C source file will be transform into a shared library loaded at runtime by the interpreter (calling the C compiler that hence must be installed). The advantages are: - C syntax is thousand times more stable than a JIT compiler library that changes at each version. - Maybe better optimizations. The disadvantages are: - You need the compiler. But the JIT library needs most of it too, so... - Compiling is slower than calling a JIT library. - JIT library can compile at the function level. This is not practical with a compiler (we won't make a shared library for each JIT function!). One shared library for each class, or even one for the entire project may be the solution. Now I'm waiting for your comments! Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun May 6 23:19:40 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 May 2018 00:19:40 +0300 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> Message-ID: I think the #3 is excellent idea. I think it makes the debugging much easier (I have no clue what current JIT does to the code), if the C code is generated that point in mind. Moreover I think it would very well fill the place of the missing/broken feature. If you want to keep some of the code in native Gambas and need high performance, then you can write two programs (one native and one translated to C) and communicate between pipe, DBUS or whatever. No need to have function level compilation. Jussi On Sun, May 6, 2018 at 10:43 PM, Beno?t Minisini wrote: > Hi, > > This is just an idea in the fly. There is nothing concrete at the moment. > > As you may know, there is a JIT component in Gambas (not made by me) based > on LLVM. Alas it does not work with recent versions of LLVM, because > apparently this huge project is not able to keep backward compatibility > between minor versions. (Worse than GTK+, I couldn't imagine it was > possible!) > > What to do now? > > 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the > original author does not give any news, and I have no knowledge about LLVM, > and its C++ interface looks horrible to me. > > 2) gcc has now a JIT library, but it is an alpha version with a big > warning that everything may change between releases, even if it is > apparently relatively stable. Moreover, no idea about how many bugs the > library has. > > 3) Writing a Gambas -> C translator. > > My idea is that the compiler, or maybe an external program eventually > written in Gambas, takes a class/module source code, and transform it into > a C source file. > > That C source file will call the interpreter functions when needed through > a dedicated interpreter API. > > Then the C source file will be transform into a shared library loaded at > runtime by the interpreter (calling the C compiler that hence must be > installed). > > The advantages are: > > - C syntax is thousand times more stable than a JIT compiler library that > changes at each version. > > - Maybe better optimizations. > > The disadvantages are: > > - You need the compiler. But the JIT library needs most of it too, so... > > - Compiling is slower than calling a JIT library. > > - JIT library can compile at the function level. This is not practical > with a compiler (we won't make a shared library for each JIT function!). > One shared library for each class, or even one for the entire project may > be the solution. > > Now I'm waiting for your comments! > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 7 00:07:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 6 May 2018 18:07:05 -0400 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> Message-ID: i never like the stuffs linked or related with things that has no backguard compatibility.. the LLVM it's like python.. in every new version all the old learned things are "gone and trasted" the last #3 solution seems good but take in consideration that by example until gambas 3.9 , are compilable and compatible to build and install into any linux sinde 2011, in my case i use debian lenny and gambas still are installable there! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-06 17:19 GMT-04:00 Jussi Lahtinen : > I think the #3 is excellent idea. > I think it makes the debugging much easier (I have no clue what current > JIT does to the code), if the C code is generated that point in mind. > Moreover I think it would very well fill the place of the missing/broken > feature. If you want to keep some of the code in native Gambas and need > high performance, then you can write two programs (one native and one > translated to C) and communicate between pipe, DBUS or whatever. > > No need to have function level compilation. > > > Jussi > > > > > On Sun, May 6, 2018 at 10:43 PM, Beno?t Minisini wrote: > >> Hi, >> >> This is just an idea in the fly. There is nothing concrete at the moment. >> >> As you may know, there is a JIT component in Gambas (not made by me) >> based on LLVM. Alas it does not work with recent versions of LLVM, because >> apparently this huge project is not able to keep backward compatibility >> between minor versions. (Worse than GTK+, I couldn't imagine it was >> possible!) >> >> What to do now? >> >> 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the >> original author does not give any news, and I have no knowledge about LLVM, >> and its C++ interface looks horrible to me. >> >> 2) gcc has now a JIT library, but it is an alpha version with a big >> warning that everything may change between releases, even if it is >> apparently relatively stable. Moreover, no idea about how many bugs the >> library has. >> >> 3) Writing a Gambas -> C translator. >> >> My idea is that the compiler, or maybe an external program eventually >> written in Gambas, takes a class/module source code, and transform it into >> a C source file. >> >> That C source file will call the interpreter functions when needed >> through a dedicated interpreter API. >> >> Then the C source file will be transform into a shared library loaded at >> runtime by the interpreter (calling the C compiler that hence must be >> installed). >> >> The advantages are: >> >> - C syntax is thousand times more stable than a JIT compiler library that >> changes at each version. >> >> - Maybe better optimizations. >> >> The disadvantages are: >> >> - You need the compiler. But the JIT library needs most of it too, so... >> >> - Compiling is slower than calling a JIT library. >> >> - JIT library can compile at the function level. This is not practical >> with a compiler (we won't make a shared library for each JIT function!). >> One shared library for each class, or even one for the entire project may >> be the solution. >> >> Now I'm waiting for your comments! >> >> Regards, >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 7 00:09:19 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 6 May 2018 18:09:19 -0400 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> Message-ID: YEs Benoit that i was taking about!! and that i refers its make a 3.11 brand! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-06 9:43 GMT-04:00 Beno?t Minisini : > Le 06/05/2018 ? 08:17, Christof Thalhofer a ?crit : > >> Am 06.05.2018 um 02:19 schrieb PICCORO McKAY Lenz: >> >> umm i thnk with the branch are enought, dont be necesary specific >>> tags due remember that gitlab uses tags for release versions too >>> >> >> Do you mean that there should be created a branch called 3.11.0-rc1 >> instead of a tag? Yes, I would agree. >> >> In 3.10 there were bugs that I reported and were fixed *before* 3.10 but >> did not made it into the final release so that I had to stay on 3.9 for >> my work since then. >> >> :-( >> >> Now the fix of Tobi is just on master, if Beno?t releases 3.11.0-rc1 as >> 3.11 there would be the same bad situation. >> >> >> Alles Gute >> >> Christof Thalhofer >> >> > No: The tags are made from the 'stable' branch, where I merge all changes > from master that must go into 3.11 (look at the git commits). > > The 'stable' branch is the branch you want to call "3.11.0-rc1". I don't > need anything else, because I only work on the developement version (branch > "master") and on the last stable version (branch "stable"). > > Once 3.11 is release, "stable" becomes the branch for "3.11.1", or > "3.12.0" if there is no minor release of 3.11. > > By the way, I think I will name the tag "3.11.0" and not "v3.11.0". > > Regards, > > -- > Beno?t Minisini > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 7 00:11:49 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 6 May 2018 18:11:49 -0400 Subject: [Gambas-user] EXIT keyword In-Reply-To: References: <20180426211636.GA22921@highrise.localdomain> <20180505150616.GP22921@highrise.localdomain> Message-ID: X-D wow 4.0? well nothig are forever! i assume that 4.0 wil not be more compilable with older linux versions that i used! and qt4 modules wil be gone! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-06 9:46 GMT-04:00 Beno?t Minisini : > Le 06/05/2018 ? 02:26, PICCORO McKAY Lenz a ?crit : > >> so then will be officialy the EXIT as an alternate equal to BREEEAK? or >> will be removed in the futurrrrrrrre? >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > I think it may be a background-compatible keyword from gambas 1.0. It > should be removed. But, as a principle, only in 4.0! > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon May 7 00:13:04 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 7 May 2018 01:13:04 +0300 Subject: [Gambas-user] problem with the CDate function In-Reply-To: References: <20180502131231.M12297@455.co.il> Message-ID: <20180506220355.M54093@455.co.il> An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon May 7 00:47:09 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 7 May 2018 01:47:09 +0300 Subject: [Gambas-user] problem with the CDate function In-Reply-To: References: <20180502131231.M12297@455.co.il> Message-ID: <20180506224641.M79465@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Wed, 2 May 2018 15:46:44 +0200 Subject: Re: [Gambas-user] problem with the CDate function > Le 02/05/2018 ? 15:38, Gianluigi a ?crit?: > > > > > > 2018-05-02 15:18 GMT+02:00 Mayost Sharon > >: > > > > Hello > > > > Operating system: Fedora 27 64 BIT > > Gambas 3.10.0 > > > > I have a problem with the CDate function when I run the example that > > appears in this > > documentation: > > > > It takes me back one day > > > > I run: > > > > > > Print CDate ("09/06/1972 01:45:12") > > > > And it returns to me: > > > > 09/05/1972 22:45:12 > > > > > > You must use Date and not CDate which locates the UTC date [0]. > > > > Regards > > Gianluigi > > [0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time > > > > No, it's not the problem. > > It's just that people must understand that CDate() interprets its > argument as an UTC date, and that Str() (hence Print) converts a date > into a local representation. > > So if you use CDate(), you must use CStr() to go back to the original > string. Otherwise, use Val() and Str(). > > See the documentation about these functions. I think some non-american > examples should be added to make things clearer. > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net ------- End of Original Message ------- Sorry I do not understand If I run this code: Public Sub Main() Dim str_date As String str_date = "05/07/2018 00:00:00" If Date() > Date(str_date) Then Print "Date() Is > str_data" Else Print "Date() Is < Or = str_date" Endif Print Date() Print Date(str_date) End I get this output: Date() Is > str_data 05/07/2018 00:00:00 05/06/2018 00:00:00 it seems strange that the current date today is: Month: 05 Day: 07 Year: 2018 Then the value of str_date should equal the value of Date () What should I fix in the code to make it good Thank you From mckaygerhard at gmail.com Mon May 7 02:28:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 6 May 2018 20:28:05 -0400 Subject: [Gambas-user] problem with the CDate function In-Reply-To: <20180506224641.M79465@455.co.il> References: <20180502131231.M12297@455.co.il> <20180506224641.M79465@455.co.il> Message-ID: please somebocy that can added a example code to wiki, this due in future this kind of problem will be happned again and this important info will be forgoten! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-06 18:47 GMT-04:00 Mayost Sharon : > > > ---------- Original Message ----------- > From: Beno?t Minisini > To: Gambas Mailing List > Sent: Wed, 2 May 2018 15:46:44 +0200 > Subject: Re: [Gambas-user] problem with the CDate function > > > Le 02/05/2018 ? 15:38, Gianluigi a ?crit : > > > > > > > > > 2018-05-02 15:18 GMT+02:00 Mayost Sharon > > >: > > > > > > Hello > > > > > > Operating system: Fedora 27 64 BIT > > > Gambas 3.10.0 > > > > > > I have a problem with the CDate function when I run the example > that > > > appears in this > > > documentation: > > > > > > It takes me back one day > > > > > > I run: > > > > > > > > > Print CDate ("09/06/1972 01:45:12") > > > > > > And it returns to me: > > > > > > 09/05/1972 22:45:12 > > > > > > > > > You must use Date and not CDate which locates the UTC date [0]. > > > > > > Regards > > > Gianluigi > > > [0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time > > > > > > > No, it's not the problem. > > > > It's just that people must understand that CDate() interprets its > > argument as an UTC date, and that Str() (hence Print) converts a date > > into a local representation. > > > > So if you use CDate(), you must use CStr() to go back to the original > > string. Otherwise, use Val() and Str(). > > > > See the documentation about these functions. I think some non-american > > examples should be added to make things clearer. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List: > > https://lists.gambas-basic.org/listinfo/user > > > > Search the list: > > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > > Hosted by https://www.hostsharing.net > ------- End of Original Message ------- > > > Sorry > I do not understand > > If I run this code: > > Public Sub Main() > > Dim str_date As String > > str_date = "05/07/2018 00:00:00" > > > If Date() > Date(str_date) Then > Print "Date() Is > str_data" > Else > Print "Date() Is < Or = str_date" > Endif > > Print Date() > Print Date(str_date) > > End > > I get this output: > Date() Is > str_data > 05/07/2018 00:00:00 > 05/06/2018 00:00:00 > > > it seems strange that the current date today is: > Month: 05 > Day: 07 > Year: 2018 > > Then the value of str_date should equal the value of Date () > > What should I fix in the code to make it good > > Thank you > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon May 7 09:08:11 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 7 May 2018 09:08:11 +0200 Subject: [Gambas-user] problem with the CDate function In-Reply-To: References: <20180502131231.M12297@455.co.il> <20180506224641.M79465@455.co.il> Message-ID: It works correctly to me: Date() Is < Or = str_date 07/05/2018 00:00:00 07/05/2018 00:00:00 It could be a version problem. Read here[0] Regards Gianluigi [0] https://lists.gambas-basic.org/pipermail/user/2018-April/063637.html 2018-05-07 2:28 GMT+02:00 PICCORO McKAY Lenz : > please somebocy that can added a example code to wiki, > > this due in future this kind of problem will be happned again and this > important info will be forgoten! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-06 18:47 GMT-04:00 Mayost Sharon : > >> >> >> ---------- Original Message ----------- >> From: Beno?t Minisini >> To: Gambas Mailing List >> Sent: Wed, 2 May 2018 15:46:44 +0200 >> Subject: Re: [Gambas-user] problem with the CDate function >> >> > Le 02/05/2018 ? 15:38, Gianluigi a ?crit : >> > > >> > > >> > > 2018-05-02 15:18 GMT+02:00 Mayost Sharon > > > >: >> > > >> > > Hello >> > > >> > > Operating system: Fedora 27 64 BIT >> > > Gambas 3.10.0 >> > > >> > > I have a problem with the CDate function when I run the example >> that >> > > appears in this >> > > documentation: >> > > >> > > It takes me back one day >> > > >> > > I run: >> > > >> > > >> > > Print CDate ("09/06/1972 01:45:12") >> > > >> > > And it returns to me: >> > > >> > > 09/05/1972 22:45:12 >> > > >> > > >> > > You must use Date and not CDate which locates the UTC date [0]. >> > > >> > > Regards >> > > Gianluigi >> > > [0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time >> > > >> > >> > No, it's not the problem. >> > >> > It's just that people must understand that CDate() interprets its >> > argument as an UTC date, and that Str() (hence Print) converts a date >> > into a local representation. >> > >> > So if you use CDate(), you must use CStr() to go back to the original >> > string. Otherwise, use Val() and Str(). >> > >> > See the documentation about these functions. I think some non-american >> > examples should be added to make things clearer. >> > >> > Regards, >> > >> > -- >> > Beno?t Minisini >> > >> > -------------------------------------------------- >> > >> > This is the Gambas Mailing List: >> > https://lists.gambas-basic.org/listinfo/user >> > >> > Search the list: >> > https://lists.gambas-basic.org/cgi-bin/search.cgi >> > >> > Hosted by https://www.hostsharing.net >> ------- End of Original Message ------- >> >> >> Sorry >> I do not understand >> >> If I run this code: >> >> Public Sub Main() >> >> Dim str_date As String >> >> str_date = "05/07/2018 00:00:00" >> >> >> If Date() > Date(str_date) Then >> Print "Date() Is > str_data" >> Else >> Print "Date() Is < Or = str_date" >> Endif >> >> Print Date() >> Print Date(str_date) >> >> End >> >> I get this output: >> Date() Is > str_data >> 05/07/2018 00:00:00 >> 05/06/2018 00:00:00 >> >> >> it seems strange that the current date today is: >> Month: 05 >> Day: 07 >> Year: 2018 >> >> Then the value of str_date should equal the value of Date () >> >> What should I fix in the code to make it good >> >> Thank you >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Mon May 7 11:45:30 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 7 May 2018 11:45:30 +0200 Subject: [Gambas-user] Colors in a control Message-ID: Hello, I want to display data in a control line by line. Data that was sent in the color red and data that was received in green. Which control would be the right choice? Or does anyone have ideas for good alternatives - if possible with a code example? With kind regards Hans From rwe-sse at osnanet.de Mon May 7 12:54:32 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 7 May 2018 12:54:32 +0200 Subject: [Gambas-user] Colors in a control In-Reply-To: References: Message-ID: Am 07.05.2018 um 11:45 schrieb Hans Lehmann: > Hello, > I want to display data in a control line by line. Data that was sent in > the color red and data that was received in green. Which control would > be the right choice? Or does anyone have ideas for good alternatives - > if possible with a code example? > > With kind regards > > Hans > My first impulse says GridView with RichText, though simple Text can be coloured as well. How much data is there anyway? If you chose GridView, you might want to divide strings before inserting them. But GridView would have the advantage that it updates automagically (if you let it do that) and can grow "endless". Regards Rolf From g4mba5 at gmail.com Mon May 7 13:13:38 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 7 May 2018 13:13:38 +0200 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> Message-ID: <9a156b72-f3d0-de2b-2c34-fbf1a4129c7a@gmail.com> Le 06/05/2018 ? 23:19, Jussi Lahtinen a ?crit?: > I think the #3 is excellent idea. > I think it makes the debugging much easier (I have no clue what current > JIT does to the code), if the C code is generated that point in mind. > Moreover I think it would very well fill the place of the missing/broken > feature. If you want to keep some of the code in native Gambas and need > high performance, then you can write two programs (one native and one > translated to C) and communicate between pipe, DBUS or whatever. > > No need to have function level compilation. > > > Jussi > > The translated code will be stored inside the project executable, and you won't have an "untranslated" project and a "translated" project. Regards, -- Beno?t Minisini From bagonergi at gmail.com Mon May 7 16:22:44 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 7 May 2018 16:22:44 +0200 Subject: [Gambas-user] Colors in a control In-Reply-To: References: Message-ID: 2018-05-07 12:54 GMT+02:00 Rolf-Werner Eilert : > Am 07.05.2018 um 11:45 schrieb Hans Lehmann: > >> Hello, >> I want to display data in a control line by line. Data that was sent in >> the color red and data that was received in green. Which control would be >> the right choice? Or does anyone have ideas for good alternatives - if >> possible with a code example? >> >> With kind regards >> >> Hans >> >> > My first impulse says GridView with RichText, though simple Text can be > coloured as well. > > How much data is there anyway? If you chose GridView, you might want to > divide strings before inserting them. But GridView would have the advantage > that it updates automagically (if you let it do that) and can grow > "endless". > > Regards > Rolf > > Hi Hans and Rolf do you mean something like that? See attached project. Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestColors-0.0.1.tar.gz Type: application/gzip Size: 116795 bytes Desc: not available URL: From bagonergi at gmail.com Mon May 7 16:42:41 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 7 May 2018 16:42:41 +0200 Subject: [Gambas-user] Colors in a control In-Reply-To: References: Message-ID: 2018-05-07 16:22 GMT+02:00 Gianluigi : > > > 2018-05-07 12:54 GMT+02:00 Rolf-Werner Eilert : > >> Am 07.05.2018 um 11:45 schrieb Hans Lehmann: >> >>> Hello, >>> I want to display data in a control line by line. Data that was sent in >>> the color red and data that was received in green. Which control would be >>> the right choice? Or does anyone have ideas for good alternatives - if >>> possible with a code example? >>> >>> With kind regards >>> >>> Hans >>> >>> >> My first impulse says GridView with RichText, though simple Text can be >> coloured as well. >> >> How much data is there anyway? If you chose GridView, you might want to >> divide strings before inserting them. But GridView would have the advantage >> that it updates automagically (if you let it do that) and can grow >> "endless". >> >> Regards >> Rolf >> >> > Hi Hans and Rolf > do you mean something like that? > See attached project. > > Regards > Gianluigi > > I forgot to mention that I took the picture from here [0] Regards Gianluigi [0] https://it.wikipedia.org/wiki/Canale_alfa > -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon May 7 21:00:14 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 May 2018 22:00:14 +0300 Subject: [Gambas-user] problem with the CDate function In-Reply-To: References: <20180502131231.M12297@455.co.il> <20180506224641.M79465@455.co.il> Message-ID: Or just timezone... Jussi On Mon, May 7, 2018 at 10:08 AM, Gianluigi wrote: > It works correctly to me: > Date() Is < Or = str_date > 07/05/2018 00:00:00 > 07/05/2018 00:00:00 > It could be a version problem. > Read here[0] > > Regards > Gianluigi > [0] https://lists.gambas-basic.org/pipermail/user/2018-April/063637.html > > 2018-05-07 2:28 GMT+02:00 PICCORO McKAY Lenz : > >> please somebocy that can added a example code to wiki, >> >> this due in future this kind of problem will be happned again and this >> important info will be forgoten! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-05-06 18:47 GMT-04:00 Mayost Sharon : >> >>> >>> >>> ---------- Original Message ----------- >>> From: Beno?t Minisini >>> To: Gambas Mailing List >>> Sent: Wed, 2 May 2018 15:46:44 +0200 >>> Subject: Re: [Gambas-user] problem with the CDate function >>> >>> > Le 02/05/2018 ? 15:38, Gianluigi a ?crit : >>> > > >>> > > >>> > > 2018-05-02 15:18 GMT+02:00 Mayost Sharon >> > > >: >>> > > >>> > > Hello >>> > > >>> > > Operating system: Fedora 27 64 BIT >>> > > Gambas 3.10.0 >>> > > >>> > > I have a problem with the CDate function when I run the example >>> that >>> > > appears in this >>> > > documentation: >>> > > >>> > > It takes me back one day >>> > > >>> > > I run: >>> > > >>> > > >>> > > Print CDate ("09/06/1972 01:45:12") >>> > > >>> > > And it returns to me: >>> > > >>> > > 09/05/1972 22:45:12 >>> > > >>> > > >>> > > You must use Date and not CDate which locates the UTC date [0]. >>> > > >>> > > Regards >>> > > Gianluigi >>> > > [0] https://en.wikipedia.org/wiki/Coordinated_Universal_Time >>> > > >>> > >>> > No, it's not the problem. >>> > >>> > It's just that people must understand that CDate() interprets its >>> > argument as an UTC date, and that Str() (hence Print) converts a date >>> > into a local representation. >>> > >>> > So if you use CDate(), you must use CStr() to go back to the original >>> > string. Otherwise, use Val() and Str(). >>> > >>> > See the documentation about these functions. I think some non-american >>> > examples should be added to make things clearer. >>> > >>> > Regards, >>> > >>> > -- >>> > Beno?t Minisini >>> > >>> > -------------------------------------------------- >>> > >>> > This is the Gambas Mailing List: >>> > https://lists.gambas-basic.org/listinfo/user >>> > >>> > Search the list: >>> > https://lists.gambas-basic.org/cgi-bin/search.cgi >>> > >>> > Hosted by https://www.hostsharing.net >>> ------- End of Original Message ------- >>> >>> >>> Sorry >>> I do not understand >>> >>> If I run this code: >>> >>> Public Sub Main() >>> >>> Dim str_date As String >>> >>> str_date = "05/07/2018 00:00:00" >>> >>> >>> If Date() > Date(str_date) Then >>> Print "Date() Is > str_data" >>> Else >>> Print "Date() Is < Or = str_date" >>> Endif >>> >>> Print Date() >>> Print Date(str_date) >>> >>> End >>> >>> I get this output: >>> Date() Is > str_data >>> 05/07/2018 00:00:00 >>> 05/06/2018 00:00:00 >>> >>> >>> it seems strange that the current date today is: >>> Month: 05 >>> Day: 07 >>> Year: 2018 >>> >>> Then the value of str_date should equal the value of Date () >>> >>> What should I fix in the code to make it good >>> >>> Thank you >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon May 7 21:06:16 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 May 2018 22:06:16 +0300 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <9a156b72-f3d0-de2b-2c34-fbf1a4129c7a@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <9a156b72-f3d0-de2b-2c34-fbf1a4129c7a@gmail.com> Message-ID: Well, ideally the user wont need to see the C translation. Only when there is problems / discrepancy between compilation / execution of translated and untranslated code. So, some way to check the translation and compiler warnings from it, would be nice. Jussi On Mon, May 7, 2018 at 2:13 PM, Beno?t Minisini wrote: > Le 06/05/2018 ? 23:19, Jussi Lahtinen a ?crit : > >> I think the #3 is excellent idea. >> I think it makes the debugging much easier (I have no clue what current >> JIT does to the code), if the C code is generated that point in mind. >> Moreover I think it would very well fill the place of the missing/broken >> feature. If you want to keep some of the code in native Gambas and need >> high performance, then you can write two programs (one native and one >> translated to C) and communicate between pipe, DBUS or whatever. >> >> No need to have function level compilation. >> >> >> Jussi >> >> >> > The translated code will be stored inside the project executable, and you > won't have an "untranslated" project and a "translated" project. > > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon May 7 21:08:53 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 May 2018 22:08:53 +0300 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> Message-ID: Latest revision seems to have problems with datebox. IE no way to choose time in time only mode. See the attachment. Jussi On Sat, May 5, 2018 at 1:22 AM, Beno?t Minisini wrote: > Hi, > > I have just created the 3.11.0-rc1 git tag. > > Please download it at: > > https://gitlab.com/gambas/gambas/-/archive/v3.11.0-rc1/gamba > s-v3.11.0-rc1.tar.bz2, > > And report any compilation or installation problem. > > If no problem is found, it will become the official 3.11.0 version. > > I have already written the ChangeLog in the wiki. > > Once the 3.11.0 is (finally!) released, maybe we could search for a new > host for the website so that there is no dependency on SourceForge anymore. > > Best regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DateBoxBug-0.0.1.tar.gz Type: application/gzip Size: 11307 bytes Desc: not available URL: From g4mba5 at gmail.com Mon May 7 22:23:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 7 May 2018 22:23:12 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> Message-ID: Le 07/05/2018 ? 21:08, Jussi Lahtinen a ?crit?: > Latest revision seems to have problems with datebox. IE no way to choose > time in time only mode. See the attachment. > > > Jussi > It should be fixed in commit https://gitlab.com/gambas/gambas/commit/85376261ea84378c3af90839af23ae1f0f35690b. Regards, -- Beno?t Minisini From chrisml at deganius.de Tue May 8 08:23:00 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 8 May 2018 08:23:00 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> Message-ID: <2140c703-a9d4-4980-f0f5-1299b587f49d@deganius.de> Am 06.05.2018 um 20:22 schrieb Christof Thalhofer: > It looks very beautiful! :-) Ahm ... revert ... now I see that the stock icons have changed, but ... it's a wild mixture of flat and 3-dimensional icons. Please have a look at the attached image. This looks not very professional. Can we keep the old stock icons or can I define that my projects rely on the old stock icon set? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: 3.11.jpg Type: image/jpeg Size: 2441 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Tue May 8 13:43:22 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 May 2018 13:43:22 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <2140c703-a9d4-4980-f0f5-1299b587f49d@deganius.de> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> <2140c703-a9d4-4980-f0f5-1299b587f49d@deganius.de> Message-ID: <526fb098-2156-5ec3-19d7-d98855f051c1@gmail.com> Le 08/05/2018 ? 08:23, Christof Thalhofer a ?crit?: > Am 06.05.2018 um 20:22 schrieb Christof Thalhofer: > >> It looks very beautiful! :-) > > Ahm ... revert ... now I see that the stock icons have changed, but ... > it's a wild mixture of flat and 3-dimensional icons. Please have a look > at the attached image. > > This looks not very professional. > > Can we keep the old stock icons or can I define that my projects rely on > the old stock icon set? > > > Alles Gute > > Christof Thalhofer > What you show are not the stock icons. I think you didn't understand how icon themes work. The icon theme is defined by the Application.Theme property, that can take the following values: - A stock icon theme name ("gambas" or "gambas-mono" at the moment). - A desktop name ("kde5", "gnome", "xfce"...), meaning, the default theme associated with that desktop configuration. - A void string, meaning "the current desktop". - An icon theme name. The list is returned by the Stock.Themes property. If any theme has no icon associated with a requested icon name, then the "gambas" theme is used. This is why you get a mix of icons themes: you are using a system icon theme that has missing icons. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue May 8 14:09:54 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 May 2018 14:09:54 +0200 Subject: [Gambas-user] problem with the CDate function In-Reply-To: <20180506224641.M79465@455.co.il> References: <20180502131231.M12297@455.co.il> <20180506224641.M79465@455.co.il> Message-ID: <11ae7867-5644-5eec-c849-4b712eb9abaa@gmail.com> Le 07/05/2018 ? 00:47, Mayost Sharon a ?crit?: > > Sorry > I do not understand > > If I run this code: > > Public Sub Main() > > Dim str_date As String > > str_date = "05/07/2018 00:00:00" > > > If Date() > Date(str_date) Then Date() does not take a String, but a Date. So what you are writing is equivalent to: If Date(Now) > Date(CStr(str_date)) So your string 'str_date' is assumed to be an UTC date. As Date() extracts the date in the current time zone, Date(Now) may be different from Date("05/07/2018 00:00:00") if you are not in the UTC time zone. 1) Each time you have a date as a string, you must ask yourself what the timezone is. 2) Each time there is a conversion between Date and String, you must ask yourself which timezone is used. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue May 8 15:23:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 May 2018 15:23:44 +0200 Subject: [Gambas-user] Release of Gambas 3.11.0 Message-ID: OK, let's use that public holiday to (finally) release Gambas 3.11.0! So now you download the sources directly from GitLab: https://gitlab.com/gambas/gambas/-/archive/3.11.0/gambas-3.11.0.tar.bz2 There are hundred of bug fixes and new features since the last version. The full changelog is there: http://gambaswiki.org/wiki/doc/release/3.11.0 Enjoy it! -- Beno?t Minisini From mckaygerhard at gmail.com Tue May 8 16:01:02 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 8 May 2018 10:01:02 -0400 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: Message-ID: got an error: cc1: error: unrecognized command line option "-flto" Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-08 9:23 GMT-04:00 Beno?t Minisini : > OK, let's use that public holiday to (finally) release Gambas 3.11.0! > > So now you download the sources directly from GitLab: > > https://gitlab.com/gambas/gambas/-/archive/3.11.0/gambas-3.11.0.tar.bz2 > > There are hundred of bug fixes and new features since the last version. > The full changelog is there: > > http://gambaswiki.org/wiki/doc/release/3.11.0 > > Enjoy it! > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 8 16:07:49 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 May 2018 16:07:49 +0200 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: Message-ID: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> Le 08/05/2018 ? 16:01, PICCORO McKAY Lenz a ?crit?: > got an error: > > cc1: error: unrecognized command line option "-flto" > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > Did you get this error with 3.11.0-rc1? -- Beno?t Minisini From mckaygerhard at gmail.com Tue May 8 16:21:50 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 8 May 2018 10:21:50 -0400 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> References: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> Message-ID: with lasted 3.11.0 tag and stable branch, commit related its: https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c898e57df9e0fd49e496c sound like a misctake due recent "fashion" linux, https://gcc.gnu.org/onlinedocs/gccint/LTO-Overview.html LTO sounds great but..The current implementation only produces ?fat? objects, effectively doubling compilation time and increasing file sizes up to 5x the original size. This hides the problem that some tools, such as ar and nm, need to understand symbol tables of LTO sections. BUT later said: these tools were extended to use the plugin infrastructure, and with these problems solved, GCC will also support ?slim? objects consisting of the intermediate code alone. so in current time, many still suported linux (mostly embebed) cannot benefice from gambas runtime environment Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-08 10:07 GMT-04:00 Beno?t Minisini : > Le 08/05/2018 ? 16:01, PICCORO McKAY Lenz a ?crit : > >> got an error: >> >> cc1: error: unrecognized command line option "-flto" >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > Did you get this error with 3.11.0-rc1? > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 8 17:49:31 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 May 2018 17:49:31 +0200 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> Message-ID: Le 08/05/2018 ? 16:21, PICCORO McKAY Lenz a ?crit?: > with lasted 3.11.0 tag and stable branch, > > commit related its: > > https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c898e57df9e0fd49e496c > > sound like a misctake due recent "fashion" linux, > https://gcc.gnu.org/onlinedocs/gccint/LTO-Overview.html > > LTO sounds great but..The current implementation only produces ?fat? > objects, effectively doubling compilation time and increasing file sizes > up to 5x the original size. This hides the problem that some tools, such > as |ar| and |nm|, need to understand symbol tables of LTO sections. > > BUT later said: these tools were extended to use the plugin > infrastructure, and with these problems solved, GCC will also support > ?slim? objects consisting of the intermediate code alone. > > so in current time, many still suported linux (mostly embebed) cannot > benefice from gambas runtime environment > > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > OK, I found the problem. I will make a 3.11.1 release with a fix tomorrow I think. You should have tested the 3.11-rc1! -- Beno?t Minisini From mckaygerhard at gmail.com Tue May 8 17:56:50 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 8 May 2018 11:56:50 -0400 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> Message-ID: sorry benoit, was tested but no in all machines! busy time! next time i'll try to take more care and make more time to tests depply lat4er i'll report more for 3.11.1 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-08 11:49 GMT-04:00 Beno?t Minisini : > Le 08/05/2018 ? 16:21, PICCORO McKAY Lenz a ?crit : > >> with lasted 3.11.0 tag and stable branch, >> >> commit related its: >> >> https://gitlab.com/gambas/gambas/commit/17834b13a6b0699c999c >> 898e57df9e0fd49e496c >> >> sound like a misctake due recent "fashion" linux, >> https://gcc.gnu.org/onlinedocs/gccint/LTO-Overview.html >> >> LTO sounds great but..The current implementation only produces ?fat? >> objects, effectively doubling compilation time and increasing file sizes up >> to 5x the original size. This hides the problem that some tools, such as >> |ar| and |nm|, need to understand symbol tables of LTO sections. >> >> BUT later said: these tools were extended to use the plugin >> infrastructure, and with these problems solved, GCC will also support >> ?slim? objects consisting of the intermediate code alone. >> >> so in current time, many still suported linux (mostly embebed) cannot >> benefice from gambas runtime environment >> >> >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> OK, I found the problem. I will make a 3.11.1 release with a fix tomorrow > I think. > > You should have tested the 3.11-rc1! > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 8 18:02:52 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 May 2018 18:02:52 +0200 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> Message-ID: <037c6e0f-5b0c-8911-49eb-d449bb23cf32@gmail.com> Le 08/05/2018 ? 17:56, PICCORO McKAY Lenz a ?crit?: > sorry benoit, was tested but no in all machines! busy time! next time > i'll try to take more care and make more time to tests depply > > lat4er i'll report more for 3.11.1 > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > No problem. Anyway I was guilty of not making this flag conditional. But if you can test the fix once I made it, you are welcome! I won't be able to test it quickly myself. -- Beno?t Minisini From g4mba5 at gmail.com Tue May 8 18:46:00 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 May 2018 18:46:00 +0200 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: <037c6e0f-5b0c-8911-49eb-d449bb23cf32@gmail.com> References: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> <037c6e0f-5b0c-8911-49eb-d449bb23cf32@gmail.com> Message-ID: <71c8635a-20ef-96f4-6ca5-87ac5dae8607@gmail.com> Le 08/05/2018 ? 18:02, Beno?t Minisini a ?crit?: > Le 08/05/2018 ? 17:56, PICCORO McKAY Lenz a ?crit?: >> sorry benoit, was tested but no in all machines! busy time! next time >> i'll try to take more care and make more time to tests depply >> >> lat4er i'll report more for 3.11.1 >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > > No problem. Anyway I was guilty of not making this flag conditional. > > But if you can test the fix once I made it, you are welcome! I won't be > able to test it quickly myself. > Can you check the last commit on master if it compile on your older systems? https://gitlab.com/gambas/gambas/commit/14614f4e67f2f064d3f4a631e123c77a91c13850 Thanks in advance. -- Beno?t Minisini From bugtracker at gambaswiki.org Tue May 8 19:53:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 17:53:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- vuott VUOTT reported a new bug. Summary ------- Error with Commit 14614f4e Type : Bug Priority : High Gambas version : Master Product : Unknown Description ----------- In attached file the problems I get by installing Commit 14614f4e. regards vuott From bugtracker at gambaswiki.org Tue May 8 19:54:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 17:54:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- vuott VUOTT added an attachment: Big Error. From mckaygerhard at gmail.com Tue May 8 19:54:30 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 8 May 2018 13:54:30 -0400 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: <71c8635a-20ef-96f4-6ca5-87ac5dae8607@gmail.com> References: <059c4682-579a-7912-6ca8-a510d7ca16c6@gmail.com> <037c6e0f-5b0c-8911-49eb-d449bb23cf32@gmail.com> <71c8635a-20ef-96f4-6ca5-87ac5dae8607@gmail.com> Message-ID: 2018-05-08 12:46 GMT-04:00 Beno?t Minisini : > Can you check the last commit on master if it compile on your older > systems? > > https://gitlab.com/gambas/gambas/commit/14614f4e67f2f064d3f4 > a631e123c77a91c13850 > > applied patch https://gitlab.com/gambas/gambas/commit/14614f4e67f2f064d3f4a631e123c77a91c13850.diff compilING... ...CHYEKING uff many disabled modules.. ok seems works.. but i still chek more depends seems i need to tune my environment .. X-D > Thanks in advance. puff please! men! thanks to you.. gambas make life easy, we need a web framwork from gb.web/gb.util.web/gb.web.form whatever web gb are > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue May 8 21:14:34 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 19:14:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: do you clean property before make? as LTO documentation says, prepare big object to copilers and tools that understand it!.. in that case tools cannot understan amount of data.. From bugtracker at gambaswiki.org Tue May 8 21:21:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 19:21:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: do you clean property before make? as LTO documentation says, prepare big object to copilers and tools that understand it!.. in that case tools cannot understan amount of data.. From bugtracker at gambaswiki.org Tue May 8 21:21:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 19:21:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: do you clean property before make? as LTO documentation says, prepare big object to copilers and tools that understand it!.. in that case tools cannot understan amount of data.. From chrisml at deganius.de Tue May 8 21:49:22 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 8 May 2018 21:49:22 +0200 Subject: [Gambas-user] Gambas 3.11.0-rc1 In-Reply-To: <526fb098-2156-5ec3-19d7-d98855f051c1@gmail.com> References: <2cba984e-41ce-865f-eb18-bc2ce0e63249@gmail.com> <2b5c0146-6d67-76c9-2bda-7f0b3cf0fce9@deganius.de> <8e6b03a3-4ca5-648f-8423-46a2c7b5b7b8@gmail.com> <7d882d83-a7ed-cb0a-c60d-33a7b457112a@deganius.de> <79f3c7df-e25a-27c7-3bee-50ff763ba7b1@gmail.com> <98e89be7-4ae6-83f9-ed12-cb1fc20cc9d9@deganius.de> <20180505153758.GQ22921@highrise.localdomain> <20180505160122.GR22921@highrise.localdomain> <0782bb26-1d27-41c7-19e2-1efe1b07f803@deganius.de> <62212038-7c48-79dc-e8dc-30446e4a4ab5@deganius.de> <618be14a-b847-37d0-c183-07ad52ca0462@gmail.com> <2140c703-a9d4-4980-f0f5-1299b587f49d@deganius.de> <526fb098-2156-5ec3-19d7-d98855f051c1@gmail.com> Message-ID: <75c23e91-c511-b0d8-0448-11406df96e65@deganius.de> Am 08.05.2018 um 13:43 schrieb Beno?t Minisini: > What you show are not the stock icons. I think you didn't understand how > icon themes work. Yes. Thank you very much for your explanation, I must admit I never understood design-, icon- or theme configuration of XFCE and always fiddled around with it like a blind man in a bumper car. ;-) Maybe I have to work with it a bit. So it's nothing release critical ? fine. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bugtracker at gambaswiki.org Wed May 9 00:10:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 22:10:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- vuott VUOTT changed the state of the bug to: Abandoned. From bugtracker at gambaswiki.org Wed May 9 00:10:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 22:10:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- vuott VUOTT changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed May 9 01:16:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 23:16:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #4 by Beno?t MINISINI: What is that mess? No idea what both of you are talking about. Please use real english and don't just say "there is a problem"! From bugtracker at gambaswiki.org Wed May 9 01:37:51 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 08 May 2018 23:37:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1307: English spelling error In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1307&from=L21haW4- Comment #2 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/1701be8a34a4d07c64761d8def9b28af73c99294. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed May 9 03:47:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 01:47:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- PICCORO LENZ MCKAY changed the state of the bug to: Invalid. From bugtracker at gambaswiki.org Wed May 9 03:48:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 01:48:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #5 by PICCORO LENZ MCKAY: was invalid Benoit! i see the attached and seems do not property clean and re.configure, i'll test in one day better in newer and olther hardware.. From shordi at gmail.com Wed May 9 11:21:10 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 9 May 2018 11:21:10 +0200 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: Message-ID: Thank you very much for your work, Benoit, Toby and all colaborators!! It's awsome reading the change's list!! There are some new features that I was waiting since a long time. Best Regards 2018-05-08 15:23 GMT+02:00 Beno?t Minisini : > OK, let's use that public holiday to (finally) release Gambas 3.11.0! > > So now you download the sources directly from GitLab: > > https://gitlab.com/gambas/gambas/-/archive/3.11.0/gambas-3.11.0.tar.bz2 > > There are hundred of bug fixes and new features since the last version. > The full changelog is there: > > http://gambaswiki.org/wiki/doc/release/3.11.0 > > Enjoy it! > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 9 15:27:42 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 9 May 2018 09:27:42 -0400 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: Message-ID: hi Benoit, i reviewed the changelog agains the git commits.. pufff great work.. too many changes for a new version but i really worried due nothings lives forever.. and i noted that now this will be the last version that can be compiled and distributed in older linuxes, GAMBAS ARE GREAT, it's maybe one of the only software that still can be installed in any setup/environment, for that and due that i really really THANSK TO THE GAMBAS TEAM! tonight, i'll make a complete compilation in the debian lenny and squeeze of my machines...around 7 machines and, at woprk many more.. many machines at my work that thanks to Gambas *runs many little ad-hoc programs* i will explain me a lot: by example in my home, i have a framegrabber Zoran (ZR36120) that only works with the pauline olde linux module https://www.polyware.nl/~middelin/En/hob-v4l.html in the kernel 2.6.18 very very patched... so to make it work i setup a lenny debian (kernel 2.6.26) with kernel 2.6.18 ... AND NO! I NOT HAVE TIME TO MODIFY AND SETUP A NEW MACHINE, for what.. if everything are wroking fine! other important reason: in my country a new machine are *very very expensive! very!* -> Venezuela! -> Economic crisis! Here, some other great hardware only work with older linuxes.. due nobody today made good modules for.. inclusivelly some moder hardware never have good support only in specific linuxes.. i do not unse Guindows in any way,,. so i prefer use a older lnux and never guindows.. THAT SOME OF ONE OF MANY REASONS WHY i still use olders releases of linux.. SECURITY PATCHES: please i patched by my own! I HOPE IN TE FUTURE WILL UNDERSTAND THAT GAMBAS ITS NOT A HOBBY AND NEED A MORE "INDUSTRIAL" VIEW.. but for now, are GREAT! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-09 5:21 GMT-04:00 Jorge Carri?n : > Thank you very much for your work, Benoit, Toby and all colaborators!! > It's awsome reading the change's list!! > There are some new features that I was waiting since a long time. > > Best Regards > > > > 2018-05-08 15:23 GMT+02:00 Beno?t Minisini : > >> OK, let's use that public holiday to (finally) release Gambas 3.11.0! >> >> So now you download the sources directly from GitLab: >> >> https://gitlab.com/gambas/gambas/-/archive/3.11.0/gambas-3.11.0.tar.bz2 >> >> There are hundred of bug fixes and new features since the last version. >> The full changelog is there: >> >> http://gambaswiki.org/wiki/doc/release/3.11.0 >> >> Enjoy it! >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From github at martintribe.org Wed May 9 16:19:05 2018 From: github at martintribe.org (Joel Martin) Date: Wed, 09 May 2018 14:19:05 +0000 Subject: [Gambas-user] Line Input: distinguish between Eof and empty line In-Reply-To: References: Message-ID: I'm working on an interactive console program. I'm trying to figure out how to read one line at a time from stdin and exit when an EOF is sent (i.e. Ctrl-D in Linux). Check Eof() at the top of the loop doesn't work: Dim inLine As String While Not Eof() Line Input inLine Print "'" & inLine & "'" Wend The above ends up reading two lines at a time because Eof() waits for input. I haven't found a way to distinguish Null from empty string so the following doesn't work because it exits when an empty line is sent in addition to exiting on Ctrl-D (I'm I'm not even sure whether Line Input is returning a Null on EOF anyways): Dim inLine As String While True Line Input inLine If IsNull(inLine) Then Break EndIf Print "'" & inLine & "'" Wend It seems like checking the EndOfFile property on the stdin stream would be an option except I don't know how to refer to the stdin stream directly by name: Dim inLine As String While True Line Input inLine If Default.EndOfFile Then Break EndIf Print "'" & inLine & "'" Wend The above gives an error because of course Default is not recognized (it's a keyword, not a stream). I've search the gambas source to see if there is a name for the stdin stream but I haven't been able to find one. What's the right way to do line-by-line input with proper detection of EOF (vs empty line)? Thanks, Joel Martin (kanaka) -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 9 16:27:49 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 May 2018 16:27:49 +0200 Subject: [Gambas-user] Line Input: distinguish between Eof and empty line In-Reply-To: References: Message-ID: Le 09/05/2018 ? 16:19, Joel Martin a ?crit?: > I'm working on an interactive console program. I'm trying to figure out > how to read one line at a time from stdin and exit when an EOF is sent > (i.e. Ctrl-D in Linux). > > Check Eof() at the top of the loop doesn't work: > > Dim inLine As String > While Not Eof() > ? Line Input inLine > ? Print "'" & inLine & "'" > Wend > > > The above ends up reading two lines at a time because Eof() waits for input. > > I haven't found a way to distinguish Null from empty string so the > following doesn't work because it exits when an empty line is sent in > addition to exiting on Ctrl-D (I'm I'm not even sure whether Line Input > is returning a Null on EOF anyways): > > Dim inLine As String > While True > ? Line Input inLine > ? If IsNull(inLine) Then > ? ? Break > ? EndIf > ? Print "'" & inLine & "'" > Wend > > > It seems like checking the EndOfFile property on the stdin stream would > be an option except I don't know how to refer to the stdin stream > directly by name: > > Dim inLine As String > While True > ? Line Input inLine > ? If Default.EndOfFile Then > ? ? Break > ? EndIf > ? Print "'" & inLine & "'" > Wend > > > The above gives an error because of course Default is not recognized > (it's a keyword, not a stream). I've search the gambas source to see if > there is a name for the stdin stream but I haven't been able to find one. > > What's the right way to do line-by-line input with proper detection of > EOF (vs empty line)? > > Thanks, > > Joel Martin (kanaka) > "stdin" is File.In, so you have to check File.In.EndOfFile Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Wed May 9 22:19:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 9 May 2018 16:19:18 -0400 Subject: [Gambas-user] gb modules executed in backgroud ? Message-ID: if i code a gb.module that send a email, this are executed in backgroud? or the main (only) threath will wait until finished..? and no! i not tested.. yet! i ask first and i hear opinions! i tested already with sockets of course.. with a client and a daemon, but maybe there's a better way! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed May 9 22:54:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 20:54:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Gianluigi GRADASCHI reported a new bug. Summary ------- Error on compilation Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Error on compilation: Used the usual procedure to compile the master version all right up to the configuration: || || ALL COMPONENTS WILL BE COMPILED || Attached ' Make Install log' file Same behavior as vuott From bugtracker at gambaswiki.org Wed May 9 22:54:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 20:54:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Gianluigi GRADASCHI added an attachment: Make_Inst-Gambasdevel.log.tar.gz From bugtracker at gambaswiki.org Wed May 9 23:01:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 21:01:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: do you clean property the project before compiling? umm seems are in specific environment, i'll make some ajust and report feedback in some hours.. i'll try to reproduce,but please property clean after compiling From bm.530502 at gmail.com Wed May 9 23:06:38 2018 From: bm.530502 at gmail.com (Ingo) Date: Wed, 9 May 2018 23:06:38 +0200 Subject: [Gambas-user] WebDownload Message-ID: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> Does anyone have a simple example for the class WebDownload working with a WbView? Thanks in advance. Ingo From bagonergi at gmail.com Wed May 9 23:13:53 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 9 May 2018 23:13:53 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> Message-ID: 2018-05-09 23:06 GMT+02:00 Ingo : > Does anyone have a simple example for the class WebDownload working with a > WbView? > Thanks in advance. > Ingo > > seHelpBuilder in the Software farm is based on WebView Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 9 23:14:30 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 May 2018 23:14:30 +0200 Subject: [Gambas-user] Release of Gambas 3.11.1 Message-ID: Hi, I have released Gambas 3.11.1. It allows Gambas to compile again with older version of gcc that do not support link time optimization. Download it at: https://gitlab.com/gambas/gambas/-/archive/3.11.1/gambas-3.11.1.tar.bz2 Regards, -- Beno?t Minisini From bugtracker at gambaswiki.org Wed May 9 23:16:43 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 21:16:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #2 by Gianluigi GRADASCHI: I repeat: I used the same procedure used dozens of times and it always worked. Yes, of course I clean up before recompiling From mckaygerhard at gmail.com Wed May 9 23:24:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 9 May 2018 17:24:21 -0400 Subject: [Gambas-user] Release of Gambas 3.11.1 In-Reply-To: References: Message-ID: umm i think was too soon! but well tomorrow tonigh i'll make the test promised! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-09 17:14 GMT-04:00 Beno?t Minisini : > Hi, > > I have released Gambas 3.11.1. It allows Gambas to compile again with > older version of gcc that do not support link time optimization. > > Download it at: > > https://gitlab.com/gambas/gambas/-/archive/3.11.1/gambas-3.11.1.tar.bz2 > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed May 9 23:35:29 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 21:35:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #3 by vuott VUOTT: My same damn problem. From bugtracker at gambaswiki.org Wed May 9 23:49:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 21:49:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #6 by vuott VUOTT: Invalid ? I clean up, but when I launch "make", I obtained this: ...... ...... AR libgbx.a ar: `u' modifier ignored since `D' is the default (see `U') ar: libgbx_a-gb_error.o: plugin needed to handle lto object ar: libgbx_a-gbx_split.o: plugin needed to handle lto object ar: libgbx_a-gbx_exec_loop.o: plugin needed to handle lto object ar: libgbx_a-gb_hash.o: plugin needed to handle lto object ar: libgbx_a-gb_common.o: plugin needed to handle lto object ar: libgbx_a-gbx_exec.o: plugin needed to handle lto object ar: libgbx_a-gbx_exec_push.o: plugin needed to handle lto object ar: libgbx_a-gbx_exec_enum.o: plugin needed to handle lto object ar: libgbx_a-gbx_exec_pop.o: plugin needed to handle lto object ar: libgbx_a-gbx_exec_operator.o: plugin needed to handle lto object ar: libgbx_a-gbx_value.o: plugin needed to handle lto object ranlib: libgbx_a-gb_error.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_split.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_exec_loop.o: plugin needed to handle lto object ranlib: libgbx_a-gb_hash.o: plugin needed to handle lto object ranlib: libgbx_a-gb_common.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_exec.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_exec_push.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_exec_enum.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_exec_pop.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_exec_operator.o: plugin needed to handle lto object ranlib: libgbx_a-gbx_value.o: plugin needed to handle lto object CC gb_la-gbx_c_class.lo ...... et cetera ...plugin needed ? What ? From bugtracker at gambaswiki.org Wed May 9 23:52:03 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 21:52:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #7 by PICCORO LENZ MCKAY: your compiler seems produces LTO object (seems gcc recent) but your collector and linker does not support! that why i better promote to disable the lto linking From bugtracker at gambaswiki.org Wed May 9 23:57:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 21:57:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #8 by PICCORO LENZ MCKAY: also verified that LTO does not enabled from your compiler setting, with gcc-config! seems that some compilers auto-enabled if are recent! i'll mark with "more info" and i'll investigate this due affects me! PICCORO LENZ MCKAY changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Wed May 9 23:59:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 21:59:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: also verified that LTO does not enabled from your compiler setting, with gcc-config! seems that some compilers auto-enabled if are recent! i'll mark with "more info" and i'll investigate this due affects me! PICCORO LENZ MCKAY changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Thu May 10 00:45:31 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 09 May 2018 22:45:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #5 by Gianluigi GRADASCHI: I tried to compile the Master from Tar but I get the same error. Instead, compiling the gambas-85376261ea84378c3af90839af23ae1f0f35690b version all right. Just see what has changed in the procedure between the two versions. Gianluigi GRADASCHI changed the state of the bug to: Accepted. From chrisml at deganius.de Thu May 10 01:28:05 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 10 May 2018 01:28:05 +0200 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: References: Message-ID: <2bf9129f-9a15-4ef9-7fce-7938b147cdf7@deganius.de> Hello Beno?t, Am 08.05.2018 um 15:23 schrieb Beno?t Minisini: > Enjoy it! Yes, I do! Thank you so much! My firm is completely running with Linux thanks to Gambas. I like it a lot! This is such a great piece of software. I have a few software loves: Postgresql, TeX and Gambas! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bugtracker at gambaswiki.org Thu May 10 08:50:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 06:50:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #9 by Beno?t MINISINI: Apparently gcc claiming that it supports the " -ftlo" flag does not mean that it works... :-( Please provide information about your system! Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu May 10 08:50:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 06:50:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #6 by Beno?t MINISINI: Please provide information about your system! From bugtracker at gambaswiki.org Thu May 10 08:51:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 06:51:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Thu May 10 08:51:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 06:51:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Thu May 10 09:14:10 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 07:14:10 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #7 by Gianluigi GRADASCHI: I added system information Gianluigi GRADASCHI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu May 10 09:35:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 07:35:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #8 by Gianluigi GRADASCHI: Is that okay or should I attach a new file? From bm.530502 at gmail.com Thu May 10 09:38:25 2018 From: bm.530502 at gmail.com (Ingo) Date: Thu, 10 May 2018 09:38:25 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> Message-ID: <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> Am 09.05.2018 um 23:13 schrieb Gianluigi: > > > 2018-05-09 23:06 GMT+02:00 Ingo >: > > Does anyone have a simple example for the class WebDownload > working with a WbView? > Thanks in advance. > Ingo > > > seHelpBuilder in the Software farm is based on WebView > Regards > Gianluigi > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net Hi Gianluigi, thanks for that example. But I can't find the WebDownload --> http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload. Or did I miss something? Regards Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 10 09:57:09 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 10 May 2018 09:57:09 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> Message-ID: 2018-05-10 9:38 GMT+02:00 Ingo : > Am 09.05.2018 um 23:13 schrieb Gianluigi: > > > > 2018-05-09 23:06 GMT+02:00 Ingo : > >> Does anyone have a simple example for the class WebDownload working with >> a WbView? >> Thanks in advance. >> Ingo >> >> > seHelpBuilder in the Software farm is based on WebView > Regards > Gianluigi > > >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user > > Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > Hi Gianluigi, > thanks for that example. But I can't find the WebDownload --> > http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload. > > Or did I miss something? > > Regards > Ingo > > Ah ok, I attach the webbrowser project modified by Gianfry56 of the Italian forum. Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: WebBrowser.tar.gz Type: application/gzip Size: 32131 bytes Desc: not available URL: From bm.530502 at gmail.com Thu May 10 11:02:22 2018 From: bm.530502 at gmail.com (Ingo) Date: Thu, 10 May 2018 11:02:22 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> Message-ID: <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> Am 10.05.2018 um 09:57 schrieb Gianluigi: > > > 2018-05-10 9:38 GMT+02:00 Ingo >: > > Am 09.05.2018 um 23:13 schrieb Gianluigi: >> >> >> 2018-05-09 23:06 GMT+02:00 Ingo > >: >> >> Does anyone have a simple example for the class WebDownload >> working with a WbView? >> Thanks in advance. >> Ingo >> >> >> seHelpBuilder in the Software farm is based on WebView >> Regards >> Gianluigi >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted byhttps://www.hostsharing.net > Hi Gianluigi, > thanks for that example. But I can't find the WebDownload --> > http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload > . > > Or did I miss something? > > Regards > Ingo > > > Ah ok, I attach the webbrowser project modified by Gianfry56 of the > Italian forum. > Regards > Gianluigi > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net Thanks again. As I see the WebView_Download Event is triggered by the context menu i.e. "Save Image" is pressed. Maybe I don't understand the difference between this Event and the WebDownload class?! The goal is to download an image without the user having to intervene. Is it possible to force the download by code without user's interaction? Best regards Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 10 11:28:08 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 10 May 2018 11:28:08 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> Message-ID: 2018-05-10 11:02 GMT+02:00 Ingo : > Am 10.05.2018 um 09:57 schrieb Gianluigi: > > > > 2018-05-10 9:38 GMT+02:00 Ingo : > >> Am 09.05.2018 um 23:13 schrieb Gianluigi: >> >> >> >> 2018-05-09 23:06 GMT+02:00 Ingo : >> >>> Does anyone have a simple example for the class WebDownload working with >>> a WbView? >>> Thanks in advance. >>> Ingo >>> >>> >> seHelpBuilder in the Software farm is based on WebView >> Regards >> Gianluigi >> >> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user >> >> Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> Hi Gianluigi, >> thanks for that example. But I can't find the WebDownload --> >> http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload. >> >> Or did I miss something? >> >> Regards >> Ingo >> >> > Ah ok, I attach the webbrowser project modified by Gianfry56 of the > Italian forum. > Regards > Gianluigi > > >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user > > Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > Thanks again. > As I see the WebView_Download Event is triggered by the context menu i.e. > "Save Image" is pressed. > Maybe I don't understand the difference between this Event and the > WebDownload class?! > > The goal is to download an image without the user having to intervene. > > Is it possible to force the download by code without user's interaction? > > > Best regards > Ingo > > > I do not understand the question, can you explain me better? If you do not have a Download folder you can add this line of code to the Form_Open () procedure of WebBrowser: --------- If Not Exist(User.Home &/ "Download") Then Try Mkdir User.Home &/ "Download" --------- Regards Gianluigi > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bm.530502 at gmail.com Thu May 10 13:58:44 2018 From: bm.530502 at gmail.com (Ingo) Date: Thu, 10 May 2018 13:58:44 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> Message-ID: <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> Am 10.05.2018 um 11:28 schrieb Gianluigi: > > > 2018-05-10 11:02 GMT+02:00 Ingo >: > > Am 10.05.2018 um 09:57 schrieb Gianluigi: >> >> >> 2018-05-10 9:38 GMT+02:00 Ingo > >: >> >> Am 09.05.2018 um 23:13 schrieb Gianluigi: >>> >>> >>> 2018-05-09 23:06 GMT+02:00 Ingo >> >: >>> >>> Does anyone have a simple example for the class >>> WebDownload working with a WbView? >>> Thanks in advance. >>> Ingo >>> >>> >>> seHelpBuilder in the Software farm is based on WebView >>> Regards >>> Gianluigi >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> >>> Hosted by https://www.hostsharing.net >>> >>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> >>> Hosted byhttps://www.hostsharing.net >> Hi Gianluigi, >> thanks for that example. But I can't find the WebDownload --> >> http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload >> . >> >> Or did I miss something? >> >> Regards >> Ingo >> >> >> Ah ok, I attach the webbrowser project modified by Gianfry56 of >> the Italian forum. >> Regards >> Gianluigi >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted byhttps://www.hostsharing.net > Thanks again. > As I see the WebView_Download Event is triggered by the context > menu i.e. "Save Image" is pressed. > Maybe I don't understand the difference between this Event and the > WebDownload class?! > > The goal is to download an image without the user having to intervene. > > Is it possible to force the download by code without user's > interaction? > > > Best regards > Ingo > > > > I do not understand the question, can you explain me better? > If you do not have a Download folder you can add this line of code to > the Form_Open () procedure of WebBrowser: > --------- > If Not Exist(User.Home &/ "Download") Then Try Mkdir User.Home &/ > "Download" > --------- > Regards > Gianluigi > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net Hi Gianluigi, ok. I will try it. Saying we browse to the Gambas-Web-Page - http://gambas.sourceforge.net/en/main.html# Among other things we see the Donate-Logo. Clicking the right mouse button over the the logo I'm able to save this picture. That means user's interaction. But what I do, is to give the webpage to an htmldocument (htmldoc.FromString(WebView.HTML)). That works. Then parsing the htmldoc with the gb.xml.html component to find the source of the picture. Here it is "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" and download this picture directly. Finding the link is not the problem. But downloading the picture. And here I thought I could use WebDownload. Hope that makes it a bit clearer. Best regards Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 10 15:15:30 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 10 May 2018 15:15:30 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> Message-ID: 2018-05-10 13:58 GMT+02:00 Ingo : > Am 10.05.2018 um 11:28 schrieb Gianluigi: > > > > 2018-05-10 11:02 GMT+02:00 Ingo : > >> Am 10.05.2018 um 09:57 schrieb Gianluigi: >> >> >> >> 2018-05-10 9:38 GMT+02:00 Ingo : >> >>> Am 09.05.2018 um 23:13 schrieb Gianluigi: >>> >>> >>> >>> 2018-05-09 23:06 GMT+02:00 Ingo : >>> >>>> Does anyone have a simple example for the class WebDownload working >>>> with a WbView? >>>> Thanks in advance. >>>> Ingo >>>> >>>> >>> seHelpBuilder in the Software farm is based on WebView >>> Regards >>> Gianluigi >>> >>> >>>> -------------------------------------------------- >>>> >>>> This is the Gambas Mailing List: >>>> https://lists.gambas-basic.org/listinfo/user >>>> >>>> Search the list: >>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>> >>>> Hosted by https://www.hostsharing.net >>>> >>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> Hi Gianluigi, >>> thanks for that example. But I can't find the WebDownload --> >>> http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webdownload. >>> >>> Or did I miss something? >>> >>> Regards >>> Ingo >>> >>> >> Ah ok, I attach the webbrowser project modified by Gianfry56 of the >> Italian forum. >> Regards >> Gianluigi >> >> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user >> >> Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> Thanks again. >> As I see the WebView_Download Event is triggered by the context menu i.e. >> "Save Image" is pressed. >> Maybe I don't understand the difference between this Event and the >> WebDownload class?! >> >> The goal is to download an image without the user having to intervene. >> >> Is it possible to force the download by code without user's interaction? >> >> >> Best regards >> Ingo >> >> >> > I do not understand the question, can you explain me better? > If you do not have a Download folder you can add this line of code to the > Form_Open () procedure of WebBrowser: > --------- > If Not Exist(User.Home &/ "Download") Then Try Mkdir User.Home &/ > "Download" > --------- > Regards > Gianluigi > > >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user > > Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > Hi Gianluigi, > ok. I will try it. > > Saying we browse to the Gambas-Web-Page - http://gambas.sourceforge.net/ > en/main.html# > > Among other things we see the Donate-Logo. Clicking the right mouse button > over the the logo I'm able to save this picture. That means user's > interaction. > > But what I do, is to give the webpage to an htmldocument > (htmldoc.FromString(WebView.HTML)). > That works. > > Then parsing the htmldoc with the gb.xml.html component to find the source > of the picture. Here it is "https://www.paypal.com/en_GB/ > i/btn/btn_donate_LG.gif" > and download this > picture directly. > Finding the link is not the problem. But downloading the picture. > And here I thought I could use WebDownload. > > Hope that makes it a bit clearer. > > Best regards > Ingo > > > Are you looking for this [0]? [0] https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html Regards Gianluigi > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 10 15:26:54 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 10 May 2018 09:26:54 -0400 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> Message-ID: 2018-05-10 9:15 GMT-04:00 Gianluigi : > > Are you looking for this [0]? > > [0] https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html > > i remember that mails-- yes redirection are not handled! > Regards > Gianluigi > > >> >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu May 10 16:53:49 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 14:53:49 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #10 by vuott VUOTT: [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=4.15.0-20-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Cleanlooks Language=it_IT.UTF-8 Memory=3945M [Libraries] Cairo=libcairo.so.2.11400.6 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-otw6gN4wXq,guid=3ecaec7a66ce61ff10a347715af430f7 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=it GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= INSIDE_NEMO_PYTHON= LANG=it_IT.UTF-8 LANGUAGE=it LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1178,unix/:/tmp/.ICE-unix/1178 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1236 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.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=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 vuott VUOTT changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu May 10 17:01:03 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 15:01:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #11 by vuott VUOTT: Addit: Linux version 4.15.0-20-generic (buildd at lgw01-amd64-020) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #21~16.04.1-Ubuntu SMP Wed Apr 25 02:42:04 UTC 2018 From bugtracker at gambaswiki.org Thu May 10 17:24:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 15:24:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #12 by Beno?t MINISINI: Thanks. Note that you have the system information textbox on top of the page for that. Can you try the latest master commit and see if it works for you? Normally I will get the result with the automatic packaging of Gambas on Ubuntu servers (that raises the same error on Ubuntu 16.10), but not immediately. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bm.530502 at gmail.com Thu May 10 17:56:44 2018 From: bm.530502 at gmail.com (Ingo) Date: Thu, 10 May 2018 17:56:44 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> Message-ID: <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> Am 10.05.2018 um 15:15 schrieb Gianluigi: > Hi Gianluigi, > > ok. I will try it. > > Saying we browse to the Gambas-Web-Page - > http://gambas.sourceforge.net/en/main.html# > > > Among other things we see the Donate-Logo. Clicking the right > mouse button over the the logo I'm able to save this picture. That > means user's interaction. > > But what I do, is to give the webpage to an htmldocument > (htmldoc.FromString(WebView.HTML)). > That works. > > Then parsing the htmldoc with the gb.xml.html component to find > the source of the picture. Here it is > "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" > and > download this picture directly. > Finding the link is not the problem. But downloading the picture. > And here I thought I could use WebDownload. > > Hope that makes it a bit clearer. > > Best regards > Ingo > > > > Are you looking for this [0]? > > [0] https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html > > Regards > Gianluigi > > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net Thank you for the example. Did you try it? It does not work :-( First I have to declare Downlad as New WebDownload and then it hangs in the While Download.Progress loop. I started the module from FMain with "picLoader.Main()" No idea what happens??? === picLoader.Module==== Private Download As New WebDownload??? ??? ??? ??? ??? ' declare as New WebDownload because I get a "Null"-Object Public Sub Main() ? Dim hForm As Form ? Dim hWebview As WebView ? hForm = New Form As "Form1" ? hWebview = New WebView(hForm) As "Webview1" ? hWebview.Url = "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" ? 'First wait for Url to load ? While hWebview.Progress < 1 ??? Wait 0.1 ? Wend ? 'Then wait for download to finish ? While Download.Progress < 1 ??? Print Download.Progress??? ??? ??? ??? ??? ??? ??? ' here it loops! ??? Wait 0.1 ? Wend ? 'Wait 3 ? Select Case Download.Status ??? Case WebDownload.Cancelled ????? Print "Cancelled" ??? Case WebDownload.Error ????? Print "Error: " & Download.ErrorText ??? Case WebDownload.Finished ????? Print "Downloaded " & Download.Size & " bytes." ? End Select End Public Sub Webview1_Download(thisDownload As WebDownload) ? ' We shouldn't use Wait in an event handler, so we pass the Download object into the module scope ? Download = thisDownload ? Download.Path = Application.Path &/ "pic.png" End Regards Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu May 10 18:24:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 16:24:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #13 by vuott VUOTT: > Note that you have the system information textbox on top of the page for that. Opss... I'm sorry. > Can you try the latest master commit and see if it works for you? Yes, it works ! So, at moment I have Commit d552008 (master). Thank you. vuott VUOTT changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu May 10 18:24:29 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 16:24:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- vuott VUOTT changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Thu May 10 19:47:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 10 May 2018 17:47:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1309: Error with Commit 14614f4e In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1309&from=L21haW4- Comment #14 by PICCORO LENZ MCKAY: this its very rare, seems that recent versions of the compilers have the linker by default with LTO ? i was confirmed same result only with debian 9, but i cannot understand at all the autotools rules to configure detection of.. From mckaygerhard at gmail.com Thu May 10 21:12:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 10 May 2018 15:12:00 -0400 Subject: [Gambas-user] Release of Gambas 3.11.0 In-Reply-To: <2bf9129f-9a15-4ef9-7fce-7938b147cdf7@deganius.de> References: <2bf9129f-9a15-4ef9-7fce-7938b147cdf7@deganius.de> Message-ID: seems now in debian for recent version need the postgresql-server-dev package and not only the libpq-dev, i have following error when compiles and also have all postgresql headers available.. i'll investigate more.. configure:4102: i586-linux-gnu-gcc -E -g -Os -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -fomit-frame-poi nter -falign-functions=0 -falign-jumps=0 -falign-loops=0 conftest.c configure:4102: $? = 0 configure:4116: i586-linux-gnu-gcc -E -g -Os -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow -fomit-frame-poi nter -falign-functions=0 -falign-jumps=0 -falign-loops=0 conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory #include ^ compilation terminated. configure:4116: $? = 1 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-09 19:28 GMT-04:00 Christof Thalhofer : > Hello Beno?t, > > Am 08.05.2018 um 15:23 schrieb Beno?t Minisini: > > > Enjoy it! > > Yes, I do! Thank you so much! My firm is completely running with Linux > thanks to Gambas. I like it a lot! This is such a great piece of software. > > I have a few software loves: Postgresql, TeX and Gambas! > > :-) > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 10 22:48:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 10 May 2018 16:48:05 -0400 Subject: [Gambas-user] OPenABS segfault when try to run in 3.11.0 Message-ID: well still need test the last commit fix for LTO but testing recent compilation for 3.11.X i got a problem, loading the www.openasb.com/softwareshtm.php software made in gambgas.. when try to run the sources got a crash inmediatelly! i not still test all of my proyects (i work with many hardware, so ODBC and SERIAL will be tested for sure) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 10 23:47:28 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 10 May 2018 23:47:28 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> Message-ID: 2018-05-10 17:56 GMT+02:00 Ingo : > Am 10.05.2018 um 15:15 schrieb Gianluigi: > > Hi Gianluigi, > >> ok. I will try it. >> >> Saying we browse to the Gambas-Web-Page - http://gambas.sourceforge.net/ >> en/main.html# >> >> Among other things we see the Donate-Logo. Clicking the right mouse >> button over the the logo I'm able to save this picture. That means user's >> interaction. >> >> But what I do, is to give the webpage to an htmldocument >> (htmldoc.FromString(WebView.HTML)). >> That works. >> >> Then parsing the htmldoc with the gb.xml.html component to find the >> source of the picture. Here it is "https://www.paypal.com/en_GB/ >> i/btn/btn_donate_LG.gif" >> and download this >> picture directly. >> Finding the link is not the problem. But downloading the picture. >> And here I thought I could use WebDownload. >> >> Hope that makes it a bit clearer. >> >> Best regards >> Ingo >> >> >> > Are you looking for this [0]? > > [0] https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html > > Regards > Gianluigi > > >> >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user > > Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > Thank you for the example. > Did you try it? > > It does not work :-( > > First I have to declare Downlad as New WebDownload and then it hangs in > the While Download.Progress loop. > I started the module from FMain with "picLoader.Main()" > > No idea what happens??? > > > === picLoader.Module==== > Private Download As New WebDownload ' declare as New > WebDownload because I get a "Null"-Object > > Public Sub Main() > > Dim hForm As Form > Dim hWebview As WebView > > hForm = New Form As "Form1" > hWebview = New WebView(hForm) As "Webview1" > > hWebview.Url = "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" > > > 'First wait for Url to load > While hWebview.Progress < 1 > Wait 0.1 > Wend > 'Then wait for download to finish > While Download.Progress < 1 > Print Download.Progress ' here it loops! > Wait 0.1 > Wend > 'Wait 3 > Select Case Download.Status > Case WebDownload.Cancelled > Print "Cancelled" > Case WebDownload.Error > Print "Error: " & Download.ErrorText > Case WebDownload.Finished > Print "Downloaded " & Download.Size & " bytes." > End Select > > End > > Public Sub Webview1_Download(thisDownload As WebDownload) > > ' We shouldn't use Wait in an event handler, so we pass the Download > object into the module scope > Download = thisDownload > Download.Path = Application.Path &/ "pic.png" > > End > > Regards > Ingo > > I'm sorry but I'm not able We hope in Lee Regards Gianluigi > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Fri May 11 09:53:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 11 May 2018 07:53:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1310: Error on compilation In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1310&from=L21haW4- Comment #9 by Gianluigi GRADASCHI: Successfully installed (in the usual way) Gambas=3.10.90 d552008 (master) Thank you Gianluigi GRADASCHI changed the state of the bug to: Fixed. From bm.530502 at gmail.com Fri May 11 16:17:47 2018 From: bm.530502 at gmail.com (M Be) Date: Fri, 11 May 2018 16:17:47 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> Message-ID: No problem. Thanks for your help, though. I found a workaround with HttpClient for this application case. @Lee: if you are reading this, maybe you have an explanation/solution Best regards Ingo 2018-05-10 23:47 GMT+02:00 Gianluigi : > > > 2018-05-10 17:56 GMT+02:00 Ingo : > >> Am 10.05.2018 um 15:15 schrieb Gianluigi: >> >> Hi Gianluigi, >> >>> ok. I will try it. >>> >>> Saying we browse to the Gambas-Web-Page - http://gambas.sourceforge.net/ >>> en/main.html# >>> >>> Among other things we see the Donate-Logo. Clicking the right mouse >>> button over the the logo I'm able to save this picture. That means user's >>> interaction. >>> >>> But what I do, is to give the webpage to an htmldocument >>> (htmldoc.FromString(WebView.HTML)). >>> That works. >>> >>> Then parsing the htmldoc with the gb.xml.html component to find the >>> source of the picture. Here it is "https://www.paypal.com/en_GB/ >>> i/btn/btn_donate_LG.gif" >>> and download >>> this picture directly. >>> Finding the link is not the problem. But downloading the picture. >>> And here I thought I could use WebDownload. >>> >>> Hope that makes it a bit clearer. >>> >>> Best regards >>> Ingo >>> >>> >>> >> Are you looking for this [0]? >> >> [0] https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html >> >> Regards >> Gianluigi >> >> >>> >>> >>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user >> >> Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> Thank you for the example. >> Did you try it? >> >> It does not work :-( >> >> First I have to declare Downlad as New WebDownload and then it hangs in >> the While Download.Progress loop. >> I started the module from FMain with "picLoader.Main()" >> >> No idea what happens??? >> >> >> === picLoader.Module==== >> Private Download As New WebDownload ' declare as New >> WebDownload because I get a "Null"-Object >> >> Public Sub Main() >> >> Dim hForm As Form >> Dim hWebview As WebView >> >> hForm = New Form As "Form1" >> hWebview = New WebView(hForm) As "Webview1" >> >> hWebview.Url = "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" >> >> >> 'First wait for Url to load >> While hWebview.Progress < 1 >> Wait 0.1 >> Wend >> 'Then wait for download to finish >> While Download.Progress < 1 >> Print Download.Progress ' here it loops! >> Wait 0.1 >> Wend >> 'Wait 3 >> Select Case Download.Status >> Case WebDownload.Cancelled >> Print "Cancelled" >> Case WebDownload.Error >> Print "Error: " & Download.ErrorText >> Case WebDownload.Finished >> Print "Downloaded " & Download.Size & " bytes." >> End Select >> >> End >> >> Public Sub Webview1_Download(thisDownload As WebDownload) >> >> ' We shouldn't use Wait in an event handler, so we pass the Download >> object into the module scope >> Download = thisDownload >> Download.Path = Application.Path &/ "pic.png" >> >> End >> >> Regards >> Ingo >> >> > I'm sorry but I'm not able > We hope in Lee > Regards > Gianluigi > > > >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Fri May 11 16:20:03 2018 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 11 May 2018 15:20:03 +0100 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> Message-ID: <1e2ee969-af6b-2d1a-80b1-270958a62058@cogier.com> On 11/05/18 15:17, M Be wrote: > No problem. Thanks for your help, though. > I found a workaround with HttpClient for this application case. > > @Lee:? if you are reading this, maybe you have an explanation/solution > > Best regards > Ingo > > 2018-05-10 23:47 GMT+02:00 Gianluigi >: > > > > 2018-05-10 17:56 GMT+02:00 Ingo >: > > Am 10.05.2018 um 15:15 schrieb Gianluigi: >> Hi Gianluigi, >> >> ok. I will try it. >> >> Saying we browse to the Gambas-Web-Page - >> http://gambas.sourceforge.net/en/main.html# >> >> >> Among other things we see the Donate-Logo. Clicking the >> right mouse button over the the logo I'm able to save >> this picture. That means user's interaction. >> >> But what I do, is to give the webpage to an htmldocument >> (htmldoc.FromString(WebView.HTML)). >> That works. >> >> Then parsing the htmldoc with the gb.xml.html component >> to find the source of the picture. Here it is >> "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" >> >> and download this picture directly. >> Finding the link is not the problem. But downloading the >> picture. >> And here I thought I could use WebDownload. >> >> Hope that makes it a bit clearer. >> >> Best regards >> Ingo >> >> >> >> Are you looking for this [0]? >> >> [0] >> https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html >> >> >> Regards >> Gianluigi >> >> >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted byhttps://www.hostsharing.net > Thank you for the example. > Did you try it? > > It does not work :-( > > First I have to declare Downlad as New WebDownload and then it > hangs in the While Download.Progress loop. > I started the module from FMain with "picLoader.Main()" > > No idea what happens??? > > > === picLoader.Module==== > Private Download As New WebDownload ??? ??? ' declare as New > WebDownload because I get a "Null"-Object > > Public Sub Main() > > ? Dim hForm As Form > ? Dim hWebview As WebView > > ? hForm = New Form As "Form1" > ? hWebview = New WebView(hForm) As "Webview1" > > ? hWebview.Url = > "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" > > > ? 'First wait for Url to load > ? While hWebview.Progress < 1 > ??? Wait 0.1 > ? Wend > ? 'Then wait for download to finish > ? While Download.Progress < 1 > ??? Print Download.Progress ??? ??? ' here it loops! > ??? Wait 0.1 > ? Wend > ? 'Wait 3 > ? Select Case Download.Status > ??? Case WebDownload.Cancelled > ????? Print "Cancelled" > ??? Case WebDownload.Error > ????? Print "Error: " & Download.ErrorText > ??? Case WebDownload.Finished > ????? Print "Downloaded " & Download.Size & " bytes." > ? End Select > > End > > Public Sub Webview1_Download(thisDownload As WebDownload) > > ? ' We shouldn't use Wait in an event handler, so we pass the > Download object into the module scope > ? Download = thisDownload > ? Download.Path = Application.Path &/ "pic.png" > > End > > Regards > Ingo > > > I'm sorry but I'm not able > We hope in Lee > Regards > Gianluigi > > ?Try the attached > ??? ??? Charlie > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GetWebStuff.tar.gz Type: application/gzip Size: 13185 bytes Desc: not available URL: From bagonergi at gmail.com Fri May 11 17:19:37 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 11 May 2018 17:19:37 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: <1e2ee969-af6b-2d1a-80b1-270958a62058@cogier.com> References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> <1e2ee969-af6b-2d1a-80b1-270958a62058@cogier.com> Message-ID: 2018-05-11 16:20 GMT+02:00 Charlie Ogier : > On 11/05/18 15:17, M Be wrote: > > No problem. Thanks for your help, though. > I found a workaround with HttpClient for this application case. > > @Lee: if you are reading this, maybe you have an explanation/solution > > Best regards > Ingo > > 2018-05-10 23:47 GMT+02:00 Gianluigi : > >> >> >> 2018-05-10 17:56 GMT+02:00 Ingo : >> >>> Am 10.05.2018 um 15:15 schrieb Gianluigi: >>> >>> Hi Gianluigi, >>> >>>> ok. I will try it. >>>> >>>> Saying we browse to the Gambas-Web-Page - >>>> http://gambas.sourceforge.net/en/main.html# >>>> >>>> Among other things we see the Donate-Logo. Clicking the right mouse >>>> button over the the logo I'm able to save this picture. That means user's >>>> interaction. >>>> >>>> But what I do, is to give the webpage to an htmldocument >>>> (htmldoc.FromString(WebView.HTML)). >>>> That works. >>>> >>>> Then parsing the htmldoc with the gb.xml.html component to find the >>>> source of the picture. Here it is "https://www.paypal.com/en_GB/ >>>> i/btn/btn_donate_LG.gif" >>>> and download >>>> this picture directly. >>>> Finding the link is not the problem. But downloading the picture. >>>> And here I thought I could use WebDownload. >>>> >>>> Hope that makes it a bit clearer. >>>> >>>> Best regards >>>> Ingo >>>> >>>> >>>> >>> Are you looking for this [0]? >>> >>> [0] https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html >>> >>> Regards >>> Gianluigi >>> >>> >>>> >>>> >>>> >>>> >>>> >>>> -------------------------------------------------- >>>> >>>> This is the Gambas Mailing List: >>>> https://lists.gambas-basic.org/listinfo/user >>>> >>>> Search the list: >>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>> >>>> Hosted by https://www.hostsharing.net >>>> >>>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> Thank you for the example. >>> Did you try it? >>> >>> It does not work :-( >>> >>> First I have to declare Downlad as New WebDownload and then it hangs in >>> the While Download.Progress loop. >>> I started the module from FMain with "picLoader.Main()" >>> >>> No idea what happens??? >>> >>> >>> === picLoader.Module==== >>> Private Download As New WebDownload ' declare as New >>> WebDownload because I get a "Null"-Object >>> >>> Public Sub Main() >>> >>> Dim hForm As Form >>> Dim hWebview As WebView >>> >>> hForm = New Form As "Form1" >>> hWebview = New WebView(hForm) As "Webview1" >>> >>> hWebview.Url = "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" >>> >>> >>> 'First wait for Url to load >>> While hWebview.Progress < 1 >>> Wait 0.1 >>> Wend >>> 'Then wait for download to finish >>> While Download.Progress < 1 >>> Print Download.Progress ' here it loops! >>> Wait 0.1 >>> Wend >>> 'Wait 3 >>> Select Case Download.Status >>> Case WebDownload.Cancelled >>> Print "Cancelled" >>> Case WebDownload.Error >>> Print "Error: " & Download.ErrorText >>> Case WebDownload.Finished >>> Print "Downloaded " & Download.Size & " bytes." >>> End Select >>> >>> End >>> >>> Public Sub Webview1_Download(thisDownload As WebDownload) >>> >>> ' We shouldn't use Wait in an event handler, so we pass the Download >>> object into the module scope >>> Download = thisDownload >>> Download.Path = Application.Path &/ "pic.png" >>> >>> End >>> >>> Regards >>> Ingo >>> >>> >> I'm sorry but I'm not able >> We hope in Lee >> Regards >> Gianluigi >> >> Try the attached >> > Charlie > Hi Charlie, congratulations, smart solution :-) Regards Gianluigi > >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user > > Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri May 11 18:09:17 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 11 May 2018 12:09:17 -0400 Subject: [Gambas-user] WebDownload In-Reply-To: References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> Message-ID: On 05/11/2018 10:17 AM, M Be wrote: > No problem. Thanks for your help, though. > I found a workaround with HttpClient for this application case. > > @Lee:? if you are reading this, maybe you have an explanation/solution > > Best regards > Ingo The reason using WebView/WebDownload isn't working is because setting Webview.Url doesn't trigger a download of the image file. It loads the image, for viewing, as if it is embedded within a webpage inside an IMG tag. You can see what I mean if you print the HTML as in: 'First wait for Url to load While hWebview.Progress < 1 Wait 0.1 Wend Print hWebview.HTML 'Set breakpoint here And, since a download is not triggered, the WebView.Download event is also not triggered. For fetching images, it makes more sense to simply use HttpClient as Charlie has done. -- Lee From bugtracker at gambaswiki.org Fri May 11 19:42:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 11 May 2018 17:42:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName Type : Bug Priority : Medium Gambas version : Master Product : QT4 component Description ----------- hi benoit, i compiled the qt4 component with squeeze by backporting qt4 4.7.X but gambas 3.10 compiles agains qt 4.6 but gambas 3.11 not! in my embebed ARM lenny devices only can use 4.6.3 commit related said that it's due qt5 bug related (i describe the bug below too why) https://gitlab.com/gambas/gambas/commit/b9de5d027cf342f728be95c4067ccdc1d20cd866 /usr/bin/moc-qt4 -o main_moc.cpp main.h CXX gb_qt4_la-main_moc.lo CXX gb_qt4_la-main.lo CXX gb_qt4_la-CFont.lo CFont.cpp: In function ?void set_font_from_string(CFONT*, QString&)?: CFont.cpp:136: error: ?class QFont? has no member named ?setStyleName? CFont.cpp:153: error: ?class QFont? has no member named ?setStyleName? make[6]: *** [gb_qt4_la-CFont.lo] Error 1 make[6]: se sale del directorio `/debiandat/debianwork/gambas/gambas11/gambas3-3.11.0/gb.qt4/src' QFont::setStyleName() has begun introducing side-effects in recent Qt versions. ok ok, can easyle overrides the other font properties, calling setStyleName("Bold Italic") easyle set Bold and Italic to normal font but has others effects side: has inconsistent toString() and key() representations will ignore setBold(false) and setItalic(false) so it not make sense overstyling so then a needed macro here must be put to detect qt4 >> 4.8 proposet patch in gitlab already made it! https://gitlab.com/gambas/gambas/merge_requests/19 System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From bugtracker at gambaswiki.org Fri May 11 19:47:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 11 May 2018 17:47:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: NOTE the bug fis for qt5 are not property in any case, due the setFontStyle must be after the "set"'s calls From bm.530502 at gmail.com Fri May 11 20:31:56 2018 From: bm.530502 at gmail.com (Ingo) Date: Fri, 11 May 2018 20:31:56 +0200 Subject: [Gambas-user] WebDownload In-Reply-To: <1e2ee969-af6b-2d1a-80b1-270958a62058@cogier.com> References: <310bfe24-016d-8e3e-0e4d-39d1a9f19455@gmail.com> <6ba389b3-7f02-57d6-16b0-cb410049a422@gmail.com> <32f46988-fcf9-51de-2856-574fcc7fa740@gmail.com> <941cd260-e6f2-9b1a-14f1-0ff0548a73db@gmail.com> <6bf2c7ae-eb7b-05b2-b296-2341029c65b2@gmail.com> <1e2ee969-af6b-2d1a-80b1-270958a62058@cogier.com> Message-ID: Am 11.05.2018 um 16:20 schrieb Charlie Ogier: > On 11/05/18 15:17, M Be wrote: >> No problem. Thanks for your help, though. >> I found a workaround with HttpClient for this application case. >> >> @Lee:? if you are reading this, maybe you have an explanation/solution >> >> Best regards >> Ingo >> >> 2018-05-10 23:47 GMT+02:00 Gianluigi > >: >> >> >> >> 2018-05-10 17:56 GMT+02:00 Ingo > >: >> >> Am 10.05.2018 um 15:15 schrieb Gianluigi: >>> Hi Gianluigi, >>> >>> ok. I will try it. >>> >>> Saying we browse to the Gambas-Web-Page - >>> http://gambas.sourceforge.net/en/main.html# >>> >>> >>> Among other things we see the Donate-Logo. Clicking the >>> right mouse button over the the logo I'm able to save >>> this picture. That means user's interaction. >>> >>> But what I do, is to give the webpage to an htmldocument >>> (htmldoc.FromString(WebView.HTML)). >>> That works. >>> >>> Then parsing the htmldoc with the gb.xml.html component >>> to find the source of the picture. Here it is >>> "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" >>> >>> and download this picture directly. >>> Finding the link is not the problem. But downloading the >>> picture. >>> And here I thought I could use WebDownload. >>> >>> Hope that makes it a bit clearer. >>> >>> Best regards >>> Ingo >>> >>> >>> >>> Are you looking for this [0]? >>> >>> [0] >>> https://lists.gambas-basic.org/pipermail/user/2018-March/063237.html >>> >>> >>> Regards >>> Gianluigi >>> >>> >>> >>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> >>> Hosted by https://www.hostsharing.net >>> >>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> >>> Hosted byhttps://www.hostsharing.net >> Thank you for the example. >> Did you try it? >> >> It does not work :-( >> >> First I have to declare Downlad as New WebDownload and then >> it hangs in the While Download.Progress loop. >> I started the module from FMain with "picLoader.Main()" >> >> No idea what happens??? >> >> >> === picLoader.Module==== >> Private Download As New WebDownload ??? ??? ??? ' declare as >> New WebDownload because I get a "Null"-Object >> >> Public Sub Main() >> >> ? Dim hForm As Form >> ? Dim hWebview As WebView >> >> ? hForm = New Form As "Form1" >> ? hWebview = New WebView(hForm) As "Webview1" >> >> ? hWebview.Url = >> "https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" >> >> >> ? 'First wait for Url to load >> ? While hWebview.Progress < 1 >> ??? Wait 0.1 >> ? Wend >> ? 'Then wait for download to finish >> ? While Download.Progress < 1 >> ??? Print Download.Progress ??? ??? ??? ' here it loops! >> ??? Wait 0.1 >> ? Wend >> ? 'Wait 3 >> ? Select Case Download.Status >> ??? Case WebDownload.Cancelled >> ????? Print "Cancelled" >> ??? Case WebDownload.Error >> ????? Print "Error: " & Download.ErrorText >> ??? Case WebDownload.Finished >> ????? Print "Downloaded " & Download.Size & " bytes." >> ? End Select >> >> End >> >> Public Sub Webview1_Download(thisDownload As WebDownload) >> >> ? ' We shouldn't use Wait in an event handler, so we pass the >> Download object into the module scope >> ? Download = thisDownload >> ? Download.Path = Application.Path &/ "pic.png" >> >> End >> >> Regards >> Ingo >> >> >> I'm sorry but I'm not able >> We hope in Lee >> Regards >> Gianluigi >> >> ?Try the attached >> > ??? ??? Charlie >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted byhttps://www.hostsharing.net > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net Hi Charlie, nice :-) What was new for me is to store the picture data within a string. Thanks Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Fri May 11 22:24:15 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 11 May 2018 20:24:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1312: fix for a forgotten conditional for gtk 2 comp causes build error on my embebed devices Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1312&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- fix for a forgotten conditional for gtk 2 comp causes build error on my embebed devices Type : Bug Priority : Medium Gambas version : 3.10 Product : GTK+2 component Description ----------- config.status: executing libtool commands try to configure the gtk component point that gtk 2.18 are enought: || || Unable to met pkg-config requirement: gtk+-2.0 >= 2.16 || gb.gtk is disabled || gb.gtk.opengl is disabled || after install all requirements compile and got an error due a fogotten conditional as show the link on gitlab: the gcontrol.cpp file are coded correctly but in gmainwindow.gpp have forgotten conditional: https://gitlab.com/search?utf8=%E2%9C%93&search=gtk_widget_get_mapped&group_id=&project_id=3734462&search_code=true&repository_ref=master gmainwindow.cpp: In member function ?void gMainWindow::setUtility(bool)?: gmainwindow.cpp:1432: error: ?gtk_widget_get_mapped? was not declared in this scope make[3]: *** [gb_gtk_la-gmainwindow.lo] Error 1 make[3]: se sale del directorio `/debiandat/debianwork/gambas/gambas11/gambas3-3.11.0/gb.gtk/src' SOLUTION: https://gitlab.com/gambas/gambas/merge_requests/20 // TODO: works only if the window is not mapped! _utility = v; #if GTK_CHECK_VERSION(2, 20, 0) if (gtk_widget_get_mapped(border)) #else if (GTK_WIDGET_MAPPED(border)) #endif { remap = true; gtk_widget_unmap(border); System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From bm.530502 at gmail.com Fri May 11 22:41:29 2018 From: bm.530502 at gmail.com (Ingo) Date: Fri, 11 May 2018 22:41:29 +0200 Subject: [Gambas-user] Gambas 3.11.1 from ppa Message-ID: <0dd5f2e5-3df4-4ddc-4c36-59e58c09b1ed@gmail.com> Just installed Gambas 3.11.1 from the ppa. Works perfectly. Thanks to everyone for the great job. Ingo From bugtracker at gambaswiki.org Sat May 12 01:25:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 11 May 2018 23:25:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #878: Possibility of having VB6-like enumerators. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.878&from=L21haW4- Comment #1 by Mourad REGGADI: I took the liberty to put this on Gambas 3.10 version, i hope that it does not bother you zxMarce ! I was thinking of requesting the same feature as i find that it's a nice one and that it could extend the programming ergonomy of Gambas and prevent common programming errors. Hope that Benoit will take the time to consider this :-) From chrisml at deganius.de Sat May 12 10:43:35 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 12 May 2018 10:43:35 +0200 Subject: [Gambas-user] Gambas 3.11.1 from ppa In-Reply-To: <0dd5f2e5-3df4-4ddc-4c36-59e58c09b1ed@gmail.com> References: <0dd5f2e5-3df4-4ddc-4c36-59e58c09b1ed@gmail.com> Message-ID: Am 11.05.2018 um 22:41 schrieb Ingo: > Just installed Gambas 3.11.1 from the ppa. > Works perfectly. > Thanks to everyone for the great job. Thanks also! The Gambas IDE is better than ever! Its ultrafast compared to 3.9! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sat May 12 12:34:27 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 12 May 2018 12:34:27 +0200 Subject: [Gambas-user] Gambas 3.11.1 from ppa In-Reply-To: References: <0dd5f2e5-3df4-4ddc-4c36-59e58c09b1ed@gmail.com> Message-ID: 2018-05-12 10:43 GMT+02:00 Christof Thalhofer : > Am 11.05.2018 um 22:41 schrieb Ingo: > > Just installed Gambas 3.11.1 from the ppa. > > Works perfectly. > > Thanks to everyone for the great job. > > Thanks also! The Gambas IDE is better than ever! Its ultrafast compared > to 3.9! > > :-) > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > +1 :-D Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sat May 12 15:08:04 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:08:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1312: fix for a forgotten conditional for gtk 2 comp causes build error on my embebed devices In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1312&from=L21haW4- Comment #1 by Beno?t MINISINI: Merged in commit https://gitlab.com/gambas/gambas/commit/386edd1f790d71c05c90a4f2b0db8e3522a05926 Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sat May 12 15:10:55 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:10:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #2 by Beno?t MINISINI: OK, setStyleName() must be used only if Qt version is at least 4.8. But I understand *nothing* of your other words. Please try yo use better valid English, otherwise nobody can understand you, and all that is almost useless!!! Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Sat May 12 15:13:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:13:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: and must be used AFTER the "set"'s directives as i put in the comment in gitlab SORRY for the bad write, was in a hurry due i'm very busy at the work PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sat May 12 15:16:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:16:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #4 by Beno?t MINISINI: In particular, why calling setStyleName("") after the other methods and not before? And why not fixing the other call to setStyleName() a few lines before? From bugtracker at gambaswiki.org Sat May 12 15:17:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:17:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #5 by Beno?t MINISINI: Another point. The QT version check is better done with: #if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0) From bugtracker at gambaswiki.org Sat May 12 15:18:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:18:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #6 by Beno?t MINISINI: Sorry, you have changed the other call to setStyleName(). My bad! From bugtracker at gambaswiki.org Sat May 12 15:19:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:19:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #7 by Beno?t MINISINI: Which bugs do you see when setStyleName("") is called first? I have QT 4.8.7, and I don't see. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Sat May 12 15:30:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:30:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1313: OPenABS segfault when try to run in 3.11.0 Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1313&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- OPenABS segfault when try to run in 3.11.0 Type : Bug Priority : Medium Gambas version : Master Product : Development Environment Description ----------- well still need test the last commit fix for LTO but testing recent compilation for 3.11.X i got a problem, loading the www.openasb.com/softwareshtm.php software made in gambgas.. when try to run the sources got a crash inmediatelly! runs perfectly in gambas 3.4 and 3.8 (the only version i have it) umm 3.8 i only runs once time.. not tested deeply i not still test all of my proyects (i work with many hardware, so ODBC and SERIAL will be tested for sure) System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From mckaygerhard at gmail.com Sat May 12 15:31:03 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 12 May 2018 09:31:03 -0400 Subject: [Gambas-user] OPenABS segfault when try to run in 3.11.0 In-Reply-To: References: Message-ID: upload as a bug: http://gambaswiki.org/bugtracker/edit?object=BUG.1313&from=L21haW4.dGFiPTEmdXBkYXRlPS5tZW51JnM9MA-- due i cannot do nothign ide crashed with any button Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-10 16:48 GMT-04:00 PICCORO McKAY Lenz : > well still need test the last commit fix for LTO but testing recent > compilation for 3.11.X > > i got a problem, loading the www.openasb.com/softwareshtm.php software > made in gambgas.. > > when try to run the sources got a crash inmediatelly! > > i not still test all of my proyects (i work with many hardware, so ODBC > and SERIAL will be tested for sure) > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sat May 12 15:32:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:32:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #8 by PICCORO LENZ MCKAY: due the bug its for qt 5 and the fix was made in qt4 componet (i think) and i do not use qt4 >> 4.7.99 also the bug only happened with qt5 << 5.3.0 so then only with older versions PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sat May 12 15:35:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:35:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1313: OPenABS segfault when try to run in 3.11.0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1313&from=L21haW4- Comment #1 by Beno?t MINISINI: Can you join the crashing project to that issue? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Sat May 12 15:35:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:35:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #878: Possibility of having VB6-like enumerators. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.878&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: maybe this can be a variable derived from the collections definition.. also maybe wil be usefully due takes gambas close to the "multi-usefully" arrays like php.. umm but enumareatows in VB-puach are only constants... maybe its better extend that to "variant" type From bugtracker at gambaswiki.org Sat May 12 15:37:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:37:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1313: OPenABS segfault when try to run in 3.11.0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1313&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: umm ok let me download and upload here, (i'll provide the url but any way! i'll upload for you) PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sat May 12 15:43:34 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:43:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #9 by Beno?t MINISINI: Hem.... Do you want to say: - setStyleName() must not be use if QT < 4.8. - setStyleName() is buggy when called first, if QT >= 5.0 and < 5.3 - setStyleName() is not buggy when called first, if QT >= 5.3 - SetStyleName() is not buggy when called last, if QT >= 4.8 ? Note that gb.qt4 and gb.qt5 share (almost) the same code source. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Sat May 12 15:50:47 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:50:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #878: Possibility of having VB6-like enumerators. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.878&from=L21haW4- Comment #3 by Beno?t MINISINI: It's not "enumerators" but "enumerations". Enumerators are things like "For Each ... Next". From bugtracker at gambaswiki.org Sat May 12 15:52:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 13:52:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #878: Possibility of having VB6-like enumerators. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.878&from=L21haW4- Comment #4 by Beno?t MINISINI: I mostly agree with the idea, but it's not that simple to add. From bugtracker at gambaswiki.org Sat May 12 16:05:04 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 14:05:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #10 by PICCORO LENZ MCKAY: yes.. agree with all the info are in the KDE development platform but i dont remenber in wich place.. PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sat May 12 16:09:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 14:09:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #11 by PICCORO LENZ MCKAY: qgist already kwon about the probnlem and make their own solution>>>>>>> https://github.com/etiennesky/Quantum-GIS/blob/master/src/core/qgsfontutils.cpp#L101 From bugtracker at gambaswiki.org Sat May 12 16:38:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 14:38:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #878: Possibility of having VB6-like enumerators. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.878&from=L21haW4- Comment #5 by Jussi LAHTINEN: I agree, this would be very useful. It's not always that easy to create object interfaces in huge project, which makes it obvious which constants should be used or what class holds them. This would fix the problem and prevent many silent bugs. From mckaygerhard at gmail.com Sat May 12 16:41:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 12 May 2018 10:41:15 -0400 Subject: [Gambas-user] Debian packages ready to use for wheeze, jessie, devuan and vegnuli/venenux Message-ID: Packages for wheeze debian 7 and jessie debian 8 / devuan 1 (venenux 1.0) https://software.opensuse.org//download.html?project=home% 3Avegnuli%3Agambas&package=gambas3 debian 7: echo 'deb http://download.opensuse.org/ repositories/home:/vegnuli:/gambas/Debian_7.0/ /' > /etc/apt/sources.list.d/home:vegnuli:gambas.list debian 8: echo 'deb http://download.opensuse.org/ repositories/home:/vegnuli:/gambas/Debian_8.0/ /' > /etc/apt/sources.list.d/home:vegnuli:gambas.list devuan 1: echo 'deb http://download.opensuse.org/ repositories/home:/vegnuli:/gambas/Debian_8.0/ /' > /etc/apt/sources.list.d/home:vegnuli:gambas.list apt-get update apt-get install gambas3 I also will made packages for lenny and squeeze, but for now i have those.. due we ont use those build for winbuntu mades... some differences applied like plopper api changed Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sat May 12 20:08:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 12 May 2018 18:08:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1311: compile error due wrong fix to bug in qt5 made in qt4 raise by usage setStyleName In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1311&from=L21haW4- Comment #12 by Beno?t MINISINI: It should be fixed in commit https://gitlab.com/gambas/gambas/commit/352bf8230d7349195a589f99d7539df6d9c9bbb5. Beno?t MINISINI changed the state of the bug to: Fixed. From g4mba5 at gmail.com Sat May 12 22:12:32 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 May 2018 22:12:32 +0200 Subject: [Gambas-user] Release of Gambas 3.11.2 Message-ID: <8515a1d8-57fd-4aa3-1c00-38f691857e80@gmail.com> Hi, I have released Gambas 3.11.2. This release disables link time optimization by default, and allows Gambas to compile with older versions of Qt and GTK+. Download it at: https://gitlab.com/gambas/gambas/-/archive/3.11.2/gambas-3.11.2.tar.bz2 Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Sat May 12 22:19:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 12 May 2018 16:19:05 -0400 Subject: [Gambas-user] Release of Gambas 3.11.2 In-Reply-To: <8515a1d8-57fd-4aa3-1c00-38f691857e80@gmail.com> References: <8515a1d8-57fd-4aa3-1c00-38f691857e80@gmail.com> Message-ID: GREAT! i already made also packages for recent versions of debian but i have very problems with LLVM.. i try to do the best for lasted (debian 9 and unstable) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-12 16:12 GMT-04:00 Beno?t Minisini : > Hi, > > I have released Gambas 3.11.2. > > This release disables link time optimization by default, and allows Gambas > to compile with older versions of Qt and GTK+. > > Download it at: > > https://gitlab.com/gambas/gambas/-/archive/3.11.2/gambas-3.11.2.tar.bz2 > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat May 12 23:57:50 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 13 May 2018 00:57:50 +0300 Subject: [Gambas-user] Release of Gambas 3.11.2 In-Reply-To: <8515a1d8-57fd-4aa3-1c00-38f691857e80@gmail.com> References: <8515a1d8-57fd-4aa3-1c00-38f691857e80@gmail.com> Message-ID: How to enable link time optimization, if wanted? Jussi On Sat, May 12, 2018 at 11:12 PM, Beno?t Minisini wrote: > Hi, > > I have released Gambas 3.11.2. > > This release disables link time optimization by default, and allows Gambas > to compile with older versions of Qt and GTK+. > > Download it at: > > https://gitlab.com/gambas/gambas/-/archive/3.11.2/gambas-3.11.2.tar.bz2 > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun May 13 01:41:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 May 2018 01:41:12 +0200 Subject: [Gambas-user] Release of Gambas 3.11.2 In-Reply-To: References: <8515a1d8-57fd-4aa3-1c00-38f691857e80@gmail.com> Message-ID: <078234fd-9224-f794-ab64-20fe5b9dd698@gmail.com> Le 12/05/2018 ? 23:57, Jussi Lahtinen a ?crit?: > How to enable link time optimization, if wanted? > > > Jussi > $ ./configure --enable-lto -- Beno?t Minisini From mckaygerhard at gmail.com Sun May 13 03:41:52 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 12 May 2018 21:41:52 -0400 Subject: [Gambas-user] Release of Gambas 3.11.2 In-Reply-To: <078234fd-9224-f794-ab64-20fe5b9dd698@gmail.com> References: <8515a1d8-57fd-4aa3-1c00-38f691857e80@gmail.com> <078234fd-9224-f794-ab64-20fe5b9dd698@gmail.com> Message-ID: for packagers: must be enabled in recent linux distros.. if not some configurations may fail Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-12 19:41 GMT-04:00 Beno?t Minisini : > Le 12/05/2018 ? 23:57, Jussi Lahtinen a ?crit : > >> How to enable link time optimization, if wanted? >> >> >> Jussi >> >> > $ ./configure --enable-lto > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sun May 13 12:22:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 13 May 2018 10:22:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1314: Add a "UnHide" method to Expander control Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1314&from=L21haW4- Mourad REGGADI reported a new bug. Summary ------- Add a "UnHide" method to Expander control Type : Request Priority : Medium Gambas version : 3.10 Product : Development Environment Description ----------- I would like to hide some Expanders dynamically through code but i don't find a "UnHide" method to do it, can you please add it ? Thanks. System information ------------------ [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86_64 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Gtk Language=fr_FR.UTF-8 Memory=3774M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-BsLpNqehEO,guid=7e5e625de649a9d75fea3f935ad1a7d9 DBUS_STARTER_ADDRESS=unix:abstract=/tmp/dbus-BsLpNqehEO,guid=7e5e625de649a9d75fea3f935ad1a7d9 DBUS_STARTER_BUS_TYPE=session DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-m9yUFs GNOME_KEYRING_PID=2215 GPG_AGENT_INFO=/run/user/1000/keyring-m9yUFs/gpg:0:1 GTK_IM_MODULE=xim GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 LANG=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=fr_FR.UTF-8 MDM_XSERVER_LOCATION=local PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT4_IM_MODULE=xim SESSION_MANAGER=local/:@/tmp/.ICE-unix/2291,unix/:/tmp/.ICE-unix/2291 SHELL=/bin/bash SSH_AGENT_PID=2359 SSH_AUTH_SOCK=/run/user/1000/keyring-m9yUFs/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=00374c2810afb31e356ebd07562d38e8-1523689431.543343-336294847 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 XMODIFIERS=@im=none From bugtracker at gambaswiki.org Sun May 13 12:29:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 13 May 2018 10:29:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1314: Add a "UnHide" method to Expander control In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1314&from=L21haW4- Comment #1 by Mourad REGGADI: Sorry, my request is not well explained, i meant to add two new methods : 1 - Expand 2 - UnExpand I thought that the "Hide" method did the trick :) From adrien.prokopowicz at gmail.com Sun May 13 15:51:03 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Sun, 13 May 2018 15:51:03 +0200 Subject: [Gambas-user] xmlreader Gambas 3.10.0 test project link included In-Reply-To: References: Message-ID: Le 09/04/2018 ? 20:12, T Lee Davidson a ?crit?: > Yes, when I added reader.Close(), the only file with which there was a problem was the one with comments. > > I think it's a bug. Even the test module in the source tree fails to properly read the test, text.xml, file when it encounters > the comment. > > Test project attached. Hey guys, first of all I apologize for the delay, I got a bit overwhelmed with work and I am catching up on the mailing list right now. :-) This is indeed a bug, and is fixed in the latest commit (your attached project seems to work with it). As a (late) tip, I would also recommend you to try using the XmlDocument class instead of XmlReader. Not only you'll win on performance, but it is also much nicer to use (since using XmlReader makes you basically wite a parser, while XmlDocument has everything loaded already). Regards, -- Adrien Prokopowicz From adrien.prokopowicz at gmail.com Sun May 13 16:50:37 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Sun, 13 May 2018 16:50:37 +0200 Subject: [Gambas-user] gambas playground are active project? In-Reply-To: References: Message-ID: <2ab51a53-a8fb-1d1e-00da-6fdc7a42ebd9@gmail.com> Le 25/04/2018 ? 18:03, PICCORO McKAY Lenz a ?crit?: > hi, i can see that was focused on docker deploy (and cloud docker now > are abandoned) > > i dont trush on docker due are like fashion.. > > thankns for the link, i try to use it and install,. maybe made a package.. > > i need some instructions tips and directions some one can help me? The playground server itself does not run inside a Docker container, but it uses it to run the code snippets you send. Whenever a snippet is received through an HTTP request, the playground-server creates a new temporary container (from a prebuilt image, which contains the playground-runner), and passes it your snippet through STDIN. Inside the container, the runner saves your snippet and invokes the Gambas scripter (gbs3) on it. The resulting output is then passed back to the playground-server, which is then passed back as a response to the HTTP request. Once everything is complete, the container is discarded, with every change you could have made to the filesystem. This is mainly for security reasons, this way the snippets cannot affect the server at all (you can even run an "rm -rf /" if you want!). There are also a few other parameters to limit what you can do in the container, such as limiting CPU, RAM usage, and the amount of processes you can create (all the rules are in the source code). As a side note, I'm not a fan of running everything on Docker either, but it is far from abandoned and widely adopted, and unless there are alternatives I'm not aware of, here it is just the right tool for the job. The only (big) downside there is with Docker, is that alowing a process (like the playground-server) to create and manage containers basically requires to give it root access (or similar), which is not acceptable in a shared environment (such as the servers currently hosting the various Gambas services). This is why I think it's best that I keep hosting it myself: if there happens to be a security flaw somewhere that affects the playground server, I don't really care if my small server is wiped or anything (I made it so the server does not actually store anything). :-) As for installation tips, I will write a nice README on the repository with all the instructions, but basically what you have to do is after installing Gambas and Docker, you need to make sure the user running the playground-server executable is either root or in the docker group. Then build the runner image by getting inside the root directory of the repository (where the Dockerfile is), and then run docker build -t prokopyl/playground. You can now start the playground-server using the embedded http server (gbr3 -H) and it will respond to POST requests made on "/". :-) As for the UI, it is just a bunch of static files, you can use your favorite HTTP server to serve them (the playground I host uses NGINX). For now however a lot of things are hard-coded, and the UI expects the playground-server to respond on /run (to not conflict with the index page), so you'll want to configure your HTTP server as a reverse-proxy for the playground server, optionally enabling you to use HTTPS, gzip compression, caching, etc. Hope this helps. :-) Regards, -- Adrien Prokopowicz From adrien.prokopowicz at gmail.com Sun May 13 17:41:49 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Sun, 13 May 2018 17:41:49 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> Message-ID: <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> Le 24/04/2018 ? 07:52, Christof Thalhofer a ?crit?: > Am 23.04.2018 um 11:08 schrieb Tobias Boege: > >> The trap of distributed development. My fault I didn't look through your >> other branches. But in the end, it wasn't that much double work. I have >> a dedicated class to print TAP, which may be worth including, and also a >> TAP parser. Your work touched my point (3) above, too. I can easily rebase >> my changes onto yours and consolidate them -- but not before this evening. > > Ok super, it is very good when you have a look at the code. The TAP > printing function cost me about one hour, it was not that expensive ... > > This week I have not very much time, I couldn't even look at your code > ... :-( > >> If I understood the code at a glance, there is also a bit of a difference >> in architecture. You have a TestSuite which contains tests, executes them, >> buffers the result and prints it TAP-formatted afterwards, whereas I >> imagined (and am used to from perl) that there are many functions which >> reduce input data to Booleans (are two strings equal? does this string >> match a regex? is this object defined and of a certain type? does this >> code not raise an error? are these arrays recursively equal? and so on) >> and that Boolean is printed as a TAP "ok/not ok" line, *as you go* through >> the tests, in case there is an unhandled error and the test crashes. >> The TAP parser will notice such a crash because either not all tests >> in the plan "1..N" were executed or the test plan wasn't even printed. >> It can still tell you about the tests that *were* run, which tell you >> which one crashed. > > Yes, you got it right, the tests are executed one after another and the > results are buffered in TestResult (but only the failed ones). Therefore > I had to restore the sequence by iterating through TestSuite (which > contains the Tests) in Unittest.PrintTapResult(). > > This is not very cool, indeed it would be better if the Unittest would > print out the TAP results on the fly without buffering. > > I you have a look at the stable code there it is done with events, but > was delivered to the GUI to the tracer form. Maybe we can take these > events and deliver to the TAP printer. > > One thing, the current code does right, is: It distinguishes between > failures (the result is not as expected) and errors and can buffer (not > so good) errors (this happens in TestCase.Run [59-62]). > > But if the tested code leads to a segfault then all previous test > results are gone. That's pretty bad and should not happen. > > This week I won't be able to do anything further so feel free to play > around. > > > Alles Gute > > Christof Thalhofer Hey folks, I know I may be a bit late to the party, but I some (long) time ago I also made some experiments to make automated tests for Gambas (see here[0]). It isn't as sophisticated as yours (no TAP serialization or setup/teardown), but the interesting bit was that is relied on Tasks to run the tests (instead of running them directly), which has several benefits : - You are 100% sure you go back to the initial memory state between each test (since each test creates a new Task, hence re-forking the main process). - It allows to run tests in parallel on multiple cores. - (Most importantly IMHO) Since each test is ran in a separate process, it is resilient to crashes and segfaults, which makes it ideal for testing native components. If you are interested in this, I could probably send a few PRs towards you to integrate this system. :-) Also, a few thoughts I had about the Assertion API: in your component, to check an assertion you have to do this (my old one has something along those lines as well): Me.Result.AssertEqualsString("Hello", myString) However, after putting in some thought, not only I find this pretty lengthy for assertions (which your tests will be full of), but all in all I don't find the "use protected methods from inheritance" very Gambas-y (since Gambas does not have a "protected" visibility anyway). I think a simpler way to do this would be to make a static Assert class (see example attached, actual implementation would be more complex obviously). This way, you can call it directly without needing to go through ME or other objects : Assert(myBoolExpression) Assert.Equals("Hello", myString) Assert.Same(objRef1, objRef2) Assert.Null(nullRef) '? and whatever other helper method we could think of This makes it much shorter and simpler, and it also makes assertions useable outside tests, which could be desirable I think. Tell me what you think. :-) Regards, [0] https://sourceforge.net/p/gambas/mailman/message/33128886/ -- Adrien Prokopowicz From mckaygerhard at gmail.com Sun May 13 18:42:24 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 13 May 2018 12:42:24 -0400 Subject: [Gambas-user] gambas playground are active project? In-Reply-To: <2ab51a53-a8fb-1d1e-00da-6fdc7a42ebd9@gmail.com> References: <2ab51a53-a8fb-1d1e-00da-6fdc7a42ebd9@gmail.com> Message-ID: great explanation , very thanks.. now i understand the docker needs.. you have right, in performace rules, that's its the better way. i think about preloaded virtual machines but your solution are the only with decent performance my wish, was to package it, and PLAY INSIDE MY JOB WITH PARNERS but in today status could not be possible.. maybe later after some test and read your future README i can do something.. and it's reasonable tht in your server many things are hardcoded.. i'll waith your readme and changes in the project playground to also helps and make improvements using pull/perge request.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-13 10:50 GMT-04:00 Adrien Prokopowicz : > Le 25/04/2018 ? 18:03, PICCORO McKAY Lenz a ?crit : > >> hi, i can see that was focused on docker deploy (and cloud docker now are >> abandoned) >> >> i dont trush on docker due are like fashion.. >> >> thankns for the link, i try to use it and install,. maybe made a package.. >> >> i need some instructions tips and directions some one can help me? >> > > The playground server itself does not run inside a Docker container, but > it uses it to run the code snippets you send. > > Whenever a snippet is received through an HTTP request, the > playground-server creates a new temporary container (from a prebuilt image, > which contains the playground-runner), and passes it your snippet through > STDIN. > Inside the container, the runner saves your snippet and invokes the Gambas > scripter (gbs3) on it. The resulting output is then passed back to the > playground-server, which is then passed back as a response to the HTTP > request. > Once everything is complete, the container is discarded, with every change > you could have made to the filesystem. > > This is mainly for security reasons, this way the snippets cannot affect > the server at all (you can even run an "rm -rf /" if you want!). There are > also a few other parameters to limit what you can do in the container, such > as limiting CPU, RAM usage, and the amount of processes you can create (all > the rules are in the source code). > > As a side note, I'm not a fan of running everything on Docker either, but > it is far from abandoned and widely adopted, and unless there are > alternatives I'm not aware of, here it is just the right tool for the job. > > The only (big) downside there is with Docker, is that alowing a process > (like the playground-server) to create and manage containers basically > requires to give it root access (or similar), which is not acceptable in a > shared environment (such as the servers currently hosting the various > Gambas services). > This is why I think it's best that I keep hosting it myself: if there > happens to be a security flaw somewhere that affects the playground server, > I don't really care if my small server is wiped or anything (I made it so > the server does not actually store anything). :-) > > As for installation tips, I will write a nice README on the repository > with all the instructions, but basically what you have to do is after > installing Gambas and Docker, you need to make sure the user running the > playground-server executable is either root or in the docker group. > > Then build the runner image by getting inside the root directory of the > repository (where the Dockerfile is), and then run docker build -t > prokopyl/playground. You can now start the playground-server using the > embedded http server (gbr3 -H) and it will respond to POST requests made on > "/". :-) > > As for the UI, it is just a bunch of static files, you can use your > favorite HTTP server to serve them (the playground I host uses NGINX). For > now however a lot of things are hard-coded, and the UI expects the > playground-server to respond on /run (to not conflict with the index page), > so you'll want to configure your HTTP server as a reverse-proxy for the > playground server, optionally enabling you to use HTTPS, gzip compression, > caching, etc. > > Hope this helps. :-) > > Regards, > > -- > Adrien Prokopowicz > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sun May 13 18:51:07 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 13 May 2018 19:51:07 +0300 Subject: [Gambas-user] Exec crash Message-ID: <20180513164017.M74035@455.co.il> hello OS: Fedora 28 64BIT Gambas: 3.10.0 When I am inside the GAMBAS IDE And I do not root user I write the Exec command Exec ["ls","/root/"] Causes GAMBAS to crash This application has raised an unexpected error and must abort. [43] Access forbidden. FCompletion.FillWithFiles.661 From adrien.prokopowicz at gmail.com Sun May 13 18:55:00 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Sun, 13 May 2018 18:55:00 +0200 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> Message-ID: <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> Le 06/05/2018 ? 21:43, Beno?t Minisini a ?crit?: > Hi, > > This is just an idea in the fly. There is nothing concrete at the moment. > > As you may know, there is a JIT component in Gambas (not made by me) > based on LLVM. Alas it does not work with recent versions of LLVM, > because apparently this huge project is not able to keep backward > compatibility between minor versions. (Worse than GTK+, I couldn't > imagine it was possible!) > > What to do now? > > 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the > original author does not give any news, and I have no knowledge about > LLVM, and its C++ interface looks horrible to me. > > 2) gcc has now a JIT library, but it is an alpha version with a big > warning that everything may change between releases, even if it is > apparently relatively stable. Moreover, no idea about how many bugs the > library has. > > 3) Writing a Gambas -> C translator. > > My idea is that the compiler, or maybe an external program eventually > written in Gambas, takes a class/module source code, and transform it > into a C source file. > > That C source file will call the interpreter functions when needed > through a dedicated interpreter API. > > Then the C source file will be transform into a shared library loaded at > runtime by the interpreter (calling the C compiler that hence must be > installed). > > The advantages are: > > - C syntax is thousand times more stable than a JIT compiler library > that changes at each version. > > - Maybe better optimizations. > > The disadvantages are: > > - You need the compiler. But the JIT library needs most of it too, so... > > - Compiling is slower than calling a JIT library. > > - JIT library can compile at the function level. This is not practical > with a compiler (we won't make a shared library for each JIT function!). > One shared library for each class, or even one for the entire project > may be the solution. > > Now I'm waiting for your comments! > > Regards, > I don't think the option #3 is a good way to go (not that the others are better ?). First, going that route will require a *lot* of work, both on short- and long-term. You will first have to write a full Gambas-to-C transpiler, which involves either plugging into gbc (unless you read the compiled output), or maintaining the full grammar on two different compilers. Then it requires adding and maintaining extra hooks in the interpreter for the generated binary to link onto, which I don't know much about, but is probably not trivial either. Having to perform a full compilation at startup also completely nullifies the advantages of Just-In-Time compilation: standard compilation (e.g. GCC or LLVM executable invocation) is not just slower, it is orders of magnitude slower, which even for small bits could just add a few seconds of startup time to any app that uses it. And considering 99.9% of Gambas code speed isn't really affected by any kind of compilation to native code (I think the only ones that are enhances are long, tight loops that do number crunching, but most if not all apps are just a bunch of calls to component APIs or similar), the tradeoff becomes not worth it at all in most cases. :/ Considering all of this, the first solution that comes to my mind could be to simply drop the gb.jit component : it wouldn't be too big of a breaking change I think, considering the interpreter already falls back to normal operation if it can't find the gb.jit component to perform the compilation. And it seems it already doesn't work for most users, so dropping something that doesn't work anyway probably isn't a huge deal ? The alternative option (which is much simpler than the first three), would be to statically link against a specific version of LLVM (the one that works for us, we could use git submodules to do this), bundling only the parts of the compiler we need with the gb.jit component. Then it works for everybody out of the box, and we can update it only when we want, incrementally (and drop all those ugly #ifdef checks). Now that I think about it, LLVM is not meant to be used as a dynamic library at all (which explains the pain you're going through trying to do so, and why they release breaking versions regularly). All the projects I know that rely on LLVM (like clang, openjdk, mono, emscripten, rustc ?) link it statically. -- Adrien Prokopowicz From sharon at 455.co.il Sun May 13 18:57:13 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 13 May 2018 19:57:13 +0300 Subject: [Gambas-user] Exec crash In-Reply-To: <20180513164017.M74035@455.co.il> References: <20180513164017.M74035@455.co.il> Message-ID: <20180513165445.M94840@455.co.il> hello I notice it has nothing to do with Exec It also happens when I write v_str="/root/" ---------- Original Message ----------- From: "Mayost Sharon" To: user at lists.gambas-basic.org Sent: Sun, 13 May 2018 19:51:07 +0300 Subject: [Gambas-user] Exec crash > hello > > OS: Fedora 28 64BIT > Gambas: 3.10.0 > > When I am inside the GAMBAS IDE > And I do not root user > > I write the Exec command > > Exec ["ls","/root/"] > > Causes GAMBAS to crash > > This application has raised an unexpected > error and must abort. > > [43] Access forbidden. > FCompletion.FillWithFiles.661 > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net ------- End of Original Message ------- From taboege at gmail.com Sun May 13 19:21:47 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 13 May 2018 19:21:47 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> Message-ID: <20180513172147.GB819@highrise.localdomain> On Sun, 13 May 2018, Adrien Prokopowicz wrote: > > Yes, you got it right, the tests are executed one after another and the > > results are buffered in TestResult (but only the failed ones). Therefore > > I had to restore the sequence by iterating through TestSuite (which > > contains the Tests) in Unittest.PrintTapResult(). > > > > This is not very cool, indeed it would be better if the Unittest would > > print out the TAP results on the fly without buffering. > > > > I you have a look at the stable code there it is done with events, but > > was delivered to the GUI to the tracer form. Maybe we can take these > > events and deliver to the TAP printer. > > > > One thing, the current code does right, is: It distinguishes between > > failures (the result is not as expected) and errors and can buffer (not > > so good) errors (this happens in TestCase.Run [59-62]). > > > > But if the tested code leads to a segfault then all previous test > > results are gone. That's pretty bad and should not happen. > > > > This week I won't be able to do anything further so feel free to play > > around. > > > > > > Alles Gute > > > > Christof Thalhofer > > Hey folks, I know I may be a bit late to the party, but I some (long) time > ago I also made some experiments to make automated tests for Gambas (see > here[0]). > The code has been mostly rotting in my repository for the last two(?) weeks, but your comments touch exactly the area where I hit a road block and put it on the backburner, in favour of uni stuff. I need to convert to convert the UnitTest class and all its users to the TAP-based classes and possibly redefine how tests are done and the testing interface. > It isn't as sophisticated as yours (no TAP serialization or setup/teardown), > but the interesting bit was that is relied on Tasks to run the tests > (instead of running them directly), which has several benefits : > > - You are 100% sure you go back to the initial memory state between each > test (since each test creates a new Task, hence re-forking the main > process). > - It allows to run tests in parallel on multiple cores. > - (Most importantly IMHO) Since each test is ran in a separate process, it > is resilient to crashes and segfaults, which makes it ideal for testing > native components. > > If you are interested in this, I could probably send a few PRs towards you > to integrate this system. :-) > I believe my fork [1] is currently the most advanced branch of gb.unittest. I'm generally wary of using Tasks because "Many components will not like being forked. Especially the GUI ones. So be careful." In addition, we already have the TAP architecture in [1], of which you say, if I understand it right, that it's more sophisticated. Using TAP, we spawn a new process for each unit test, which can contain several assertions, and get output in a standard text format, which can be stored on disk and also be read by non-Gambas tools. Running multiple tests simultaneously is as easy as using GNU parallel. Let me tell you what I imagined in the meantime. This also an RFC for Benoit. The project directory structure should get a new official directory .tests/ or .t/ where tests are located. Tests are classes which inherit UnitTest from the gb.unittest component. They contain a bunch of related tests. The IDE will handle this directory specially for in-IDE testing and there will be a command-line utility "gbprove3" similar to "prove". More signifi- cantly, the compiler and archiver should ignore tests by default, as you don't want to ship those in production. NB: Since the unit tests are not located inside the unit they test, we only test public API. I think that's the more sensible approach by itself and it allows for the separation I just mentioned. [1] https://github.com/taboege/gb.deg.unittest/tree/TAP > Also, a few thoughts I had about the Assertion API: in your component, to > check an assertion you have to do this (my old one has something along those > lines as well): > > Me.Result.AssertEqualsString("Hello", myString) > > However, after putting in some thought, not only I find this pretty lengthy > for assertions (which your tests will be full of), but all in all I don't > find the "use protected methods from inheritance" very Gambas-y (since > Gambas does not have a "protected" visibility anyway). > > I think a simpler way to do this would be to make a static Assert class (see > example attached, actual implementation would be more complex obviously). > This way, you can call it directly without needing to go through ME or other > objects : > > Assert(myBoolExpression) > Assert.Equals("Hello", myString) > Assert.Same(objRef1, objRef2) > Assert.Null(nullRef) > '? and whatever other helper method we could think of > > This makes it much shorter and simpler, and it also makes assertions useable > outside tests, which could be desirable I think. > Certainly the current API is too lengthy. The TAP classes provide pretty much what you suggest, but there are at least two variations of your Assert class. (1) We could exploit the inheritance of the UnitTest class in tests and write Me.Equals("Hello", myString) This is short and makes sense from an implementation point of view, since the TAP state (how many tests are planned, what is the current test number, should the next test be tagged as TODO or SKIP, which Stream do we send the TAP output to?) is hidden away inside the parent UnitTest class and all of that must be accessed by whatever implements your Assertion interface. [ NOTE that I'm talking about *my* UnitTest class here, which isn't committed yet. ] (2) We could also ditch the UnitTest inheritance, put the relevant state into a static module and go as far as writing builtin-lookalike assertions: Equals("Hello", myString) ' Equals is a module with a _call method but perhaps that's too much, as even if we only load gb.unittest when running classes from .tests/, it might conflict with the project's class names. Those are my thoughts, anyway. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Sun May 13 19:24:33 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 13 May 2018 13:24:33 -0400 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> Message-ID: umm in that case, the hole solution wil be carried their own llvm inside gambas and mantained by own... but actually the llvm code are very complicated and very api breack ! but i think its best to mantain won code event depends on a project so unstable in api realted Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-13 12:55 GMT-04:00 Adrien Prokopowicz : > Le 06/05/2018 ? 21:43, Beno?t Minisini a ?crit : > >> Hi, >> >> This is just an idea in the fly. There is nothing concrete at the moment. >> >> As you may know, there is a JIT component in Gambas (not made by me) >> based on LLVM. Alas it does not work with recent versions of LLVM, because >> apparently this huge project is not able to keep backward compatibility >> between minor versions. (Worse than GTK+, I couldn't imagine it was >> possible!) >> >> What to do now? >> >> 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the >> original author does not give any news, and I have no knowledge about LLVM, >> and its C++ interface looks horrible to me. >> >> 2) gcc has now a JIT library, but it is an alpha version with a big >> warning that everything may change between releases, even if it is >> apparently relatively stable. Moreover, no idea about how many bugs the >> library has. >> >> 3) Writing a Gambas -> C translator. >> >> My idea is that the compiler, or maybe an external program eventually >> written in Gambas, takes a class/module source code, and transform it into >> a C source file. >> >> That C source file will call the interpreter functions when needed >> through a dedicated interpreter API. >> >> Then the C source file will be transform into a shared library loaded at >> runtime by the interpreter (calling the C compiler that hence must be >> installed). >> >> The advantages are: >> >> - C syntax is thousand times more stable than a JIT compiler library that >> changes at each version. >> >> - Maybe better optimizations. >> >> The disadvantages are: >> >> - You need the compiler. But the JIT library needs most of it too, so... >> >> - Compiling is slower than calling a JIT library. >> >> - JIT library can compile at the function level. This is not practical >> with a compiler (we won't make a shared library for each JIT function!). >> One shared library for each class, or even one for the entire project may >> be the solution. >> >> Now I'm waiting for your comments! >> >> Regards, >> >> > I don't think the option #3 is a good way to go (not that the others are > better ?). > > First, going that route will require a *lot* of work, both on short- and > long-term. > You will first have to write a full Gambas-to-C transpiler, which involves > either plugging into gbc (unless you read the compiled output), or > maintaining the full grammar on two different compilers. > Then it requires adding and maintaining extra hooks in the interpreter for > the generated binary to link onto, which I don't know much about, but is > probably not trivial either. > > Having to perform a full compilation at startup also completely nullifies > the advantages of Just-In-Time compilation: standard compilation (e.g. GCC > or LLVM executable invocation) is not just slower, it is orders of > magnitude slower, which even for small bits could just add a few seconds of > startup time to any app that uses it. And considering 99.9% of Gambas code > speed isn't really affected by any kind of compilation to native code (I > think the only ones that are enhances are long, tight loops that do number > crunching, but most if not all apps are just a bunch of calls to component > APIs or similar), the tradeoff becomes not worth it at all in most cases. :/ > > Considering all of this, the first solution that comes to my mind could be > to simply drop the gb.jit component : it wouldn't be too big of a breaking > change I think, considering the interpreter already falls back to normal > operation if it can't find the gb.jit component to perform the compilation. > And it seems it already doesn't work for most users, so dropping something > that doesn't work anyway probably isn't a huge deal ? > > > The alternative option (which is much simpler than the first three), would > be to statically link against a specific version of LLVM (the one that > works for us, we could use git submodules to do this), bundling only the > parts of the compiler we need with the gb.jit component. Then it works for > everybody out of the box, and we can update it only when we want, > incrementally (and drop all those ugly #ifdef checks). > > Now that I think about it, LLVM is not meant to be used as a dynamic > library at all (which explains the pain you're going through trying to do > so, and why they release breaking versions regularly). All the projects I > know that rely on LLVM (like clang, openjdk, mono, emscripten, rustc ?) > link it statically. > > -- > Adrien Prokopowicz > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun May 13 20:02:57 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 May 2018 20:02:57 +0200 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> Message-ID: <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> Le 13/05/2018 ? 18:55, Adrien Prokopowicz a ?crit?: > Le 06/05/2018 ? 21:43, Beno?t Minisini a ?crit?: >> Hi, >> >> This is just an idea in the fly. There is nothing concrete at the moment. >> >> As you may know, there is a JIT component in Gambas (not made by me) >> based on LLVM. Alas it does not work with recent versions of LLVM, >> because apparently this huge project is not able to keep backward >> compatibility between minor versions. (Worse than GTK+, I couldn't >> imagine it was possible!) >> >> What to do now? >> >> 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the >> original author does not give any news, and I have no knowledge about >> LLVM, and its C++ interface looks horrible to me. >> >> 2) gcc has now a JIT library, but it is an alpha version with a big >> warning that everything may change between releases, even if it is >> apparently relatively stable. Moreover, no idea about how many bugs >> the library has. >> >> 3) Writing a Gambas -> C translator. >> >> My idea is that the compiler, or maybe an external program eventually >> written in Gambas, takes a class/module source code, and transform it >> into a C source file. >> >> That C source file will call the interpreter functions when needed >> through a dedicated interpreter API. >> >> Then the C source file will be transform into a shared library loaded >> at runtime by the interpreter (calling the C compiler that hence must >> be installed). >> >> The advantages are: >> >> - C syntax is thousand times more stable than a JIT compiler library >> that changes at each version. >> >> - Maybe better optimizations. >> >> The disadvantages are: >> >> - You need the compiler. But the JIT library needs most of it too, so... >> >> - Compiling is slower than calling a JIT library. >> >> - JIT library can compile at the function level. This is not practical >> with a compiler (we won't make a shared library for each JIT >> function!). One shared library for each class, or even one for the >> entire project may be the solution. >> >> Now I'm waiting for your comments! >> >> Regards, >> > > I don't think the option #3 is a good way to go (not that the others are > better ?). > > First, going that route will require a *lot* of work, both on short- and > long-term. > You will first have to write a full Gambas-to-C transpiler, which > involves either plugging into gbc (unless you read the compiled output), > or maintaining the full grammar on two different compilers. > Then it requires adding and maintaining extra hooks in the interpreter > for the generated binary to link onto, which I don't know much about, > but is probably not trivial either. I don't say it's simple, but it should not be very difficult to generate C code once the source code has been parsed by the reader and the tree expression generator. Moreover, the compiler tree expression generator statically computes the datatype of every intermediate expression, which can be used to generate static C code accurately. > > Having to perform a full compilation at startup also completely > nullifies the advantages of Just-In-Time compilation: standard > compilation (e.g. GCC or LLVM executable invocation) is not just slower, > it is orders of magnitude slower, which even for small bits could just > add a few seconds of startup time to any app that uses it. And > considering 99.9% of Gambas code speed isn't really affected by any kind > of compilation to native code (I think the only ones that are enhances > are long, tight loops that do number crunching, but most if not all apps > are just a bunch of calls to component APIs or similar), the tradeoff > becomes not worth it at all in most cases. :/ By using a cache, the compilation will be done once (or if the system CPU changes, but it is usually not frequent). And no, I don't think calling the compiler will be magnitude slow, as the source code will only include one header for the interpreter API, and not the tons of headers a standard C program includes. Moreover, even if 99% of your code does not need speed, the other 1% may need it badly. > > Considering all of this, the first solution that comes to my mind could > be to simply drop the gb.jit component : it wouldn't be too big of a > breaking change I think, considering the interpreter already falls back > to normal operation if it can't find the gb.jit component to perform the > compilation. > And it seems it already doesn't work for most users, so dropping > something that doesn't work anyway probably isn't a huge deal ? > > > The alternative option (which is much simpler than the first three), > would be to statically link against a specific version of LLVM (the one > that works for us, we could use git submodules to do this), bundling > only the parts of the compiler we need with the gb.jit component. Then > it works for everybody out of the box, and we can update it only when we > want, incrementally (and drop all those ugly #ifdef checks). > > Now that I think about it, LLVM is not meant to be used as a dynamic > library at all (which explains the pain you're going through trying to > do so, and why they release breaking versions regularly). All the > projects I know that rely on LLVM (like clang, openjdk, mono, > emscripten, rustc ?) link it statically. > Statically linking to LLVM 3.5 does not solve these problems : some Gambas instructions are not supported, and new ones cannot be added as I do not master the original code at all. But using C allows to not be dependant on the compiler version, as C is a relatively stable standard. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun May 13 20:34:13 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 13 May 2018 21:34:13 +0300 Subject: [Gambas-user] Exec crash In-Reply-To: <20180513165445.M94840@455.co.il> References: <20180513164017.M74035@455.co.il> <20180513165445.M94840@455.co.il> Message-ID: Autocomplete can not fetch the folder content, because of no root privileges. It's a bug. As a temporary workaround you can copy paste full paths to avoid the completion popup. Jussi On Sun, May 13, 2018 at 7:57 PM, Mayost Sharon wrote: > hello > > I notice it has nothing to do with Exec > It also happens when I write > > v_str="/root/" > > ---------- Original Message ----------- > From: "Mayost Sharon" > To: user at lists.gambas-basic.org > Sent: Sun, 13 May 2018 19:51:07 +0300 > Subject: [Gambas-user] Exec crash > > > hello > > > > OS: Fedora 28 64BIT > > Gambas: 3.10.0 > > > > When I am inside the GAMBAS IDE > > And I do not root user > > > > I write the Exec command > > > > Exec ["ls","/root/"] > > > > Causes GAMBAS to crash > > > > This application has raised an unexpected > > error and must abort. > > > > [43] Access forbidden. > > FCompletion.FillWithFiles.661 > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List: > > https://lists.gambas-basic.org/listinfo/user > > > > Search the list: > > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > > Hosted by https://www.hostsharing.net > ------- End of Original Message ------- > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun May 13 20:59:15 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 13 May 2018 21:59:15 +0300 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <20180513172147.GB819@highrise.localdomain> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> Message-ID: How to test GUI widgets automatically? Jussi On Sun, May 13, 2018 at 8:21 PM, Tobias Boege wrote: > On Sun, 13 May 2018, Adrien Prokopowicz wrote: > > > Yes, you got it right, the tests are executed one after another and the > > > results are buffered in TestResult (but only the failed ones). > Therefore > > > I had to restore the sequence by iterating through TestSuite (which > > > contains the Tests) in Unittest.PrintTapResult(). > > > > > > This is not very cool, indeed it would be better if the Unittest would > > > print out the TAP results on the fly without buffering. > > > > > > I you have a look at the stable code there it is done with events, but > > > was delivered to the GUI to the tracer form. Maybe we can take these > > > events and deliver to the TAP printer. > > > > > > One thing, the current code does right, is: It distinguishes between > > > failures (the result is not as expected) and errors and can buffer (not > > > so good) errors (this happens in TestCase.Run [59-62]). > > > > > > But if the tested code leads to a segfault then all previous test > > > results are gone. That's pretty bad and should not happen. > > > > > > This week I won't be able to do anything further so feel free to play > > > around. > > > > > > > > > Alles Gute > > > > > > Christof Thalhofer > > > > Hey folks, I know I may be a bit late to the party, but I some (long) > time > > ago I also made some experiments to make automated tests for Gambas (see > > here[0]). > > > > The code has been mostly rotting in my repository for the last two(?) > weeks, > but your comments touch exactly the area where I hit a road block and put > it > on the backburner, in favour of uni stuff. > > I need to convert to convert the UnitTest class and all its users to the > TAP-based classes and possibly redefine how tests are done and the testing > interface. > > > It isn't as sophisticated as yours (no TAP serialization or > setup/teardown), > > but the interesting bit was that is relied on Tasks to run the tests > > (instead of running them directly), which has several benefits : > > > > - You are 100% sure you go back to the initial memory state between each > > test (since each test creates a new Task, hence re-forking the main > > process). > > - It allows to run tests in parallel on multiple cores. > > - (Most importantly IMHO) Since each test is ran in a separate process, > it > > is resilient to crashes and segfaults, which makes it ideal for testing > > native components. > > > > If you are interested in this, I could probably send a few PRs towards > you > > to integrate this system. :-) > > > > I believe my fork [1] is currently the most advanced branch of gb.unittest. > > I'm generally wary of using Tasks because "Many components will not like > being forked. Especially the GUI ones. So be careful." In addition, we > already have the TAP architecture in [1], of which you say, if I understand > it right, that it's more sophisticated. Using TAP, we spawn a new process > for each unit test, which can contain several assertions, and get output in > a standard text format, which can be stored on disk and also be read by > non-Gambas tools. Running multiple tests simultaneously is as easy as using > GNU parallel. > > Let me tell you what I imagined in the meantime. This also an RFC for > Benoit. > The project directory structure should get a new official directory .tests/ > or .t/ where tests are located. Tests are classes which inherit UnitTest > from the gb.unittest component. They contain a bunch of related tests. > The IDE will handle this directory specially for in-IDE testing and there > will be a command-line utility "gbprove3" similar to "prove". More signifi- > cantly, the compiler and archiver should ignore tests by default, as you > don't want to ship those in production. > > NB: Since the unit tests are not located inside the unit they test, we only > test public API. I think that's the more sensible approach by itself and > it allows for the separation I just mentioned. > > [1] https://github.com/taboege/gb.deg.unittest/tree/TAP > > > Also, a few thoughts I had about the Assertion API: in your component, to > > check an assertion you have to do this (my old one has something along > those > > lines as well): > > > > Me.Result.AssertEqualsString("Hello", myString) > > > > However, after putting in some thought, not only I find this pretty > lengthy > > for assertions (which your tests will be full of), but all in all I don't > > find the "use protected methods from inheritance" very Gambas-y (since > > Gambas does not have a "protected" visibility anyway). > > > > I think a simpler way to do this would be to make a static Assert class > (see > > example attached, actual implementation would be more complex obviously). > > This way, you can call it directly without needing to go through ME or > other > > objects : > > > > Assert(myBoolExpression) > > Assert.Equals("Hello", myString) > > Assert.Same(objRef1, objRef2) > > Assert.Null(nullRef) > > '? and whatever other helper method we could think of > > > > This makes it much shorter and simpler, and it also makes assertions > useable > > outside tests, which could be desirable I think. > > > > Certainly the current API is too lengthy. The TAP classes provide pretty > much what you suggest, but there are at least two variations of your > Assert class. (1) We could exploit the inheritance of the UnitTest class > in tests and write > > Me.Equals("Hello", myString) > > This is short and makes sense from an implementation point of view, since > the TAP state (how many tests are planned, what is the current test number, > should the next test be tagged as TODO or SKIP, which Stream do we send the > TAP output to?) is hidden away inside the parent UnitTest class and all of > that must be accessed by whatever implements your Assertion interface. > [ NOTE that I'm talking about *my* UnitTest class here, which isn't > committed yet. ] > > (2) We could also ditch the UnitTest inheritance, put the relevant state > into a static module and go as far as writing builtin-lookalike assertions: > > Equals("Hello", myString) ' Equals is a module with a _call method > > but perhaps that's too much, as even if we only load gb.unittest when > running classes from .tests/, it might conflict with the project's > class names. > > Those are my thoughts, anyway. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sun May 13 22:58:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 13 May 2018 20:58:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1315: Component gb.pdf of Commit 2ac99a0f fails to compile using gcc 8.10.0 Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1315&from=L21haW4- Tony MOREHEN reported a new bug. Summary ------- Component gb.pdf of Commit 2ac99a0f fails to compile using gcc 8.10.0 Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Perhaps this will help :https://stackoverflow.com/questions/35357897/error-invalid-conversion-from-const-int-to-int The error messages: make[4]: Entering directory '/home/tony/gambas/gb.pdf/src' CXX gb_pdf_la-CPdfDocument.lo CXX gb_pdf_la-main.lo CPdfDocument.cpp: In function ?void aux_return_string_info(void*, const char*)?: CPdfDocument.cpp:150:28: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] goo_value = dst.getString(); ~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?void aux_return_date_info(void*, const char*)?: CPdfDocument.cpp:195:22: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] goo = dst.getString(); ~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?LinkDest* get_dest(LinkAction*)?: CPdfDocument.cpp:231:52: error: invalid conversion from ?const LinkDest*? to ?LinkDest*? [-fpermissive] case actionGoTo: return ((LinkGoTo*)act)->getDest(); ~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp:232:54: error: invalid conversion from ?const LinkDest*? to ?LinkDest*? [-fpermissive] case actionGoToR: return ((LinkGoToR*)act)->getDest(); ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?uint32_t aux_get_page_from_action(void*, LinkAction*)?: CPdfDocument.cpp:254:41: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] name = ((LinkGoTo*)act)->getNamedDest(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?char* aux_get_target_from_action(LinkAction*)?: CPdfDocument.cpp:303:38: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] tmp=((LinkGoToR*)act)->getFileName(); break; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp:306:39: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] tmp=((LinkLaunch*)act)->getFileName(); break; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp:309:31: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] tmp=((LinkURI*)act)->getURI(); break; ~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp:312:34: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] tmp=((LinkNamed*)act)->getName(); break; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp:316:40: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] tmp=((LinkMovie*)act)->getAnnotTitle(); break; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?int32_t open_document(void*, char*, int32_t)?: CPdfDocument.cpp:483:44: error: invalid conversion from ?const GooList*? to ?GooList*? [-fpermissive] if (outline) THIS->index=outline->getItems(); ~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?void PDFDOCUMENT_index(void*, void*)?: CPdfDocument.cpp:718:75: error: invalid conversion from ?const LinkAction*? to ?LinkAction*? [-fpermissive] THIS->action=((OutlineItem*)THIS->index->get(THIS->currindex))->getAction(); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?void PDFINDEX_title(void*, void*)?: CPdfDocument.cpp:757:38: error: invalid conversion from ?const Unicode*? {aka ?const unsigned int*?} to ?Unicode*? {aka ?unsigned int*?} [-fpermissive] return_unicode_string(item->getTitle(), item->getTitleLength()); ~~~~~~~~~~~~~~^~ CPdfDocument.cpp:102:44: note: initializing argument 1 of ?void return_unicode_string(Unicode*, int)? static void return_unicode_string(Unicode *unicode, int len) ~~~~~~~~~^~~~~~~ CPdfDocument.cpp: In function ?void PDFINDEX_root(void*, void*)?: CPdfDocument.cpp:767:44: error: invalid conversion from ?const GooList*? to ?GooList*? [-fpermissive] if (outline) THIS->index=outline->getItems(); ~~~~~~~~~~~~~~~~~^~ CPdfDocument.cpp: In function ?void PDFINDEX_child(void*, void*)?: CPdfDocument.cpp:815:27: error: invalid conversion from ?const GooList*? to ?GooList*? [-fpermissive] THIS->index=item->getKids(); ~~~~~~~~~~~~~^~ make[4]: *** [Makefile:507: gb_pdf_la-CPdfDocument.lo] Error 1 make[4]: Leaving directory '/home/tony/gambas/gb.pdf/src' make[3]: *** [Makefile:435: all-recursive] Error 1 make[3]: Leaving directory '/home/tony/gambas/gb.pdf' make[2]: *** [Makefile:367: all] Error 2 make[2]: Leaving directory '/home/tony/gambas/gb.pdf' make[1]: *** [Makefile:438: all-recursive] Error 1 make[1]: Leaving directory '/home/tony/gambas' make: *** [Makefile:379: all] Error 2 System information ------------------ [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=4.16.8-1-MANJARO Architecture=x86_64 Distribution=Manjaro Linux Desktop=XFCE Theme=Gtk Language=en_CA.utf8 Memory=15044M [Libraries] Cairo=libcairo.so.2.11512.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.7 GStreamer=libgstreamer-1.0.so.0.1400.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.75.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.10.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=xfce DISPLAY=:0 EDITOR=/usr/bin/nano GB_GUI=gb.qt4 GDMSESSION=xfce GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GTK2_RC_FILES=/.gtkrc-2.0 GTK_MODULES=canberra-gtk-module HOME= LANG=en_CA.utf8 LC_ADDRESS=en_CA.UTF-8 LC_IDENTIFICATION=en_CA.UTF-8 LC_MEASUREMENT=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8 LC_NAME=en_CA.UTF-8 LC_NUMERIC=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_TELEPHONE=en_CA.UTF-8 LC_TIME=en_CA.UTF-8 LOGNAME= MAIL=/var/spool/mail/ MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl PWD= QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/931,unix/:/tmp/.ICE-unix/931 SHELL=/bin/bash SHLVL=1 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xfce XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 _=/usr/bin/xfce4-session From mckaygerhard at gmail.com Sun May 13 23:44:23 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 13 May 2018 17:44:23 -0400 Subject: [Gambas-user] Exec crash In-Reply-To: References: <20180513164017.M74035@455.co.il> <20180513165445.M94840@455.co.il> Message-ID: please report to bug_ or was on progress to solve at master? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-13 14:34 GMT-04:00 Jussi Lahtinen : > Autocomplete can not fetch the folder content, because of no root > privileges. It's a bug. > As a temporary workaround you can copy paste full paths to avoid the > completion popup. > > > Jussi > > On Sun, May 13, 2018 at 7:57 PM, Mayost Sharon wrote: > >> hello >> >> I notice it has nothing to do with Exec >> It also happens when I write >> >> v_str="/root/" >> >> ---------- Original Message ----------- >> From: "Mayost Sharon" >> To: user at lists.gambas-basic.org >> Sent: Sun, 13 May 2018 19:51:07 +0300 >> Subject: [Gambas-user] Exec crash >> >> > hello >> > >> > OS: Fedora 28 64BIT >> > Gambas: 3.10.0 >> > >> > When I am inside the GAMBAS IDE >> > And I do not root user >> > >> > I write the Exec command >> > >> > Exec ["ls","/root/"] >> > >> > Causes GAMBAS to crash >> > >> > This application has raised an unexpected >> > error and must abort. >> > >> > [43] Access forbidden. >> > FCompletion.FillWithFiles.661 >> > >> > -------------------------------------------------- >> > >> > This is the Gambas Mailing List: >> > https://lists.gambas-basic.org/listinfo/user >> > >> > Search the list: >> > https://lists.gambas-basic.org/cgi-bin/search.cgi >> > >> > Hosted by https://www.hostsharing.net >> ------- End of Original Message ------- >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon May 14 01:19:37 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 May 2018 01:19:37 +0200 Subject: [Gambas-user] Exec crash In-Reply-To: <20180513165445.M94840@455.co.il> References: <20180513164017.M74035@455.co.il> <20180513165445.M94840@455.co.il> Message-ID: <853eda5c-ab01-10b2-f8ad-e96b1e821184@gmail.com> Le 13/05/2018 ? 18:57, Mayost Sharon a ?crit?: > hello > > I notice it has nothing to do with Exec > It also happens when I write > > v_str="/root/" > It's fixed in commit https://gitlab.com/gambas/gambas/commit/6858457dbb905a611f9e61f94abb3412588c9448. Regards, -- Beno?t Minisini From adrien.prokopowicz at gmail.com Mon May 14 01:20:02 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Mon, 14 May 2018 01:20:02 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <20180513172147.GB819@highrise.localdomain> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> Message-ID: <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> Le 13/05/2018 ? 19:21, Tobias Boege a ?crit?: > > The code has been mostly rotting in my repository for the last two(?) weeks, > but your comments touch exactly the area where I hit a road block and put it > on the backburner, in favour of uni stuff. > > I need to convert to convert the UnitTest class and all its users to the > TAP-based classes and possibly redefine how tests are done and the testing > interface. > >> It isn't as sophisticated as yours (no TAP serialization or setup/teardown), >> but the interesting bit was that is relied on Tasks to run the tests >> (instead of running them directly), which has several benefits : >> >> - You are 100% sure you go back to the initial memory state between each >> test (since each test creates a new Task, hence re-forking the main >> process). >> - It allows to run tests in parallel on multiple cores. >> - (Most importantly IMHO) Since each test is ran in a separate process, it >> is resilient to crashes and segfaults, which makes it ideal for testing >> native components. >> >> If you are interested in this, I could probably send a few PRs towards you >> to integrate this system. :-) >> > > I believe my fork [1] is currently the most advanced branch of gb.unittest. Oh, I completely missed your fork, it seems much more advanced indeed! I'll give it a more thorough look. :-) > > I'm generally wary of using Tasks because "Many components will not like > being forked. Especially the GUI ones. So be careful." In addition, we > already have the TAP architecture in [1], of which you say, if I understand > it right, that it's more sophisticated. Using TAP, we spawn a new process > for each unit test, which can contain several assertions, and get output in > a standard text format, which can be stored on disk and also be read by > non-Gambas tools. Running multiple tests simultaneously is as easy as using > GNU parallel. To be completely honest I haven't read the source code very carefully (and as I said I missed your fork), so I missed the part about spawning processes. It is indeed much safer (and therefore better) that forking, considering forking breaks pretty much everything that is socket-related (which includes GUIs, but also DBs, etc.). > Let me tell you what I imagined in the meantime. This also an RFC for Benoit. > The project directory structure should get a new official directory .tests/ > or .t/ where tests are located. Tests are classes which inherit UnitTest > from the gb.unittest component. They contain a bunch of related tests. > The IDE will handle this directory specially for in-IDE testing and there > will be a command-line utility "gbprove3" similar to "prove". More signifi- > cantly, the compiler and archiver should ignore tests by default, as you > don't want to ship those in production. I'm the kind of dev who thinks that any production-grade software should have some level of automated testing, preferably with a decent code coverage. :-) Therefore I completely agree about having the IDE, compiler and archiver deeply integrate testing in them, since basically almost every piece of software will need it at some point. (But please no more cryptic one-letter directory names! I think my filesystem will handle the 4 extra chars just fine ;-) ) Another thing to think about is test fixtures and/or test data. For instance for testing gb.xml I have (since recently) took the habit of keeping track of the various test projects people sent me, so I have a project with a bunch of wierd XML files to see if parsing works correctly. Having a way to access them from the test classes whithout them being shipped with the production code would be nice. :-) > NB: Since the unit tests are not located inside the unit they test, we only > test public API. I think that's the more sensible approach by itself and > it allows for the separation I just mentioned. Well, if your unit tests don't test internal units, then it's not unit testing anymore. :-P Considering the fact that making assertions and rendering their results on a standard interface is not specific to Unit testing but is used across all testing levels (like Integration testing, System testing, and all the other ones I'm reading on Wikipedia that I've never heard about), maybe it would be simpler for everyone to drop the "unit" in the name and just call the component gb.test ? I sure wouldn't mind not having to deal with "testing level" theory. :-) > Certainly the current API is too lengthy. The TAP classes provide pretty > much what you suggest, but there are at least two variations of your > Assert class. (1) We could exploit the inheritance of the UnitTest class > in tests and write > > Me.Equals("Hello", myString) > > This is short and makes sense from an implementation point of view, since > the TAP state (how many tests are planned, what is the current test number, > should the next test be tagged as TODO or SKIP, which Stream do we send the > TAP output to?) is hidden away inside the parent UnitTest class and all of > that must be accessed by whatever implements your Assertion interface. > [ NOTE that I'm talking about *my* UnitTest class here, which isn't > committed yet. ] > > (2) We could also ditch the UnitTest inheritance, put the relevant state > into a static module and go as far as writing builtin-lookalike assertions: > > Equals("Hello", myString) ' Equals is a module with a _call method > > but perhaps that's too much, as even if we only load gb.unittest when > running classes from .tests/, it might conflict with the project's > class names. > > Those are my thoughts, anyway. Considering the three proposed variations: 1/ Assert.Equals("Hello", myString) 2/ Me.Equals("Hello", myString) 3/ Equals("Hello", myString) I still prefer the first one, mostly because what it does looks obvious : even when not knowing exactly what's going on, I can tell I'm making an assertion of equality. Having a common "Assert" base also makes all assertions obvious by scanning through the code, which helps readability. The second variant makes it look like I'm making an operation on ME, which is not the case, and also prevents the use of assertions outside of test case classes (which may be desirable if you want to make custom test helpers and such). The third variant is the shortest, but it looks a bit wierd to me, and as you said it is best to not have names like "Equals/NotEquals" or "Null/NotNull" thrown into the global context (I think having a class or module named Null is not possible actually). -- Adrien Prokopowicz From mckaygerhard at gmail.com Mon May 14 01:26:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 13 May 2018 19:26:37 -0400 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use Message-ID: Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly https://software.opensuse.org//download.html?project=home%3Avegnuli%3Agambas&package=gambas3 Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) Debian 7 has no packages yet due some problems with dependences.. JIT module are disable ddue some problems but will be enabled in future must unninstall all the gambas debian original 3.9 or 3.5 package before install them this due stil need correct depends beetween newer no more Windo-like-buntu PPA! yeah! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon May 14 10:02:59 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 14 May 2018 10:02:59 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> Message-ID: <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> Am 14.05.2018 um 01:20 schrieb Adrien Prokopowicz: > Considering the three proposed variations: > > 1/ Assert.Equals("Hello", myString) > 2/ Me.Equals("Hello", myString) > 3/ Equals("Hello", myString) > I still prefer the first one, mostly because what it does looks obvious > : even when not knowing exactly what's going on, I can tell I'm making > an assertion of equality. Having a common "Assert" base also makes all > assertions obvious by scanning through the code, which helps readability. I do also, the term "Assert" ist common in unittesting: Here "Assert.Something": https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.aspx Here "self.assertSomething" https://docs.python.org/2/library/unittest.html I personally like Adriens Idea with Assert.Something but I also would like Me.AssertSomething (if the testclass inherits from Unittest). But: Assert.Something is much faster and easier to write while coding, you can write As.So Instead of AssertSo Sorry, Tobi and Adrien, I do not have really much time, we are creating a building and there is much work to do here. I think we first should build a main repo for 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: 819 bytes Desc: OpenPGP digital signature URL: From dosida at gmail.com Mon May 14 10:42:28 2018 From: dosida at gmail.com (Dimitris Anogiatis) Date: Mon, 14 May 2018 02:42:28 -0600 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: Awesome job :) But I have a question According to the wiki there is a gb.qt5 component for QT5 support of Gambas I haven't followed packaging practices for a long time... has that component been replaced by something else because I don't see it on your list of packages. On Sun, May 13, 2018 at 5:26 PM, PICCORO McKAY Lenz wrote: > > Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly > > https://software.opensuse.org//download.html?project=home% > 3Avegnuli%3Agambas&package=gambas3 > > Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) > > Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) > > Debian 7 has no packages yet due some problems with dependences.. > > JIT module are disable ddue some problems but will be enabled in future > > > must unninstall all the gambas debian original 3.9 or 3.5 package before > install them > this due stil need correct depends beetween newer > > no more Windo-like-buntu PPA! yeah! > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 14 14:11:24 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 14 May 2018 08:11:24 -0400 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: the qt5 component are active, but in dependences the qt4 component are primary.. when you install the "gambas3" metapackage by default in Debian sid and strecht officia packages now prefer qt5 ove qt4, but originaly due compatibility issues and packaging facilities in my packages qt4 has preferences.. just use aptitude and browse to the qt5 packages and install .. then use the qtchoose command to choose the qt toolkit to prefer Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-14 4:42 GMT-04:00 Dimitris Anogiatis : > Awesome job :) > > But I have a question > > According to the wiki there is a gb.qt5 component for QT5 support of Gambas > > I haven't followed packaging practices for a long time... has that > component been > replaced by something else because I don't see it on your list of packages. > > > On Sun, May 13, 2018 at 5:26 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> >> Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly >> >> https://software.opensuse.org//download.html?project=home%3A >> vegnuli%3Agambas&package=gambas3 >> >> Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) >> >> Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) >> >> Debian 7 has no packages yet due some problems with dependences.. >> >> JIT module are disable ddue some problems but will be enabled in future >> >> >> must unninstall all the gambas debian original 3.9 or 3.5 package before >> install them >> this due stil need correct depends beetween newer >> >> no more Windo-like-buntu PPA! yeah! >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 14 14:37:24 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 14 May 2018 08:37:24 -0400 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: now i answered that question i have a new question, in debian oficial package there's a gambas3-gb-script package but revised the wiki http://gambaswiki.org/wiki/comp and there's no script component (obviously due there's onl y the script interpreter command packaged), also revised the http://gambaswiki.org/wiki/howto/package the name must be gambas3-scripter.but in debian official still named gambas3-script and i dont know why this package are named as it in official debian... i guess that in some point of the history the wiki "was poiint that gambas scripter package was in name script event scripter"!? also already noted that my packages has some bad calculated dependences,well corrected in the official debian packages.. that will be fixed in few dais.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-14 8:11 GMT-04:00 PICCORO McKAY Lenz : > the qt5 component are active, but in dependences the qt4 component are > primary.. when you install the "gambas3" metapackage > > by default in Debian sid and strecht officia packages now prefer qt5 ove > qt4, but originaly due compatibility issues and packaging facilities in my > packages qt4 has preferences.. > > just use aptitude and browse to the qt5 packages and install .. > > then use the qtchoose command to choose the qt toolkit to prefer > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-14 4:42 GMT-04:00 Dimitris Anogiatis : > >> Awesome job :) >> >> But I have a question >> >> According to the wiki there is a gb.qt5 component for QT5 support of >> Gambas >> >> I haven't followed packaging practices for a long time... has that >> component been >> replaced by something else because I don't see it on your list of >> packages. >> >> >> On Sun, May 13, 2018 at 5:26 PM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> >>> Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly >>> >>> https://software.opensuse.org//download.html?project=home%3A >>> vegnuli%3Agambas&package=gambas3 >>> >>> Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) >>> >>> Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) >>> >>> Debian 7 has no packages yet due some problems with dependences.. >>> >>> JIT module are disable ddue some problems but will be enabled in future >>> >>> >>> must unninstall all the gambas debian original 3.9 or 3.5 package before >>> install them >>> this due stil need correct depends beetween newer >>> >>> no more Windo-like-buntu PPA! yeah! >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon May 14 14:48:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 14 May 2018 12:48:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1313: OPenABS segfault when try to run in 3.11.0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1313&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: solved (or i think could be marked as solved).. the openABS project depends of the gnome desktop componente, today not present.. but that package was not uninstalled from my gambas installation and no packages has proper conflicts with (i think its another problem transition in debian gambas packaging) unnintall the package and now not crashed but do not run! i dont remember the change from that package.. with compoentn i must added to sustitute? PICCORO LENZ MCKAY changed the state of the bug to: NeedsInfo. From sharon at 455.co.il Mon May 14 14:51:32 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 14 May 2018 15:51:32 +0300 Subject: [Gambas-user] Exec crash In-Reply-To: <853eda5c-ab01-10b2-f8ad-e96b1e821184@gmail.com> References: <20180513164017.M74035@455.co.il> <20180513165445.M94840@455.co.il> <853eda5c-ab01-10b2-f8ad-e96b1e821184@gmail.com> Message-ID: <20180514125043.M42026@455.co.il> Thanks Is this corrected in version 3.11? ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Mon, 14 May 2018 01:19:37 +0200 Subject: Re: [Gambas-user] Exec crash > Le 13/05/2018 ? 18:57, Mayost Sharon a ?crit?: > > hello > > > > I notice it has nothing to do with Exec > > It also happens when I write > > > > v_str="/root/" > > > > It's fixed in commit > https://gitlab.com/gambas/gambas/commit/6858457dbb905a611f9e61f94abb3412588c9448. > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net ------- End of Original Message ------- From g4mba5 at gmail.com Mon May 14 14:55:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 May 2018 14:55:59 +0200 Subject: [Gambas-user] Exec crash In-Reply-To: <20180514125043.M42026@455.co.il> References: <20180513164017.M74035@455.co.il> <20180513165445.M94840@455.co.il> <853eda5c-ab01-10b2-f8ad-e96b1e821184@gmail.com> <20180514125043.M42026@455.co.il> Message-ID: <4569cc83-ad5b-7a17-5b82-d96704986606@gmail.com> Le 14/05/2018 ? 14:51, Mayost Sharon a ?crit?: > Thanks > Is this corrected in version 3.11? > The fix will go in a next 3.11.3 release. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Mon May 14 15:29:53 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 14 May 2018 09:29:53 -0400 Subject: [Gambas-user] Exec crash In-Reply-To: <4569cc83-ad5b-7a17-5b82-d96704986606@gmail.com> References: <20180513164017.M74035@455.co.il> <20180513165445.M94840@455.co.il> <853eda5c-ab01-10b2-f8ad-e96b1e821184@gmail.com> <20180514125043.M42026@455.co.il> <4569cc83-ad5b-7a17-5b82-d96704986606@gmail.com> Message-ID: jajajaj too much release, my fault too, i'm one of the guy's that not tested well the rc release! XD XD XD Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-14 8:55 GMT-04:00 Beno?t Minisini : > Le 14/05/2018 ? 14:51, Mayost Sharon a ?crit : > >> Thanks >> Is this corrected in version 3.11? >> >> > The fix will go in a next 3.11.3 release. > > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 14 15:33:17 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 14 May 2018 09:33:17 -0400 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: errr sorry , my fault, qt5 packages are missing, log said that compiles but are missing.. i'll will fix them in coupe of hours sorry! first i'll solve some packagin errors in debian official to make more easy the installation Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-14 4:42 GMT-04:00 Dimitris Anogiatis : > Awesome job :) > > But I have a question > > According to the wiki there is a gb.qt5 component for QT5 support of Gambas > > I haven't followed packaging practices for a long time... has that > component been > replaced by something else because I don't see it on your list of packages. > > > On Sun, May 13, 2018 at 5:26 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> >> Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly >> >> https://software.opensuse.org//download.html?project=home%3A >> vegnuli%3Agambas&package=gambas3 >> >> Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) >> >> Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) >> >> Debian 7 has no packages yet due some problems with dependences.. >> >> JIT module are disable ddue some problems but will be enabled in future >> >> >> must unninstall all the gambas debian original 3.9 or 3.5 package before >> install them >> this due stil need correct depends beetween newer >> >> no more Windo-like-buntu PPA! yeah! >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 14 17:09:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 14 May 2018 11:09:18 -0400 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> Message-ID: GHC has a article dedicated to that problem: "The root of all these problems is *GHC has no control over the LLVM tools it may use*." An then implemented a obviously solution: https://ghc.haskell.org/trac/ghc/wiki/ImprovedLLVMBackend#Asolution If more thatn a opensource project has/mantain a LLVM source treee, can share efforst and produce a good result! it's better rather mantain a new project "alone" by few manpowers (a gambas to c interpreter/bycompiler?) and the the most frecuent coders let the team! We Think about it! Have the LLVM sources/executables included should ideally be a fork of best LLVM version that works with gambas code, as other non trivial languages projects palns to use own LLVM end up patching; is what Haskell GHC and Swift try do. All of these due the LLVM dangerous unstable api: http://smart-cactus.org/~ben/posts/2014-11-28-state-of-llvm-backend.html Gambas still are linux close, but if we want to use on others platform, we need to control the sources that rely on: we cannot rely on the system's version of clang for example: on OS X the default clang is built against Apple's LLVM, whose source code is unknown as pointed in the GHC threath. scala native alto has some problems, but alway the reason are the mantain effors.. so the real solution its to join forces with other teams of open source projects and then prodduce a llvm "for us" as i said, we think about it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-13 14:02 GMT-04:00 Beno?t Minisini : > Le 13/05/2018 ? 18:55, Adrien Prokopowicz a ?crit : > >> Le 06/05/2018 ? 21:43, Beno?t Minisini a ?crit : >> >>> Hi, >>> >>> This is just an idea in the fly. There is nothing concrete at the moment. >>> >>> As you may know, there is a JIT component in Gambas (not made by me) >>> based on LLVM. Alas it does not work with recent versions of LLVM, because >>> apparently this huge project is not able to keep backward compatibility >>> between minor versions. (Worse than GTK+, I couldn't imagine it was >>> possible!) >>> >>> What to do now? >>> >>> 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the >>> original author does not give any news, and I have no knowledge about LLVM, >>> and its C++ interface looks horrible to me. >>> >>> 2) gcc has now a JIT library, but it is an alpha version with a big >>> warning that everything may change between releases, even if it is >>> apparently relatively stable. Moreover, no idea about how many bugs the >>> library has. >>> >>> 3) Writing a Gambas -> C translator. >>> >>> My idea is that the compiler, or maybe an external program eventually >>> written in Gambas, takes a class/module source code, and transform it into >>> a C source file. >>> >>> That C source file will call the interpreter functions when needed >>> through a dedicated interpreter API. >>> >>> Then the C source file will be transform into a shared library loaded at >>> runtime by the interpreter (calling the C compiler that hence must be >>> installed). >>> >>> The advantages are: >>> >>> - C syntax is thousand times more stable than a JIT compiler library >>> that changes at each version. >>> >>> - Maybe better optimizations. >>> >>> The disadvantages are: >>> >>> - You need the compiler. But the JIT library needs most of it too, so... >>> >>> - Compiling is slower than calling a JIT library. >>> >>> - JIT library can compile at the function level. This is not practical >>> with a compiler (we won't make a shared library for each JIT function!). >>> One shared library for each class, or even one for the entire project may >>> be the solution. >>> >>> Now I'm waiting for your comments! >>> >>> Regards, >>> >>> >> I don't think the option #3 is a good way to go (not that the others are >> better ?). >> >> First, going that route will require a *lot* of work, both on short- and >> long-term. >> You will first have to write a full Gambas-to-C transpiler, which >> involves either plugging into gbc (unless you read the compiled output), or >> maintaining the full grammar on two different compilers. >> Then it requires adding and maintaining extra hooks in the interpreter >> for the generated binary to link onto, which I don't know much about, but >> is probably not trivial either. >> > > I don't say it's simple, but it should not be very difficult to generate C > code once the source code has been parsed by the reader and the tree > expression generator. > > Moreover, the compiler tree expression generator statically computes the > datatype of every intermediate expression, which can be used to generate > static C code accurately. > > >> Having to perform a full compilation at startup also completely nullifies >> the advantages of Just-In-Time compilation: standard compilation (e.g. GCC >> or LLVM executable invocation) is not just slower, it is orders of >> magnitude slower, which even for small bits could just add a few seconds of >> startup time to any app that uses it. And considering 99.9% of Gambas code >> speed isn't really affected by any kind of compilation to native code (I >> think the only ones that are enhances are long, tight loops that do number >> crunching, but most if not all apps are just a bunch of calls to component >> APIs or similar), the tradeoff becomes not worth it at all in most cases. :/ >> > > By using a cache, the compilation will be done once (or if the system CPU > changes, but it is usually not frequent). > > And no, I don't think calling the compiler will be magnitude slow, as the > source code will only include one header for the interpreter API, and not > the tons of headers a standard C program includes. > > Moreover, even if 99% of your code does not need speed, the other 1% may > need it badly. > > >> Considering all of this, the first solution that comes to my mind could >> be to simply drop the gb.jit component : it wouldn't be too big of a >> breaking change I think, considering the interpreter already falls back to >> normal operation if it can't find the gb.jit component to perform the >> compilation. >> And it seems it already doesn't work for most users, so dropping >> something that doesn't work anyway probably isn't a huge deal ? >> >> >> The alternative option (which is much simpler than the first three), >> would be to statically link against a specific version of LLVM (the one >> that works for us, we could use git submodules to do this), bundling only >> the parts of the compiler we need with the gb.jit component. Then it works >> for everybody out of the box, and we can update it only when we want, >> incrementally (and drop all those ugly #ifdef checks). >> >> Now that I think about it, LLVM is not meant to be used as a dynamic >> library at all (which explains the pain you're going through trying to do >> so, and why they release breaking versions regularly). All the projects I >> know that rely on LLVM (like clang, openjdk, mono, emscripten, rustc ?) >> link it statically. >> >> > Statically linking to LLVM 3.5 does not solve these problems : some Gambas > instructions are not supported, and new ones cannot be added as I do not > master the original code at all. > > But using C allows to not be dependant on the compiler version, as C is a > relatively stable standard. > > Regards, > > -- > Beno?t Minisini > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 14 17:40:08 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 14 May 2018 11:40:08 -0400 Subject: [Gambas-user] future gmime 3 due removal on some distros of 2.4 and 2.6 Message-ID: Hey first of all i use gmime 2.4 not those "fashioned" 2.6 and 3.0 but there's a case in any way: https://github.com/jstedfast/gmime/blob/master/PORTING as example Debian now are in removal phase to porting to gmime 3.9 i wish that gambas still are compatible and compilable tiwh gmime 2.4 and 2.6 please so then #if-else comes here right? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon May 14 17:58:19 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 14 May 2018 18:58:19 +0300 Subject: [Gambas-user] Gambas 3.11.2 compile Message-ID: <20180514154820.M76051@455.co.il> hello Fedora 28 does not currently have 3.11 I have installed 3.10 Can I leave 3.10? And compile 3.11.2 without collision Thank you From g4mba5 at gmail.com Mon May 14 18:01:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 May 2018 18:01:34 +0200 Subject: [Gambas-user] Gambas 3.11.2 compile In-Reply-To: <20180514154820.M76051@455.co.il> References: <20180514154820.M76051@455.co.il> Message-ID: <65f0d429-59ce-bc4b-db93-e8fd4104ca06@gmail.com> Le 14/05/2018 ? 17:58, Mayost Sharon a ?crit?: > hello > > Fedora 28 does not currently have 3.11 > I have installed 3.10 > Can I leave 3.10? > And compile 3.11.2 without collision > > Thank you > I don't understand what you wrote. I just can say that you can't install two different minor versions of the same major version on the same system. If you want to install any Gambas 3 version, you have entirely remove the other Gambas 3 version previously installed. Regards, -- Beno?t Minisini From mail.gambaspi at gmail.com Mon May 14 19:14:12 2018 From: mail.gambaspi at gmail.com (Zainudin Ahmad) Date: Tue, 15 May 2018 00:14:12 +0700 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> Message-ID: sorry I reported JIT bugs in here. you can watch this video (https://drive.google.com/open?id=19eHA8r0i6qg5v2sM_UYQO1T2N0EyQDHL ) for to know a few bugs in JIT. there is any incompatible thing (in that video function DateAdd not only have a bug but incompatible(not raise an error if use JIT) too) how it's work between gambas+JIT an without JIT. I am not test JIT when write each TestCase(test class) for my "gambas test suite" (the test suite (I used my own auto test tool) still not complete only some function + a few class) so it's possible any bug or maybe incompatible thing in other function. IIRC I get that bug from last year I am not report it in Gambas bug tracker because there is any report in where it's related with JIT still not fix. and it's seem no people report that bugs. this just for an info related with JIT. On Mon, May 7, 2018 at 2:43 AM, Beno?t Minisini wrote: > Hi, > > This is just an idea in the fly. There is nothing concrete at the moment. > > As you may know, there is a JIT component in Gambas (not made by me) based > on LLVM. Alas it does not work with recent versions of LLVM, because > apparently this huge project is not able to keep backward compatibility > between minor versions. (Worse than GTK+, I couldn't imagine it was > possible!) > > What to do now? > > 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the > original author does not give any news, and I have no knowledge about LLVM, > and its C++ interface looks horrible to me. > > 2) gcc has now a JIT library, but it is an alpha version with a big > warning that everything may change between releases, even if it is > apparently relatively stable. Moreover, no idea about how many bugs the > library has. > > 3) Writing a Gambas -> C translator. > > My idea is that the compiler, or maybe an external program eventually > written in Gambas, takes a class/module source code, and transform it into > a C source file. > > That C source file will call the interpreter functions when needed through > a dedicated interpreter API. > > Then the C source file will be transform into a shared library loaded at > runtime by the interpreter (calling the C compiler that hence must be > installed). > > The advantages are: > > - C syntax is thousand times more stable than a JIT compiler library that > changes at each version. > > - Maybe better optimizations. > > The disadvantages are: > > - You need the compiler. But the JIT library needs most of it too, so... > > - Compiling is slower than calling a JIT library. > > - JIT library can compile at the function level. This is not practical > with a compiler (we won't make a shared library for each JIT function!). > One shared library for each class, or even one for the entire project may > be the solution. > > Now I'm waiting for your comments! > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon May 14 23:18:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 14 May 2018 21:18:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Ingo B. reported a new bug. Summary ------- Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so Type : Bug Priority : Medium Gambas version : Unknown Product : XML components Description ----------- Program raises a seg-fault when parsing a html-document. System information ------------------ [System] Gambas=3.11.2 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Cleanlooks Language=de_DE.UTF-8 Memory=3926M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-si2CQMtxa8,guid=5dce1d8eebc36dcd67ea5c3a5af9f3be DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-SWUVXe GNOME_KEYRING_PID=1828 GPG_AGENT_INFO=/run/user/1000/keyring-SWUVXe/gpg:0:1 GTK_OVERLAY_SCROLLING=0 HOME= LANG=de_DE.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=de_DE.UTF-8 MDM_XSERVER_LOCATION=local PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1905,unix/:/tmp/.ICE-unix/1905 SHELL=/bin/bash SSH_AGENT_PID=2032 SSH_AUTH_SOCK=/run/user/1000/keyring-SWUVXe/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=aa274b7a671aedab5cc0b16f58c417e5-1526330301.277027-1092649008 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 From bugtracker at gambaswiki.org Mon May 14 23:18:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 14 May 2018 21:18:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Ingo B. added an attachment: seg-fault.txt From bugtracker at gambaswiki.org Mon May 14 23:23:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 14 May 2018 21:23:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Ingo B. added an attachment: seg-fault-0.0.1.tar.gz From bugtracker at gambaswiki.org Mon May 14 23:50:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 14 May 2018 21:50:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: hi, can you test agains gambas 3.11.0 and report feedback? 3.11.2 has some changes in xml components From bugtracker at gambaswiki.org Mon May 14 23:51:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 14 May 2018 21:51:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #2 by Adrien PROKOPOWICZ: I cannot reproduce this crash: the project you sent tries to download an HTML file from a website, but it returns an HTTP 503 error when trying to download it. I tried to download it manually as well, but the resulting page does not produce a segfault. To make sure we work on the same file, please download it directly (instead of going through HttpClient), and put it in the project directly. Adrien PROKOPOWICZ changed the state of the bug to: NeedsInfo. From mckaygerhard at gmail.com Tue May 15 14:29:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 15 May 2018 08:29:25 -0400 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: Hi all, i fixed and updated Gambas Debian packages now: - correct and put the QT5 componentes missing - correct and put the SDL2 components missing - added replaces and conflicts to the scripper package - fixed older manpage refers and contents - fixed the build dependences, all the packagers around gambas has very bad calculated - fixed the package dependences calculation too JIT now compiles in my package, but the dependency calculation and detection of version to use are broken in rules, due i'm very busy i temporaly disabled for now.. Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly https://software.opensuse.org//download.html?project=home% 3Avegnuli%3Agambas&package=gambas3 Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) Debian 7 has no packages yet due some problems with dependences.. but i'll do the best! REASONS OF MY PACKAGES: Seem Debian package of my repository will help and are bvery very need! As i can see here: https://tracker.debian.org/pkg/gambas3 the debian official gambas package was removed from testing respect git (that has yet 3.10 ready to deploy) due does not compiled! Also llvm related bug of gambas here: http://gambaswiki.org/bugtracker/edit?object=BUG.835 i cited --> "What's the problem with keeping an old version of LLVM? Do you plan to remove QT4, sqlite2 or GStreamer 1.0?" <-- - *Others repositories are made for windo.. i mean* winbuntu distros.. tha have conflicts and does not instsall property, also those packages seems have bad calculated dependences.. well no more ppa now! - *In Debian official qt4 will be removed, and that causes couple of issues on qt4.. *(please *take in consideration that many distros still uses qt4 and also qt4 are more light rather than qt5* in obviously reasons). The qt4 related coponents were yet removed in the bug issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784465 that's not so bad but neither that's not so good, due many cannot switch to qt5 due the resource usage on their machines.. by example the EMF10 canaimitas laptops.. this is an exclusionary policy for me. - *some modules has no proper transcition and no proper conflicts*, beetween gambas 3.1 to 3.5 there's transcition problems and beetween gambas 3.5 to 3.8 there's another transcition conflicts that debian still yet not resolved (*take as example the gambas scripter package vs the gambas-script * debian official package), currentluy debian does not follow the Gambas packagin rules! - *the jit compiler will be disabled for future debian 9+*, this feature will be rejected by the debian mantainers due do not follow policies.. for more info i recomend to read that article: http://smart-cactus.org/~ben/p osts/2014-11-28-state-of-llvm-backend.html that explain the situation very clear - *bad calculated depens, redundant depends* take a shot: in debian official debian gambas-gb-db depend on gambas-gb-db-form and vice-versa! I *have to concluded that the Debian official gambas package I's no so usefully for the gambas community that uses Debian or Devuan as current daily linux...* so then i'll try from now distribute packages for Debian but not on each release, only on each mayor changes release, https://software.opensuse.org//download.html?project=home%3A vegnuli%3Agambas&package=gambas3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebikul at gmail.com Tue May 15 15:21:27 2018 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Tue, 15 May 2018 10:21:27 -0300 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: On Tue, May 15, 2018, 09:30 PICCORO McKAY Lenz wrote: > Hi all, i fixed and updated Gambas Debian packages now: > > - correct and put the QT5 componentes missing > - correct and put the SDL2 components missing > - added replaces and conflicts to the scripper package > - fixed older manpage refers and contents > - fixed the build dependences, all the packagers around gambas has > very bad calculated > - fixed the package dependences calculation too > > JIT now compiles in my package, but the dependency calculation and > detection of version to use are broken in rules, due i'm very busy i > temporaly disabled for now.. > > > Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly > > > https://software.opensuse.org//download.html?project=home%3Avegnuli%3Agambas&package=gambas3 > > Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) > > Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) > > Debian 7 has no packages yet due some problems with dependences.. but i'll > do the best! > > REASONS OF MY PACKAGES: > > Seem Debian package of my repository will help and are bvery very need! As > i can see here: https://tracker.debian.org/pkg/gambas3 the debian > official gambas package was removed from testing respect git (that has yet > 3.10 ready to deploy) due does not compiled! Also llvm related bug of > gambas here: http://gambaswiki.org/bugtracker/edit?object=BUG.835 i > cited --> "What's the problem with keeping an old version of LLVM? Do you > plan to remove QT4, sqlite2 or GStreamer 1.0?" <-- > > > - *Others repositories are made for windo.. i mean* winbuntu distros.. > tha have conflicts and does not instsall property, also those packages > seems have bad calculated dependences.. well no more ppa now! > > I have maintained that repository for more than 5 years now, and is used by thousands of users (literally). An so far, no reports of problems from users for the latest Gambas release. In fact, I received several confirmations that they are working properly. If you found a bug, or a packaging issue in the PPA, please bring it up so that I can fix it. This is not a competition of who has the "best" packages. If you have no evidence or constructive arguments, please stop critizicing other people's work. Regards > - *In Debian official qt4 will be removed, and that causes couple of > issues on qt4.. *(please *take in consideration that many distros > still uses qt4 and also qt4 are more light rather than qt5* in > obviously reasons). The qt4 related coponents were yet removed in the bug > issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784465 that's > not so bad but neither that's not so good, due many cannot switch to qt5 > due the resource usage on their machines.. by example the EMF10 canaimitas > laptops.. this is an exclusionary policy for me. > - *some modules has no proper transcition and no proper conflicts*, > beetween gambas 3.1 to 3.5 there's transcition problems and beetween gambas > 3.5 to 3.8 there's another transcition conflicts that debian still yet not > resolved (*take as example the gambas scripter package vs the > gambas-script * debian official package), currentluy debian does not > follow the Gambas packagin rules! > - *the jit compiler will be disabled for future debian 9+*, this > feature will be rejected by the debian mantainers due do not follow > policies.. for more info i recomend to read that article: > http://smart-cactus.org/~ben/posts/2014-11-28-state-of-llvm-backend.html > that explain the situation very clear > - *bad calculated depens, redundant depends* take a shot: in debian > official debian gambas-gb-db depend on gambas-gb-db-form and vice-versa! > > > > I *have to concluded that the Debian official gambas package I's no so > usefully for the gambas community that uses Debian or Devuan as current > daily linux...* > > so then i'll try from now distribute packages for Debian but not on each > release, only on each mayor changes release, > > > https://software.opensuse.org//download.html?project=home%3Avegnuli%3Agambas&package=gambas3 > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue May 15 16:19:50 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 15 May 2018 10:19:50 -0400 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: 2018-05-15 9:21 GMT-04:00 Sebasti?n Kulesz : > I have maintained that repository for more than 5 years now, and is used > by thousands of users (literally). An so far, no reports of problems from > users for the latest Gambas release. In fact, I received several > confirmations that they are working properly. > If you found a bug, or a packaging issue in the PPA, please bring it up so > that I can fix it. This is not a competition of who has the "best" > packages. > If you have no evidence or constructive arguments, please stop critizicing > other people's work. > Hi sebastian! sorry for that, but seems report a bug again launchpad are a pain.. i not have luck in years and yes i used in some ways your packages but dependences are not well calculated for Debian specific.. as example the pdf package are in conflict! that's due the poppler library are very different api beetween debian releases and others The packages made by me are specific for Debian and Devuan.. as i can search some Debian derivates cannot use your repositories due obviously reasons > > Regards > > >> - *In Debian official qt4 will be removed, and that causes couple of >> issues on qt4.. *(please *take in consideration that many distros >> still uses qt4 and also qt4 are more light rather than qt5* in >> obviously reasons). The qt4 related coponents were yet removed in the bug >> issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784465 that's >> not so bad but neither that's not so good, due many cannot switch to qt5 >> due the resource usage on their machines.. by example the EMF10 canaimitas >> laptops.. this is an exclusionary policy for me. >> - *some modules has no proper transcition and no proper conflicts*, >> beetween gambas 3.1 to 3.5 there's transcition problems and beetween gambas >> 3.5 to 3.8 there's another transcition conflicts that debian still yet not >> resolved (*take as example the gambas scripter package vs the >> gambas-script * debian official package), currentluy debian does not >> follow the Gambas packagin rules! >> - *the jit compiler will be disabled for future debian 9+*, this >> feature will be rejected by the debian mantainers due do not follow >> policies.. for more info i recomend to read that article: >> http://smart-cactus.org/~ben/posts/2014-11-28-state-of-llvm- >> backend.html >> >> that explain the situation very clear >> - *bad calculated depens, redundant depends* take a shot: in debian >> official debian gambas-gb-db depend on gambas-gb-db-form and vice-versa! >> >> >> >> I *have to concluded that the Debian official gambas package I's no so >> usefully for the gambas community that uses Debian or Devuan as current >> daily linux...* >> >> so then i'll try from now distribute packages for Debian but not on each >> release, only on each mayor changes release, >> >> https://software.opensuse.org//download.html?project=home%3A >> vegnuli%3Agambas&package=gambas3 >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue May 15 20:52:11 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 18:52:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #3 by Ingo B.: Hi Adrien. Same behavior :-( See attached project. It's now minimized. Within the project you find the html page - separate downloaded by Firefox- and the output of gdb/bt. Btw. Christof could also determine the error. With 3.10 there was no problem. Thanks and best regards Ingo Ingo B. changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Tue May 15 20:53:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 18:53:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Ingo B. added an attachment: seg-fault_v2-0.0.1.tar.gz From bugtracker at gambaswiki.org Tue May 15 20:55:34 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 18:55:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #4 by Ingo B.: If I start the project for second or third rime it raises an ou-of-bound eror. But that definitely can't be. In line 996 of the html-file there is: 2075  Regards Ingo From bugtracker at gambaswiki.org Tue May 15 21:05:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 19:05:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1315: Component gb.pdf of Commit 2ac99a0f fails to compile using gcc 8.10.0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1315&from=L21haW4- Tony MOREHEN added an attachment: gambas-poppler-0.64.patch From bugtracker at gambaswiki.org Tue May 15 21:05:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 19:05:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #5 by C THAL: Yes here it segfaults also. Maybe this helps: [System] Gambas=3.11.2 OperatingSystem=Linux Kernel=4.4.0-124-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=XFCE Theme=Gtk Language=de_DE.UTF-8 Memory=7683M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bAHq2LePE9 DEFAULTS_PATH=/usr/share/gconf/xfce.default.path DESKTOP_SESSION=xfce DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xfce GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GTK_IM_MODULE=xim GTK_MODULES=canberra-gtk-module:canberra-gtk-module:gail:atk-bridge HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus 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 PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE= QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=xfce SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/3813,unix/:/tmp/.ICE-unix/3813 SHELL=/usr/bin/zsh SHLVL=0 SSH_AGENT_PID=3821 SSH_AUTH_SOCK=/tmp/ssh-lQR6EtavyqYc/agent.3820 TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=startxfce4 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/2983 USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xfce:/usr/share/xfce4:/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-1526245778.515458-133890611 XDG_SESSION_DESKTOP=xfce XDG_SESSION_ID=1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=none From bugtracker at gambaswiki.org Tue May 15 21:24:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 19:24:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #6 by PICCORO LENZ MCKAY: so then With 3.10 there was no problem. related commits that might help for further investigations: * https://gitlab.com/gambas/gambas/commit/29aadcb617df67be0a630f4d5d70542796536e39 * https://gitlab.com/gambas/gambas/commit/f33ee45041a7d60ab900b4f62191e91c07943ad0 * https://gitlab.com/gambas/gambas/commit/6fd076a9ef55926deee27e60a0f7f24bb4839f94 * https://gitlab.com/gambas/gambas/commit/2ac99a0f2adce23ddc4e1284dbd2f318aa1fb9e1 * https://gitlab.com/gambas/gambas/commit/2865c9def1e4fd86d3ba0cf9a1579dfd5bf1d667 From bugtracker at gambaswiki.org Tue May 15 21:26:15 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 19:26:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1315: Component gb.pdf of Commit 2ac99a0f fails to compile using gcc 8.10.0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1315&from=L21haW4- Comment #1 by Tobias BOEGE: Thanks, Tony. The first bunch of lines in the patch look good, because they add 'const's, but in some places you cast consts away, which shouldn't do. The solution of course is to stick even more consts everywhere. I did that in fdf8fa658 and now the component compiles again on my system. The DocumentView example from the software farm doesn't crash either. Others should test if gb.pdf continues to compile on their older popplers, too. Tobias BOEGE changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Tue May 15 21:36:31 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 19:36:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1317: when page loads, if hit "end" does not render, blanck its show and page don't down Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1317&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- when page loads, if hit "end" does not render, blanck its show and page don't down Type : Bug Priority : Medium Gambas version : Master Product : Bugtracker Description ----------- procedure: 1. load a bug link 2. waith until renders the html/page.. 3. if the bug has more than one comment, specially more than 3, hit "end" key EXPECTED BEHAVIOR see the last comment and footer etc of the html/page rendered ACTUAL BEHAVIOR goes blank, page does not down, you must hit "start" or go to the top of page and slowly down or slide the nav bar.. if not always renders blank BROWSER: firefox 52 ESR chromiun 57 System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From bugtracker at gambaswiki.org Tue May 15 21:57:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 19:57:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #7 by Tobias BOEGE: I can reproduce this as well with master. I get "Out of bounds" and segfaults. Here is a backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00007fffee8deb71 in XMLElement_GetAttribute (elmt=0x555555b36100, nattrName=0x7fffee6cb53f "class", nlenAttrName=5, mode=0) at element.cpp:187 187 if(GB_MatchString(attr->attrName, attr->lenAttrName, nattrName, nlenAttrName, mode)) (gdb) bt #0 0x00007fffee8deb71 in XMLElement_GetAttribute(Element const*, char const*, unsigned long, int) (elmt=0x555555b36100, nattrName=0x7fffee6cb53f "class", nlenAttrName=5, mode=0) at element.cpp:187 #1 0x00007fffee8dcad1 in XMLNode_addGBChildrenByAttributeValue(Node*, char const*, unsigned long, char const*, unsigned long, void**, int, int) (node=0x555555b36100, attrName=0x7fffee6cb53f "class", lenAttrName=5, attrValue=0x555555b197f4 "numberSociety", lenAttrValue=13, array=0x7fffffffcf10, mode=0, depth=-1) at node.cpp:343 #2 0x00007fffee8dca53 in XMLNode_getGBChildrenByAttributeValue(Node*, char const*, unsigned long, char const*, unsigned long, void**, int, int) (node=0x555555b36100, attrName=0x7fffee6cb53f "class", lenAttrName=5, attrValue=0x555555b197f4 "numberSociety", lenAttrValue=13, array=0x7fffffffcf10, mode=0, depth=-1) at node.cpp:331 #3 0x00007fffee6c6f8d in HtmlDocument_GetElementsByClassName(Document*, char const*, unsigned long, void**, int) (doc=0x555555b36100, className=0x555555b197f4 "numberSociety", lenClassName=13, array=0x7fffffffcf10, depth=-1) at htmldocument.cpp:235 #4 0x00007fffee6c7e77 in CDocument_getElementsByClassName(void*, void*) (_object=0x555555b3c0a8, _param=0x7ffff66710a0) at CHTMLDocument.cpp:145 #5 0x00005555555a167e in EXEC_native () at gbx_exec.c:1375 [...] (gdb) list 182 183 Attribute* XMLElement_GetAttribute(const Element *elmt, const char *nattrName, const size_t nlenAttrName, const int mode) 184 { 185 for(Attribute *attr = elmt->firstAttribute; attr != 0; attr = (Attribute*)(attr->nextNode)) 186 { 187 if(GB_MatchString(attr->attrName, attr->lenAttrName, nattrName, nlenAttrName, mode)) 188 return attr; 189 } 190 return 0; 191 } (gdb) print attr $1 = (Attribute *) 0x4500450003003d (gdb) print *attr Cannot access memory at address 0x4500450003003d I have ran this backtrace a dozen times now and whenever the segfault happens, attr is the suspicious-looking value 0x4500450003003d. Almost half the bytes are printable ASCII. From bugtracker at gambaswiki.org Tue May 15 22:21:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 20:21:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #8 by Adrien PROKOPOWICZ: Okay, I can reproduce the segfault now (yay for undefined behavior!). I'm working on a fix now. :-) From bugtracker at gambaswiki.org Wed May 16 01:19:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 23:19:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- vuott VUOTT reported a new bug. Summary ------- ERROR with Commit fdf8fa65 Type : Bug Priority : Medium Gambas version : Master Product : Unknown Description ----------- Hello, I tried to install commit fdf8fa65, but during "make" I obtained those errors: make[4]: Entering directory '/home/vuott/gambasdevel/gb.pdf/src' CXX gb_pdf_la-main.lo CXX gb_pdf_la-CPdfDocument.lo CPdfDocument.cpp: In function ?void aux_return_string_info(void*, const char*)?: CPdfDocument.cpp:152:35: error: passing ?const GooString? as ?this? argument discards qualifiers [-fpermissive] if (goo_value->hasUnicodeMarker()) ^ In file included from /usr/include/poppler/Object.h:42:0, from /usr/include/poppler/XRef.h:41, from /usr/include/poppler/PDFDoc.h:46, from CPdfDocument.h:29, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooString.h:163:9: note: in call to ?GBool GooString::hasUnicodeMarker()? GBool hasUnicodeMarker(void); ^ CPdfDocument.cpp: In function ?void aux_return_date_info(void*, const char*)?: CPdfDocument.cpp:196:29: error: passing ?const GooString? as ?this? argument discards qualifiers [-fpermissive] if (goo->hasUnicodeMarker()) ^ In file included from /usr/include/poppler/Object.h:42:0, from /usr/include/poppler/XRef.h:41, from /usr/include/poppler/PDFDoc.h:46, from CPdfDocument.h:29, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooString.h:163:9: note: in call to ?GBool GooString::hasUnicodeMarker()? GBool hasUnicodeMarker(void); ^ CPdfDocument.cpp: In function ?const LinkDest* get_dest(const LinkAction*)?: CPdfDocument.cpp:229:23: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] switch (act->getKind()) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^ CPdfDocument.cpp: In function ?uint32_t aux_get_page_from_action(void*, const LinkAction*)?: CPdfDocument.cpp:252:21: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] if (act->getKind () == actionGoTo) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^ CPdfDocument.cpp:256:36: error: invalid conversion from ?const GooString*? to ?GooString*? [-fpermissive] dest = THIS->doc->findDest(name); ^ In file included from CPdfDocument.h:29:0, from CPdfDocument.cpp:26: /usr/include/poppler/PDFDoc.h:187:13: note: initializing argument 1 of ?LinkDest* PDFDoc::findDest(GooString*)? LinkDest *findDest(GooString *name) ^ CPdfDocument.cpp:263:22: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] if (dest->isPageRef() ) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:110:9: note: in call to ?GBool LinkDest::isPageRef()? GBool isPageRef() { return pageIsRef; } ^ CPdfDocument.cpp:265:26: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] pref= dest->getPageRef(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:112:7: note: in call to ?Ref LinkDest::getPageRef()? Ref getPageRef() { return pageRef; } ^ CPdfDocument.cpp:269:27: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] return dest->getPageNum(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:111:7: note: in call to ?int LinkDest::getPageNum()? int getPageNum() { return pageNum; } ^ CPdfDocument.cpp: In function ?void aux_get_dimensions_from_action(const LinkAction*, CPDFRECT*)?: CPdfDocument.cpp:279:26: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->x = dest->getLeft(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:113:10: note: in call to ?double LinkDest::getLeft()? double getLeft() { return left; } ^ CPdfDocument.cpp:280:27: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->w = dest->getRight() - rect->x; ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:115:10: note: in call to ?double LinkDest::getRight()? double getRight() { return right; } ^ CPdfDocument.cpp:281:25: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->y = dest->getTop(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:116:10: note: in call to ?double LinkDest::getTop()? double getTop() { return top; } ^ CPdfDocument.cpp:282:28: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->h = dest->getBottom() - rect->y; ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:114:10: note: in call to ?double LinkDest::getBottom()? double getBottom() { return bottom; } ^ CPdfDocument.cpp: In function ?double aux_get_zoom_from_action(const LinkAction*)?: CPdfDocument.cpp:289:24: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] return dest->getZoom(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:117:10: note: in call to ?double LinkDest::getZoom()? double getZoom() { return zoom; } ^ CPdfDocument.cpp: In function ?char* aux_get_target_from_action(const LinkAction*)?: CPdfDocument.cpp:300:23: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] switch (act->getKind()) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^ CPdfDocument.cpp:327:28: error: passing ?const GooString? as ?this? argument discards qualifiers [-fpermissive] if (tmp->hasUnicodeMarker()) ^ In file included from /usr/include/poppler/Object.h:42:0, from /usr/include/poppler/XRef.h:41, from /usr/include/poppler/PDFDoc.h:46, from CPdfDocument.h:29, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooString.h:163:9: note: in call to ?GBool GooString::hasUnicodeMarker()? GBool hasUnicodeMarker(void); ^ CPdfDocument.cpp: In function ?void PDFDOCUMENT_has_index(void*, void*)?: CPdfDocument.cpp:710:57: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] GB.ReturnBoolean(THIS->index && THIS->index->getLength()); ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:51:7: note: in call to ?int GooList::getLength()? int getLength() { return length; } ^ CPdfDocument.cpp: In function ?void PDFDOCUMENT_index(void*, void*)?: CPdfDocument.cpp:718:62: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] THIS->action=((OutlineItem*)THIS->index->get(THIS->currindex))->getAction(); ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:60:9: note: in call to ?void* GooList::get(int)? void *get(int i) { return data[i]; } ^ CPdfDocument.cpp: In function ?void PDFINDEX_count(void*, void*)?: CPdfDocument.cpp:725:42: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] GB.ReturnInteger(THIS->index->getLength()); ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:51:7: note: in call to ?int GooList::getLength()? int getLength() { return length; } ^ CPdfDocument.cpp: In function ?void PDFINDEX_has_children(void*, void*)?: CPdfDocument.cpp:733:57: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] item = (OutlineItem *)THIS->index->get (THIS->currindex); ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:60:9: note: in call to ?void* GooList::get(int)? void *get(int i) { return data[i]; } ^ CPdfDocument.cpp: In function ?void PDFINDEX_is_open(void*, void*)?: CPdfDocument.cpp:742:57: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] item = (OutlineItem *)THIS->index->get (THIS->currindex); ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:60:9: note: in call to ?void* GooList::get(int)? void *get(int i) { return data[i]; } ^ CPdfDocument.cpp: In function ?void PDFINDEX_title(void*, void*)?: CPdfDocument.cpp:756:57: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] item = (OutlineItem *)THIS->index->get (THIS->currindex); ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:60:9: note: in call to ?void* GooList::get(int)? void *get(int i) { return data[i]; } ^ CPdfDocument.cpp: In function ?void PDFINDEX_next(void*, void*)?: CPdfDocument.cpp:785:63: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] if ( (THIS->currindex+1) >= (uint32_t)THIS->index->getLength() ) ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:51:7: note: in call to ?int GooList::getLength()? int getLength() { return length; } ^ CPdfDocument.cpp: In function ?void PDFINDEX_child(void*, void*)?: CPdfDocument.cpp:797:57: error: passing ?const GooList? as ?this? argument discards qualifiers [-fpermissive] item = (OutlineItem *)THIS->index->get (THIS->currindex); ^ In file included from CPdfDocument.h:32:0, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooList.h:60:9: note: in call to ?void* GooList::get(int)? void *get(int i) { return data[i]; } ^ CPdfDocument.cpp: In function ?void PDFPAGELINKDATA_parameters(void*, void*)?: CPdfDocument.cpp:1071:28: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] if (THIS->action->getKind() != actionLaunch ) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^ CPdfDocument.cpp: In function ?void PDFPAGELINKDATA_type(void*, void*)?: CPdfDocument.cpp:1114:52: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] GB.ReturnInteger ( (int32_t)THIS->action->getKind() ); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^ Makefile:508: recipe for target 'gb_pdf_la-CPdfDocument.lo' failed make[4]: *** [gb_pdf_la-CPdfDocument.lo] Error 1 make[4]: Leaving directory '/home/vuott/gambasdevel/gb.pdf/src' Makefile:436: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/home/vuott/gambasdevel/gb.pdf' Makefile:368: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/home/vuott/gambasdevel/gb.pdf' Makefile:439: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/vuott/gambasdevel' Makefile:380: recipe for target 'all' failed make: *** [all] Error 2 From bugtracker at gambaswiki.org Wed May 16 01:31:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 23:31:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #1 by Tobias BOEGE: Judging by the method names, all those are read-only accessors, but they are not declared as such in older versions of poppler, it seems. From the poppler 0.64 changelog: core: * Add const to several classes and members It's more of a pain in the ass than it sounded at first. Tobias BOEGE changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 16 01:48:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 15 May 2018 23:48:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #9 by Adrien PROKOPOWICZ: Issue fixed in commit https://gitlab.com/gambas/gambas/commit/6c9f64666aa84289cb0c6750ac81729c537f7836 Adrien PROKOPOWICZ changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed May 16 02:01:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 00:01:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #2 by Tobias BOEGE: Is it better with 0893ca7de? In addition, it would have been nice if you provided your libpoppler version. All your errors, except for one, are the same. The exceptional error is an odd one because the gb.pdf source code indicates that adding 'const' worked with poppler 0.6 and it works here with 0.64. Your error says I have to remove the 'const'. That might mean the constness changed twice between 0.6 and 0.64, which sounds strange to me. Tobias BOEGE changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Wed May 16 02:06:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 00:06:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #3 by Beno?t MINISINI: Nope, it's still does not compile with gcc 7.2.0 on Ubuntu 17.10: [...] CXX gb_pdf_la-CPdfDocument.lo CPdfDocument.cpp: In function ?const LinkDest* get_dest(const LinkAction*)?: CPdfDocument.cpp:229:23: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] switch (act->getKind()) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^~~~~~~ CPdfDocument.cpp: In function ?uint32_t aux_get_page_from_action(void*, const LinkAction*)?: CPdfDocument.cpp:252:21: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] if (act->getKind () == actionGoTo) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^~~~~~~ CPdfDocument.cpp:270:22: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] if (dest->isPageRef() ) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:110:9: note: in call to ?GBool LinkDest::isPageRef()? GBool isPageRef() { return pageIsRef; } ^~~~~~~~~ CPdfDocument.cpp:272:26: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] pref= dest->getPageRef(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:112:7: note: in call to ?Ref LinkDest::getPageRef()? Ref getPageRef() { return pageRef; } ^~~~~~~~~~ CPdfDocument.cpp:276:27: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] return dest->getPageNum(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:111:7: note: in call to ?int LinkDest::getPageNum()? int getPageNum() { return pageNum; } ^~~~~~~~~~ CPdfDocument.cpp: In function ?void aux_get_dimensions_from_action(const LinkAction*, CPDFRECT*)?: CPdfDocument.cpp:286:26: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->x = dest->getLeft(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:113:10: note: in call to ?double LinkDest::getLeft()? double getLeft() { return left; } ^~~~~~~ CPdfDocument.cpp:287:27: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->w = dest->getRight() - rect->x; ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:115:10: note: in call to ?double LinkDest::getRight()? double getRight() { return right; } ^~~~~~~~ CPdfDocument.cpp:288:25: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->y = dest->getTop(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:116:10: note: in call to ?double LinkDest::getTop()? double getTop() { return top; } ^~~~~~ CPdfDocument.cpp:289:28: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] rect->h = dest->getBottom() - rect->y; ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:114:10: note: in call to ?double LinkDest::getBottom()? double getBottom() { return bottom; } ^~~~~~~~~ CPdfDocument.cpp: In function ?double aux_get_zoom_from_action(const LinkAction*)?: CPdfDocument.cpp:296:24: error: passing ?const LinkDest? as ?this? argument discards qualifiers [-fpermissive] return dest->getZoom(); ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:117:10: note: in call to ?double LinkDest::getZoom()? double getZoom() { return zoom; } ^~~~~~~ CPdfDocument.cpp: In function ?char* aux_get_target_from_action(const LinkAction*)?: CPdfDocument.cpp:307:23: error: passing ?const LinkAction? as ?this? argument discards qualifiers [-fpermissive] switch (act->getKind()) ^ In file included from CPdfDocument.cpp:45:0: /usr/include/poppler/Link.h:72:26: note: in call to ?virtual LinkActionKind LinkAction::getKind()? virtual LinkActionKind getKind() = 0; ^~~~~~~ Makefile:508?: la recette pour la cible ??gb_pdf_la-CPdfDocument.lo?? a ?chou?e make[2]: *** [gb_pdf_la-CPdfDocument.lo] Erreur 1 make[2]?: on quitte le r?pertoire ??/home/benoit/gambas/git/master/gb.pdf/src?? Makefile:436?: la recette pour la cible ??all-recursive?? a ?chou?e make[1]: *** [all-recursive] Erreur 1 make[1]?: on quitte le r?pertoire ??/home/benoit/gambas/git/master/gb.pdf?? Makefile:368?: la recette pour la cible ??all?? a ?chou?e make: *** [all] Erreur 2 Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 16 02:07:38 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 00:07:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #4 by Beno?t MINISINI: My poppler is 0.57.0. From bugtracker at gambaswiki.org Wed May 16 02:25:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 00:25:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #5 by Beno?t MINISINI: My problem with poppler 0.57.0 is fixed with commit https://gitlab.com/gambas/gambas/commit/e528f3441a96d727ec6ff7b72ee8220e243ca4d1. From bugtracker at gambaswiki.org Wed May 16 02:26:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 00:26:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #6 by Tobias BOEGE: Well, my understanding of the problem is that certain functions in 0.64 return explicitly const data, so that I had to declare the variables holding the return values as const. That is not a problem usually, but sometimes they are objects, and pre-0.64 popplers don't seem to declare getters on them as const. Calling non-const methods on const objects gives you the abundance of errors above. Right now, the only solution (aside from -fpermissive) seems to be to take all the consts I added in fdf8fa65 and wrap them in an #ifdef. Sorry, I'll not go through that now but tomorrow when my eyes hurt less and none of you came up with a better trick. From bugtracker at gambaswiki.org Wed May 16 02:28:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 00:28:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #7 by Tobias BOEGE: > https://gitlab.com/gambas/gambas/commit/e528f3441a96d727ec6ff7b72ee8220e243ca4d1. ... and there is the trick. Nice idea and compiles here. Tobias BOEGE changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed May 16 02:31:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 00:31:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #8 by Beno?t MINISINI: Commit https://gitlab.com/gambas/gambas/commit/f87cd1025b40791f2e77862d2491016f2172f859 should fix the initial problem too. @vuott: Can you confirm? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Wed May 16 03:21:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 01:21:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #9 by vuott VUOTT: No, I can not, because I obtain: make[4]: Entering directory '/home/vuott/gambasdevel/gb.pdf/src' CXX gb_pdf_la-main.lo CXX gb_pdf_la-CPdfDocument.lo CPdfDocument.cpp: In function ?void aux_return_string_info(void*, const char*)?: CPdfDocument.cpp:152:35: error: passing ?const GooString? as ?this? argument discards qualifiers [-fpermissive] if (goo_value->hasUnicodeMarker()) ^ In file included from /usr/include/poppler/Object.h:42:0, from /usr/include/poppler/XRef.h:41, from /usr/include/poppler/PDFDoc.h:46, from CPdfDocument.h:29, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooString.h:163:9: note: in call to ?GBool GooString::hasUnicodeMarker()? GBool hasUnicodeMarker(void); ^ CPdfDocument.cpp: In function ?void aux_return_date_info(void*, const char*)?: CPdfDocument.cpp:196:29: error: passing ?const GooString? as ?this? argument discards qualifiers [-fpermissive] if (goo->hasUnicodeMarker()) ^ In file included from /usr/include/poppler/Object.h:42:0, from /usr/include/poppler/XRef.h:41, from /usr/include/poppler/PDFDoc.h:46, from CPdfDocument.h:29, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooString.h:163:9: note: in call to ?GBool GooString::hasUnicodeMarker()? GBool hasUnicodeMarker(void); ^ CPdfDocument.cpp: In function ?char* aux_get_target_from_action(LinkAction*)?: CPdfDocument.cpp:334:28: error: passing ?const GooString? as ?this? argument discards qualifiers [-fpermissive] if (tmp->hasUnicodeMarker()) ^ In file included from /usr/include/poppler/Object.h:42:0, from /usr/include/poppler/XRef.h:41, from /usr/include/poppler/PDFDoc.h:46, from CPdfDocument.h:29, from CPdfDocument.cpp:26: /usr/include/poppler/goo/GooString.h:163:9: note: in call to ?GBool GooString::hasUnicodeMarker()? GBool hasUnicodeMarker(void); ^ Makefile:508: recipe for target 'gb_pdf_la-CPdfDocument.lo' failed make[4]: *** [gb_pdf_la-CPdfDocument.lo] Error 1 make[4]: Leaving directory '/home/vuott/gambasdevel/gb.pdf/src' Makefile:436: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/home/vuott/gambasdevel/gb.pdf' Makefile:368: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/home/vuott/gambasdevel/gb.pdf' Makefile:439: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/vuott/gambasdevel' Makefile:380: recipe for target 'all' failed make: *** [all] Error 2 vuott VUOTT changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 16 03:29:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 01:29:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #10 by vuott VUOTT: I added my system informations in textbox on top. From twopilots at interisland.net Wed May 16 03:05:11 2018 From: twopilots at interisland.net (Ed & Clare Kelm) Date: Tue, 15 May 2018 18:05:11 -0700 Subject: [Gambas-user] WeekDay function Message-ID: <44446bac-7d29-6900-8845-66ab0a6bf5ba@interisland.net> List: Just got an update (3.11.2) to Gambas3, and the WeekDay function now is off by one day. WeekDay("1/1/2018") returns "0" (Sunday), but should return "1" (Monday).? Any other date is also off, by the same amount. I verified in a laptop running Xubuntu 14.04, and in one running Xubuntu 16.04. Thanks! From g4mba5 at gmail.com Wed May 16 03:46:04 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 May 2018 03:46:04 +0200 Subject: [Gambas-user] WeekDay function In-Reply-To: <44446bac-7d29-6900-8845-66ab0a6bf5ba@interisland.net> References: <44446bac-7d29-6900-8845-66ab0a6bf5ba@interisland.net> Message-ID: <335023ad-78be-e1ee-3c02-5c603aca193d@gmail.com> Le 16/05/2018 ? 03:05, Ed & Clare Kelm a ?crit?: > List: > > Just got an update (3.11.2) to Gambas3, and the WeekDay function now is > off by one day. > > WeekDay("1/1/2018") returns "0" (Sunday), but should return "1" > (Monday).? Any other date is also off, by the same amount. > > I verified in a laptop running Xubuntu 14.04, and in one running Xubuntu > 16.04. > > Thanks! > "1/1/2018" is not a date, but a string. So it is converted to an UTC date, and not incorrectly to a local date as before. So if your string represents a local date, you have to use Str() or otherwise forge the Date with the Date() function. Regards, -- Beno?t Minisini From bugtracker at gambaswiki.org Wed May 16 03:51:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 01:51:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #11 by Beno?t MINISINI: Is it better with commit https://gitlab.com/gambas/gambas/commit/64f20f041fb47a91997220d6188028f32a59e5bb ? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Wed May 16 04:30:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 02:30:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #12 by PICCORO LENZ MCKAY: seems some conditional are missing in line 130 and 173 ? PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From adrien.prokopowicz at gmail.com Wed May 16 04:34:50 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Wed, 16 May 2018 04:34:50 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> Message-ID: <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> Le 14/05/2018 ? 10:02, Christof Thalhofer a ?crit?: > I do also, the term "Assert" ist common in unittesting: > > Here "Assert.Something": > > https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.aspx > > Here "self.assertSomething" > > https://docs.python.org/2/library/unittest.html > > I personally like Adriens Idea with Assert.Something > but I also would like Me.AssertSomething (if the testclass inherits from > Unittest). But: > > Assert.Something is much faster and easier to write while coding, you > can write > > As.So > > Instead of > > AssertSo I didn't think of that, but that's true. Having all assertion types inside a single, dedicated class/module helps discoverablility quite a bit as well, since you can just write Assert. and it presents you all the possible assertion tools you may want. > > Sorry, Tobi and Adrien, I do not have really much time, we are creating > a building and there is much work to do here. No worries. It's the advantage of having several people on a same project, they can be busy and the projet is still going. :-) > I think we first should build a main repo for it. I agree, but first I think Tobias should first commit the changes he talked about (even if it isn't finished or functional), that way we're all on the same page and no work will be lost. :-) When that's done, I could create a new separate repository on the Gambas organization for us to make our experiments before merging it in the main repository. I can then start to clean up the codebase a bit, mainly by removing the GUI parts (which will end up in the IDE rather than the component), and putting most of the logic into a separate "gbprove3" executable as Tobias suggested (the name is still open to discussion though). -- Adrien Prokopowicz From richard.h.terry at gmail.com Wed May 16 07:12:46 2018 From: richard.h.terry at gmail.com (Richard Terry) Date: Wed, 16 May 2018 15:12:46 +1000 Subject: [Gambas-user] Postgres connection problem since upgrading to 3.11 form 3.9.2 Message-ID: Hi list I upgraded one machine accidentally to gambas 3.11 and now my medical software won't run As far as I can ascertain it dies one of our subs (part of which is listed below). If I put a breakpoint in it gets to the .Type='postresql' then errors out. If I step through the code line by line I get a seg-fault on the line *$hconn = New Connection. *We have used this code since 2008 without problems. ** ?any ideas, pointers. Thanks in advance. Richard Private Function Actual_Connect() As String ? Dim ssh_path As String ? Dim n As Integer = 0 ? Dim evt As Collection ? Dim s As String ? Try $hconn.Close ? Try pg_socket_file.Close() ? If Not IsNull(inferior_ssh) Then Try inferior_ssh.Kill() *$hconn = New Connection* ? With $hconn *??? .Type = "postgresql"?? << seems to die here* ??? .Login = conninfo!username ??? .Password = conninfo!password ??? .Name = conninfo!dbname ? End With etc -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed May 16 08:00:05 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 16 May 2018 08:00:05 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> Message-ID: <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> Am 16.05.2018 um 04:34 schrieb Adrien Prokopowicz: >> Assert.Something is much faster and easier to write while coding, you >> can write >> >> As.So >> >> Instead of >> >> AssertSo > > I didn't think of that, but that's true. > Having all assertion types inside a single, dedicated class/module helps > discoverablility quite a bit as well, since you can just write > Assert. and it presents you all the possible assertion tools you > may want. This is also what I was thinking about. >> Sorry, Tobi and Adrien, I do not have really much time, we are creating >> a building and there is much work to do here. > > No worries. It's the advantage of having several people on a same > project, they can be busy and the projet is still going. :-) Yes, this is great! I am not very familiar with work in team as I mostly code alone. So I'm looking forward to the positive surprises that may come if others throw their brain in. :-) >> I think we first should build a main repo for it. > > I agree, but first I think Tobias should first commit the changes he > talked about (even if it isn't finished or functional), that way we're > all on the same page and no work will be lost. :-) Yes. > When that's done, I could create a new separate repository on the Gambas > organization for us to make our experiments before merging it in the > main repository. I can then start to clean up the codebase a bit, mainly > by removing the GUI parts (which will end up in the IDE rather than the > component), and putting most of the logic into a separate "gbprove3" > executable as Tobias suggested (the name is still open to discussion > though). If you look at my develop branch here: https://github.com/Deganius/gb.deg.unittest/tree/develop There I did part of that as Beno?t suggested. I removed GUI, created a Unittest class from that testclasses can inherit from. Just to mention. But play around ... :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed May 16 08:17:12 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 16 May 2018 08:17:12 +0200 Subject: [Gambas-user] Postgres connection problem since upgrading to 3.11 form 3.9.2 In-Reply-To: References: Message-ID: Am 16.05.2018 um 07:12 schrieb Richard Terry: > I upgraded one machine accidentally to gambas 3.11 and now my medical > software won't run > > As far as I can ascertain it dies one of our subs (part of which is > listed below). If I put a breakpoint in it gets to the .Type='postresql' > then errors out. If I step through the code line by line I get a > seg-fault on the line *$hconn = New Connection.? *We have used this code > since 2008 without problems. > ** > > ?any ideas, pointers. Strange, I have a lot of postgresql connections with Gambas 3.11 on several machines and there is no problem like that. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From rwe-sse at osnanet.de Wed May 16 08:42:54 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 16 May 2018 08:42:54 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView Message-ID: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Good morning! Just wanted to write some values from ListBox and ListView into strings with TABs. First idea was to do it with a FOR...NEXT loop, but I missed .Max so the only way to count would be up to ".Count - 1" (the classic). Then I thought .Join might be more elegant, but there is no .Join for ListBox and ListView. So I found that .Max and .Join aren't there, is there a reason for that? My Gambas is 3.9.2, and currently I do not have a chance to update. Regards Rolf From bugtracker at gambaswiki.org Wed May 16 11:26:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 09:26:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #13 by vuott VUOTT: @Beno?t I can try to test it today in the evening. From g4mba5 at gmail.com Wed May 16 13:44:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 May 2018 13:44:43 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: <22934fa4-ee22-0e8b-6679-d24fee961942@gmail.com> Le 16/05/2018 ? 08:42, Rolf-Werner Eilert a ?crit?: > Good morning! > > Just wanted to write some values from ListBox and ListView into strings > with TABs. > > First idea was to do it with a FOR...NEXT loop, but I missed .Max so the > only way to count would be up to ".Count - 1" (the classic). > > Then I thought .Join might be more elegant, but there is no .Join for > ListBox and ListView. > > So I found that .Max and .Join aren't there, is there a reason for that? > > My Gambas is 3.9.2, and currently I do not have a chance to update. > > Regards > Rolf > The ListBox has a List property that returns its contents as an array of strings. As for the ListView, you have to browse all elements by hand with the Move*() methods. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Wed May 16 14:10:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 16 May 2018 08:10:57 -0400 Subject: [Gambas-user] Postgres connection problem since upgrading to 3.11 form 3.9.2 In-Reply-To: References: Message-ID: what method are you using for upgrade? where from do you upgrade? what proceduure was using for upgrade? please test the connection with debbuger trace also! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-16 1:12 GMT-04:00 Richard Terry : > Hi list > > I upgraded one machine accidentally to gambas 3.11 and now my medical > software won't run > > As far as I can ascertain it dies one of our subs (part of which is listed > below). If I put a breakpoint in it gets to the .Type='postresql' then > errors out. If I step through the code line by line I get a seg-fault on > the line * $hconn = New Connection. *We have used this code since 2008 > without problems. > > ?any ideas, pointers. > > > Thanks in advance. > > Richard > > > > Private Function Actual_Connect() As String > > Dim ssh_path As String > Dim n As Integer = 0 > Dim evt As Collection > Dim s As String > > Try $hconn.Close > Try pg_socket_file.Close() > If Not IsNull(inferior_ssh) Then Try inferior_ssh.Kill() > * $hconn = New Connection* > With $hconn > * .Type = "postgresql" << seems to die here* > .Login = conninfo!username > .Password = conninfo!password > .Name = conninfo!dbname > End With > > > etc > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed May 16 14:32:12 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 16 May 2018 08:32:12 -0400 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: The List of a ListBox is a string array. As such, it does have .Join and .Max methods. See: http://gambaswiki.org/wiki/comp/gb.qt4/listbox/list ListView is not implemented with a string array, however. -- Lee On 05/16/2018 02:42 AM, Rolf-Werner Eilert wrote: > Good morning! > > Just wanted to write some values from ListBox and ListView into strings with TABs. > > First idea was to do it with a FOR...NEXT loop, but I missed .Max so the only way to count would be up to ".Count - 1" (the > classic). > > Then I thought .Join might be more elegant, but there is no .Join for ListBox and ListView. > > So I found that .Max and .Join aren't there, is there a reason for that? > > My Gambas is 3.9.2, and currently I do not have a chance to update. > > Regards > Rolf > From bugtracker at gambaswiki.org Wed May 16 14:54:36 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 12:54:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1319: Software farm error warning Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1319&from=L21haW4- Gianluigi GRADASCHI reported a new bug. Summary ------- Software farm error warning Type : Bug Priority : Medium Gambas version : Unknown Product : Software farm Description ----------- At the end of the upgrade I get an error warning: Unable to upgrade to seHelpBuilder 0.2.6 File alredy exist CSoftware.Instal.445 FSoftwareFarm.btnInstal_Click.559 FSoftwareFarm.Run.17 FWelcome.btnFarm_Click.390 CCoolButton.Panel_MouseUp.147 But the program is updated and seems to work well. System information ------------------ [System] Gambas=3.11.2 OperatingSystem=Linux Kernel=4.4.0-124-generic Architecture=x86 Distribution=Ubuntu 16.04.4 LTS Desktop=XFCE Theme=Cleanlooks Language=it_IT.UTF-8 Memory=3018M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-H80CGBTeBi DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=it GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME=/home/ IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=it_IT.UTF-8 LANGUAGE=it LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path PATH=/home//bin:/home//.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD=/home/ QT4_IM_MODULE= QT_ACCESSIBILITY=1 QT_IM_MODULE= QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1205,unix/:/tmp/.ICE-unix/1205 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=startxfce4 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/910 USER= XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bagonergi at gmail.com Wed May 16 15:07:06 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 May 2018 15:07:06 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: <22934fa4-ee22-0e8b-6679-d24fee961942@gmail.com> References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> <22934fa4-ee22-0e8b-6679-d24fee961942@gmail.com> Message-ID: 2018-05-16 13:44 GMT+02:00 Beno?t Minisini : > Le 16/05/2018 ? 08:42, Rolf-Werner Eilert a ?crit : > >> Good morning! >> >> Just wanted to write some values from ListBox and ListView into strings >> with TABs. >> >> First idea was to do it with a FOR...NEXT loop, but I missed .Max so the >> only way to count would be up to ".Count - 1" (the classic). >> >> Then I thought .Join might be more elegant, but there is no .Join for >> ListBox and ListView. >> >> So I found that .Max and .Join aren't there, is there a reason for that? >> >> My Gambas is 3.9.2, and currently I do not have a chance to update. >> >> Regards >> Rolf >> >> > The ListBox has a List property that returns its contents as an array of > strings. > > As for the ListView, you have to browse all elements by hand with the > Move*() methods. > > Regards, > > -- > Beno?t Minisini > > Hi Benoit, I received from Google this email as spam. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed May 16 15:25:38 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 16 May 2018 15:25:38 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: <22934fa4-ee22-0e8b-6679-d24fee961942@gmail.com> References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> <22934fa4-ee22-0e8b-6679-d24fee961942@gmail.com> Message-ID: <51276479-33c9-e8e1-911b-dc0811f502dc@osnanet.de> Am 16.05.2018 um 13:44 schrieb Beno?t Minisini: > Le 16/05/2018 ? 08:42, Rolf-Werner Eilert a ?crit?: >> Good morning! >> >> Just wanted to write some values from ListBox and ListView into >> strings with TABs. >> >> First idea was to do it with a FOR...NEXT loop, but I missed .Max so >> the only way to count would be up to ".Count - 1" (the classic). >> >> Then I thought .Join might be more elegant, but there is no .Join for >> ListBox and ListView. >> >> So I found that .Max and .Join aren't there, is there a reason for that? >> >> My Gambas is 3.9.2, and currently I do not have a chance to update. >> >> Regards >> Rolf >> > > The ListBox has a List property that returns its contents as an array of > strings. > > As for the ListView, you have to browse all elements by hand with the > Move*() methods. > > Regards, > Ah ok, I see... Thank you! Rolf From bagonergi at gmail.com Wed May 16 15:33:24 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 May 2018 15:33:24 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: For ListView You can download the example of Tobias Boege great teacher :-) Find it here [0] And here the explanation in the previous post [1] Regards Gianluigi [0] https://lists.gambas-basic.org/pipermail/user/2017-March/059762.html [1] https://lists.gambas-basic.org/pipermail/user/2017-March/059758.html 2018-05-16 14:32 GMT+02:00 T Lee Davidson : > The List of a ListBox is a string array. As such, it does have .Join and > .Max methods. > See: http://gambaswiki.org/wiki/comp/gb.qt4/listbox/list > > ListView is not implemented with a string array, however. > > > -- > Lee > > > On 05/16/2018 02:42 AM, Rolf-Werner Eilert wrote: > > Good morning! > > > > Just wanted to write some values from ListBox and ListView into strings > with TABs. > > > > First idea was to do it with a FOR...NEXT loop, but I missed .Max so the > only way to count would be up to ".Count - 1" (the > > classic). > > > > Then I thought .Join might be more elegant, but there is no .Join for > ListBox and ListView. > > > > So I found that .Max and .Join aren't there, is there a reason for that? > > > > My Gambas is 3.9.2, and currently I do not have a chance to update. > > > > Regards > > Rolf > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 16 15:46:47 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 May 2018 15:46:47 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: I forgot, in your book [0] this is very well detailed. Regards Gianluigi [0] https://www.gambas-buch.de/dw/doku.php 2018-05-16 15:33 GMT+02:00 Gianluigi : > For ListView You can download the example of Tobias Boege great teacher > :-) > Find it here [0] > And here the explanation in the previous post [1] > > Regards > Gianluigi > > [0] https://lists.gambas-basic.org/pipermail/user/2017-March/059762.html > > [1] https://lists.gambas-basic.org/pipermail/user/2017-March/059758.html > > 2018-05-16 14:32 GMT+02:00 T Lee Davidson : > >> The List of a ListBox is a string array. As such, it does have .Join and >> .Max methods. >> See: http://gambaswiki.org/wiki/comp/gb.qt4/listbox/list >> >> ListView is not implemented with a string array, however. >> >> >> -- >> Lee >> >> >> On 05/16/2018 02:42 AM, Rolf-Werner Eilert wrote: >> > Good morning! >> > >> > Just wanted to write some values from ListBox and ListView into strings >> with TABs. >> > >> > First idea was to do it with a FOR...NEXT loop, but I missed .Max so >> the only way to count would be up to ".Count - 1" (the >> > classic). >> > >> > Then I thought .Join might be more elegant, but there is no .Join for >> ListBox and ListView. >> > >> > So I found that .Max and .Join aren't there, is there a reason for that? >> > >> > My Gambas is 3.9.2, and currently I do not have a chance to update. >> > >> > Regards >> > Rolf >> > >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 16 16:00:29 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 16 May 2018 10:00:29 -0400 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: the list has a frontend where i can find a relevant old message? how to you find that old messages of the list without use of google (due google need stored first) 2018-05-16 9:33 GMT-04:00 Gianluigi : > For ListView You can download the example of Tobias Boege great teacher > :-) > Find it here [0] > And here the explanation in the previous post [1] > > Regards > Gianluigi > > [0] https://lists.gambas-basic.org/pipermail/user/2017-March/059762.html > > [1] https://lists.gambas-basic.org/pipermail/user/2017-March/059758.html > > 2018-05-16 14:32 GMT+02:00 T Lee Davidson : > >> The List of a ListBox is a string array. As such, it does have .Join and >> .Max methods. >> See: http://gambaswiki.org/wiki/comp/gb.qt4/listbox/list >> >> ListView is not implemented with a string array, however. >> >> >> -- >> Lee >> >> >> On 05/16/2018 02:42 AM, Rolf-Werner Eilert wrote: >> > Good morning! >> > >> > Just wanted to write some values from ListBox and ListView into strings >> with TABs. >> > >> > First idea was to do it with a FOR...NEXT loop, but I missed .Max so >> the only way to count would be up to ".Count - 1" (the >> > classic). >> > >> > Then I thought .Join might be more elegant, but there is no .Join for >> ListBox and ListView. >> > >> > So I found that .Max and .Join aren't there, is there a reason for that? >> > >> > My Gambas is 3.9.2, and currently I do not have a chance to update. >> > >> > Regards >> > Rolf >> > >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 16 16:06:22 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 May 2018 16:06:22 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: I use this page [0] [0] https://lists.gambas-basic.org/cgi-bin/search.cgi 2018-05-16 16:00 GMT+02:00 PICCORO McKAY Lenz : > the list has a frontend where i can find a relevant old message? > > how to you find that old messages of the list without use of google (due > google need stored first) > > 2018-05-16 9:33 GMT-04:00 Gianluigi : > >> For ListView You can download the example of Tobias Boege great teacher >> :-) >> Find it here [0] >> And here the explanation in the previous post [1] >> >> Regards >> Gianluigi >> >> [0] https://lists.gambas-basic.org/pipermail/user/2017-March/059762.html >> >> [1] https://lists.gambas-basic.org/pipermail/user/2017-March/059758.html >> >> 2018-05-16 14:32 GMT+02:00 T Lee Davidson : >> >>> The List of a ListBox is a string array. As such, it does have .Join and >>> .Max methods. >>> See: http://gambaswiki.org/wiki/comp/gb.qt4/listbox/list >>> >>> ListView is not implemented with a string array, however. >>> >>> >>> -- >>> Lee >>> >>> >>> On 05/16/2018 02:42 AM, Rolf-Werner Eilert wrote: >>> > Good morning! >>> > >>> > Just wanted to write some values from ListBox and ListView into >>> strings with TABs. >>> > >>> > First idea was to do it with a FOR...NEXT loop, but I missed .Max so >>> the only way to count would be up to ".Count - 1" (the >>> > classic). >>> > >>> > Then I thought .Join might be more elegant, but there is no .Join for >>> ListBox and ListView. >>> > >>> > So I found that .Max and .Join aren't there, is there a reason for >>> that? >>> > >>> > My Gambas is 3.9.2, and currently I do not have a chance to update. >>> > >>> > Regards >>> > Rolf >>> > >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 16 17:15:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 16 May 2018 11:15:37 -0400 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: many many thanks! great! looks like google search pufff Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-16 10:06 GMT-04:00 Gianluigi : > I use this page [0] > > [0] https://lists.gambas-basic.org/cgi-bin/search.cgi > > 2018-05-16 16:00 GMT+02:00 PICCORO McKAY Lenz : > >> the list has a frontend where i can find a relevant old message? >> >> how to you find that old messages of the list without use of google (due >> google need stored first) >> >> 2018-05-16 9:33 GMT-04:00 Gianluigi : >> >>> For ListView You can download the example of Tobias Boege great teacher >>> :-) >>> Find it here [0] >>> And here the explanation in the previous post [1] >>> >>> Regards >>> Gianluigi >>> >>> [0] https://lists.gambas-basic.org/pipermail/user/2017-March/059762.html >>> >>> [1] https://lists.gambas-basic.org/pipermail/user/2017-March/059758.html >>> >>> 2018-05-16 14:32 GMT+02:00 T Lee Davidson : >>> >>>> The List of a ListBox is a string array. As such, it does have .Join >>>> and .Max methods. >>>> See: http://gambaswiki.org/wiki/comp/gb.qt4/listbox/list >>>> >>>> ListView is not implemented with a string array, however. >>>> >>>> >>>> -- >>>> Lee >>>> >>>> >>>> On 05/16/2018 02:42 AM, Rolf-Werner Eilert wrote: >>>> > Good morning! >>>> > >>>> > Just wanted to write some values from ListBox and ListView into >>>> strings with TABs. >>>> > >>>> > First idea was to do it with a FOR...NEXT loop, but I missed .Max so >>>> the only way to count would be up to ".Count - 1" (the >>>> > classic). >>>> > >>>> > Then I thought .Join might be more elegant, but there is no .Join for >>>> ListBox and ListView. >>>> > >>>> > So I found that .Max and .Join aren't there, is there a reason for >>>> that? >>>> > >>>> > My Gambas is 3.9.2, and currently I do not have a chance to update. >>>> > >>>> > Regards >>>> > Rolf >>>> > >>>> >>>> -------------------------------------------------- >>>> >>>> This is the Gambas Mailing List: >>>> https://lists.gambas-basic.org/listinfo/user >>>> >>>> Search the list: >>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>> >>>> Hosted by https://www.hostsharing.net >>>> >>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed May 16 18:31:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 16:31:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1320: Gambas closes without error on opening a project. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1320&from=L21haW4- Dean NORTH reported a new bug. Summary ------- Gambas closes without error on opening a project. Type : Bug Priority : High Gambas version : Master Product : Development Environment Description ----------- I'm having a problem in which the Gambas IDE seems to close without any errors when creating a new project or opening an existing one. Also, if I try to open a file using Gambas, I get an error message. /home/Dean/Documents/gambasProjects/sampleproject/.src/Main.module Cannot open file. Null object Design.InitEditorWithBreakpoints.1375 FEditor.Reload.2193 FEditor.LoadFile.2210 Project.LoadFile.2050 Project.OpenFile.2140 FMain.OpenExternFile.2584 Project.Main.397 I just installed the program today and I'm wondering what I'm doing wrong. System information ------------------ [System] Gambas=3.11.2 OperatingSystem=Cygwin Kernel=2.10.0(0.325/5/3) Architecture=x86_64 Distribution=CYGWIN_NT-10.0 Desktop=CYGWIN Theme=Gtk Language=en_GB.UTF-8 Memory=3988M [Libraries] Cairo=cygcairo-2.dll Curl=cygcurl-4.dll DBus=cygdbus-1-3.dll GStreamer=cyggstreamer-1.0-0.dll GTK+2=cyggtk-x11-2.0-0.dll GTK+3=cyggtk-3-0.dll OpenGL=cygGL-1.dll Poppler=cygpoppler-73.dll QT4=cygQtCore-4.dll QT5=cygQt5Core-5.dll SDL=cygSDL-1-2-0.dll [Environment] !::=::\ ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\\AppData\Roaming COMMONPROGRAMFILES=C:\Program Files\Common Files COMPUTERNAME=DEAN-ZOO COMSPEC=C:\WINDOWS\system32\cmd.exe CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-uhjMc4KAud,guid=7335a911500c9286e395d65a5afc59ae DISPLAY=:0 DriverData=C:\Windows\System32\Drivers\DriverData EXECIGNORE=*.dll FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default FP_NO_HOST_CHECK=NO GB_GUI=gb.qt4 GDAL_DATA=C:\Program Files (x86)\VTP\GDAL-data GNOME_KEYRING_CONTROL=/.cache/keyring-VSD5IZ GNUPLOT_LIB=C:\Program Files (x86)\gnuplot\demo;C:\Program Files (x86)\gnuplot\demo\games;C:\Program Files (x86)\gnuplot\share GTK_BASEPATH=C:\Program Files (x86)\GtkSharp\2.12\ HOME= HOMEDRIVE=C: HOMEPATH=\Users\ HOSTNAME= IMSETTINGS_INTEGRATE_DESKTOP=no INFOPATH=/usr/local/info:/usr/share/info:/usr/info KICAD_PTEMPLATES=C:\Program Files\KiCad\share\kicad\template KISYS3DMOD=C:\Program Files\KiCad\share\kicad\modules\packages3d KISYSMOD=C:\Program Files\KiCad\share\kicad\modules LANG=en_GB.UTF-8 LDRAWDIR=C:\Users\Public\Documents\LDraw LOCALAPPDATA=C:\Users\\AppData\Local LOGONSERVER=\\DEAN-ZOO LUXRENDER_ROOT=C:\Program Files (x86)\LuxRender NUMBER_OF_PROCESSORS=2 OLDPWD=/Documents/gambasProjects ORIGINAL_PATH=/cygdrive/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Program Files/Java/jre1.8.0_45/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files (x86)/MiKTeX 2.9/miktex/bin:/cygdrive/c/Program Files (x86)/GtkSharp/2.12/bin:/cygdrive/c/Program Files/doxygen/bin:/cygdrive/c/Program Files/Calibre2:/cygdrive/c/Users//AppData/Local/Programs/Python/Python35-32:/cygdrive/c/Program Files (x86)/nodejs/:C:/Program Files (x86)/Vim/vim74:/cygdrive/c/Program Files (x86)/Avogadro/bin:/cygdrive/c/Program Files (x86)/GnuWin32/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/eSpeak/command_line:/cygdrive/c/Program Files (x86)/LuxRender:/cygdrive/c/Program Files (x86)/Graphviz 2.41.20170524.1723/bin:/cygdrive/c/users/dean/crawl/stone_soup-0.17:/cygdrive/c/Program Files (x86)/gnuplot/bin:/cygdrive/c/Program Files (x86)/MySQL/MySQL Utilities:/cygdrive/c/Program Files (x86)/MySQL/MySQL Utilities/Doctrine extensions for PHP:/cygdrive/c/Program Files/Java/jdk1.8.0_111/bin:/cygdrive/c/Program Files (x86)/Mono/bin:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files (x86)/Vim/vim80:/cygdrive/c/Program Files (x86)/LyX 2.2/Perl/bin:/cygdrive/c/Program Files (x86)/FreeBASIC:/cygdrive/c/Program Files (x86)/DLR/Sumo/bin:/cygdrive/c/Program Files (x86)/DLR/Sumo/tools:/cygdrive/c/Program Files (x86)/Pandoc:/cygdrive/c/Python27/Lib/site-packages/PyQt4:/cygdrive/c/FPC/3.0.4/bin/i386-Win32:/cygdrive/c/Program Files (x86)/PuTTY:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files (x86)/Brackets/command:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Ruby24-x64/bin:/cygdrive/c/Program Files (x86)/Mozilla Firefox:/cygdrive/c/Program Files (x86)/OpenBabel-2.4.0:/cygdrive/c/Users//AppData/Roaming/MiKTeX/2.9/miktex/bin:/cygdrive/c/Users//AppData/Local/atom/bin:/cygdrive/c/Users//AppData/Local/atom/bin:/cygdrive/c/Users//AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users//Downloads/emacs-25.2-x86_64/bin:/cygdrive/c/Users//AppData/Local/atom/app-1.18.0/resources/cli:/cygdrive/c/Users//AppData/Local/Programs/Python/Python36-32/Scripts:/cygdrive/c/Users//AppData/Local/Programs/Python/Python36-32:/cygdrive/c/Users//AppData/Roaming/npm OS=Windows_NT OneDrive=C:\Users\\SkyDrive PATH=/usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Program Files/Java/jre1.8.0_45/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files (x86)/MiKTeX 2.9/miktex/bin:/cygdrive/c/Program Files (x86)/GtkSharp/2.12/bin:/cygdrive/c/Program Files/doxygen/bin:/cygdrive/c/Program Files/Calibre2:/cygdrive/c/Users//AppData/Local/Programs/Python/Python35-32:/cygdrive/c/Program Files (x86)/nodejs/:C:/Program Files (x86)/Vim/vim74:/cygdrive/c/Program Files (x86)/Avogadro/bin:/cygdrive/c/Program Files (x86)/GnuWin32/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/eSpeak/command_line:/cygdrive/c/Program Files (x86)/LuxRender:/cygdrive/c/Program Files (x86)/Graphviz 2.41.20170524.1723/bin:/cygdrive/c/users/dean/crawl/stone_soup-0.17:/cygdrive/c/Program Files (x86)/gnuplot/bin:/cygdrive/c/Program Files (x86)/MySQL/MySQL Utilities:/cygdrive/c/Program Files (x86)/MySQL/MySQL Utilities/Doctrine extensions for PHP:/cygdrive/c/Program Files/Java/jdk1.8.0_111/bin:/cygdrive/c/Program Files (x86)/Mono/bin:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files (x86)/Vim/vim80:/cygdrive/c/Program Files (x86)/LyX 2.2/Perl/bin:/cygdrive/c/Program Files (x86)/FreeBASIC:/cygdrive/c/Program Files (x86)/DLR/Sumo/bin:/cygdrive/c/Program Files (x86)/DLR/Sumo/tools:/cygdrive/c/Program Files (x86)/Pandoc:/cygdrive/c/Python27/Lib/site-packages/PyQt4:/cygdrive/c/FPC/3.0.4/bin/i386-Win32:/cygdrive/c/Program Files (x86)/PuTTY:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files (x86)/Brackets/command:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Ruby24-x64/bin:/cygdrive/c/Program Files (x86)/Mozilla Firefox:/cygdrive/c/Program Files (x86)/OpenBabel-2.4.0:/cygdrive/c/Users//AppData/Roaming/MiKTeX/2.9/miktex/bin:/cygdrive/c/Users//AppData/Local/atom/bin:/cygdrive/c/Users//AppData/Local/atom/bin:/cygdrive/c/Users//AppData/Local/Microsoft/WindowsApps:/cygdrive/c/Users//Downloads/emacs-25.2-x86_64/bin:/cygdrive/c/Users//AppData/Local/atom/app-1.18.0/resources/cli:/cygdrive/c/Users//AppData/Local/Programs/Python/Python36-32/Scripts:/cygdrive/c/Users//AppData/Local/Programs/Python/Python36-32:/cygdrive/c/Users//AppData/Roaming/npm PATHEXT=.PY;.SCM;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW PRINTER=Microsoft Print to PDF PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=3a09 PROFILEREAD=true PROGRAMFILES=C:\Program Files PROJ_LIB=C:\Program Files (x86)\VTP\PROJ4-data PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public PWD=/Documents/gambasProjects/sampleproject PYTHONPATH=C:\Program Files (x86)\DLR\Sumo\tools\ ProgramData=C:\ProgramData ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files QT_QPA_PLATFORMTHEME=qt5ct SESSIONNAME=Console SHELL=/bin/bash SHLVL=3 SSH_AUTH_SOCK=/.cache/keyring-VSD5IZ/ssh SUMO_HOME=C:\Program Files (x86)\DLR\Sumo\ SYSTEMDRIVE=C: SYSTEMROOT=C:\WINDOWS TEMP=/tmp TERM=xterm-256color TLL_INCLUDE_PATH=C:\Program Files (x86)\toped\tll TMP=/tmp TPD_GLOBAL=C:\Program Files (x86)\toped TPD_LOCAL=C:\Users\\Documents\toped TZ=Europe/London USER= USERDOMAIN= USERDOMAIN_ROAMINGPROFILE= USERNAME= USERPROFILE=C:\Users\ WINDIR=C:\WINDOWS XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=X-Cygwin XDG_MENU_PREFIX=xwin- _=/usr/bin/gambas3 asl.log=Destination=file docear_bibtex_current=C:\Users\\Docear\projects\My Thesis\_data\14FE29B6CD97DST6LC1LH3WGZ4JQ3RS7PZB3\default_files\My Thesis.bib windows_tracing_flags=3 windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log From bugtracker at gambaswiki.org Wed May 16 18:38:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 16:38:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1320: Gambas closes without error on opening a project. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1320&from=L21haW4- Comment #1 by Beno?t MINISINI: You are just opening a source file outside of its project, and obviously I didn't think about that case... Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 16 18:39:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 16:39:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1319: Software farm error warning In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1319&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 16 19:02:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 17:02:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1319: Software farm error warning In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1319&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/e9bc65686cd5814a171f5fce1c842aa127434f69. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed May 16 19:08:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 17:08:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1320: Gambas closes without error on opening a project. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1320&from=L21haW4- Comment #2 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/82006001687cd957c0375b05e0dbcd3f0e14048b. Beno?t MINISINI changed the state of the bug to: Fixed. From chrisml at deganius.de Wed May 16 19:33:09 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 16 May 2018 19:33:09 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> Message-ID: <9b14c817-67d8-9d21-25c0-428dc7d2ac62@deganius.de> Am 16.05.2018 um 17:15 schrieb PICCORO McKAY Lenz: > many many thanks! great! looks like google search pufff If you look down, there's the link in every footer of every mail here. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed May 16 19:36:20 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 16 May 2018 19:36:20 +0200 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> <22934fa4-ee22-0e8b-6679-d24fee961942@gmail.com> Message-ID: <106754b1-a13e-824a-432f-94e669c77f30@deganius.de> Am 16.05.2018 um 15:07 schrieb Gianluigi: > I received from Google this email as spam. Please tag it as ham. https://support.google.com/mail/answer/1366858?co=GENIE.Platform%3DiOS&hl=en Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Wed May 16 19:43:02 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 16 May 2018 13:43:02 -0400 Subject: [Gambas-user] Missing things in ListBox and ListView In-Reply-To: <9b14c817-67d8-9d21-25c0-428dc7d2ac62@deganius.de> References: <3f8a027e-99c6-d2ce-c310-baa5244d4b1c@osnanet.de> <9b14c817-67d8-9d21-25c0-428dc7d2ac62@deganius.de> Message-ID: 2018-05-16 13:33 GMT-04:00 Christof Thalhofer : > If you look down, there's the link in every footer of every mail here. > i feeel like a fool! > > :-) > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed May 16 20:03:40 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 16 May 2018 20:03:40 +0200 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> Message-ID: how do you manage cross architecture compilation ? 2018-05-13 20:02 GMT+02:00 Beno?t Minisini : > Le 13/05/2018 ? 18:55, Adrien Prokopowicz a ?crit : > >> Le 06/05/2018 ? 21:43, Beno?t Minisini a ?crit : >> >>> Hi, >>> >>> This is just an idea in the fly. There is nothing concrete at the moment. >>> >>> As you may know, there is a JIT component in Gambas (not made by me) >>> based on LLVM. Alas it does not work with recent versions of LLVM, because >>> apparently this huge project is not able to keep backward compatibility >>> between minor versions. (Worse than GTK+, I couldn't imagine it was >>> possible!) >>> >>> What to do now? >>> >>> 1) Rewriting the JIT compiler for newer versions of LLVM. Alas the >>> original author does not give any news, and I have no knowledge about LLVM, >>> and its C++ interface looks horrible to me. >>> >>> 2) gcc has now a JIT library, but it is an alpha version with a big >>> warning that everything may change between releases, even if it is >>> apparently relatively stable. Moreover, no idea about how many bugs the >>> library has. >>> >>> 3) Writing a Gambas -> C translator. >>> >>> My idea is that the compiler, or maybe an external program eventually >>> written in Gambas, takes a class/module source code, and transform it into >>> a C source file. >>> >>> That C source file will call the interpreter functions when needed >>> through a dedicated interpreter API. >>> >>> Then the C source file will be transform into a shared library loaded at >>> runtime by the interpreter (calling the C compiler that hence must be >>> installed). >>> >>> The advantages are: >>> >>> - C syntax is thousand times more stable than a JIT compiler library >>> that changes at each version. >>> >>> - Maybe better optimizations. >>> >>> The disadvantages are: >>> >>> - You need the compiler. But the JIT library needs most of it too, so... >>> >>> - Compiling is slower than calling a JIT library. >>> >>> - JIT library can compile at the function level. This is not practical >>> with a compiler (we won't make a shared library for each JIT function!). >>> One shared library for each class, or even one for the entire project may >>> be the solution. >>> >>> Now I'm waiting for your comments! >>> >>> Regards, >>> >>> >> I don't think the option #3 is a good way to go (not that the others are >> better ?). >> >> First, going that route will require a *lot* of work, both on short- and >> long-term. >> You will first have to write a full Gambas-to-C transpiler, which >> involves either plugging into gbc (unless you read the compiled output), or >> maintaining the full grammar on two different compilers. >> Then it requires adding and maintaining extra hooks in the interpreter >> for the generated binary to link onto, which I don't know much about, but >> is probably not trivial either. >> > > I don't say it's simple, but it should not be very difficult to generate C > code once the source code has been parsed by the reader and the tree > expression generator. > > Moreover, the compiler tree expression generator statically computes the > datatype of every intermediate expression, which can be used to generate > static C code accurately. > > >> Having to perform a full compilation at startup also completely nullifies >> the advantages of Just-In-Time compilation: standard compilation (e.g. GCC >> or LLVM executable invocation) is not just slower, it is orders of >> magnitude slower, which even for small bits could just add a few seconds of >> startup time to any app that uses it. And considering 99.9% of Gambas code >> speed isn't really affected by any kind of compilation to native code (I >> think the only ones that are enhances are long, tight loops that do number >> crunching, but most if not all apps are just a bunch of calls to component >> APIs or similar), the tradeoff becomes not worth it at all in most cases. :/ >> > > By using a cache, the compilation will be done once (or if the system CPU > changes, but it is usually not frequent). > > And no, I don't think calling the compiler will be magnitude slow, as the > source code will only include one header for the interpreter API, and not > the tons of headers a standard C program includes. > > Moreover, even if 99% of your code does not need speed, the other 1% may > need it badly. > > >> Considering all of this, the first solution that comes to my mind could >> be to simply drop the gb.jit component : it wouldn't be too big of a >> breaking change I think, considering the interpreter already falls back to >> normal operation if it can't find the gb.jit component to perform the >> compilation. >> And it seems it already doesn't work for most users, so dropping >> something that doesn't work anyway probably isn't a huge deal ? >> >> >> The alternative option (which is much simpler than the first three), >> would be to statically link against a specific version of LLVM (the one >> that works for us, we could use git submodules to do this), bundling only >> the parts of the compiler we need with the gb.jit component. Then it works >> for everybody out of the box, and we can update it only when we want, >> incrementally (and drop all those ugly #ifdef checks). >> >> Now that I think about it, LLVM is not meant to be used as a dynamic >> library at all (which explains the pain you're going through trying to do >> so, and why they release breaking versions regularly). All the projects I >> know that rely on LLVM (like clang, openjdk, mono, emscripten, rustc ?) >> link it statically. >> >> > Statically linking to LLVM 3.5 does not solve these problems : some Gambas > instructions are not supported, and new ones cannot be added as I do not > master the original code at all. > > But using C allows to not be dependant on the compiler version, as C is a > relatively stable standard. > > Regards, > > -- > Beno?t Minisini > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed May 16 21:20:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 19:20:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1316: Seg-Fault in 3.11.1 and 3.11.2 with gb.xml.so In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1316&from=L21haW4- Comment #10 by Ingo B.: Thank you! Best regards Ingo From bugtracker at gambaswiki.org Wed May 16 22:13:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 20:13:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Damien COTTIER reported a new bug. Summary ------- Converting date to string behavior change between 3.10 and 3.11 Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Since ppa of gambas for ubuntu 16.04 and 18.04 Several user of Laurux report issue due to date, after investigation, it show that behavior of converting Date type to string change between 3.10 and 3.11. before converting date to string return localtime (without GMT offset), now it return UTC producing -2 hours in date on each conversion so 01/01/2018 00:00 will return 31/12/2017 22:00. simple example to reproduce dte As String Print Now dte = Now Print dte Console ouput 14/05/2018 01:38:02 05/13/2018 23:38:02.916 System information ------------------ gambas 3.11.2 Linux Ubuntu 16.04LTS amd64 From bugtracker at gambaswiki.org Wed May 16 22:22:51 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 20:22:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #1 by Beno?t MINISINI: This was a bug fix. Print Now <=> Print Str(Now) dte = Now <=> dte = CStr(Now) Which is not the same thing. The first uses local time, the second UTC time. If you want local date conversion, you have to use the following functions: Str(), Val(), Format(), Date(). Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Wed May 16 22:32:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 20:32:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #2 by Damien COTTIER: perhaps the Laurux code was not properly written, but can you confirm that the behavior of CStr or the interpreter change between 3.10 and 3.11 From bugtracker at gambaswiki.org Wed May 16 22:37:26 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 20:37:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #3 by Damien COTTIER: sorry i did'nt see you're first line... this was a bug fix, is there an issue related to that bug? From bugtracker at gambaswiki.org Wed May 16 22:38:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 20:38:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #4 by Beno?t MINISINI: No, the changes occured in 3.10. It's explicitly written in the changelog summary. http://gambaswiki.org/wiki/doc/release/3.10.0 From mckaygerhard at gmail.com Wed May 16 23:13:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 16 May 2018 17:13:05 -0400 Subject: [Gambas-user] bugtracker has permission fixeds? Message-ID: any older bug has some type of permission depends on the state and user? i mean: if a bug was soved, can any user change it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed May 16 23:19:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 21:19:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #5 by Damien COTTIER: this is strange that we didn't see it in Laurux run with 3.10 the 3.10 ubuntu package in ppa was gambas3....3.10.0+git5950.9786d95+build1.bca3d02.1.fb554bc~ubuntu16.04.1_amd64.deb is that possible that this version does not have the bug fix ? From g4mba5 at gmail.com Wed May 16 23:21:54 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 May 2018 23:21:54 +0200 Subject: [Gambas-user] bugtracker has permission fixeds? In-Reply-To: References: Message-ID: <121569c8-ba74-fc20-5872-eb462cec8181@gmail.com> Le 16/05/2018 ? 23:13, PICCORO McKAY Lenz a ?crit?: > any older bug has some type of permission depends on the state and user? > > i mean: if a bug was soved, can any user change it! > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > Yes, everyone can modify any bugs. Maybe am I too trusting? -- Beno?t Minisini From bugtracker at gambaswiki.org Wed May 16 23:35:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 21:35:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #6 by Damien COTTIER: More fun, i restore the 3.10 ppa packages and the same code as above show the following output 16/05/2018 23:27:24 05/17/2018 01:27:24.944 Date is not -2 Hours but + 2 Hours Then on Laurux as we create a date with time 00:00:00 -2 Hours on 3.11 gives the previous day (the bug observed by our user) while on 3.10 +2 Hours gives the same date, that's the reason the bug was not seen in 3.10 but i don't understand why on 3.10 UTC is +2 Hours From bugtracker at gambaswiki.org Wed May 16 23:43:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 21:43:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #7 by Tobias BOEGE: A tip: git, as opposed to svn, is really good at letting you figure this stuff out on your own. First look for commits that reference the function this question is about: $ git log --grep=CStr commit 1cf354061ce7c3aee6463ce4b7d7115b9c93bb34 Author: Beno?t Minisini Date: Fri Nov 18 14:50:40 2016 +0000 [INTERPRETER] * BUG: Make CStr() and CDate() mutually coherent, by internally converting to UTC dates only. git-svn-id: svn://localhost/gambas/trunk at 7983 867c0c6c-44f3-4631-809d-bfa615b0a4ec That commit 1cf35406 looks like it is the one. Gambas releases map to git tags, so get the first tag which contains that commit: $ git describe --contains 1cf35406 v3.10.0~168 You see: that change was already in 3.10.0, even 168 commits before 3.10.0 was released. From mckaygerhard at gmail.com Thu May 17 00:18:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 16 May 2018 18:18:25 -0400 Subject: [Gambas-user] bugtracker has permission fixeds? In-Reply-To: <121569c8-ba74-fc20-5872-eb462cec8181@gmail.com> References: <121569c8-ba74-fc20-5872-eb462cec8181@gmail.com> Message-ID: ufff wow, we are a comunity of "good felas"! well would be grat a permission rules due by mistake i changed one bug state from Needsinfo to Acepted but noted some hours "later" i cannot find what bug was! but i not do intentionally! i only put a comment and then see that was changed to "acepted" Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-16 17:21 GMT-04:00 Beno?t Minisini : > Le 16/05/2018 ? 23:13, PICCORO McKAY Lenz a ?crit : > >> any older bug has some type of permission depends on the state and user? >> >> i mean: if a bug was soved, can any user change it! >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > Yes, everyone can modify any bugs. Maybe am I too trusting? > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 17 00:22:23 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 May 2018 00:22:23 +0200 Subject: [Gambas-user] bugtracker has permission fixeds? In-Reply-To: References: <121569c8-ba74-fc20-5872-eb462cec8181@gmail.com> Message-ID: <043d2f0a-3ae9-38d8-0f8f-0ddc1985f79f@gmail.com> Le 17/05/2018 ? 00:18, PICCORO McKAY Lenz a ?crit?: > ufff wow, we are a comunity of "good felas"! > > well would be grat a permission rules due by mistake i changed one bug > state from Needsinfo to Acepted but noted some hours "later" > > i cannot find what bug was! but i not do intentionally! i only put a > comment and then see that was changed to "acepted" > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > No, this is a feature. A "NeedsInfo" issue becomes "Accepted" as soon as someone posts a new comment (assuming that the new comment is the needed info, which is not necessarily the case). -- Beno?t Minisini From richard.h.terry at gmail.com Thu May 17 00:24:08 2018 From: richard.h.terry at gmail.com (Richard Terry) Date: Thu, 17 May 2018 08:24:08 +1000 Subject: [Gambas-user] Postgres connection problem since upgrading to 3.11 form 3.9.2 In-Reply-To: References: Message-ID: Hi, The upgrade was just whatever package was brought in by my linux mint - I think its 17.3 but its off-line now so I can't look it up this instance, so just via the normal package manager Can you explain how to test the connection with 'debuger trace'. Thanks On 16/05/18 22:10, PICCORO McKAY Lenz wrote: > what method are you using for upgrade? > > where from do you upgrade? > > what proceduure was using for upgrade? > > please test the connection with debbuger trace also! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-16 1:12 GMT-04:00 Richard Terry >: > > Hi list > > I upgraded one machine accidentally to gambas 3.11 and now my > medical software won't run > > As far as I can ascertain it dies one of our subs (part of which > is listed below). If I put a breakpoint in it gets to the > .Type='postresql' then errors out. If I step through the code line > by line I get a seg-fault on the line *$hconn = New Connection. > *We have used this code since 2008 without problems. > > ?any ideas, pointers. > > > Thanks in advance. > > Richard > > > > Private Function Actual_Connect() As String > > ? Dim ssh_path As String > ? Dim n As Integer = 0 > ? Dim evt As Collection > ? Dim s As String > > ? Try $hconn.Close > ? Try pg_socket_file.Close() > ? If Not IsNull(inferior_ssh) Then Try inferior_ssh.Kill() > *$hconn = New Connection* > ? With $hconn > *??? .Type = "postgresql"?? << seems to die here* > ??? .Login = conninfo!username > ??? .Password = conninfo!password > ??? .Name = conninfo!dbname > ? End With > > > etc > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu May 17 00:28:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 22:28:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- Comment #14 by vuott VUOTT: Ok, now it works. Thanks. From bugtracker at gambaswiki.org Thu May 17 00:28:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 22:28:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1318: ERROR with Commit fdf8fa65 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1318&from=L21haW4- vuott VUOTT changed the state of the bug to: Fixed. From g4mba5 at gmail.com Thu May 17 01:06:01 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 May 2018 01:06:01 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 Message-ID: Hi, I have just released Gambas 3.11.3. This release fixes: * The compilation of gb.pdf with different versions of the randomly changing poppler library. * Some bugs in the gb.xml and gb.xml.html components. * A few other bugs. Download it at: https://gitlab.com/gambas/gambas/-/archive/3.11.3/gambas-3.11.3.tar.bz2 Regards, -- Beno?t Minisini From bugtracker at gambaswiki.org Thu May 17 01:19:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 16 May 2018 23:19:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #8 by Damien COTTIER: thanks for tip however it does not explain why on 3.10 UTC = + 2 Hours, 3.11 UTC = -2 Hours is there any fix later in 3.11 explaining such difference From twopilots at interisland.net Thu May 17 01:42:48 2018 From: twopilots at interisland.net (Ed & Clare Kelm) Date: Wed, 16 May 2018 16:42:48 -0700 Subject: [Gambas-user] WeekDay function In-Reply-To: <335023ad-78be-e1ee-3c02-5c603aca193d@gmail.com> References: <44446bac-7d29-6900-8845-66ab0a6bf5ba@interisland.net> <335023ad-78be-e1ee-3c02-5c603aca193d@gmail.com> Message-ID: <129fc746-e0d0-cefb-b7c0-678d490fd815@interisland.net> Benoit: Thanks!? Changed my code per your comment. Ed K. On 05/15/2018 06:46 PM, Beno?t Minisini wrote: > Le 16/05/2018 ? 03:05, Ed & Clare Kelm a ?crit?: >> List: >> >> Just got an update (3.11.2) to Gambas3, and the WeekDay function now >> is off by one day. >> >> WeekDay("1/1/2018") returns "0" (Sunday), but should return "1" >> (Monday).? Any other date is also off, by the same amount. >> >> I verified in a laptop running Xubuntu 14.04, and in one running >> Xubuntu 16.04. >> >> Thanks! >> > > "1/1/2018" is not a date, but a string. So it is converted to an UTC > date, and not incorrectly to a local date as before. > > So if your string represents a local date, you have to use Str() or > otherwise forge the Date with the Date() function. > > Regards, > From chrisml at deganius.de Thu May 17 08:04:09 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 17 May 2018 08:04:09 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: Message-ID: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Hello Beno?t, am 17.05.2018 um 01:06 schrieb Beno?t Minisini: > I have just released Gambas 3.11.3. This is very cool and professional. Great! Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bugtracker at gambaswiki.org Thu May 17 10:01:26 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 17 May 2018 08:01:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1321: Converting date to string behavior change between 3.10 and 3.11 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1321&from=L21haW4- Comment #9 by Gianluigi GRADASCHI: Watch this topic https://lists.gambas-basic.org/pipermail/user/2018-April/063613.html From mckaygerhard at gmail.com Thu May 17 14:05:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 08:05:00 -0400 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: AAAHHGG!!! again too soon! well in any way, for those that have older systems, the XML part have a IMPORTAT bugfix! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-17 2:04 GMT-04:00 Christof Thalhofer : > Hello Beno?t, > > am 17.05.2018 um 01:06 schrieb Beno?t Minisini: > > > I have just released Gambas 3.11.3. > > This is very cool and professional. Great! > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 17 14:08:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 May 2018 14:08:42 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: Le 17/05/2018 ? 14:05, PICCORO McKAY Lenz a ?crit?: > AAAHHGG!!! again too soon! > Why? -- Beno?t Minisini From mckaygerhard at gmail.com Thu May 17 14:10:52 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 08:10:52 -0400 Subject: [Gambas-user] Postgres connection problem since upgrading to 3.11 form 3.9.2 In-Reply-To: References: Message-ID: 2018-05-16 18:24 GMT-04:00 Richard Terry : > I think its 17.3 but its off-line now so I can't look it up this instance, > so just via the normal package manager > > Can you explain how to test the connection with 'debuger trace'. > in the IDE active the profiling and then run.. a very detailed debug window will be show, try to put some breackpoints and have very patiente > Hi, > > The upgrade was just whatever package was brought in by my linux mint - > what do you means with "whatever package" there's only 3 places for packages, ppa, debian/winbuntu/mint and my openbuild service, the debian/winbuntu/winmint are discharted due 3.11 still are not in unstable at Debian .. so i guess you use ppa, so then i cannot help you in that part, maybe do you forgett to install some package!? > > Thanks > > > On 16/05/18 22:10, PICCORO McKAY Lenz wrote: > > what method are you using for upgrade? > > where from do you upgrade? > > what proceduure was using for upgrade? > > please test the connection with debbuger trace also! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-16 1:12 GMT-04:00 Richard Terry : > >> Hi list >> >> I upgraded one machine accidentally to gambas 3.11 and now my medical >> software won't run >> >> As far as I can ascertain it dies one of our subs (part of which is >> listed below). If I put a breakpoint in it gets to the .Type='postresql' >> then errors out. If I step through the code line by line I get a seg-fault >> on the line * $hconn = New Connection. *We have used this code since >> 2008 without problems. >> >> ?any ideas, pointers. >> >> >> Thanks in advance. >> >> Richard >> >> >> >> Private Function Actual_Connect() As String >> >> Dim ssh_path As String >> Dim n As Integer = 0 >> Dim evt As Collection >> Dim s As String >> >> Try $hconn.Close >> Try pg_socket_file.Close() >> If Not IsNull(inferior_ssh) Then Try inferior_ssh.Kill() >> * $hconn = New Connection* >> With $hconn >> * .Type = "postgresql" << seems to die here* >> .Login = conninfo!username >> .Password = conninfo!password >> .Name = conninfo!dbname >> End With >> >> >> etc >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user > > Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 17 14:15:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 08:15:21 -0400 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: i not finish to test coplety!!!!, i use serial, postgres and odbc, my preocupation its due many many older linux installatins that due the present hardware cannot use moder linux (too much kernel module removals and drivers non-mantained for excelent special hardware) the problem benoits its that i noted the only project that use extensivelly almost all the gambas components and the most importants (but not the most used) are Domoti-Ga home automation software.. and my projects the rest are very very "mysql and forms" in general.. nothing complext at all.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-17 8:08 GMT-04:00 Beno?t Minisini : > Le 17/05/2018 ? 14:05, PICCORO McKAY Lenz a ?crit : > >> AAAHHGG!!! again too soon! >> >> > Why? > > -- > Beno?t Minisini > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 17 14:18:49 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 08:18:49 -0400 Subject: [Gambas-user] bugtracker has permission fixeds? In-Reply-To: <043d2f0a-3ae9-38d8-0f8f-0ddc1985f79f@gmail.com> References: <121569c8-ba74-fc20-5872-eb462cec8181@gmail.com> <043d2f0a-3ae9-38d8-0f8f-0ddc1985f79f@gmail.com> Message-ID: 2018-05-16 18:22 GMT-04:00 Beno?t Minisini : > No, this is a feature. A "NeedsInfo" issue becomes "Accepted" as soon as > someone posts a new comment WOW! awesome! it's the same bugtracker project that are inside the gambas repository? and why not separate wiki and gambas in different repositories, if you whants still have inside can use git submodules! are better due the amount of size of each repository respect the others i can made a exampel repository organization for you and can see the detaled step to test if are great for the gambas organization! > (assuming that the new comment is the needed info, which is not > necessarily the case). > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 17 14:21:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 May 2018 14:21:20 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: Le 17/05/2018 ? 14:15, PICCORO McKAY Lenz a ?crit?: > i not finish to test coplety!!!!, i use serial, postgres and odbc, my > preocupation its due many many older linux installatins that due the > present hardware cannot use moder linux (too much kernel module removals > and drivers non-mantained for excelent special hardware) > > the problem benoits its that i noted the only project that use > extensivelly almost all the gambas components and the most importants > (but not the most used) are Domoti-Ga home automation software.. and my > projects > > the rest are very very "mysql and forms" in general.. nothing complext > at all.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > Don't panic, hold your towel, I will make other releases if needed. -- Beno?t Minisini From mckaygerhard at gmail.com Thu May 17 14:29:48 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 08:29:48 -0400 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: benoit, i activate the profiling and then run the project openabs.. but wheantime are running i close the ide.. of course the profiling show AFTER THE IDE CLOSES DUE THE PROJECT STOPED! are this normal? i mention due the profiling are activate after a project close it but the environment was also close it! right? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-17 8:21 GMT-04:00 Beno?t Minisini : > Le 17/05/2018 ? 14:15, PICCORO McKAY Lenz a ?crit : > >> i not finish to test coplety!!!!, i use serial, postgres and odbc, my >> preocupation its due many many older linux installatins that due the >> present hardware cannot use moder linux (too much kernel module removals >> and drivers non-mantained for excelent special hardware) >> >> the problem benoits its that i noted the only project that use >> extensivelly almost all the gambas components and the most importants (but >> not the most used) are Domoti-Ga home automation software.. and my projects >> >> the rest are very very "mysql and forms" in general.. nothing complext at >> all.. >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > Don't panic, hold your towel, I will make other releases if needed. > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 17 14:31:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 08:31:37 -0400 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: 2018-05-17 8:21 GMT-04:00 Beno?t Minisini : > Le 17/05/2018 ? 14:15, PICCORO McKAY Lenz a ?crit : > >> the problem benoits its that i noted the only project that use >> extensivelly almost all the gambas components and the most importants (but >> not the most used) are Domoti-Ga home automation software.. and my projects >> >> the rest are very very "mysql and forms" in general.. nothing complext at >> all.. > > > > Don't panic, hold your towel, I will make other releases if needed. The problem behing the problem: must still compiled in my lenny Debian linux, and time pass.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 17 14:34:54 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 May 2018 14:34:54 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: <50132914-8505-f01f-7956-62975bf327b4@gmail.com> Le 17/05/2018 ? 14:29, PICCORO McKAY Lenz a ?crit?: > benoit, i activate the profiling and then run the project openabs.. but > wheantime are running i close the ide.. of course the profiling show > AFTER THE IDE CLOSES DUE THE PROJECT STOPED! > > are this normal? i mention due the profiling are activate after a > project close it but the environment was also close it! right? > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > Sorry, I don't understand at all. Don't you have anyone that could help you write english that is understandable? It would help the communication a lot! At least you could activate the english dictionnary (if you use Firefox or Thunderbird): it will underline the words you write that do not exist in english. It won't fix the grammar, but it's a beginning... Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 17 14:35:46 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 May 2018 14:35:46 +0200 Subject: [Gambas-user] This is a test Message-ID: <37de570b-20fd-4709-ba13-5319980e16a5@gmail.com> I'm testing a smaller footer for the mailing-list... -- Beno?t Minisini From mckaygerhard at gmail.com Thu May 17 15:02:55 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 09:02:55 -0400 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: <50132914-8505-f01f-7956-62975bf327b4@gmail.com> References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> <50132914-8505-f01f-7956-62975bf327b4@gmail.com> Message-ID: please sorry and pardon me.. i write hurry always.. I have loaded a project, and I have executed it but with profiling activated, obviously after execution the profiling window is displayed in the environment ide. All here are normal.. but.. However, In my case, now, have not stopped the project, I have stopped the IDE environment completely, the idea closes and therefore closes the project, but instead of leaving everything and finishing everything, the profiling window remains and all the other gone (due was closed it of course)... due does it if activated and it what happens after "stopping" the project. I do not know if this is a bug or not because although it is ambiguous it is not properly a bug, I just see it ambiguous Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-17 8:34 GMT-04:00 Beno?t Minisini : > Le 17/05/2018 ? 14:29, PICCORO McKAY Lenz a ?crit : > >> benoit, i activate the profiling and then run the project openabs.. but >> wheantime are running i close the ide.. of course the profiling show AFTER >> THE IDE CLOSES DUE THE PROJECT STOPED! >> >> are this normal? i mention due the profiling are activate after a project >> close it but the environment was also close it! right? >> >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > Sorry, I don't understand at all. > > Don't you have anyone that could help you write english that is > understandable? It would help the communication a lot! > > At least you could activate the english dictionnary (if you use Firefox or > Thunderbird): it will underline the words you write that do not exist in > english. It won't fix the grammar, but it's a beginning... > > Regards, > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 17 15:04:27 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 09:04:27 -0400 Subject: [Gambas-user] This is a test In-Reply-To: <37de570b-20fd-4709-ba13-5319980e16a5@gmail.com> References: <37de570b-20fd-4709-ba13-5319980e16a5@gmail.com> Message-ID: WOW what a footer! great! GIO AHEAD YOU CAN <- i'm just giving moral support! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-17 8:35 GMT-04:00 Beno?t Minisini : > I'm testing a smaller footer for the mailing-list... > > -- > Beno?t Minisini > > (Gambas mailing-list is hosted by https://www.hostsharing.net) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu May 17 15:11:47 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 17 May 2018 13:11:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1313: OPenABS segfault when try to run in 3.11.0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1313&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: was related to keyring package deprecated, ill put a replaces and provides references to solve this on my repository openabs manages passwords so use the keyring compoente now deprecated/changed PICCORO LENZ MCKAY changed the state of the bug to: Invalid. From bugtracker at gambaswiki.org Thu May 17 15:17:47 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 17 May 2018 13:17:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #855: [gb.report2] blank report, use more than 90% resource CPU In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.855&from=L21haW4- Comment #16 by PICCORO LENZ MCKAY: this issue it's only in qt4 4.8 so if uses 4.7 and 4.6 do not have problems i think this must be set to invalid due relish on the qt instalations this also affect qt 5 if are 5.2.X (most qt5 early code are qt4 code with stupid features) but gambas requieres 5.3.2 so then that means: we cannot do much here! unless some trick from the gambas code? PICCORO LENZ MCKAY changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Thu May 17 15:25:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 17 May 2018 13:25:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1297: Illegal Operation in Serial Communication In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1297&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: i'll mark tthis to invalid becose Making the serial port component warn if it is in use or not would be much slower than it already is, and in this case (I do a lot of work with this port and with fiscal impression) I see its use quite slow already the nature of those ports does not feedback any response unless requested, and the gambas component make good work due manages as stream and not manually at all... the manange of the state must be done by the user using the events and the status of devices (maybe not so described in the wiki) i like make documentation and much work i can do explain those cases but until a web framework easy to use (less abstract) are missing in gambas i cannot do so much PICCORO LENZ MCKAY changed the state of the bug to: Invalid. From bugtracker at gambaswiki.org Thu May 17 15:49:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 17 May 2018 13:49:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1065: Icon does not appear in tray In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1065&from=L21haW4- Comment #18 by PICCORO LENZ MCKAY: this problem are happened due the applicsation context respect the polkit mananger.. permission must be revised after run the application.. same behaviour happened with openbox if no "openbox-session" are used and a valid polkit are started.. as example network manager icon does not appears so i'm afraid this bug must be marked as working until prper test should run.. please register a proper polkit and permission group to the user PICCORO LENZ MCKAY changed the state of the bug to: Working. From bugtracker at gambaswiki.org Thu May 17 15:57:04 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 17 May 2018 13:57:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #686: Beautify for CGI, CSS, JS In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.686&from=L21haW4- Comment #7 by PICCORO LENZ MCKAY: any progress for html pretty printer? due are working for CSS, JS and CGI (JS and CSS and HTML are not explicy marked) well change this to fixed? From chrisml at deganius.de Thu May 17 16:01:43 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 17 May 2018 16:01:43 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: <755d692f-2e1f-313c-6b1d-540ac2358c80@deganius.de> Am 17.05.2018 um 14:15 schrieb PICCORO McKAY Lenz: > i not finish to test coplety!!!!, i use serial, postgres and odbc, my > preocupation its due many many older linux installatins that due the > present hardware cannot use moder linux (too much kernel module removals > and drivers non-mantained for excelent special hardware) There is an infinte number of numbers on the third position of the versionstring possible. So it was not too early. If you find another thingi there will come 3.11.4 ... and so on. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Thu May 17 16:11:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 10:11:01 -0400 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: <7b6134ee-ed70-2208-2992-1bf17c2224c6@gmail.com> References: <7b6134ee-ed70-2208-2992-1bf17c2224c6@gmail.com> Message-ID: hi forks! i found due the languaje barrier, it's not enought those tutorials.. we need less abstract examples so then more people can translate easyle to other languajes and "then" make complex example and avanced projects i find things like the german Gambas book but as i said, "only in german"... were wonderfully if that book can be translated and put under the "tutorial" section in the gambas oficial wiki Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-02 6:22 GMT-04:00 KKing : > Tobi, Charlie, Gianluigi. Thankyou for your responses I will try to find > time to followup > > << > because this question actually needs a whole tutorial to be answered. > >> > +1 > tutorials and specific short working examples are the best ways to > enlighten. > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu May 17 16:20:09 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 17 May 2018 16:20:09 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: Am 17.05.2018 um 14:21 schrieb Beno?t Minisini: > Le 17/05/2018 ? 14:15, PICCORO McKAY Lenz a ?crit?: >> i not finish to test coplety!!!!, i use serial, postgres and odbc, my >> preocupation its due many many older linux installatins that due the >> present hardware cannot use moder linux (too much kernel module >> removals and drivers non-mantained for excelent special hardware) >> >> the problem benoits its that i noted the only project that use >> extensivelly almost all the gambas components and the most importants >> (but not the most used) are Domoti-Ga home automation software.. and >> my projects >> >> the rest are very very "mysql and forms" in general.. nothing complext >> at all.. >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > > Don't panic, hold your towel, I will make other releases if needed. > For those who maintain projects on older hardware or kernel or qt versions, is there an archive of Gambas versions to download the latest release for a special environment? Over the years, I kept all versions of Gambas 2 and 3 I downloaded for me just in case I would have to step back. Hasn't occured yet, as far as I remember, but one never knows ;) Regards Rolf From bm.530502 at gmail.com Thu May 17 16:32:02 2018 From: bm.530502 at gmail.com (M Be) Date: Thu, 17 May 2018 16:32:02 +0200 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: References: <7b6134ee-ed70-2208-2992-1bf17c2224c6@gmail.com> Message-ID: *i find things like the german Gambas book but as i said, "only in german"... * It's already in progress. Take a look here: http://www.gambas-book.net/ Regards Ingo 2018-05-17 16:11 GMT+02:00 PICCORO McKAY Lenz : > hi forks! i found due the languaje barrier, it's not enought those > tutorials.. > > we need less abstract examples so then more people can translate easyle to > other languajes and "then" make complex example and avanced projects > > i find things like the german Gambas book but as i said, "only in > german"... > > were wonderfully if that book can be translated and put under the > "tutorial" section in the gambas oficial wiki > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-02 6:22 GMT-04:00 KKing : > >> Tobi, Charlie, Gianluigi. Thankyou for your responses I will try to find >> time to followup >> >> << >> because this question actually needs a whole tutorial to be answered. >> >> >> +1 >> tutorials and specific short working examples are the best ways to >> enlighten. >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 17 16:38:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 10:38:18 -0400 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: 2018-05-17 10:20 GMT-04:00 Rolf-Werner Eilert : > For those who maintain projects on older hardware or kernel or qt > versions, is there an archive of Gambas versions to download the latest > release for a special environment? > > Over the years, I kept all versions of Gambas 2 and 3 I downloaded for me > just in case I would have to step back. Hasn't occured yet, as far as I > remember, but one never knows ;) > i mantain some kind of archive but only of my compilations for debian lenny, squeeze.. of gambas 3.4, 3.8 and 3.11 only but git and sf.net have also tarballs of each version released! > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 17 16:40:04 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 17 May 2018 16:40:04 +0200 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: References: <7b6134ee-ed70-2208-2992-1bf17c2224c6@gmail.com> Message-ID: AFAIK, Dr. Hans is translating the book into English. :-D [0] https://www.gambas-buch.de/dw/doku.php?id=autoren:start 2018-05-17 16:11 GMT+02:00 PICCORO McKAY Lenz : > hi forks! i found due the languaje barrier, it's not enought those > tutorials.. > > we need less abstract examples so then more people can translate easyle to > other languajes and "then" make complex example and avanced projects > > i find things like the german Gambas book but as i said, "only in > german"... > > were wonderfully if that book can be translated and put under the > "tutorial" section in the gambas oficial wiki > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-02 6:22 GMT-04:00 KKing : > >> Tobi, Charlie, Gianluigi. Thankyou for your responses I will try to find >> time to followup >> >> << >> because this question actually needs a whole tutorial to be answered. >> >> >> +1 >> tutorials and specific short working examples are the best ways to >> enlighten. >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 17 16:41:48 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 10:41:48 -0400 Subject: [Gambas-user] Gambas book and tutorials Message-ID: Moved to own threath: 2018-05-17 10:32 GMT-04:00 M Be : > > > *i find things like the german Gambas book but as i said, "only in > german"... * > > It's already in progress. Take a look here: http://www.gambas-book.net/ > but it's a separate work, i mean : how about join forces and made it already in the oficial wiki? i think its better! like php.net we can find all the need in one place, a?so remenber that this make available in the IDE too.. and also can be made a special feature to ide that could be "liked examples" and or "linkes tutorials" -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 17 16:42:44 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 17 May 2018 10:42:44 -0400 Subject: [Gambas-user] Gambas book and tutorials In-Reply-To: References: Message-ID: that gambas-book are only in english, not multilanguaje as wiki does! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-17 10:41 GMT-04:00 PICCORO McKAY Lenz : > Moved to own threath: > > 2018-05-17 10:32 GMT-04:00 M Be : > >> >> >> *i find things like the german Gambas book but as i said, "only in >> german"... * >> >> It's already in progress. Take a look here: http://www.gambas-book.net/ >> > > but it's a separate work, i mean : > > how about join forces and made it already in the oficial wiki? i think its > better! like php.net we can find all the need in one place, > > a?so remenber that this make available in the IDE too.. > > and also can be made a special feature to ide that could be "liked > examples" and or "linkes tutorials" > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 17 16:48:01 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 17 May 2018 16:48:01 +0200 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: References: <7b6134ee-ed70-2208-2992-1bf17c2224c6@gmail.com> Message-ID: Excellent Ingo, I could not find the link Thank you Regards Gianluigi 2018-05-17 16:32 GMT+02:00 M Be : > > > *i find things like the german Gambas book but as i said, "only in > german"... * > > It's already in progress. Take a look here: http://www.gambas-book.net/ > > Regards > Ingo > > 2018-05-17 16:11 GMT+02:00 PICCORO McKAY Lenz : > >> hi forks! i found due the languaje barrier, it's not enought those >> tutorials.. >> >> we need less abstract examples so then more people can translate easyle >> to other languajes and "then" make complex example and avanced projects >> >> i find things like the german Gambas book but as i said, "only in >> german"... >> >> were wonderfully if that book can be translated and put under the >> "tutorial" section in the gambas oficial wiki >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-05-02 6:22 GMT-04:00 KKing : >> >>> Tobi, Charlie, Gianluigi. Thankyou for your responses I will try to find >>> time to followup >>> >>> << >>> because this question actually needs a whole tutorial to be answered. >>> >> >>> +1 >>> tutorials and specific short working examples are the best ways to >>> enlighten. >>> >>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bm.530502 at gmail.com Thu May 17 16:52:35 2018 From: bm.530502 at gmail.com (M Be) Date: Thu, 17 May 2018 16:52:35 +0200 Subject: [Gambas-user] User Controls and Font resizing to fit content In-Reply-To: References: <7b6134ee-ed70-2208-2992-1bf17c2224c6@gmail.com> Message-ID: In my opinion, a good documentation on the net is better than none at all :-) Regards Ingo 2018-05-17 16:48 GMT+02:00 Gianluigi : > Excellent Ingo, > I could not find the link > > Thank you > > Regards > Gianluigi > > > 2018-05-17 16:32 GMT+02:00 M Be : > >> >> >> *i find things like the german Gambas book but as i said, "only in >> german"... * >> >> It's already in progress. Take a look here: http://www.gambas-book.net/ >> >> Regards >> Ingo >> >> 2018-05-17 16:11 GMT+02:00 PICCORO McKAY Lenz : >> >>> hi forks! i found due the languaje barrier, it's not enought those >>> tutorials.. >>> >>> we need less abstract examples so then more people can translate easyle >>> to other languajes and "then" make complex example and avanced projects >>> >>> i find things like the german Gambas book but as i said, "only in >>> german"... >>> >>> were wonderfully if that book can be translated and put under the >>> "tutorial" section in the gambas oficial wiki >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-05-02 6:22 GMT-04:00 KKing : >>> >>>> Tobi, Charlie, Gianluigi. Thankyou for your responses I will try to >>>> find time to followup >>>> >>>> << >>>> because this question actually needs a whole tutorial to be answered. >>>> >> >>>> +1 >>>> tutorials and specific short working examples are the best ways to >>>> enlighten. >>>> >>>> >>>> >>>> >>>> -------------------------------------------------- >>>> >>>> This is the Gambas Mailing List: >>>> https://lists.gambas-basic.org/listinfo/user >>>> >>>> Search the list: >>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>> >>>> Hosted by https://www.hostsharing.net >>>> >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu May 17 17:34:38 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 17 May 2018 17:34:38 +0200 Subject: [Gambas-user] Release of Gambas 3.11.3 In-Reply-To: References: <9056bbc8-a0a4-c414-a061-5315690e24b1@deganius.de> Message-ID: Am 17.05.2018 um 16:38 schrieb PICCORO McKAY Lenz: > but git and sf.net have also tarballs of each version > released! > Ah, good to know... Just in case... Regards Rolf From g4mba5 at gmail.com Fri May 18 02:24:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 02:24:55 +0200 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> Message-ID: Le 16/05/2018 ? 20:03, Fabien Bodard a ?crit?: > how do you manage cross architecture compilation ? I don't. The translated C code is compiled on the same system it is run. -- Beno?t Minisini From g4mba5 at gmail.com Fri May 18 02:27:29 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 02:27:29 +0200 Subject: [Gambas-user] Replacing the JIT component, the beginning Message-ID: <818879cc-6901-812f-8a5e-9e97d46fd416@gmail.com> Hi, I have created a new branch named 'jit-with-c' for the new JIT system. This is just very early code for those who are interested to see how the thing will work. I think the generated code will be compiled by a new 'gb.jit' component entirely made in Gambas (that will call the C compiler, and manage an object cache to avoir recompiling at each program start). Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri May 18 03:44:31 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 18 May 2018 04:44:31 +0300 Subject: [Gambas-user] Replacing the JIT component, the beginning In-Reply-To: <818879cc-6901-812f-8a5e-9e97d46fd416@gmail.com> References: <818879cc-6901-812f-8a5e-9e97d46fd416@gmail.com> Message-ID: Great! Jussi On Fri, May 18, 2018 at 3:27 AM, Beno?t Minisini wrote: > Hi, > > I have created a new branch named 'jit-with-c' for the new JIT system. > > This is just very early code for those who are interested to see how the > thing will work. > > I think the generated code will be compiled by a new 'gb.jit' component > entirely made in Gambas (that will call the C compiler, and manage an > object cache to avoir recompiling at each program start). > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrien.prokopowicz at gmail.com Fri May 18 04:34:33 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Fri, 18 May 2018 04:34:33 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> Message-ID: Le 16/05/2018 ? 08:00, Christof Thalhofer a ?crit?: > Am 16.05.2018 um 04:34 schrieb Adrien Prokopowicz: > >>> Assert.Something is much faster and easier to write while coding, you >>> can write >>> >>> As.So >>> >>> Instead of >>> >>> AssertSo >> >> I didn't think of that, but that's true. >> Having all assertion types inside a single, dedicated class/module helps >> discoverablility quite a bit as well, since you can just write >> Assert. and it presents you all the possible assertion tools you >> may want. > > This is also what I was thinking about. > >>> Sorry, Tobi and Adrien, I do not have really much time, we are creating >>> a building and there is much work to do here. >> >> No worries. It's the advantage of having several people on a same >> project, they can be busy and the projet is still going. :-) > > Yes, this is great! I am not very familiar with work in team as I mostly > code alone. So I'm looking forward to the positive surprises that may > come if others throw their brain in. :-) > >>> I think we first should build a main repo for it. >> >> I agree, but first I think Tobias should first commit the changes he >> talked about (even if it isn't finished or functional), that way we're >> all on the same page and no work will be lost. :-) > > Yes. > >> When that's done, I could create a new separate repository on the Gambas >> organization for us to make our experiments before merging it in the >> main repository. I can then start to clean up the codebase a bit, mainly >> by removing the GUI parts (which will end up in the IDE rather than the >> component), and putting most of the logic into a separate "gbprove3" >> executable as Tobias suggested (the name is still open to discussion >> though). > > If you look at my develop branch here: > > https://github.com/Deganius/gb.deg.unittest/tree/develop > > There I did part of that as Beno?t suggested. I removed GUI, created a > Unittest class from that testclasses can inherit from. Just to mention. > > But play around ... :-) Yet another branch that I missed, duh. Guess I'll have some merging to do. :-) In the meantime, I've configured GitLab's CI system to check Gambas builds on a few distributions (I'll add more later, the wiki also needs to be updated). The MR is here[0], I'm just waiting on Beno?t's agreement. Not only will it help with the current build issues shenenigans (no need to wait for everybody to try building on their own system to make a new release), but it will also provide a way to automatically run all tests after each commits. Even though the CI setup is very basic right now, it already revealed that older Debian systems can't build Gambas right now since the Poppler fixes. Hopefully now that CI is here there won't be too many regressions on that front! -- Adrien Prokopowicz From adrien.prokopowicz at gmail.com Fri May 18 05:34:22 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Fri, 18 May 2018 05:34:22 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> Message-ID: <7d790dc2-981d-a202-35c2-ae54d7d4f01c@gmail.com> Le 13/05/2018 ? 20:59, Jussi Lahtinen a ?crit?: > How to test GUI widgets automatically? > > > Jussi (Whoops, looks like your mail got lost in my inbox, sorry about that!) It seems both GTK[0] and Qt[1] have some utilities to generate mouse and keyboard events to any control/widget you may have, so we could make a gb.test.gui component that would wrap those calls and expose them to automated tests. Say you have a myButton that sets a myLabel's text to "Clicked!" when clicked, the corresponding test code could look like the following: Assert.Equals("", myLabel.Text) myButton.Click() Wait Assert.Equals("Clicked!", myLabel.Text) However, I think the setup for these kinds of tests would be quite a bit more complex to come up with, since the tested GUI app would probably need a virtual framebuffer to render to. But of course, testing GUI apps aren't really the focus right now, so it will wait a bit. I'll be quite happy already when we hit like 80-90% code coverage on the interpreter, compiler and the non-GUI components. :-) [0] https://developer.gnome.org/gtk3/stable/gtk3-Testing.html [1] http://doc.qt.io/qt-5/qtest.html -- Adrien Prokopowicz From g4mba5 at gmail.com Fri May 18 09:15:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 09:15:12 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> Message-ID: Le 18/05/2018 ? 04:34, Adrien Prokopowicz a ?crit?: > > Yet another branch that I missed, duh. Guess I'll have some merging to > do. :-) > > In the meantime, I've configured GitLab's CI system to check Gambas > builds on a few distributions (I'll add more later, the wiki also needs > to be updated). The MR is here[0], I'm just waiting on Beno?t's agreement. What should I do to agree? -- Beno?t Minisini From g4mba5 at gmail.com Fri May 18 09:16:35 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 09:16:35 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> Message-ID: Le 18/05/2018 ? 09:15, Beno?t Minisini a ?crit?: > Le 18/05/2018 ? 04:34, Adrien Prokopowicz a ?crit?: >> >> Yet another branch that I missed, duh. Guess I'll have some merging to >> do. :-) >> >> In the meantime, I've configured GitLab's CI system to check Gambas >> builds on a few distributions (I'll add more later, the wiki also >> needs to be updated). The MR is here[0], I'm just waiting on Beno?t's >> agreement. > > What should I do to agree? > OK, I saw the merge request. -- Beno?t Minisini From g4mba5 at gmail.com Fri May 18 09:22:08 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 09:22:08 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> Message-ID: Le 18/05/2018 ? 09:16, Beno?t Minisini a ?crit?: > Le 18/05/2018 ? 09:15, Beno?t Minisini a ?crit?: >> Le 18/05/2018 ? 04:34, Adrien Prokopowicz a ?crit?: >>> >>> Yet another branch that I missed, duh. Guess I'll have some merging >>> to do. :-) >>> >>> In the meantime, I've configured GitLab's CI system to check Gambas >>> builds on a few distributions (I'll add more later, the wiki also >>> needs to be updated). The MR is here[0], I'm just waiting on Beno?t's >>> agreement. >> >> What should I do to agree? >> > > OK, I saw the merge request. > Apparently there is one more poppler package in ubuntu configuration than in debian configuration. Isn't it the reason why it fails? -- Beno?t Minisini From g4mba5 at gmail.com Fri May 18 09:25:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 09:25:11 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> Message-ID: <5971742d-fdcf-60cc-c98a-552ea1f43f3d@gmail.com> Le 18/05/2018 ? 09:22, Beno?t Minisini a ?crit?: > Le 18/05/2018 ? 09:16, Beno?t Minisini a ?crit?: >> Le 18/05/2018 ? 09:15, Beno?t Minisini a ?crit?: >>> Le 18/05/2018 ? 04:34, Adrien Prokopowicz a ?crit?: >>>> >>>> Yet another branch that I missed, duh. Guess I'll have some merging >>>> to do. :-) >>>> >>>> In the meantime, I've configured GitLab's CI system to check Gambas >>>> builds on a few distributions (I'll add more later, the wiki also >>>> needs to be updated). The MR is here[0], I'm just waiting on >>>> Beno?t's agreement. >>> >>> What should I do to agree? >>> >> >> OK, I saw the merge request. >> > > Apparently there is one more poppler package in ubuntu configuration > than in debian configuration. Isn't it the reason why it fails? > My God... Do you mean it will build Gambas on all these distributions at each commit? -- Beno?t Minisini From bugtracker at gambaswiki.org Fri May 18 10:51:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 18 May 2018 08:51:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1322: TextEditor no copy/paste any more Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1322&from=L21haW4- C THAL reported a new bug. Summary ------- TextEditor no copy/paste any more Type : Bug Priority : Medium Gambas version : Master Product : GUI components Description ----------- Since 3.11 it seems that the texteditor (gb.form.editor) does not provide copy/paste via Ctrl-C/Ctrl-V any more. From mckaygerhard at gmail.com Fri May 18 14:00:13 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 18 May 2018 08:00:13 -0400 Subject: [Gambas-user] Replacing the JIT component, the beginning In-Reply-To: <818879cc-6901-812f-8a5e-9e97d46fd416@gmail.com> References: <818879cc-6901-812f-8a5e-9e97d46fd416@gmail.com> Message-ID: hi, benoit! great but remenber that please try to get compiled with gcc 4.1 to lasted not only lasted! what? do someone remenber that gcc4/gcc5/gcc6 cannot produce object optimized like gcc3? gcc4 produce me small executable rather than gcc6/7 of course less secure Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-17 20:27 GMT-04:00 Beno?t Minisini : > Hi, > > I have created a new branch named 'jit-with-c' for the new JIT system. > > This is just very early code for those who are interested to see how the > thing will work. > > I think the generated code will be compiled by a new 'gb.jit' component > entirely made in Gambas (that will call the C compiler, and manage an > object cache to avoir recompiling at each program start). > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From softwaredevelopment at smartsonsite.com Fri May 18 14:23:52 2018 From: softwaredevelopment at smartsonsite.com (Stephen Bungay) Date: Fri, 18 May 2018 08:23:52 -0400 Subject: [Gambas-user] Editor Tab size of 1 space not working as expected... Message-ID: <0df77b93-f44a-610e-338a-34f9c8b0f116@smartsonsite.com> Gambas 3.10.0 Linux Mint 17.3 Cinnamon 64 Bit ? I have set the tab size to 1 space in both the Tools->Preferences->Editor->Default tab size and also in the Project->Properties->Options areas, yet when I highlight a block of code and press [Tab] to move the block to where I want it the editor always indents by 2 spaces for each press of the [Tab] key. Steve. From jussi.lahtinen at gmail.com Fri May 18 15:02:38 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 18 May 2018 16:02:38 +0300 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <7d790dc2-981d-a202-35c2-ae54d7d4f01c@gmail.com> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <7d790dc2-981d-a202-35c2-ae54d7d4f01c@gmail.com> Message-ID: OK. Just popped into my mind, because of the recent (now fixed) bug in datebox. Jussi On Fri, May 18, 2018 at 6:34 AM, Adrien Prokopowicz < adrien.prokopowicz at gmail.com> wrote: > Le 13/05/2018 ? 20:59, Jussi Lahtinen a ?crit : > >> How to test GUI widgets automatically? >> >> >> Jussi >> > > (Whoops, looks like your mail got lost in my inbox, sorry about that!) > > It seems both GTK[0] and Qt[1] have some utilities to generate mouse and > keyboard events to any control/widget you may have, so we could make a > gb.test.gui component that would wrap those calls and expose them to > automated tests. > > Say you have a myButton that sets a myLabel's text to "Clicked!" when > clicked, the corresponding test code could look like the following: > > Assert.Equals("", myLabel.Text) > myButton.Click() > Wait > Assert.Equals("Clicked!", myLabel.Text) > > However, I think the setup for these kinds of tests would be quite a bit > more complex to come up with, since the tested GUI app would probably need > a virtual framebuffer to render to. > > But of course, testing GUI apps aren't really the focus right now, so it > will wait a bit. I'll be quite happy already when we hit like 80-90% code > coverage on the interpreter, compiler and the non-GUI components. :-) > > [0] https://developer.gnome.org/gtk3/stable/gtk3-Testing.html > [1] http://doc.qt.io/qt-5/qtest.html > > > -- > Adrien Prokopowicz > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 18 15:10:33 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 15:10:33 +0200 Subject: [Gambas-user] Leaving until Tuesday Message-ID: Hi, I'm going in Germany until Monday, so I will be offline until Tuesday. So don't worry if I don't answer mails! Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Fri May 18 15:14:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 18 May 2018 09:14:57 -0400 Subject: [Gambas-user] Leaving until Tuesday In-Reply-To: References: Message-ID: NOOOOOOOOOOOOOOO.... (and when Benoit close the LID of their laptop) YEEAHHHHHHHHH Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-18 9:10 GMT-04:00 Beno?t Minisini : > Hi, > > I'm going in Germany until Monday, so I will be offline until Tuesday. So > don't worry if I don't answer mails! > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 18 15:20:22 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 18 May 2018 15:20:22 +0200 Subject: [Gambas-user] Leaving until Tuesday In-Reply-To: References: Message-ID: <78c9658d-1087-f45b-450f-f878fb83bbee@gmail.com> Le 18/05/2018 ? 15:14, PICCORO McKAY Lenz a ?crit?: > NOOOOOOOOOOOOOOO.... > > (and when Benoit close the LID of their laptop) > > YEEAHHHHHHHHH > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > I have a huge tower. -- Beno?t Minisini From bm.530502 at gmail.com Fri May 18 15:28:21 2018 From: bm.530502 at gmail.com (M Be) Date: Fri, 18 May 2018 15:28:21 +0200 Subject: [Gambas-user] Leaving until Tuesday In-Reply-To: <78c9658d-1087-f45b-450f-f878fb83bbee@gmail.com> References: <78c9658d-1087-f45b-450f-f878fb83bbee@gmail.com> Message-ID: Then enjoy your short holiday in Germany ;-) Regards Ingo (lives between Heidelberg and Frankfurt) 2018-05-18 15:20 GMT+02:00 Beno?t Minisini : > Le 18/05/2018 ? 15:14, PICCORO McKAY Lenz a ?crit : > >> NOOOOOOOOOOOOOOO.... >> >> (and when Benoit close the LID of their laptop) >> >> YEEAHHHHHHHHH >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > I have a huge tower. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrien.prokopowicz at gmail.com Fri May 18 16:55:49 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Fri, 18 May 2018 16:55:49 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <5971742d-fdcf-60cc-c98a-552ea1f43f3d@gmail.com> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> <5971742d-fdcf-60cc-c98a-552ea1f43f3d@gmail.com> Message-ID: <9be1d7f7-e4ce-ea2a-e326-1a8ce989a70a@gmail.com> Le 18/05/2018 ? 09:25, Beno?t Minisini a ?crit?: > Le 18/05/2018 ? 09:22, Beno?t Minisini a ?crit?: >> Le 18/05/2018 ? 09:16, Beno?t Minisini a ?crit?: >>> Le 18/05/2018 ? 09:15, Beno?t Minisini a ?crit?: >>>> Le 18/05/2018 ? 04:34, Adrien Prokopowicz a ?crit?: >>>>> >>>>> Yet another branch that I missed, duh. Guess I'll have some merging >>>>> to do. :-) >>>>> >>>>> In the meantime, I've configured GitLab's CI system to check Gambas >>>>> builds on a few distributions (I'll add more later, the wiki also >>>>> needs to be updated). The MR is here[0], I'm just waiting on >>>>> Beno?t's agreement. >>>> >>>> What should I do to agree? >>>> >>> >>> OK, I saw the merge request. >>> >> >> Apparently there is one more poppler package in ubuntu configuration >> than in debian configuration. Isn't it the reason why it fails? >> Oh you're right, my bad I missed those. To be honest I just copy-pasted the package list from the wiki, threw those in Docker and tweaked it until ./configure was happy. I guess I'll have a lot of wiki editing to do then! > > My God... Do you mean it will build Gambas on all these distributions at > each commit? > Yup. And also for every branch, and on any incoming Merge Request. Welcome to the wonderful world of Continuous Integration. :-) And as I said previously, it is still quite simplistic for now: I want to support pretty much every distribution that's claimed to be supported by the wiki, both latest version and LTS. We could also try to add some older distributions if we want to extend the "official" support for Gambas. (To Picorro: What distributions/versions is your old hardware running on ? I see you talking about it quite a lot but can't find the actual distribution specs) The only downside of GitLab CI is that it only supports x86_64-based Linux builds, but there are other CI providers out there that support other systems (I'm thinking about Appveyor for Windows/Cygwin, and Travis for macOSX, BSD, 32-bit Linux and maybe ARM). Also, if somebody whishes to "donate" (or rather "dedicate") some hardware to test Gambas, they can install the GitLab Runner on it and we can connect it to our repository, then GitLab will be able to schedule builds on it. Then, when Gambas is automatically built on the platforms we want, I will throw in the automated test suites (when the gb.test component is ready), so they are automatically run on every commit as well. -- Adrien Prokopowicz From mckaygerhard at gmail.com Fri May 18 17:52:26 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 18 May 2018 11:52:26 -0400 Subject: [Gambas-user] Leaving until Tuesday In-Reply-To: <78c9658d-1087-f45b-450f-f878fb83bbee@gmail.com> References: <78c9658d-1087-f45b-450f-f878fb83bbee@gmail.com> Message-ID: 2018-05-18 9:20 GMT-04:00 Beno?t Minisini : I have a huge tower. that's not fit in the airplane making to pay extra sit! you must search for a laptop XD XD XD > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri May 18 18:03:53 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 18 May 2018 18:03:53 +0200 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> Message-ID: So with a little hindsight I find your way interesting. The compilation will be fast enough to be transparent and only a modification of the code will require a recompilation. Code only making calls to interpreter functions should also not be very complicated to maintain once it has been produced. It's pretty clever finally as an approach. On the other hand, the code will have to be compiled totally, an optimization to the function is impossible. But in the end as it is a unique compilation the time lost is negligible. To try I think. I am wondering what would be the actual compilation time for the C code generated from the IDE code ... 2018-05-18 2:24 GMT+02:00 Beno?t Minisini : > Le 16/05/2018 ? 20:03, Fabien Bodard a ?crit : > >> how do you manage cross architecture compilation ? >> > > I don't. The translated C code is compiled on the same system it is run. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 18 18:03:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 18 May 2018 12:03:57 -0400 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <9be1d7f7-e4ce-ea2a-e326-1a8ce989a70a@gmail.com> References: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> <16c36a8f-ebe1-5a0c-3917-2f302c626d49@gmail.com> <20180513172147.GB819@highrise.localdomain> <818e73d1-4491-c6a4-e6fb-ce303f7e97a6@gmail.com> <454eba00-38c1-5562-fbe3-0e8b37b9b476@deganius.de> <74cc0d51-f4e6-01ff-2f38-e44bf05852d6@gmail.com> <067fb71a-3ba1-5a1a-fad2-9ae65e4d808e@deganius.de> <5971742d-fdcf-60cc-c98a-552ea1f43f3d@gmail.com> <9be1d7f7-e4ce-ea2a-e326-1a8ce989a70a@gmail.com> Message-ID: Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-18 10:55 GMT-04:00 Adrien Prokopowicz : > > Oh you're right, my bad I missed those. To be honest I just copy-pasted > the package list from the wiki, threw those in Docker and tweaked it until > ./configure was happy. I guess I'll have a lot of wiki editing to do then! > i never use that list! for true! maybe all must look for my list in the debian package made by me! i must correct amny misctake due that problem > > >> My God... Do you mean it will build Gambas on all these distributions at >> each commit? >> >> > Yup. And also for every branch, and on any incoming Merge Request. > Welcome to the wonderful world of Continuous Integration. :-) > yeah, also a pain in some specific cases, ... but well instant builds on each commit! i must point that GITLAB its the one that have build-in CI in their suite, for the rest are all separate platforms.. > > And as I said previously, it is still quite simplistic for now: I want to > support pretty much every distribution that's claimed to be supported by > the wiki, both latest version and LTS. > We could also try to add some older distributions if we want to extend the > "official" support for Gambas. > > (To Picorro: What distributions/versions is your old hardware running on ? > I see you talking about it quite a lot but can't find the actual > distribution specs) > i'll try but its impossible i use : 1. Debian etch (with gambas 2), this its the prefered for Asus EeePC 2G and 4G models 700 2. Debian lenny in arm, and x86 , Asus EEEPC 2G and 4G, also Toshiba satellite PIII 900MHz working great! 3. Debian squeeze in AMD Geode! (daruma brasilian hardware) and all SIS/VIA motherboards 4. Devuan/Debian jessie in most modern i run gambas in any "cheap" hardware.. if not, why using linux!? take and think! if i have enought cores and enought ram, pufff just only buy the most expensive hard/soft and forgett about problems.. click click ? in conclusion: i need that any build runs in GTK 2.18 and ULibC/glibc 2.3.2 (today 2.18 to 2.24), QT 4.6/4.7 and kernel linux 2.6 not 4 or 3 due cut down support for many many excelent running hardware very usefully > > The only downside of GitLab CI is that it only supports x86_64-based Linux > builds, but there are other CI providers out there that support other > systems (I'm thinking about Appveyor for Windows/Cygwin, and Travis for > macOSX, BSD, 32-bit Linux and maybe ARM). > > Also, if somebody whishes to "donate" (or rather "dedicate") some hardware > to test Gambas, they can install the GitLab Runner on it and we can connect > it to our repository, then GitLab will be able to schedule builds on it. > umm well opensuse build can fit that? how do that? > > Then, when Gambas is automatically built on the platforms we want, I will > throw in the automated test suites (when the gb.test component is ready), > so they are automatically run on every commit as well. > > -- > Adrien Prokopowicz > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri May 18 19:54:17 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 18 May 2018 19:54:17 +0200 Subject: [Gambas-user] Leaving until Tuesday In-Reply-To: References: Message-ID: <6fa6ffb6-0e75-1526-b0da-965172e04d38@deganius.de> Am 18.05.2018 um 15:10 schrieb Beno?t Minisini: > I'm going in Germany until Monday, so I will be offline until Tuesday. > So don't worry if I don't answer mails! Hey, have fun in Germany! And enjoy being offline :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Fri May 18 21:33:33 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 18 May 2018 22:33:33 +0300 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> Message-ID: > > To try I think. I am wondering what would be the actual compilation time > for the C code generated from the IDE code ... > I don't think it matters, as it is done only once. The first time you run the program. But maybe installation script could run the compilation, so that also the first run would start immediately. IF it even takes any significant time. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat May 19 02:44:44 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 19 May 2018 02:44:44 +0200 Subject: [Gambas-user] New component gb.test Message-ID: <20180519004444.GD17317@highrise.localdomain> Hi all, continuing from this thread: https://lists.gambas-basic.org/pipermail/user/2018-April/063732.html I have pushed the to-be unit testing component to (a separate branch of) the official repository [1]. I think this is the easiest way to enable collaboration on it, and it has to be merged at some point anyway, as we plan to have the IDE use it. I have substantially cleaned the repository up today and it is now in a state where others can dive into it and get the right idea of how it is supposed to work. It is now named gb.test as Adrien suggested, was previously gb.unittest and gb.deg.unittest before that. It was originally written by Christof and inspired by COMUnit, which in turn was inspired by JUnit. But I have been rewriting it to the Test Anything Protocol. Lots of history... and I pulled all that into the branch. I hope that's okay, even if the old commit messages aren't in the usual format. To kick it off, I created a TODO file in the component: * Integration into the IDE with bells and whistles and a command-line tool for automated testing * Compiler and interpreter support for test classes (list them), fixtures and data files (do not include them in installable packages) * Internal and external (wiki) documentation, test how-to * Test ourselves, including how well we interface with other TAP software * More assertion convenience functions, use diagnostic messages to detail test failures for the user (Test::Differences in perl5) * Subtest support (see http://search.cpan.org/~exodist/Test-Simple-1.302136/lib/Test/More.pm) The former two points are bigger endeavours and probably need Benoit's guidance, but until these two points are implemented, the usability of the component is rather limited. The latter points could be taken by anyone right now. I am probably starting with the documentation, as I have noticed that the TAP architecture is quite different from the one inspired by JUnit. Besides the raw meaning of the interface, some explanations of how the classes are intended to work together are in order. Regards, Tobi [1] https://gitlab.com/gambas/gambas/tree/gb.test -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adrien.prokopowicz at gmail.com Sat May 19 05:47:50 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Sat, 19 May 2018 05:47:50 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180519004444.GD17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> Message-ID: <3cabf33f-2249-e020-cc92-59febf046030@gmail.com> Le 19/05/2018 ? 02:44, Tobias Boege a ?crit?: > Hi all, > > continuing from this thread: https://lists.gambas-basic.org/pipermail/user/2018-April/063732.html > I have pushed the to-be unit testing component to (a separate branch of) > the official repository [1]. I think this is the easiest way to enable > collaboration on it, and it has to be merged at some point anyway, as we > plan to have the IDE use it. I have substantially cleaned the repository > up today and it is now in a state where others can dive into it and get > the right idea of how it is supposed to work. > > It is now named gb.test as Adrien suggested, was previously gb.unittest > and gb.deg.unittest before that. It was originally written by Christof > and inspired by COMUnit, which in turn was inspired by JUnit. But I have > been rewriting it to the Test Anything Protocol. Oh that's very good, thank you! I was currently looking into cleaning it up a bit myself actually (I already created the same branch locally with the same name), but nice to see it's done. :-) Now I'll start working on what I suggested in the previous thread, which is to split the component's logic between : - The test harness itself, which will be the "gbtest3" command-line tool, and will generate TAP data to be read by the IDE and CI - The gb.test component itself, which will contain only the bare minimum to run a single test, print the result and exit the process (or list all the available tests), as well as the Assert utility module. That way it will be much easier for the IDE, the CI system and the end-user to run the tests. :-) > > Lots of history... and I pulled all that into the branch. I hope that's > okay, even if the old commit messages aren't in the usual format. Having commit messages not in the usual format only mean they won't show up in the changelog (which is good here), but in the worst case we can still squash the branch before merging it into master. :-) > To kick it off, I created a TODO file in the component: > > * Integration into the IDE with bells and whistles and a command-line tool for automated testing > * Compiler and interpreter support for test classes (list them), fixtures and data files (do not include them in installable packages) > > * Internal and external (wiki) documentation, test how-to > * Test ourselves, including how well we interface with other TAP software > * More assertion convenience functions, use diagnostic messages to detail test failures for the user (Test::Differences in perl5) > * Subtest support (see http://search.cpan.org/~exodist/Test-Simple-1.302136/lib/Test/More.pm) > > The former two points are bigger endeavours and probably need Benoit's > guidance, but until these two points are implemented, the usability of > the component is rather limited. The latter points could be taken by > anyone right now About those two points I would rather ask for Beno?t's mentoring rather than having him implement it himself (especially the compiler/interpeter part). Despite my best efforts to understand them, I've always felt like these parts of Gambas were huge jungles of undocumented methods and ugly gotos. And it's not fair that he's keeping all the fun to himself. ;-) (That's when he's back from vacation, of course). > I am probably starting with the documentation, as I have noticed that > the TAP architecture is quite different from the one inspired by JUnit. > Besides the raw meaning of the interface, some explanations of how the > classes are intended to work together are in order. As I'll be splitting some code right now there will certainly be some user-facing API changes, so don't write too much docs for now. :-P For instance I noticed the Assert module right now leaks a fair amount of implementation details, and I don't think the TestHarness class should be exposed (unless you meant it to be used as a base class for all test classes, in which case we should probably find a better name). As for the external documentation, I don't think the end-user should bother too much with TAP : from their point of view, it should be just another test result format, only meant to be eaten by their favourite CI tool so they can have a nice generated report. And that's if they even bother with CI/external tooling at all, otherwise it's just an implementation detail between the test harness and the IDE. :-) As for the API itself, I think it would be better to keep it simple : make a bunch of test modules, make them inherit a base TestModule class (at least until the compiler does it by itself, like with forms), write your tests in it using the various Assert.* helpers, and let Gambas do the rest! Testing is often seen as a chore (because it is), so the last thing we want is to frighten users by making them deal with a bunch of new classes. ;-) (By the way I didn't really understand what Subtests could look like in a Gambas, nor what they could be used for, could you explain it a bit ?) This aside, I definitely agree with your other points. :-) -- Adrien Prokopowicz From taboege at gmail.com Sat May 19 13:20:35 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 19 May 2018 13:20:35 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <3cabf33f-2249-e020-cc92-59febf046030@gmail.com> References: <20180519004444.GD17317@highrise.localdomain> <3cabf33f-2249-e020-cc92-59febf046030@gmail.com> Message-ID: <20180519112035.GF17317@highrise.localdomain> On Sat, 19 May 2018, Adrien Prokopowicz wrote: > Le 19/05/2018 ? 02:44, Tobias Boege a ?crit?: > > I am probably starting with the documentation, as I have noticed that > > the TAP architecture is quite different from the one inspired by JUnit. > > Besides the raw meaning of the interface, some explanations of how the > > classes are intended to work together are in order. > > As I'll be splitting some code right now there will certainly be some > user-facing API changes, so don't write too much docs for now. :-P > > For instance I noticed the Assert module right now leaks a fair amount of > implementation details, and I don't think the TestHarness class should be > exposed (unless you meant it to be used as a base class for all test > classes, in which case we should probably find a better name). > I believe TestHarness says "Base class for a test harness." in the class documentation :-) In general, the component is currently modeled after perl's test facilities. Not because I think it's the best option for Gambas but because I didn't have to think up my own thing before getting something remotely usable. So feel free to change it, but only for the better :-) But in particular, the TestHarness is inside gb.test and intended to be a base class because TAP allows for extensions. Lines which are not recognised by the specification are not errors but can be passed upwards to the user, who might implement his specialised harness. > As for the external documentation, I don't think the end-user should bother > too much with TAP : from their point of view, it should be just another test > result format, only meant to be eaten by their favourite CI tool so they can > have a nice generated report. And that's if they even bother with > CI/external tooling at all, otherwise it's just an implementation detail > between the test harness and the IDE. :-) > I guess you can say that I view gb.test mainly as an implementation of TAP for the purpose of giving Gambas automated tests, as opposed to an automated testing component for Gambas using "whatever" internally. That might also tell you why I Export'd all these classes: to be used by someone writing a TAP-using application. Granted, that's not a big area, but you can imagine writing a graphical testing front-end in Gambas for any language which has TAP producers. The IDE is a TAP consumer specialised for Gambas projects. I doubt that the API can be made less leaky without mutilating the advantages of TAP for the reporting of test failures (adhering to a test plan, item descriptions, diagnostics, TODO and SKIP tags). In my opinion, following a test format specification is something that can be advertised to the user. They don't have to understand the whole spec, but they need to realise that they have to follow a certain structure with a test plan and such and that the Assert class may print special diagnostic lines, prefixed by "#" which contain details for failed tests, like where exactly two long strings or arrays differ or where a regex gave up matching. > As for the API itself, I think it would be better to keep it simple : make a > bunch of test modules, make them inherit a base TestModule class (at least > until the compiler does it by itself, like with forms), write your tests in > it using the various Assert.* helpers, and let Gambas do the rest! > > Testing is often seen as a chore (because it is), so the last thing we want > is to frighten users by making them deal with a bunch of new classes. ;-) > Are the current classes in SelfTest too complicated? > (By the way I didn't really understand what Subtests could look like in a > Gambas, nor what they could be used for, could you explain it a bit ?) > Me neither. But looking at it again, I'm now convinced that it is an extension to the TAP specification. A subtest groups many tests into a single item. Technically, the TAP printer will indent the subtest items (so that they are not valid standard-TAP lines) but print a real summary TAP line for the subtest at the end -- "ok" when all subitems passed, "not ok" if one of them failed. Think of testing a single method with many different parameter configurations. Instead of writing Assert.Ok(..., ..., "mymethod 1/200") Assert.Ok(..., ..., "mymethod 2/200") Assert.Ok(..., ..., "mymethod 3/200") ... you could write Inc Assert.Subtest Assert.Plan(200, "mymethod") Assert.Ok(..., ...) Assert.Ok(..., ...) Assert.Ok(..., ...) ... Dec Assert.Subtest [ The implementation can be as simple as printing every line indented by String$(Assert.Subtest, "\t") and maintaining a stack of TAP states instead of the current private variables; when Assert.Subtest is decremented, you pop a state off the stack and emit a summary for it. ] Of course, the TAP parser needs to be told how to read these indented TAP lines as well. See https://www.effectiveperlprogramming.com/2011/08/group-tests-by-their-task-with-testmores-subtest/ Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at geodosch.com Sat May 19 19:48:17 2018 From: gambas at geodosch.com (George) Date: Sat, 19 May 2018 13:48:17 -0400 Subject: [Gambas-user] Format function changes date value Message-ID: (This was originally posted in gambas-user at lists.sourceforge.net I've since seen that list has been deprecated, so I'm reposting the pertinent issues here) When using the Format function to format a date, the date gets offset by 1 day. Here's an example: Dim zTestDate As String Dim zTestResult As String zTestDate = "5/4/2018" zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd") Debug "Test date: " & zTestDate & " Formatted: " & zTestResult Result: Test date: 5/4/2018 Formatted: 05/03/18 Thu This seems to have started since the last update was applied. >T Lee Davidson > >CDate uses UTC and, without the time information in the string, it would store midnight. Format uses local time. > >So, anyone in a time zone behind UTC will get the previous day printed. Try this format string: >zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") > >Does the difference in hours match your timezone offset? That is definitely part of the issue. My local time is GMT-04, and here's what I get when specifying the time in my test: Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri However, if I look at time in the results, the difference isn't exactly the offset: Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: 4:54:00 Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: 3:55:00 Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: 3:55:00 The offset isn't an even number of hours. What's also odd is that this was never a problem before about a week ago. This code is many years old, and the problem suddenly began occurring with compiled code. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat May 19 20:04:01 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 19 May 2018 20:04:01 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: Message-ID: <20180519180401.GK17317@highrise.localdomain> Reposting my answer as well: On Sat, 19 May 2018, George wrote: > >T Lee Davidson > > > >CDate uses UTC and, without the time information in the string, it would store midnight. Format uses local time. > > > >So, anyone in a time zone behind UTC will get the previous day printed. Try this format string: > >zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") > > > >Does the difference in hours match your timezone offset? > > That is definitely part of the issue. My local time is GMT-04, and here's > what I get when specifying the time in my test: > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri > > However, if I look at time in the results, the difference isn't exactly the > offset: > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: > 4:54:00 > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: > 3:55:00 > Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: > 3:55:00 > > The offset isn't an even number of hours. What's also odd is that this was > never a problem before about a week ago. This code is many years old, and > the problem suddenly began occurring with compiled code. This has been discussed multiple times recently, the last time was [1]. So let me elaborate on T Lee's answer a bit. The official statement is that the previous behaviour was a bug which was unfortunately not discovered sooner. As of Gambas 3.11, you should remember that CStr() and CDate(), being low-level conversions, assume UTC, i.e. they convert the date "literally" (without any offset) to a date and a time integer, which is the internal representation of a Date in Gambas. The higher-level Str(), Val(), Format() and Date() functions take the current locale into account. Mixing CDate() with Format() is almost always a bug, as one honours the local timezone and the other doesn't. CDate() produces a Date object which is 05/04/18 00:00 UTC but when you format it using Format$(), you get a string representing the same point in time relative to your current timezone. I'm in GMT+0200 these days so I get: Test date: 5/4/2018 Formatted: 05/04/18 02:00 Fri Removing the "C" from the invocation of CDate(), you chain locale-aware functions only and get the desired result: Test date: 5/4/2018 Formatted: 05/04/18 00:00 Fri That five minute offset you mention is indeed weird, though, and I have no explanation for that. Regards, Tobi [1] https://lists.gambas-basic.org/pipermail/user/2018-May/064153.html -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at geodosch.com Sat May 19 20:11:00 2018 From: gambas at geodosch.com (George) Date: Sat, 19 May 2018 14:11:00 -0400 Subject: [Gambas-user] Format function changes date value In-Reply-To: <20180519180401.GK17317@highrise.localdomain> References: <20180519180401.GK17317@highrise.localdomain> Message-ID: Tobi, Thanks for the pointer to that thread. I had tried searching the message archives, but I probably didn't find it since I was looking for bugs related to the Format function. I did try changing CDate(...) to Date(...), but it didn't change my results. I had also tried an implicit conversion, but again I get the same results. What's important for me to know is that the current behavior is considered correct, so I can allow for it in my code. I was initially hesitant to kludge a fix, only to have it broken again by a subsequent Gambas fix, but it doesn't appear that will be a problem. Thank you! On Sat, May 19, 2018 at 2:04 PM, Tobias Boege wrote: > Reposting my answer as well: > > On Sat, 19 May 2018, George wrote: > > >T Lee Davidson > > > > > >CDate uses UTC and, without the time information in the string, it > would store midnight. Format uses local time. > > > > > >So, anyone in a time zone behind UTC will get the previous day printed. > Try this format string: > > >zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") > > > > > >Does the difference in hours match your timezone offset? > > > > That is definitely part of the issue. My local time is GMT-04, and > here's > > what I get when specifying the time in my test: > > > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu > > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri > > > > However, if I look at time in the results, the difference isn't exactly > the > > offset: > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: > > 4:54:00 > > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: > > 3:55:00 > > Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: > > 3:55:00 > > > > The offset isn't an even number of hours. What's also odd is that this > was > > never a problem before about a week ago. This code is many years old, > and > > the problem suddenly began occurring with compiled code. > > This has been discussed multiple times recently, the last time was [1]. > So let me elaborate on T Lee's answer a bit. The official statement is > that the previous behaviour was a bug which was unfortunately not > discovered sooner. As of Gambas 3.11, you should remember that CStr() > and CDate(), being low-level conversions, assume UTC, i.e. they convert > the date "literally" (without any offset) to a date and a time integer, > which is the internal representation of a Date in Gambas. > > The higher-level Str(), Val(), Format() and Date() functions take the > current locale into account. Mixing CDate() with Format() is almost always > a bug, as one honours the local timezone and the other doesn't. CDate() > produces a Date object which is 05/04/18 00:00 UTC but when you format > it using Format$(), you get a string representing the same point in time > relative to your current timezone. I'm in GMT+0200 these days so I get: > > Test date: 5/4/2018 Formatted: 05/04/18 02:00 Fri > > Removing the "C" from the invocation of CDate(), you chain locale-aware > functions only and get the desired result: > > Test date: 5/4/2018 Formatted: 05/04/18 00:00 Fri > > That five minute offset you mention is indeed weird, though, and I have > no explanation for that. > > Regards, > Tobi > > [1] https://lists.gambas-basic.org/pipermail/user/2018-May/064153.html > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sat May 19 20:43:35 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 19 May 2018 14:43:35 -0400 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: Message-ID: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> I don't get that 5 minute anomaly. With three blocks each defining zTestDate through Debug (Print), I get: Main.Main.9: Test date: 5/4/2018 Formatted: 05/03/18 20:00 Thu Main.Main.12: Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:59 Thu Main.Main.15: Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:00 Fri On 05/19/2018 01:48 PM, George wrote: > (This was originally posted in gambas-user at lists.sourceforge.net > I've since seen that list has been deprecated, so I'm reposting the pertinent issues here) > > When using the Format function to format a date, the date gets offset by 1 day.? Here's an example: > > ? Dim zTestDate As String > ? Dim zTestResult As String > ? zTestDate = "5/4/2018" > ? zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd") > ? Debug "Test date: " & zTestDate & " Formatted: " & zTestResult > > Result: Test date: 5/4/2018 Formatted: 05/03/18 Thu > > This seems to have started since the last update was applied. > >>T Lee Davidson > >> >>CDate uses UTC and, without the time information in the string, it would store midnight. Format uses local time. >> >>So, anyone in a time zone behind UTC will get the previous day printed. Try this format string: >>zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") >> >>Does the difference in hours match your timezone offset? > > That is definitely part of the issue.? My local time is GMT-04, and here's what I get when specifying the time in my test: > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri > > However, if I look at time in the results, the difference isn't exactly the offset: > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00? Difference: 4:54:00 > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00? Difference: 3:55:00 > Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00? Difference: 3:55:00 > > The offset isn't an even number of hours. What's also odd is that this was never a problem before about a week ago.? This code > is many years old, and the problem suddenly began occurring with compiled code. > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Lee From bugtracker at gambaswiki.org Sun May 20 00:39:15 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 19 May 2018 22:39:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1323: Weird Error Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1323&from=L21haW4- James COOK reported a new bug. Summary ------- Weird Error Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Don't know why I am getting this error but I get it no matter what I am running in the IDE GLib-GObject-CRITICAL **: 15:29:11.955: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed System information ------------------ Cybertron Palladium Nividia GTX1060 16 Gb Ram Core i7-7700 CPU Running Kubuntu 18.04 From t.lee.davidson at gmail.com Sun May 20 04:55:39 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 19 May 2018 22:55:39 -0400 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1323: Weird Error In-Reply-To: References: Message-ID: <29278c66-7be9-e769-3c27-45b3febd3f67@gmail.com> To get meaningful help, you will likely need to include more complete system information. What you included is quite short and does not look like the System Information report that is generated by the IDE. It might also be helpful to know what component(s) you are using in the project(s) that produce this error. -- Lee On 05/19/2018 06:39 PM, bugtracker at gambaswiki.org wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1323&from=L21haW4- > > James COOK reported a new bug. > > Summary > ------- > > Weird Error > > Type : Bug > Priority : Medium > Gambas version : Unknown > Product : Unknown > > > Description > ----------- > > Don't know why I am getting this error but I get it no matter what I am running in the IDE > > GLib-GObject-CRITICAL **: 15:29:11.955: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed > > > System information > ------------------ > > Cybertron Palladium > Nividia GTX1060 > 16 Gb Ram > Core i7-7700 CPU > Running Kubuntu 18.04 > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From chrisml at deganius.de Sun May 20 12:16:44 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 20 May 2018 12:16:44 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180519004444.GD17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> Message-ID: Hello Tobi, Am 19.05.2018 um 02:44 schrieb Tobias Boege: > I am probably starting with the documentation, as I have noticed that > the TAP architecture is quite different from the one inspired by JUnit. As I now analyze the functionality in TestHarness.Run I see, that it executes one test-module at all by doing: Exec ["gbx3", "-s", Test, Project] To sOutput Then in sOutput there is: "1..10 ok 1 - True is ok ok 2 - False is not ok ok 3 - Multiplication ok 4 - Gambas is sufficiently fast ok 5 - Float absolute error not ok 6 - Float relative error # SKIP Intentionally wrong ok 7 - Float relative error ok 8 - CStr returns a String ok 9 - LIKE email address ok 10 - MATCH email address ok 11 - not MATCH email address" So far so good. Everything seems to be fine. But I have a couple of problems with this approach compared to the one inspired from JUnit. 1st: -------------------------------------------------------------------- In the original code there was the concept of "fixtures" implemented which is now gone. Please look at https://github.com/Deganius/gb.deg.unittest/ and scroll down to "Test fixture" A fixture is the possibility of creation and (after the test was run) deletion of a special environment. A fixture could be created for each single test or for a bunch of tests enclosed in a single module. For example like so: ---------------------------------- create fixture (create environment) run testfunction 1 run testfunction 2 ... end fixture (destroy environment) ---------------------------------- Or so: ---------------------------------- create fixture (create environment) run testfunction1 end fixture (destroy environment) create fixture (create environment) run testfunction1 end fixture (destroy environment) ... ---------------------------------- Or both combined. As your code now executes a module at all without looking at the content these possibilities are gone. This functionality (analyzing the testmodule and creating so called testcases out of the methods contained) was done in Unittest.class, executing them was done in TestSuite.Run() together with TestCase.Run() 2nd: -------------------------------------------------------------------- If I want a test function do intentionally throw a Gambas error, it seems to me that this is now impossible, because the Gambas error would stop further processing. Am I right? In the original code this functionality together with the one above was done in TestResult.AssertError -------------------------------------------------------------------- Im am quite unsure how this functionality could be restored with this current approach: Exec ["gbx3", "-s", Test, Project] To sOutput which I find very interesting as a segfault could be detected and would not destroy the process running the tests. Any ideas? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun May 20 13:26:21 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 20 May 2018 13:26:21 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: References: <20180519004444.GD17317@highrise.localdomain> Message-ID: <2026ba95-9d24-57b6-6669-32800fc52e64@deganius.de> Am 20.05.2018 um 12:16 schrieb Christof Thalhofer: > 2nd: > -------------------------------------------------------------------- > > If I want a test function do intentionally throw a Gambas error, it > seems to me that this is now impossible, because the Gambas error would > stop further processing. Am I right? > > In the original code this functionality together with the one above was > done in TestResult.AssertError Sorry that was wrong. TestResult.AssertError had another functionality. But: What is right is, that a method in a testmodule could raise an error, which did not end further processing of following methods in the testmodule. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From taboege at gmail.com Sun May 20 13:40:57 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 20 May 2018 13:40:57 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: References: <20180519004444.GD17317@highrise.localdomain> Message-ID: <20180520114057.GN17317@highrise.localdomain> On Sun, 20 May 2018, Christof Thalhofer wrote: > Hello Tobi, > > Am 19.05.2018 um 02:44 schrieb Tobias Boege: > > > I am probably starting with the documentation, as I have noticed that > > the TAP architecture is quite different from the one inspired by JUnit. > > As I now analyze the functionality in TestHarness.Run I see, that it > executes one test-module at all by doing: > > Exec ["gbx3", "-s", Test, Project] To sOutput > > Then in sOutput there is: > > "1..10 > ok 1 - True is ok > ok 2 - False is not ok > ok 3 - Multiplication > ok 4 - Gambas is sufficiently fast > ok 5 - Float absolute error > not ok 6 - Float relative error # SKIP Intentionally wrong > ok 7 - Float relative error > ok 8 - CStr returns a String > ok 9 - LIKE email address > ok 10 - MATCH email address > ok 11 - not MATCH email address" > > So far so good. Everything seems to be fine. > > But I have a couple of problems with this approach compared to the one > inspired from JUnit. > > 1st: > -------------------------------------------------------------------- > > In the original code there was the concept of "fixtures" implemented > which is now gone. > > Please look at https://github.com/Deganius/gb.deg.unittest/ and scroll > down to "Test fixture" > > A fixture is the possibility of creation and (after the test was run) > deletion of a special environment. A fixture could be created for each > single test or for a bunch of tests enclosed in a single module. > > For example like so: > ---------------------------------- > create fixture (create environment) > run testfunction 1 > run testfunction 2 > ... > end fixture (destroy environment) > ---------------------------------- > > Or so: > ---------------------------------- > create fixture (create environment) > run testfunction1 > end fixture (destroy environment) > create fixture (create environment) > run testfunction1 > end fixture (destroy environment) > ... > ---------------------------------- > > Or both combined. > > As your code now executes a module at all without looking at the content > these possibilities are gone. > > This functionality (analyzing the testmodule and creating so called > testcases out of the methods contained) was done in Unittest.class, > executing them was done in TestSuite.Run() together with TestCase.Run() > The ["gbx3", "-s", Test, Project] is a stopgap until it's clear how much convenience we want to code into the interpreter for running tests. Currently a test must be a startup-able class with a Static Public Main, and I couldn't say it doesn't make sense to me this way. The perspectives on testing in this thread alone are varying wildly and I enjoy that very much. As for fixtures, you are right that they aren't managed by the component anymore. Again, my design is inspired by perl: a test is a script which you hand over control to to execute some tests and print the results. It's procedural and autonomous, as opposed to your idea of making it an object-oriented building block which fits into the component's framework and is managed by it. To set up a fixture, put the code to set it up inside your test module, afterwards do the tests. Remember that you can even outsource and share code between your test modules, since they are just classes inside the same project. But fixture and data handling are also a TODO item with respect to compiler/interpreter support, so point out any flaws and awkwardness. Looking at your second example, I agree that it's clumsier to lose the separation of test code and environment, but it's only a few lines more to set up and tear down environments on your own, if you already have the environment definitions. To fix this, we could re-instantiate the rule that test modules have to inherit some base class for testing, which takes care of setting up and varying fixtures for the current test module. As you briefly mentioned, the technical problem here is that the tester can't inject variables or function calls into the testee's execution, so the testee has to create the fixtures themselves. (Unless we abuse debugging mode but does anyone besides Benoit know how that even works?) To be a bit more specific, I imagine the following base class: ' Test.class Static Public Sub Main() For Each Me.Fixtures Me.Test() Next End Now, a test module must provide a Test method, instead of Main. It can also provide a Fixtures property which returns a special object, which is enumerable by For Each. The implementation of _next() takes care of setting up and tearing down fixtures. Test.class provides a single, empty fixture by default, so that the Test() method is run once. Variations of this are possible, like not being too clever with _next() and using an array of TestFixture objects from Me.Fixtures instead, which have a Setup() and Teardown() method. > 2nd: > -------------------------------------------------------------------- > > If I want a test function do intentionally throw a Gambas error, it > seems to me that this is now impossible, because the Gambas error would > stop further processing. Am I right? > > In the original code this functionality together with the one above was > done in TestResult.AssertError > You're right, but in this case my recipe would be: Try ShouldFail() Assert.Ok(Error, "failed like it should") You could even make Assert.Ok(Error, ...) into a new method Assert.Error(...) > -------------------------------------------------------------------- > > Im am quite unsure how this functionality could be restored with this > current approach: > > Exec ["gbx3", "-s", Test, Project] To sOutput > > which I find very interesting as a segfault could be detected and would > not destroy the process running the tests. > > Any ideas? > I can't think of any amount of cheating that would make Assert.Error(ShouldFail(), "failed like it should") work since Gambas doesn't have closures, for instance, but to me Try seems good enough. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Sun May 20 15:38:32 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 20 May 2018 15:38:32 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180520114057.GN17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> Message-ID: Am 20.05.2018 um 13:40 schrieb Tobias Boege: > The ["gbx3", "-s", Test, Project] is a stopgap until it's clear how much > convenience we want to code into the interpreter for running tests. > Currently a test must be a startup-able class with a Static Public Main, > and I couldn't say it doesn't make sense to me this way. Ok. I think I have to show you, why I wrote gb.deg.unittest and how I work with it, to explain, why eventually your approach does not really fit my needs. I have written a database library which extends db connections (lowest level) then does a lot of stuff with sql (lower level), then an ORM (high level). High level depends on lower and so on. This stuff is tested by a couple of modules (Testcontainer) which contain testmethods each containing one or more asserts. If I am working remote one single run of all tests lasts a couple of minutes. It is good to be sure that everything works before it goes to production. This is classic unittesting like done in CI. For that I would execute Unittest.Test() that does: Testcontainer1 It creates a database on the db-server. (fixture) Creates tables in the database (fixture) Runs connections and some functionality of connections. (tests) Deletes tables in the database (cleanup) Destroys the database on the db-server. (cleanup) Testcontainer2 It creates a database on the db-server. (fixture) Creates tables in the database (fixture) Runs Sql_functionality1 (tests) Deletes tables in the database (cleanup) Creates tables in the database (fixture) Runs Sql_functionality2 (tests) Deletes tables in the database (cleanup) ... Destroys the database on the db-server. (cleanup) Testcontainer3 It creates a database on the db-server. (fixture) Creates tables for ORM in the database (fixture) Runs ORM_functionality1 (test) Runs ORM_functionality2 (test) Runs ORM_functionality3 (test) ... Deletes tables for ORM in the database (cleanup) Destroys the database on the db-server. (cleanup) But: When I work on this stuff I do test driven development and I do not want to run all but only one single test while coding. I code a little and to test I hit F5 which executes for example: Unittest.Test("TestContainer3", "ORM_functionality2") This is done in 10 seconds. Running all tests in TestContainer3 would last 45 secondy which would be annoying. ---------------------------------------------------------- I wrote gb.deg.unittest primarily for easily and fast executing testcode while developing with the advantage to store and repeat it later. For that I needed the separation of single tests in a testcontainer that ensures the exact environment. I think you have classical unittesting in mind which is done automatically during CI. There always everything is tested. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From r0bst7m at gmail.com Sun May 20 16:47:15 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Sun, 20 May 2018 14:47:15 +0000 Subject: [Gambas-user] ask username his age Message-ID: Greetings, I'm working in text mode with print, how do I get the user to type his age? python way: age = int(input("what is your age: ")) How I can do the same thing in Gambas? I search in wiki but not get the point. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun May 20 17:07:36 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 20 May 2018 17:07:36 +0200 Subject: [Gambas-user] ask username his age In-Reply-To: References: Message-ID: <20180520150736.GO17317@highrise.localdomain> On Sun, 20 May 2018, Roberto Estevam wrote: > Greetings, > I'm working in text mode with print, how do I get the user to type his age? > > python way: > age = int(input("what is your age: ")) > > How I can do the same thing in Gambas? I search in wiki but not get the > point. > Thank you. I may be a bit rusty with command-line interactive programs in Gambas, but this is what I came up with: Dim iAge As Integer Print "How old are you:";; Flush Input iAge Flush is needed to flush the output buffer because the Print statement does not send a newline. Without it, you won't see the prompt in the terminal. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Sun May 20 18:19:26 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 20 May 2018 18:19:26 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180520114057.GN17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> Message-ID: <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> Am 20.05.2018 um 13:40 schrieb Tobias Boege: >> Or so: >> ---------------------------------- >> create fixture (create environment) >> run testfunction1 >> end fixture (destroy environment) >> create fixture (create environment) >> run testfunction1 >> end fixture (destroy environment) >> ... >> ---------------------------------- Sorry, I have spelled wrong. Second ought to be "testfunction2". > To be a bit more specific, I imagine the following base class: > > ' Test.class > Static Public Sub Main() > For Each Me.Fixtures > Me.Test() > Next > End But this also made sense, if a test should run under different environments. But I think this all would make is only too complicated. Now as I play around with your code I think you are right with this: > Remember that you can even outsource and share > code between your test modules, since they are just classes inside the > same project. If inside a testmodule I can create public methods (that contain fixtures as well as asserts) that are executed via Main() I can have nearly the same functionality since before. Like so: ----------------------------------------------------------------- Public Sub Main() Test1() Test() End Public Sub Test1() Assert.Equals("Bing", "Bong", "Intentionally not equal") End ----------------------------------------------------------------- Now I can easily use TestSth.Test1() while coding. The only thing I really do not like at all is your Assert.Setup(Integer) A programmer should not have to count with fingers. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From taboege at gmail.com Sun May 20 20:04:46 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 20 May 2018 20:04:46 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> Message-ID: <20180520180446.GA3811@highrise.localdomain> On Sun, 20 May 2018, Christof Thalhofer wrote: > The only thing I really do not like at all is your Assert.Setup(Integer) > > A programmer should not have to count with fingers. > That's fine, you can leave it out. The TAP specification says: The plan tells how many tests will be run, or how many tests have run. [...] This is a safeguard in case your test file dies silently in the middle of its run. If you don't Setup, the TapPrinter will keep track of the number of tests you ran and spoof a plan at the end. Currently you have to call the Finish() method for it to do that. Given how the Assert module is used, maybe that should be made automatic somehow. [ Actually, I think the TapParser doesn't throw an error yet if it doesn't encounter a plan line, which is a nuance I have likely overlooked. ] Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From shordi at gmail.com Mon May 21 10:07:46 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 21 May 2018 10:07:46 +0200 Subject: [Gambas-user] Updating from Repository gambas 3.11.3 Message-ID: Hi This morning I've updated from ppa stable to 3.11.3 version and all is OK, However I see that the version that appears in the initial window is 3.11.2. I guess it doesn't matter, Best regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-05-21 10-01-51.png Type: image/png Size: 88362 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-05-21 10-06-51.png Type: image/png Size: 77447 bytes Desc: not available URL: From r0bst7m at gmail.com Mon May 21 11:28:40 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Mon, 21 May 2018 09:28:40 +0000 Subject: [Gambas-user] Updating from Repository gambas 3.11.3 In-Reply-To: References: Message-ID: Hi I'm using ArchLinux. Here, version is 3.10.0. 2018-05-21 8:07 GMT+00:00 Jorge Carri?n : > Hi > This morning I've updated from ppa stable to 3.11.3 version and all is OK, > However I see that the version that appears in the initial window is > 3.11.2. I guess it doesn't matter, > > Best regards. > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon May 21 16:55:22 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 21 May 2018 16:55:22 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180520180446.GA3811@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> Message-ID: <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> Am 20.05.2018 um 20:04 schrieb Tobias Boege: > If you don't Setup, the TapPrinter will keep track of the number of tests > you ran and spoof a plan at the end. Currently you have to call the > Finish() method for it to do that. Given how the Assert module is used, > maybe that should be made automatic somehow. > > [ Actually, I think the TapParser doesn't throw an error yet if it doesn't > encounter a plan line, which is a nuance I have likely overlooked. ] A premature ending is not reported. If I insert "Assert.IsType(1 / 0, gb.Integer, "Crash")" in TestAsserts as the last line in Main(), then the execution gbx3 -s TestAsserts /home/christof/programming/gambas/gambas/comp/src/gb.test outputs: 1..10 ok 1 - True is ok ok 2 - False is not ok ok 3 - Multiplication ok 4 - Gambas is sufficiently fast ok 5 - Float absolute error not ok 6 - Float relative error # SKIP Intentionally wrong ok 7 - Float relative error ok 8 - CStr returns a String ok 9 - LIKE email address ok 10 - MATCH email address ok 11 - not MATCH email address TestAsserts.Main.21: #26: Division by zero TestAsserts.Main.21 Tester outputs: Test # 2: TestAsserts Planned tests: 0 Exit code: 1 Run tests: 0 Duration: 0s -------------------- Passed tests: 0 Failed tests: 0 Skipped tests: 0 To-do tests: 0 Bonus: 0 Status: FAILED **************************************** Thats not good. Just the exit code says, that sth crashed, but TestHarness.Current neither knows where it crashed nor what crashed nor contains the number of passed tests. Shouldn't 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: 819 bytes Desc: OpenPGP digital signature URL: From taboege at gmail.com Mon May 21 18:14:25 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 21 May 2018 18:14:25 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> Message-ID: <20180521161425.GT17317@highrise.localdomain> On Mon, 21 May 2018, Christof Thalhofer wrote: > Am 20.05.2018 um 20:04 schrieb Tobias Boege: > > > If you don't Setup, the TapPrinter will keep track of the number of tests > > you ran and spoof a plan at the end. Currently you have to call the > > Finish() method for it to do that. Given how the Assert module is used, > > maybe that should be made automatic somehow. > > > > [ Actually, I think the TapParser doesn't throw an error yet if it doesn't > > encounter a plan line, which is a nuance I have likely overlooked. ] > > A premature ending is not reported. > > If I insert > > "Assert.IsType(1 / 0, gb.Integer, "Crash")" > > in TestAsserts as the last line in Main(), then the execution > > gbx3 -s TestAsserts > /home/christof/programming/gambas/gambas/comp/src/gb.test > > outputs: > > 1..10 > ok 1 - True is ok > ok 2 - False is not ok > ok 3 - Multiplication > ok 4 - Gambas is sufficiently fast > ok 5 - Float absolute error > not ok 6 - Float relative error # SKIP Intentionally wrong > ok 7 - Float relative error > ok 8 - CStr returns a String > ok 9 - LIKE email address > ok 10 - MATCH email address > ok 11 - not MATCH email address > TestAsserts.Main.21: #26: Division by zero > TestAsserts.Main.21 > > Tester outputs: > > Test # 2: TestAsserts > Planned tests: 0 > Exit code: 1 > Run tests: 0 > Duration: 0s > -------------------- > Passed tests: 0 > Failed tests: 0 > Skipped tests: 0 > To-do tests: 0 > Bonus: 0 > Status: FAILED > **************************************** > > Thats not good. Just the exit code says, that sth crashed, but > TestHarness.Current neither knows where it crashed nor what crashed nor > contains the number of passed tests. > > Shouldn't it? > Definitely. The problem is that Exec ["gbx3", "-s", Test, Project] To sOutput returns me an empty sOutput in this case, so the parser gets no note of the passed tests at all. I don't know why but it has been a TODO item (shortly above that line) to not buffer all the output into a String variable anyway but to use the Process object as a stream. Maybe then I'll get the lines which were printed before the crash, too. Someone should reproduce that behaviour with "Exec To stringvar" and file a bug as well... While I'm at it, I should also capture stderr and convert it into diagnostic messages. Doing that in Gambas always requires this weird mix of event-driven and synchronous programming, but I just saw that there is a Process.Wait() method, which should come in handy. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adrien.prokopowicz at gmail.com Mon May 21 19:22:24 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Mon, 21 May 2018 19:22:24 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> Message-ID: <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> Le 21/05/2018 ? 16:55, Christof Thalhofer a ?crit?: > Am 20.05.2018 um 20:04 schrieb Tobias Boege: > >> If you don't Setup, the TapPrinter will keep track of the number of tests >> you ran and spoof a plan at the end. Currently you have to call the >> Finish() method for it to do that. Given how the Assert module is used, >> maybe that should be made automatic somehow. >> >> [ Actually, I think the TapParser doesn't throw an error yet if it doesn't >> encounter a plan line, which is a nuance I have likely overlooked. ] > > A premature ending is not reported. > > If I insert > > "Assert.IsType(1 / 0, gb.Integer, "Crash")" > > in TestAsserts as the last line in Main(), then the execution > > gbx3 -s TestAsserts > /home/christof/programming/gambas/gambas/comp/src/gb.test > > outputs: > > 1..10 > ok 1 - True is ok > ok 2 - False is not ok > ok 3 - Multiplication > ok 4 - Gambas is sufficiently fast > ok 5 - Float absolute error > not ok 6 - Float relative error # SKIP Intentionally wrong > ok 7 - Float relative error > ok 8 - CStr returns a String > ok 9 - LIKE email address > ok 10 - MATCH email address > ok 11 - not MATCH email address > TestAsserts.Main.21: #26: Division by zero > TestAsserts.Main.21 > > Tester outputs: > > Test # 2: TestAsserts > Planned tests: 0 > Exit code: 1 > Run tests: 0 > Duration: 0s > -------------------- > Passed tests: 0 > Failed tests: 0 > Skipped tests: 0 > To-do tests: 0 > Bonus: 0 > Status: FAILED > **************************************** > > Thats not good. Just the exit code says, that sth crashed, but > TestHarness.Current neither knows where it crashed nor what crashed nor > contains the number of passed tests. > > Shouldn't it? > > Alles Gute > > Christof Thalhofer There's something I just noticed in your implementation: why is a "test" (in TAP terminology) mapped to a single assertion, and not to a whole test method ? The problem with this approach is that all assertions share state, which should not be the case with tests: ideally a test should have no influence on subsequent tests, otherwise a test following a failure could be either a false positive or a false negative, and you can't really test things in isolation. After reading the TAP/Perl spec a bit more thoroughly, it seems they also use this approch, which I find really wierd. Admittedly i've never ever encountred Perl, but of all the testing tools I've seen and used (I've looked into C, Rust, Ruby, Java, C# and Javascript for my testing) I've never seen this approach before. -- Adrien Prokopowicz From g4mba5 at gmail.com Mon May 21 20:06:09 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 21 May 2018 20:06:09 +0200 Subject: [Gambas-user] Replacing the JIT component In-Reply-To: References: <767e8999-5a6b-2d1a-c289-ee13dd9672d4@gmail.com> <210d589f-e24b-e02e-ad2a-8d1fc05e135c@gmail.com> <1ea2d0c6-30a8-74e1-bdd5-ec73bf4433cb@gmail.com> Message-ID: <7be8d59e-5823-486f-95d3-74627807dc10@gmail.com> Le 18/05/2018 ? 21:33, Jussi Lahtinen a ?crit?: > To try I think. I am wondering what would be the actual compilation > time for the C code generated from the IDE code ... > > > I don't think it matters, as it is done only once. The first time you > run the program. > But maybe installation script could run the compilation, so that also > the first run would start immediately. IF it even takes any significant > time. > > > Jussi > We will see. But I suspect that avoiding include files as much as possible will help (standard C programs use a ton of include files that include themselves a lot of include files and so on...). -- Beno?t Minisini From chrisml at deganius.de Mon May 21 20:39:38 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 21 May 2018 20:39:38 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> Message-ID: Am 21.05.2018 um 19:22 schrieb Adrien Prokopowicz: > There's something I just noticed in your implementation: why is a "test" > (in TAP terminology) mapped to a single assertion, and not to a whole > test method ? This was not my implementation. Mine is (the latest was): https://github.com/Deganius/gb.deg.unittest/tree/develop There test methods are combined to a "test suite" and can be executed independent from each other in random order. The test methods are in Testclasses, which are identified by inheriting from UnitTest and the names of the testmethods inside start with "Test". > The problem with this approach is that all assertions share state, which > should not be the case with tests: ideally a test should have no > influence on subsequent tests, otherwise a test following a failure > could be either a false positive or a false negative, and you can't > really test things in isolation. Yes, I tried to discuss that as I wrote about fixtures. What I find interesting with TAP is the standardized output format. But I also would prefer the execution of single testmethods independent from each other. > After reading the TAP/Perl spec a bit more thoroughly, it seems they > also use this approch, which I find really wierd. Admittedly i've never > ever encountred Perl, but of all the testing tools I've seen and used > (I've looked into C, Rust, Ruby, Java, C# and Javascript for my testing) > I've never seen this approach before. I startet with the fork of ComUnit which was a fork of JUnit for VB6. Maybe we could combine the two approaches, the one from Tobi which is the actual gb.test (which is a complete rewrite in honour of TAP, my code is completely gone) and parts of mine. But it could be difficult as these two are completely different. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From taboege at gmail.com Mon May 21 21:28:53 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 21 May 2018 21:28:53 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> Message-ID: <20180521192853.GW17317@highrise.localdomain> On Mon, 21 May 2018, Adrien Prokopowicz wrote: > There's something I just noticed in your implementation: why is a "test" (in > TAP terminology) mapped to a single assertion, and not to a whole test > method ? > There are two things that might be called a "test". One is a single assertion, which produces an "ok" or "not ok" line, and the other is multiple assertions bundled into a file -- that file would be called a test, too, if you ask me. > The problem with this approach is that all assertions share state, which > should not be the case with tests: ideally a test should have no influence > on subsequent tests, otherwise a test following a failure could be either a > false positive or a false negative, and you can't really test things in > isolation. > I think that depends. If you create an object and want to test two methods, these two assertions should share state. Or what do you mean? > After reading the TAP/Perl spec a bit more thoroughly, it seems they also > use this approch, which I find really wierd. Admittedly i've never ever > encountred Perl, but of all the testing tools I've seen and used (I've > looked into C, Rust, Ruby, Java, C# and Javascript for my testing) I've > never seen this approach before. > I, on the other hand, am not familiar with those. For me, naively, testing is executing scripts that probe the API of your project and report their results. How you write those scripts is entirely up to you, as long as their output follows the protocol. And that is about the level at which I worked. I just implemented TAP because Christof mentioned it, I recognised it and thought it was a good idea. I don't know if that was clear to you, but the "higher-level" stuff was mostly duct-taped on top to be able to run something that produces and consumes TAP and I took inspiration for that from perl. That part is very much intended to evolve. [ Maybe my deleting all those COMUnit classes gave away the impression that I replaced them, but I really just didn't want to spend time porting them to the new TAP base, and instead implemented a fresh and small TestHarness class to have something presentable. Sorry, Christof :-) ] It is kind of hard at the moment to see where the design of gb.test is supposed to go and I definitely lack synapses in the usability department, which many of the recent remarks were about. If you have experience with mature testing methods, please take the lead. However, despite your comment about state sharing above, or because I didn't understand the problem about it, I still think TAP is a good format, regardless of how tests are presented to the user in the end. I can't really imagine that the TAP architecture can get this much in the way of testing workflows basically everywhere non-Perl. Regards, Tobi PS: I should also note that I have to gradute in a few months and can't spend much time researching testing and evaluating proposals. The frame is really tight this time. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Mon May 21 22:08:29 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 21 May 2018 22:08:29 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180521161425.GT17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> Message-ID: <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> Hi Tobi, Am 21.05.2018 um 18:14 schrieb Tobias Boege: >> Shouldn't it? >> > > Definitely. The problem is that > > Exec ["gbx3", "-s", Test, Project] To sOutput > > returns me an empty sOutput in this case, so the parser gets no note of the > passed tests at all. I don't know why but it has been a TODO item (shortly > above that line) to not buffer all the output into a String variable anyway > but to use the Process object as a stream. Maybe then I'll get the lines > which were printed before the crash, too. Someone should reproduce that > behaviour with "Exec To stringvar" and file a bug as well... > > While I'm at it, I should also capture stderr and convert it into diagnostic > messages. Doing that in Gambas always requires this weird mix of event-driven > and synchronous programming, but I just saw that there is a Process.Wait() > method, which should come in handy. I am thinking a lot about your approach. The idea of letting the interpreter do the work of testing as a separate process is brilliant, but the idea of the Main() method in my eyes is not. As I told you as I spoke about fixtures I found out that I need the fixtures to create different environments for different testmethods or different testsuites. Testsuites can be combinations of testmethods arranged in random order, for example for development or production. Yes that can all be done inside one module with a Main() method but this is not really flexible in my eyes. It cannot execute testmethods independently. And the really important thing is, that a crash of one test must not destroy other tests. I do a lot of testing with the old gb.deg.unittest and I had to invest a lot of time to make it work and it is "tested" in the sense that it tests a lot of production code in my firm, now for years, so it works! It also can handle Gambas Errors and Failures and report them. The thing, why we started rewriting the code, was, that Beno?t mentioned that GUI and testcode are not independent, and that the testcode should output sth standardized which could be eaten by GUI or sth other. There came the idea of TAP. But TAP as output format! So I think you first should throw a little of your great brain on the existing code instead of throwing it away completely and writing your own. You wrote: > In general, the component is currently modeled after perl's test facilities. > Not because I think it's the best option for Gambas but because I didn't > have to think up my own thing before getting something remotely usable. > So feel free to change it, but only for the better I think the better is the code in gb.deg.unittest. ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Mon May 21 22:19:16 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 21 May 2018 22:19:16 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180521192853.GW17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> <20180521192853.GW17317@highrise.localdomain> Message-ID: <4bffe156-3a35-9e33-5670-a0c7da990842@deganius.de> Am 21.05.2018 um 21:28 schrieb Tobias Boege: [ Maybe my deleting all > those COMUnit classes gave away the impression that I replaced them, > but I really just didn't want to spend time porting them to the new > TAP base, and instead implemented a fresh and small TestHarness class > to have something presentable. Sorry, Christof :-) ] No problem, Tobi! :-) I think we should sleep a bit and think about it. It is not easy to understand the thoughts and work of another programmer, it lasted about one week for me to understand what the original programmer of ComUnit did. This code was old and not a modern aproach but it is not bad at all. I had also to think about one day about your work. So I think we should give us a little time and be not too fast. The aim is to create a good Gambas testing solution which is sufficient for a lot of different situations and lasts forever. ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From adrien.prokopowicz at gmail.com Mon May 21 22:30:13 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Mon, 21 May 2018 22:30:13 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180521192853.GW17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> <20180521192853.GW17317@highrise.localdomain> Message-ID: <586918b7-6f03-c689-01dc-b336379f80be@gmail.com> Le 21/05/2018 ? 20:39, Christof Thalhofer a ?crit : > This was not my implementation Whoops, I meant to reply to Tobias, to whom the "your" was addressed, sorry! Le 21/05/2018 ? 21:28, Tobias Boege a ?crit?: > On Mon, 21 May 2018, Adrien Prokopowicz wrote: >> There's something I just noticed in your implementation: why is a "test" (in >> TAP terminology) mapped to a single assertion, and not to a whole test >> method ? >> > > There are two things that might be called a "test". One is a single > assertion, which produces an "ok" or "not ok" line, and the other is > multiple assertions bundled into a file -- that file would be called > a test, too, if you ask me. > >> The problem with this approach is that all assertions share state, which >> should not be the case with tests: ideally a test should have no influence >> on subsequent tests, otherwise a test following a failure could be either a >> false positive or a false negative, and you can't really test things in >> isolation. >> > > I think that depends. If you create an object and want to test two methods, > these two assertions should share state. Or what do you mean? I believe we have a terminology issue here. For me, a bunch of assertions make a Test (represented as a method), and a bunch of tests are grouped in a Test Module for convenience. > >> After reading the TAP/Perl spec a bit more thoroughly, it seems they also >> use this approch, which I find really wierd. Admittedly i've never ever >> encountred Perl, but of all the testing tools I've seen and used (I've >> looked into C, Rust, Ruby, Java, C# and Javascript for my testing) I've >> never seen this approach before. >> > > I, on the other hand, am not familiar with those. For me, naively, testing > is executing scripts that probe the API of your project and report their > results. How you write those scripts is entirely up to you, as long as > their output follows the protocol. I also view testing as "executing scripts that probe the API of your project and report their results". But then, to me it's more like "Here is a general structure to follow, use these building blocks (Assert etc.) to write your tests, and we'll do the rest". :-) > > And that is about the level at which I worked. I just implemented TAP > because Christof mentioned it, I recognised it and thought it was a > good idea. I don't know if that was clear to you, but the "higher-level" > stuff was mostly duct-taped on top to be able to run something that > produces and consumes TAP and I took inspiration for that from perl. > That part is very much intended to evolve. [ Maybe my deleting all > those COMUnit classes gave away the impression that I replaced them, > but I really just didn't want to spend time porting them to the new > TAP base, and instead implemented a fresh and small TestHarness class > to have something presentable. Sorry, Christof :-) ] > > It is kind of hard at the moment to see where the design of gb.test is > supposed to go and I definitely lack synapses in the usability department, > which many of the recent remarks were about. If you have experience with > mature testing methods, please take the lead. Since I am better at writing code than words, I made an example snippet to present what I think of a gb.test API: https://gambas-playground.proko.eu/?gist=77867b16bb9449b5375d62eabe71594c Comments are welcome, as always. :-) > However, despite your comment about state sharing above, or because > I didn't understand the problem about it, I still think TAP is a good > format, regardless of how tests are presented to the user in the end. > I can't really imagine that the TAP architecture can get this much > in the way of testing workflows basically everywhere non-Perl. Don't get me wrong, I like TAP a lot! Mainly because it's simple to read as an human, but also to produce and parse (yay non-XML!), and also it's widely supported by various tools, including popular CI systems like Jenkins. I just don't think TAP should leak into the user API for testing, mainly because of the idea of dependency to a specific format (most Test Harnesses out there support multiple formats as outputs), but also because API-wise, I don't want to feel like I'm calling a writer for a format while I'm writing hundreds tests, because those two things are at completely different level of abstaction. Or, put it in another way, I shouldn't write my tests in TAP, I should write them in Gambas. ;-) > > PS: I should also note that I have to gradute in a few months and can't > spend much time researching testing and evaluating proposals. The frame > is really tight this time. > Don't worry too much about it, it's not like we're going to merge and release this next week anyways! Considering this is ultimately quite a big feature in terms of user expericence, but quite small in terms of API and implementation work, I think it's preferable to spend weeks discussing it so we can then use it in most of Gambas code (and in all of Gambas itself) for the next 10+ years without regrets. :-) And good luck for your exams! -- Adrien Prokopowicz From chrisml at deganius.de Mon May 21 22:46:35 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 21 May 2018 22:46:35 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180521192853.GW17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> <20180521192853.GW17317@highrise.localdomain> Message-ID: <9b38b5ea-acbc-6b9d-606b-55e6a0c1c0e0@deganius.de> Am 21.05.2018 um 21:28 schrieb Tobias Boege: > On Mon, 21 May 2018, Adrien Prokopowicz wrote: >> There's something I just noticed in your implementation: why is a "test" (in >> TAP terminology) mapped to a single assertion, and not to a whole test >> method ? >> > > There are two things that might be called a "test". One is a single > assertion, which produces an "ok" or "not ok" line, and the other is > multiple assertions bundled into a file -- that file would be called > a test, too, if you ask me. An assertion is not a test, it is a tool which is used inside a test to decide whether the test fails or not. One test can contain multiple assertions, if one is not true, the test fails. The test also fails, if there is an error. Look at the picture. There are four tests, each failing, because an an assertion was not true or an error occured. Tests can be huge, but then they usually contain more than one assertion. As I know it, one single test is handled in a testmethod which can contain one or multiple assertions. This testmethod can executed alone or together with other testmethods one after another. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: tracer.png Type: image/png Size: 30227 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Mon May 21 22:58:23 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 21 May 2018 22:58:23 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <586918b7-6f03-c689-01dc-b336379f80be@gmail.com> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> <20180521192853.GW17317@highrise.localdomain> <586918b7-6f03-c689-01dc-b336379f80be@gmail.com> Message-ID: <30c0a2af-5b61-bdec-63f9-1b1425da8286@deganius.de> Am 21.05.2018 um 22:30 schrieb Adrien Prokopowicz: > Since I am better at writing code than words, I made an example snippet > to present what I think of a gb.test API: > > https://gambas-playground.proko.eu/?gist=77867b16bb9449b5375d62eabe71594c > > Comments are welcome, as always. :-) Exactly this sort of stuff is handled by gb.deg.unittest. Please read the documentation and check it out! > Don't get me wrong, I like TAP a lot! Mainly because it's simple to read > as an human, but also to produce and parse (yay non-XML!), and also it's > widely supported by various tools, including popular CI systems like > Jenkins. Ok, so we think the same. > Considering this is ultimately quite a big feature in terms of user > expericence, but quite small in terms of API and implementation work, I > think it's preferable to spend weeks discussing it so we can then use it > in most of Gambas code (and in all of Gambas itself) for the next 10+ > years without regrets. :-) Great! We all think the same! :-) > And good luck for your exams! From me also, Tobi! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From taboege at gmail.com Mon May 21 23:39:48 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 21 May 2018 23:39:48 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180521192853.GW17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <4c264171-8939-be88-84cd-7b48ec0e3dde@gmail.com> <20180521192853.GW17317@highrise.localdomain> Message-ID: <20180521213948.GX17317@highrise.localdomain> On Mon, 21 May 2018, Tobias Boege wrote: > I, on the other hand, am not familiar with those. For me, naively, testing > is executing scripts that probe the API of your project and report their > results. How you write those scripts is entirely up to you, as long as > their output follows the protocol. > > [...] > > It is kind of hard at the moment to see where the design of gb.test is > supposed to go and I definitely lack synapses in the usability department, > which many of the recent remarks were about. If you have experience with > mature testing methods, please take the lead. > > However, despite your comment about state sharing above, or because > I didn't understand the problem about it, I still think TAP is a good > format, regardless of how tests are presented to the user in the end. > I can't really imagine that the TAP architecture can get this much > in the way of testing workflows basically everywhere non-Perl. > After taking a shower, my mind has cleared up a bit and I think I could have said this in a more productive way. The two things I want to preserve are: (1) tests should be run in a separate process (but they don't have to, thanks to the OPEN STRING instruction and the stream interface we have), and (2) they are programs which produce a live TAP stream as they execute. What I mentioned in the first paragraph quoted above, seems to be more general than the test containers and methods. If you want to "constrain" a test file to certain additional behaviours, that should be done by introducing a base class that is inherited by the test. For example, TestContainer can be created to manage the "I can run a single of my methods in isolation, perhaps after setting up an environment" functionality. Of course, behind the scenes, it has to wrestle with the TapPrinter to set everything up for that single method to produce a valid TAP stream. But the only obstacle to that is determining the test plan, i.e. how many assertions the method is going to run. However, the plan is optional and may be omitted in this difficult case (the TapPrinter will just count and print how many tests *were* run in the end, which is also valid). Also, nothing prevents us from sending arguments to a test, to indicate which method should be executed. Then you have to teach the test runner about the calling conventions, perhaps by subclassing or extending what is currently called TestHarness. The bottom line here is: not everything needs the (conceptual) overhead of a TestContainer; some tests might just be scripts that perform a bunch of trivial sanity checks, or something different entirely. Those tests which need more framework have to set it up in their own process. Inheritance seems to be a good tool to do that and spare the user the writing of boilerplate code. This is all very dependent on how we want to expose testing facilities, e.g. in the IDE. At the moment we are far away from "I press F10 and it runs the test method corresponding to the function under the cursor", but my *hope* is that the current base classes allow for such extensions, without it becoming clumsy. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Tue May 22 00:27:38 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 22 May 2018 00:27:38 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> Message-ID: <20180521222738.GY17317@highrise.localdomain> On Mon, 21 May 2018, Christof Thalhofer wrote: > I am thinking a lot about your approach. > > The idea of letting the interpreter do the work of testing as a separate > process is brilliant, but the idea of the Main() method in my eyes is not. > > As I told you as I spoke about fixtures I found out that I need the > fixtures to create different environments for different testmethods or > different testsuites. > > Testsuites can be combinations of testmethods arranged in random order, > for example for development or production. > > Yes that can all be done inside one module with a Main() method but this > is not really flexible in my eyes. It cannot execute testmethods > independently. And the really important thing is, that a crash of one > test must not destroy other tests. > > I do a lot of testing with the old gb.deg.unittest and I had to invest a > lot of time to make it work and it is "tested" in the sense that it > tests a lot of production code in my firm, now for years, so it works! > It also can handle Gambas Errors and Failures and report them. > > The thing, why we started rewriting the code, was, that Beno?t mentioned > that GUI and testcode are not independent, and that the testcode should > output sth standardized which could be eaten by GUI or sth other. > > There came the idea of TAP. But TAP as output format! > > So I think you first should throw a little of your great brain on the > existing code instead of throwing it away completely and writing your own. > > You wrote: > > > In general, the component is currently modeled after perl's test facilities. > > Not because I think it's the best option for Gambas but because I didn't > > have to think up my own thing before getting something remotely usable. > > So feel free to change it, but only for the better > > I think the better is the code in gb.deg.unittest. ;-) > So, after catching up on all the mail that arrived while I was writing mine, it seems like we are on the same page after all. TAP is a good output format, running tests in a separate process is a good idea and it has the side effect of ensuring separation of test and GUI. Viewing tests as mere blackbox scripts is not convenient enough, at least some of them need a more structured interface and calling convention. Deleting the gb.deg.unittest classes was a faux pas. I had a big amount of code that would have taken /me/ more time to understand and port properly than I had, not because of TAP but because of it running in a separate process, and I wanted to upload a clean first gb.test to the official tree quickly as there was demand, so I made tabula rasa. But I hope for the gb.deg.unittest experts to turn up when time permits and do the porting, or report insuffi- ciencies in the two Good Things above which prevent that from being done. When saying this I should also say that I realise now that it wasn't friendly to give up on studying your code to integrate my changes but instead to effectively force you (or someone else) to rebuild yours on top of mine. Of course it is my opinion that my own code is vastly easier to understand than anyone else's :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Tue May 22 10:57:53 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 22 May 2018 10:57:53 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <20180521222738.GY17317@highrise.localdomain> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> Message-ID: <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> Hi Tobi, Hi Adrien, I see this all as a very creative exploring of possibilities. So there is nothing wrong if you (Tobi) did sth other than I did. We have Git, so we are free to play around. Things have been as far as I can see: -------------------------------------------------------------------- There is an existing and working testing framework interwoven with GUI in gb.deg.unittest/master The same thing but without GUI is in gb.deg.unittest/develop (here are Beno?ts mentions realized) (To make it better understandable how it works I think I have to create a flowchart) We have a TAP printer (that I really do not understand until now, my fault, as I concentrated at TestHarness) in gb.test. -------------------------------------------------------------------- There are things both approaches (gb.deg.unittest and gb.test) have in common and these are assertions (in german "Behauptungen", in french "affirmations"?) which have to be true that a test succeeds. By the way, the assertions you (Tobi) wrote are way better and much more elegant than mine! So as I can see, we can couple these two approaches together in this way: The code in gb.deg.unittest arranges tests (single methods) in testcontainers (classes that inherit Unittest), adds fixtures, creates a plan (this is already done) and should bring these tests to execution. Currently this central functionality of execution is done in gb.deg.unittest TestCase.Run. We should talk about the way how the code should be executed. Maybe we need some magic here. Can (or should) we hand out the code to a separate interpreter process? How? Every test contains one or more assertions. If an assertion is processed then it has to engage Tapprinter and that prints out TAP. If an error occurs Tapprinter has also to be engaged. So the testmethods have to be executed with Try. That's all, such easy ;-) After that sth has to parse the TAP output, maybe has to do some accounting and display the result in GUI and/or console. What we also should talk about is, how a couple of tests could be arranged (organized) in GUI and/or code. But now my free time ends and I have to work to earn some money ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From r0bst7m at gmail.com Tue May 22 11:20:21 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Tue, 22 May 2018 09:20:21 +0000 Subject: [Gambas-user] Gambas 3.10.0 Message-ID: Hi there, The latest update on ArchLinux is Gambas 3.10.0 and not Gambas 3.11.3 as it is available on "our" website. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue May 22 13:26:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 11:26:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Comment #6 by Beno?t MINISINI: Can you connect now from Ukraine? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From adrien.prokopowicz at gmail.com Tue May 22 16:51:58 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Tue, 22 May 2018 16:51:58 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> Message-ID: Le 22/05/2018 ? 10:57, Christof Thalhofer a ?crit?: > We should talk about the way how the code should be executed. Maybe we > need some magic here. Can (or should) we hand out the code to a separate > interpreter process? How? Here's a flowchart of how I (ideally) view the different internal parts interacting: +-----------+ +--------------+ Starts | | | | +--------------> | | | CI System | | gbtest3 | <--> CLI User | Gambas IDE | | | | | <--------------+ | | +--------------+ Test Results +-----------+ (TAP stream) + ^ | | Returns test result Starts processes | | (Exit code) (gbx3 -s ?) | | (STDERR for errors) v + +------------------+ |-------------------+ || | || Test Methods | || (gb.test) | ++ | +------------------+ (The separation of gbtest3 aside, this flow is quite similar to Tobi's implementation, but with some notable differences I'll cover here) The needed magic resides in the "-s" flag of the interpreter (gbx3), which sets a new startup class for running the project (different from the MMain/FMain class set by the user). We can set this flag to an hidden class exported by gb.test (for example _TestRunner), which will run its Main() method directly, but in the scope of the user's project. :-) From there, this hidden class can do two different things (dictated by CLI arguments, sent by gbtest3). First, walk through every class file in the hidden ".gambas" directory, keep only the classes that inherit from TestModule/TestContainer (name still up to bikeshedding, I prefer the first personally), then list all the callable test methods. Then this list of tests is sent back to gbtest3 to make the test plan before any test is run. While this plan is not strictly necessary for the TAP stream (but still nice to have, according to the spec), it enables gbtest3 to efficiently split the testing work across multiple process running in parallel. It also enables the IDE (and external CI tools maybe) to show a nice progress bar while the user waits for their tests to run, since the TAP output is streamed and not buffered. Then, when the plan is set up, the gbtest3 executable will start a new runner process, instructing it to run a single test and return the result (and repeat for evey test in the plan). Here Tobi's implementation communicates with the test harness (here gbtest3) using TAP as well, but since in this model a process lives long enough to only run a single test, all TAP outputs would have only one results, essentially making TAP useless for this case, which is why I rather chose standard exit codes for status (ok/not ok/segfault/etc.), and looking through STDERR for the error message (if any). It also makes the implementation of gb.test much lighter, which is always a plus. :-) This whole model however, has an idea different from the one used by Perl (which inspired TAP) and implemented by Tobi here, and much closer the ones I see used day-to-day in production at work (whatever the language), which I believe is why there were some misunderstandings in the previous messages. It is based on the fact that, semantically, an Assertion is not a just a test or check, but a strong and obvious affirmation about how the tested system works. Assertions that succeed are simply ignored and do nothing (i.e. they do not show up in any log whatsoever), but if an assertion happens to fail, it aborts the current test (or throws an error, in Gambas terminology), therefore not running any subsequent assertions or code, and immediately marking the test as failed. A few examples of this model can be found in JUnit's Assert class[0] or in Rust's assert! macro[1] (among many others, those are just the ones that come to my mind right now). I believe this is better than Perl's approach of running and logging every assertion, because assertions are supposed to be very lightweight instructions (in the "good" case at least, where they succeed), which enables you to put a lot of them whithout slowing down your test suite nor spamming your test log (like in long loops, or testing big chunks of data). And also because when testing, you don't care to the assertions that succeeded, you only care about the ones that failed. :-) (Note this is only about assertions, all test methods that ran are of course logged in the TAP output). > What we also should talk about is, how a couple of tests could be > arranged (organized) in GUI and/or code. The GUI should be completely decorrelated to how everything works internally and in code (which is what Beno?t's initial remarks were about), so its presentation shouldn't be a concern right now. [0] http://junit.sourceforge.net/javadoc/org/junit/Assert.html [1] https://doc.rust-lang.org/std/macro.assert.html -- Adrien Prokopowicz From bugtracker at gambaswiki.org Tue May 22 18:50:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 16:50:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1104&from=L21haW4- PICCORO LENZ MCKAY added an attachment: solventado-multiparametros.png From bugtracker at gambaswiki.org Tue May 22 18:52:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 16:52:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1104&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: THANKS zxMarce WAS SEEMS SOLVED IN 3.11 AS SHOW MY PICTURE http://gambaswiki.org/bugtracker/get/COM.1104.3/file-1/20180522-185015638-solventado-multiparametros.png i will close but now HAS MORE BUGGY DUE DOES NO EXEC ANY QUERY (in new bug report.. ) PICCORO LENZ MCKAY changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Tue May 22 18:56:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 16:56:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #20 by PICCORO LENZ MCKAY: seems solved in 3.11 version.. i'll will close it but now has some new errors, seems do not exect any query in odbc, i'll report in new bug due this specific problem was solved.. thanks zxMarce for your work, now please help me with the other problem, does not exec any query (new bug reported please stay alert) PICCORO LENZ MCKAY changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Tue May 22 20:12:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:12:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #7 by PICCORO LENZ MCKAY: as a 3.10 and 3.11, this bug still are happened.. for INSERT, UPDATE the count must return the value, but still not for odbc/freetds From bugtracker at gambaswiki.org Tue May 22 20:26:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:26:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1324: ODBC driver crack status 1: canno make any query! Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1324&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- ODBC driver crack status 1: canno make any query! Type : Bug Priority : High Gambas version : Master Product : ODBC driver Description ----------- since 3.11 or 3.10 (i dont know due i only used 3.9 and 3.11) i cannot make any sql query over freedts, over older postgresql, over oracle.. only the stupid mysql odbc are working.. great due some bugs of older odbc was solved, but now we cannot make any SQL SELECT the picture show the error: System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From bugtracker at gambaswiki.org Tue May 22 20:27:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:27:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1324: ODBC driver crack status 1: canno make any query! In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1324&from=L21haW4- PICCORO LENZ MCKAY added an attachment: error-odbc-fetch-row-3.11.png From bugtracker at gambaswiki.org Tue May 22 20:29:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:29:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1324: ODBC driver crack status 1: canno make any query! In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1324&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: this its not same as http://gambaswiki.org/bugtracker/edit?object=BUG.1113 due i misctipe the title and now cannot edit, the real erro are DUE CANNOT FETCH OVER THE RESULT SET OBJECT as the picture show! From bugtracker at gambaswiki.org Tue May 22 20:32:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:32:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- IDE crash if there's two declaration even lauch error type Type : Bug Priority : High Gambas version : Master Product : Development Environment Description ----------- if we declare two times same variable ide crash event lauch advertise! picture show the problem more ilustrated: System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From bugtracker at gambaswiki.org Tue May 22 20:32:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:32:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- PICCORO LENZ MCKAY added an attachment: error-gambas-redeclaration-3.11.png From bugtracker at gambaswiki.org Tue May 22 20:36:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:36:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1326: IDE crash if project does not clean and code crash before, if were using ODBC component Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1326&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- IDE crash if project does not clean and code crash before, if were using ODBC component Type : Bug Priority : High Gambas version : Master Product : Development Environment Description ----------- if project does not clean and code crash before, if were using ODBC component 1) start a project, 2) run step by step, until a non valid condition 3) dont stop the project and reload 4) stop and re-run without clean the project 5) project will crash see the picture for more ilustrative: System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From bugtracker at gambaswiki.org Tue May 22 20:37:08 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:37:08 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1326: IDE crash if project does not clean and code crash before, if were using ODBC component In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1326&from=L21haW4- PICCORO LENZ MCKAY added an attachment: error-odbc-debug-too-fast-3.11.png From bugtracker at gambaswiki.org Tue May 22 20:40:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:40:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1326: IDE crash if project does not clean and code crash before, if were using ODBC component In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1326&from=L21haW4- PICCORO LENZ MCKAY added an attachment: error-odbc-invalid-cursor-state-3.11.png From bugtracker at gambaswiki.org Tue May 22 20:42:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 18:42:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1326: IDE crash if project does not clean and code crash before, if were using ODBC component In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1326&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: a related error .. if i rerund the ODBC component after a problem, got different error too! see the second picture attached: http://gambaswiki.org/bugtracker/get/BUG.1326/file-2/20180522-204047464-error-odbc-invalid-cursor-state-3.11.png From bugtracker at gambaswiki.org Tue May 22 21:08:59 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 22 May 2018 19:08:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1173: feat req: integrate sha1 commits with repository in bugtracker In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1173&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: for make independen of the3 web root, in first place.. in second for make better integration respect project link related.. well in last case there's only one project that its gambas.. but will be a great that just put the 8' digits of the commit and all ther rest are linked such as gitlab does! PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From chrisml at deganius.de Wed May 23 00:08:45 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 23 May 2018 00:08:45 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> Message-ID: Am 22.05.2018 um 16:51 schrieb Adrien Prokopowicz: > Le 22/05/2018 ? 10:57, Christof Thalhofer a ?crit?: >> We should talk about the way how the code should be executed. Maybe we >> need some magic here. Can (or should) we hand out the code to a separate >> interpreter process? How? > > Here's a flowchart of how I (ideally) view the different internal parts > interacting: > > +-----------+ > +--------------+ Starts | | > | | +--------------> | | > | CI System | | gbtest3 | <--> CLI User > | Gambas IDE | | | > | | <--------------+ | | > +--------------+ Test Results +-----------+ > (TAP stream) > + ^ > | | Returns test result > Starts processes | | (Exit code) > (gbx3 -s ?) | | (STDERR for errors) > v + > > +------------------+ > |-------------------+ > || | > || Test Methods | > || (gb.test) | > ++ | > +------------------+ > > (The separation of gbtest3 aside, this flow is quite similar to Tobi's > implementation, but with some notable differences I'll cover here) > > The needed magic resides in the "-s" flag of the interpreter (gbx3), > which sets a new startup class for running the project (different from > the MMain/FMain class set by the user). > > We can set this flag to an hidden class exported by gb.test (for example > _TestRunner), which will run its Main() method directly, but in the > scope of the user's project. :-) > > From there, this hidden class can do two different things (dictated by > CLI arguments, sent by gbtest3). > > First, walk through every class file in the hidden ".gambas" directory, > keep only the classes that inherit from TestModule/TestContainer (name > still up to bikeshedding, I prefer the first personally), then list all > the callable test methods. Then this list of tests is sent back to > gbtest3 to make the test plan before any test is run. Please. Did you look at my code? That does that all! Sigh ... Grmbl. Noone looks at my code. Everyone of you wants to build up the thingi from scratch. Why??? The only one who looked at the code was Beno?t. And his mentions were effective! The Unittest is ready, done, works, selects testmethods out of testclasses that inherit from Unittest, provides fixtures (creates environment for each testmethod and destroys the environment afterwards if needed). The tests are easy to write. I do it every day. It tests a lot of my software since years. The only thing that has to be done is: Separate GUI and console in- and output. Bring it into Gambas so that the tested project does not depend on the component gb.test or gb.unittest as I named it. Refactoring. I told where the problems lie and where the magic is needed but if noone in this mailinglist looks at it it makes no sense for me at all to discuss any further. Then I do the thing alone. If one would like to help and bring ideas in, I appreciate that, but if you want to write the same as I did from scratch but just in other words with other naming without looking at that what I have done, I am out. You are thinking the same thoughts I did, and you make the same errors I did until it works (just like Tobi did). It costs you 4 weeks for nothing, because it is done. If you do not look at it. Sorry. I had a hard day today and my nerves are running out. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From adrien.prokopowicz at gmail.com Wed May 23 01:03:43 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Wed, 23 May 2018 01:03:43 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> Message-ID: <799875f9-d424-d9f4-10e5-7012fc86a348@gmail.com> Le 23/05/2018 ? 00:08, Christof Thalhofer a ?crit?: > Am 22.05.2018 um 16:51 schrieb Adrien Prokopowicz: >> Le 22/05/2018 ? 10:57, Christof Thalhofer a ?crit?: >>> We should talk about the way how the code should be executed. Maybe we >>> need some magic here. Can (or should) we hand out the code to a separate >>> interpreter process? How? >> >> Here's a flowchart of how I (ideally) view the different internal parts >> interacting: >> >> +-----------+ >> +--------------+ Starts | | >> | | +--------------> | | >> | CI System | | gbtest3 | <--> CLI User >> | Gambas IDE | | | >> | | <--------------+ | | >> +--------------+ Test Results +-----------+ >> (TAP stream) >> + ^ >> | | Returns test result >> Starts processes | | (Exit code) >> (gbx3 -s ?) | | (STDERR for errors) >> v + >> >> +------------------+ >> |-------------------+ >> || | >> || Test Methods | >> || (gb.test) | >> ++ | >> +------------------+ >> >> (The separation of gbtest3 aside, this flow is quite similar to Tobi's >> implementation, but with some notable differences I'll cover here) >> >> The needed magic resides in the "-s" flag of the interpreter (gbx3), >> which sets a new startup class for running the project (different from >> the MMain/FMain class set by the user). >> >> We can set this flag to an hidden class exported by gb.test (for example >> _TestRunner), which will run its Main() method directly, but in the >> scope of the user's project. :-) >> >> From there, this hidden class can do two different things (dictated by >> CLI arguments, sent by gbtest3). >> >> First, walk through every class file in the hidden ".gambas" directory, >> keep only the classes that inherit from TestModule/TestContainer (name >> still up to bikeshedding, I prefer the first personally), then list all >> the callable test methods. Then this list of tests is sent back to >> gbtest3 to make the test plan before any test is run. > > Please. Did you look at my code? > > That does that all! Sigh ... I'm sorry, I may have been missing something again, but you are talking about this code here, right ? https://github.com/Deganius/gb.deg.unittest/tree/develop (the develop branch, not the master one) If this is indeed your latest work, the public API you have implemented does indeed look like what I'm proposing in my previous messages (only a bit less concise, but still globally the same idea), but your inner implementation does not do many things I'm discussing here : mainly testing in separate, multiple processes, streaming TAP output, splitting gbtest3/gb.test, and Assertions that stop the execution flow. I apologize if my previous messages look too imperative, I assure you this is not the intent. The goal of these is to simply discuss subjects that I think are important, and also to confirm things that have been done/discussed already so it is clear for everyone reading. Kind regards, -- Adrien Prokopowicz From chrisml at deganius.de Wed May 23 08:24:30 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 23 May 2018 08:24:30 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <799875f9-d424-d9f4-10e5-7012fc86a348@gmail.com> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> <799875f9-d424-d9f4-10e5-7012fc86a348@gmail.com> Message-ID: Hello dear Adrien, Am 23.05.2018 um 01:03 schrieb Adrien Prokopowicz: > I'm sorry, I may have been missing something again, but you are talking > about this code here, right ? > > https://github.com/Deganius/gb.deg.unittest/tree/develop (the develop > branch, not the master one) Yes. The develop branch is an excerpt from the master branch. All GUI stripped and (very primitive) output as TAP. If you look at the master branch, that has also output to console, but no TAP. > If this is indeed your latest work, the public API you have implemented > does indeed look like what I'm proposing in my previous messages (only a > bit less concise, but still globally the same idea), but your inner > implementation does not do many things I'm discussing here : mainly > testing in separate, multiple processes, streaming TAP output, splitting > gbtest3/gb.test, and Assertions that stop the execution flow. I doubt that testing in separate multiple processes (one per test) is even necessary. I think it disturbs flexibility and/or makes all much more complicated. And if failing assertions really should stop the execution flow of one test or just report the failing is also a thing that could be discussed. But it would be very easy to implement it. Please make a component out of one of the two above and use it to test code of your own. You may find out, that it does all things needed just like any other unit testing framework. The only thing which is a big annoying caveat, is, that a project has to depend on it. There we are searching for a solution, Beno?t wanted to do something to integrate it to Gambas and his first suggestion was "gbx3 -s". But maybe that is not the best ... and there would be a more elegant solution. Maybe sth like gbx3 -s module -m "method1 method2 method3 ..." would be possible and much better? Also for the future of Gambas? > I apologize if my previous messages look too imperative, I assure you > this is not the intent. The goal of these is to simply discuss subjects > that I think are important, and also to confirm things that have been > done/discussed already so it is clear for everyone reading. Thank you! I also apologize for my rant. But it costed me the whole weekend to discuss things that have been aready done but invented new by Tobi in pre-pre-alpha. We have now 2 test execution engines, 2 Tap printers and 2 times assertions. Tobis assertions are much more elegant than mine. :-) And my fear was indeed that here that happens again. Ok. So ... perhaps we should 1st define, what an unittesting system for Gambas has to do (but without details of implementation), then look what has been done already and if it is sufficient, then what is missing and at last talk about implementation. Can you agree with that? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed May 23 09:16:57 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 23 May 2018 09:16:57 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> <799875f9-d424-d9f4-10e5-7012fc86a348@gmail.com> Message-ID: Am 23.05.2018 um 08:24 schrieb Christof Thalhofer: > The only thing which is a big annoying caveat, is, that a project has to > depend on it. No, I was wrong, it is just currently a big annoying caveat for my own libraries if I would like to open them for others (what I want to do). I can't open these libraries to the public because there is no gb.unittest available on any Gambas except mine. And the libs depend on gb.unittest. If Gambas had gb.unittest installed by default it would have been no problem any more and we would not have do run the circus gbx3 -s .... any more. So please install the component on your computer, test your own code with it and then judge. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed May 23 11:31:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 23 May 2018 11:31:40 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> <799875f9-d424-d9f4-10e5-7012fc86a348@gmail.com> Message-ID: <14c9c2e3-ca52-1697-97f5-bfc87ca4b426@gmail.com> Le 23/05/2018 ? 08:24, Christof Thalhofer a ?crit?: > > I doubt that testing in separate multiple processes (one per test) is > even necessary. I think it disturbs flexibility and/or makes all much > more complicated. > I think it *is* necessary to run tests in separate processes, even if it is slower, because any test can have side effects that can disturb other tests. Quitting or aborting a test process will free any system resource used by the test automatically and reliably, eliminating most of the possible side effects. Regards, -- Beno?t Minisini From bugtracker at gambaswiki.org Wed May 23 12:34:55 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 10:34:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1327: format(now(), "t") gives CET but shouldn't it CEST or MEST ??? Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1327&from=L21haW4- Michael ALTROGGE reported a new bug. Summary ------- format(now(),"t") gives CET but shouldn't it CEST or MEST ??? Type : Bug Priority : Medium Gambas version : 3.10 Product : Language Description ----------- Print "UTC = "; Format(Time(DateAdd(Now(), gb.second, System.TimeZone)), "hh:nn:ss") gives: UTC = 10:22:55 which is correct, but Print Format$(Now, "hh:nn:ss"); Format$(Now(), "(t)") gives: 12:22:55 (CET) which is the correct time but false timezone ... From bugtracker at gambaswiki.org Wed May 23 12:39:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 10:39:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1327: format(now(), "t") gives CET but shouldn't it CEST or MEST ??? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1327&from=L21haW4- Comment #1 by Michael ALTROGGE: Gambas Version is 3.11.3 not available in DropDown ... From bugtracker at gambaswiki.org Wed May 23 12:42:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 10:42:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1327: format(now(), "t") gives CET but shouldn't it CEST or MEST ??? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1327&from=L21haW4- Comment #2 by Michael ALTROGGE: 3.11.2 ... From chrisml at deganius.de Wed May 23 13:58:00 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 23 May 2018 13:58:00 +0200 Subject: [Gambas-user] New component gb.test In-Reply-To: <14c9c2e3-ca52-1697-97f5-bfc87ca4b426@gmail.com> References: <20180519004444.GD17317@highrise.localdomain> <20180520114057.GN17317@highrise.localdomain> <6316528f-3017-2e59-3dc0-02f61ce0d86a@deganius.de> <20180520180446.GA3811@highrise.localdomain> <69bfcc95-ea46-b306-644d-6c1343637af0@deganius.de> <20180521161425.GT17317@highrise.localdomain> <7b990d92-4011-9065-ac4d-60f17b9a4201@deganius.de> <20180521222738.GY17317@highrise.localdomain> <04d83cc0-e429-62a5-c4b3-ca1563c723ed@deganius.de> <799875f9-d424-d9f4-10e5-7012fc86a348@gmail.com> <14c9c2e3-ca52-1697-97f5-bfc87ca4b426@gmail.com> Message-ID: <73f74885-ed13-d8b1-c2aa-50561956af25@deganius.de> Am 23.05.2018 um 11:31 schrieb Beno?t Minisini: > Le 23/05/2018 ? 08:24, Christof Thalhofer a ?crit?: >> >> I doubt that testing in separate multiple processes (one per test) is >> even necessary. I think it disturbs flexibility and/or makes all much >> more complicated. >> > I think it *is* necessary to run tests in separate processes, even if it > is slower, because any test can have side effects that can disturb other > tests. Ok ... yes ... I agree ... but it depends, so ... here is an example: ---------------------------------------------------------------------- Scenario 1 runs: Test() Scenario 2 runs: Test1(), Test2(), Test3(), ... Scenario 3 runs just Testx() from Scenario2 Scenario 4: My most complicated tests have to create a complex environment, create a database and tables and so on and then a couple of tests are running. For that I create the environment (create database) once for all tests and destroy it afterwards. But for each test I create tables in the database, fill them with testdata and delete them afterwards. There runs: Setup(), SetupEach(), Test1(), TeardownEach() SetupEach(), Test2(), TeardownEach() ... Teardown() Scenario 5: Most of the time (mostly while developing) I want to run just one of the tests of Scenario 4. Then there has to run: Setup(), SetupEach(), Testx(), TeardownEach(), Teardown() Because I do not want to wait 5 minutes for each run of all tests of Scenario 4. ---------------------------------------------------------------------- If we are able to run each scenario in a separate process, its up to the author to separate the tests. This is the sort of flexibility I found out that I need it in my daily work with unittesting my code. I do unittesting my code since a lot of years, t think about 2 years now with Gambas. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bugtracker at gambaswiki.org Wed May 23 17:36:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 15:36:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1328: gb.dbus: Please implement "PropertiesChanged" on interface "org.freedesktop.DBus.Properties" Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1328&from=L21haW4- Antonio OREFICE reported a new bug. Summary ------- gb.dbus: Please implement "PropertiesChanged" on interface "org.freedesktop.DBus.Properties" Type : Request Priority : Medium Gambas version : 3.10 Product : Unknown Description ----------- I'm trying to write an mpris2 compatible player, but i'm stuck on emitting signals via interface=org.freedesktop.DBus.Properties; member=PropertiesChanged. What i've done so far is the following: I registered into dbus by the following: DBus.Session.Register(mpris, "/org/mpris/MediaPlayer2", ["org.mpris.MediaPlayer2", "org.mpris.MediaPlayer2.Player", "org.freedesktop.DBus.Properties"]) (yes, the last interface was my last hope) ...next i tried to emit something via the following handler: Event org_freedesktop_DBus_Properties_PropertiesChanged(out1 As String, out2 As Collection) ..and the following call: DBus["/org/mpris/MediaPlayer2"].Raise(mpris, "org.freedesktop.DBus.Properties.PropertiesChanged", ["org.mpris.MediaPlayer2.Player", properties_changed_collection]) With dbus explorer all seems to be right: signal time=1527089280.104317 sender=:1.5573 -> destination=(null destination) serial=642 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged string "org.mpris.MediaPlayer2.Player" array [ dict entry( string "PlaybackStatus" variant string "Playing" ) ] but according to qdbusviewer, i just duplicated the interface, and the mpris2 client seems unaware of the emitted signal. see: https://i.imgur.com/iFfqgEk.png Am i doing something wrong/is there a way right now to add "PropertiesChanged" into the existing interface or is something to be done right into gb.dbus? Thanks! System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.16.8-1-ARCH Architecture=x86_64 Distribution=Arch Linux Desktop=KDE5 Theme=Breeze Language=it_IT.utf8 Memory=16053M [Libraries] Cairo=libcairo.so.2.11512.0 Curl=libcurl.so.4.0.0 Curl=libcurl.so.4.1.0 Curl=libcurl.so.4.2.0 Curl=libcurl.so.4.3.0 Curl=libcurl.so.4.4.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.7 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1400.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.75.0.0 QT4=libQtCore.so.4.7.4 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.10.1 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] ANDROID_HOME=/opt/android-sdk ANT_HOME=/usr/share/apache-ant Automoc4_DIR=/usr/lib/automoc4 CCACHEPATH=/usr/lib/ccache/bin DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1012/bus DESKTOP_SESSION=/usr/share/xsessions/plasma DISPLAY=:0 EDITOR=nano GB_GUI=gb.qt5 GRADLE_HOME=/usr/share/java/gradle GS_LIB=/.fonts GTK_MODULES=canberra-gtk-module HG=/usr/bin/hg HISTCONTROL=ignoredups HISTSIZE=50000 HOME= INFINALITY_FT= INFINALITY_FT_AUTOFIT_FORCE_SLIGHT_HINTING=true INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=0 INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=0 INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25 INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0 INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0 INFINALITY_FT_BRIGHTNESS=0 INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0 INFINALITY_FT_CONTRAST=0 INFINALITY_FT_FILTER_PARAMS=7 25 44 25 7 INFINALITY_FT_FRINGE_FILTER_STRENGTH=0 INFINALITY_FT_GAMMA_CORRECTION=0 100 INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0 INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0 INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0 INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0 INFINALITY_FT_STEM_FITTING_STRENGTH=0 INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0 INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true INFINALITY_FT_USE_VARIOUS_TWEAKS=true INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0 INTEL_BATCH=1 KDED_STARTED_BY_KDEINIT=1 KDE_FULL_SESSION=true KDE_SESSION_UID=1012 KDE_SESSION_VERSION=5 KWIN_NVIDIA_HACK=1 KWIN_TRIPLE_BUFFER=0 LANG=it_IT.utf8 LANGUAGE=en_US LARCH_PATH=/usr/share/splint/lib LCLIMPORTDIR=/usr/share/splint/imports LC_COLLATE=C LD_LIBRARY_PATH=/usr/local/lib/icu-55/ LESS_TERMCAP_mb= LESS_TERMCAP_md= LESS_TERMCAP_me= LESS_TERMCAP_se= LESS_TERMCAP_so= LESS_TERMCAP_ue= LESS_TERMCAP_us= LOGNAME= LS_COLORS=rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36: MAIL=/var/spool/mail/ MOZ_DISABLE_PANGO=1 MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins NXDIR=/usr/lib/nx OOO_FORCE_DESKTOP=gnome PAM_KWALLET5_LOGIN=/run/user/1012/kwallet5.socket PATH=/usr/lib/ccache/bin:/usr/lib/nx/bin:/usr/lib/hardening-wrapper/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/opt/depot_tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/scripts:/scripts/DominioNT/:/scripts/windows/:/usr/local/bin PS4=+ PWD= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_GRAPHICSSYSTEM=raster QT_LOGGING_RULES=*=false QT_NO_GLIB=1 QT_QPA_PLATFORMTHEME=kde QT_SCREEN_SCALE_FACTORS=VGA-0=1;DVI-D-0=1;HDMI-0=1;DVI-D-1=1; SESSION_MANAGER=local/:@/tmp/.ICE-unix/8878,unix/:/tmp/.ICE-unix/8878 SHELL=/bin/bash SHLVL=2 TZ=:/etc/localtime USER= WINEARCH=win32 WINEDLLOVERRIDES=winemenubuilder.exe=d XAUTHORITY=/tmp/xauth-1012-_0 XCURSOR_SIZE=0 XCURSOR_THEME=Jimmac XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share XDG_DESKTOP_DIR=$HOME/Desktop" XDG_RUNTIME_DIR=/run/user/1012 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=c62 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 _=/bin/plasmashell __GLVND_DISALLOW_PATCHING=1 __GL_SHADER_DISK_CACHE=1 From bugtracker at gambaswiki.org Wed May 23 17:37:15 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 15:37:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1328: gb.dbus: Please implement "PropertiesChanged" on interface "org.freedesktop.DBus.Properties" In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1328&from=L21haW4- Antonio OREFICE added an attachment: dbus.jpg From bugtracker at gambaswiki.org Wed May 23 18:44:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 16:44:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1329: Reading stdin Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1329&from=L21haW4- Tobias BOEGE reported a new bug. Summary ------- Reading stdin Type : Bug Priority : Medium Gambas version : Master Product : Unknown Description ----------- I'm reporting some possibly related problems here. Consider this code template: Public Sub Application_Read() Dim s As String s = Read XYZ Debug s End where I'm looking at varying expressions in place of XYZ when I call the program using `$ gbx3 <<<"test"`. (0) XYZ = -4096 which I remember seeing often. This works totally fine when you know you want to read at most 4KiB. ? (1) XYZ = 10, which is strictly more than the 5 bytes I send. Main.Application_Read.9: #39: End of file Main.Application_Read.9 Segmentation fault (core dumped) I would expect an EOF error but not a segfault. It doesn't always crash and instead just terminates with exit code 1 from the error. The segfault happens often enough on my system to look reproducible. Alas, it seems to be one of those crashes that never happen under gdb or valgrind. (2) XYZ = Lof(File.In) Main.Application_Read.9: #39: End of file Main.Application_Read.9 Segmentation fault (core dumped) For some reason Lof(File.In) returns 10, even though I piped in "test\n", so this is actually the same as above. Why is Lof equal to 10, though? (3) XYZ = 4 Main.Application_Read.14: test Main.Application_Read.12: #39: End of file Main.Application_Read.12 Segmentation fault (core dumped) Reads not all data the first time around and I get an expected EOF the second time the Read event is raised, and a segfault again. Here, the program halts under gdb and I get the following trace, which is probably the same thing as what happens with XYZ = 10: (gdb) r , argv=) at gbx.c:460 (4) XYZ = 5 Main.Application_Read.14: test This is good enough, but a feature request: in this case, all data is read and stdin is closed by the shell (Eof(File.In) knows this) but the program doesn't stop. Can something be done about this? In a way, there is no open fd to be watched anymore. PS: Don't mind the changing line numbers in the Debug outputs. I kept adding these cases to the test project, which increased the line number of the Debug statement between runs. System information ------------------ 3.10.90 4eec81132 (master) Freshly compiled and installed for these tests. From bugtracker at gambaswiki.org Wed May 23 18:45:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 16:45:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1329: Reading stdin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1329&from=L21haW4- Tobias BOEGE added an attachment: read-segfault-0.0.1.tar.gz From bugtracker at gambaswiki.org Wed May 23 20:10:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 18:10:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1322: TextEditor no copy/paste any more In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1322&from=L21haW4- Comment #1 by Beno?t MINISINI: Please provide an example and your full system information. From bugtracker at gambaswiki.org Wed May 23 20:12:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 18:12:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1329: Reading stdin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1329&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 23 20:41:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 18:41:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1329: Reading stdin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1329&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/b5edf09de9b4d0be2f532b7f97958b24384fec13. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed May 23 20:56:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 18:56:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1327: format(now(), "t") gives CET but shouldn't it CEST or MEST ??? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1327&from=L21haW4- Comment #3 by Beno?t MINISINI: "t" in a date format string always returns the local timezone name as returned by the glibc. You can check that by typing "date +%Z" in a shell and see if you get the same timezone. If it returns "CET", I can't do anything against that. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Wed May 23 21:04:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 19:04:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1327: format(now(), "t") gives CET but shouldn't it CEST or MEST ??? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1327&from=L21haW4- Comment #4 by Michael ALTROGGE: date +%Z gives me CEST ... Michael ALTROGGE changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 23 21:09:47 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 19:09:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1323: Weird Error In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1323&from=L21haW4- Comment #1 by Beno?t MINISINI: This message comes from a Glib library, which is not directly used by the Gambas IDE (based on QT). So I'm afraid I can't do anything against it. Anyway, I often have many errors or warning messages liek that from GUI applications (KDE, Gnome...) If you know how to use 'gdb', you can put a breakpoint on the 'g_log' function, run the program until it reaches it (this is the function that should display all these warning messages), and send me the stack backtrace. That way, we will know at lease which library trigger this message. From bugtracker at gambaswiki.org Wed May 23 21:10:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 19:10:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- Comment #1 by Beno?t MINISINI: Can you make a little project that reproduces the crash? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Wed May 23 22:52:15 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 20:52:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: attachched project (i hope next re2uest give me the button to upload) PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed May 23 22:54:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 23 May 2018 20:54:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- PICCORO LENZ MCKAY added an attachment: prueba-0.0.1.tar.gz From bugtracker at gambaswiki.org Thu May 24 14:33:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 12:33:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1326: IDE crash if project does not clean and code crash before, if were using ODBC component In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1326&from=L21haW4- PICCORO LENZ MCKAY added an attachment: prueba-0.0.1.tar.gz From bugtracker at gambaswiki.org Thu May 24 14:36:31 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 12:36:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #21 by PICCORO LENZ MCKAY: i must clarify this bug fix: this bug was "not excecute any INSERT after connected" now the insert query are solved but now any SELECT are not happened!, reported here new bug: http://gambaswiki.org/bugtracker/edit?object=BUG.1324&from=L21haW4- From softwaredevelopment at smartsonsite.com Thu May 24 14:47:24 2018 From: softwaredevelopment at smartsonsite.com (Stephen Bungay) Date: Thu, 24 May 2018 08:47:24 -0400 Subject: [Gambas-user] Editor Tab size of 1 space not working as expected... In-Reply-To: <0df77b93-f44a-610e-338a-34f9c8b0f116@smartsonsite.com> References: <0df77b93-f44a-610e-338a-34f9c8b0f116@smartsonsite.com> Message-ID: <82f6da43-a988-78c7-95fe-1ba27463db65@smartsonsite.com> Has this been fixed in later versions? I'm running 3.10.0 on Mint 17.3 When it comes to defining the number of spaces a Tab will create, there is a disconnect between what the preferences are set to and what the editor does. Setting Project->Properties->Options->Tab Size to 1 results in 2 spaces being inserted by the tab key, while values >1 work as expected. It is a small (but REALLY annoying) bug because when it comes to using the tab key to indenting large blocks of code. . On 18-05-18 08:23 AM, Stephen Bungay wrote: > Gambas 3.10.0 > Linux Mint 17.3 Cinnamon 64 Bit > > ? I have set the tab size to 1 space in both the > Tools->Preferences->Editor->Default tab size and also in the > Project->Properties->Options areas, yet when I highlight a block of > code and press [Tab] to move the block to where I want it the editor > always indents by 2 spaces for each press of the [Tab] key. > > > Steve. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From bm.530502 at gmail.com Thu May 24 15:36:39 2018 From: bm.530502 at gmail.com (M Be) Date: Thu, 24 May 2018 15:36:39 +0200 Subject: [Gambas-user] DataBrowser (gb.db.form) Events Message-ID: How can I catch one the events when storing or deleting data if I click the corresponding button of the control? Thank you Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 24 16:25:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 May 2018 16:25:12 +0200 Subject: [Gambas-user] Editor Tab size of 1 space not working as expected... In-Reply-To: <82f6da43-a988-78c7-95fe-1ba27463db65@smartsonsite.com> References: <0df77b93-f44a-610e-338a-34f9c8b0f116@smartsonsite.com> <82f6da43-a988-78c7-95fe-1ba27463db65@smartsonsite.com> Message-ID: <828f1c78-aca6-1f3f-41ee-156722f96896@gmail.com> Le 24/05/2018 ? 14:47, Stephen Bungay a ?crit?: > Has this been fixed in later versions? I'm running 3.10.0 on Mint 17.3 > > When it comes to defining the number of spaces a Tab will create, there > is a disconnect between what the preferences are set to and what the > editor does. Setting Project->Properties->Options->Tab Size to 1 results > in 2 spaces being inserted by the tab key, while values >1 work as > expected. > > It is a small (but REALLY annoying) bug because when it comes to using > the tab key to indenting large blocks of code. > Sorry, I can't reproduce the bug with the latest version. Maybe it was fixed? Can you try it? -- Beno?t Minisini From bugtracker at gambaswiki.org Thu May 24 16:44:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 14:44:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1322: TextEditor no copy/paste any more In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1322&from=L21haW4- Comment #2 by C THAL: [System] Gambas=3.11.2 OperatingSystem=Linux Kernel=4.4.0-124-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=XFCE Theme=Gtk Language=de_DE.UTF-8 Memory=7683M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bAHq2LePE9 DEFAULTS_PATH=/usr/share/gconf/xfce.default.path DESKTOP_SESSION=xfce DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xfce GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GTK_IM_MODULE=xim GTK_MODULES=canberra-gtk-module:canberra-gtk-module:gail:atk-bridge HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus 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 PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE= QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=xfce SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/3813,unix/:/tmp/.ICE-unix/3813 SHELL=/usr/bin/zsh SHLVL=0 SSH_AGENT_PID=3821 SSH_AUTH_SOCK=/tmp/ssh-lQR6EtavyqYc/agent.3820 TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=startxfce4 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/2983 USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xfce:/usr/share/xfce4:/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-1526245778.515458-133890611 XDG_SESSION_DESKTOP=xfce XDG_SESSION_ID=1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=none From bugtracker at gambaswiki.org Thu May 24 16:45:03 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 14:45:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1322: TextEditor no copy/paste any more In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1322&from=L21haW4- C THAL added an attachment: texteditor-cp-bug-0.0.1.tar.gz From bugtracker at gambaswiki.org Thu May 24 16:45:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 14:45:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1322: TextEditor no copy/paste any more In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1322&from=L21haW4- Comment #3 by C THAL: Attached a project that shows the bug. From bugtracker at gambaswiki.org Thu May 24 16:53:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 14:53:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1324: ODBC driver crack status 1: canno make any query! In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1324&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: i changed to devel environment due after investigate seem some commist produces this new error: https://gitlab.com/gambas/gambas/commit/aa67ba1309bde70e8b528be833ba06a8d124cbd1 maybe that's why i cannot reporoduce in gambas 3.9 and 3.11 has that problem.. https://gitlab.com/gambas/gambas/commit/e07ac2e4f2588f62bb55aa2b8351a08a810c1586 From bugtracker at gambaswiki.org Thu May 24 16:58:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 14:58:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1330: ODBC comp misc: unsuported featured as error? Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1330&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- ODBC comp misc: unsuported featured as error? Type : Bug Priority : Low Gambas version : Master Product : Database component Description ----------- i see that in code as example here: https://gitlab.com/gambas/gambas/commit/e07ac2e4f2588f62bb55aa2b8351a08a810c1586#702ad3786c36ed2b3a8365da1bed12e0af2aac2d_1332_1333 the unsupported features on odbc component are assumed as errors! well, unsupported and error are differents i guess, i dont know! System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.9.0-0.bpo.2-686-pae Architecture=x86 Distribution=devuan 8 Desktop=MoonlightDE Theme=QT5 Language=es_VE.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11400.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.14 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.404.0 GTK+2=libgtk-x11-2.0.so.0.2400.25 GTK+3=libgtk-3.so.0.1400.5 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.3.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=mlde GDM_LANG=es_VE.utf8 GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7363 GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 HOME= LANG=es_VE.UTF-8 LANGUAGE=es_VE:es LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1521,unix/:/tmp/.ICE-unix/1521 SHELL=/bin/bash SSH_AGENT_PID=1550 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MLDE 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_ID=1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_VTNR=7 From bugtracker at gambaswiki.org Thu May 24 16:59:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 14:59:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1330: ODBC comp misc: unsuported featured as error? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1330&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: also noted that added many "features" that are seems "copy of" mysql features! there's more scalar professional rather thant "mysql-only" From bugtracker at gambaswiki.org Thu May 24 17:36:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 15:36:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1330: ODBC comp misc: unsuported featured as error? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1330&from=L21haW4- Comment #2 by Beno?t MINISINI: Using unsupported features is obviously an error in your code. And no, there are not mysql-only features. PosgreSQL and sqlite support them, but I don't know how to do that in ODBC, and even if it is possible. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Thu May 24 17:40:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 15:40:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1322: TextEditor no copy/paste any more In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1322&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu May 24 17:46:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 15:46:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1322: TextEditor no copy/paste any more In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1322&from=L21haW4- Comment #4 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/502b4037282cf1d0cdbc0449ab6a09aecf94cc31. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Thu May 24 17:49:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 15:49:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- Comment #3 by Beno?t MINISINI: No crash at all with the development version, just a memory leak. From bugtracker at gambaswiki.org Thu May 24 17:51:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 15:51:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- PICCORO LENZ MCKAY changed the state of the bug to: Invalid. From bugtracker at gambaswiki.org Thu May 24 17:52:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 15:52:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1325: IDE crash if there's two declaration even lauch error type In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1325&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: i marked as invalid maybe was a odbc problem due now i tested in other projects and cannot reporduce after upgrading from 3.11.0 to 3.11.3 From bugtracker at gambaswiki.org Thu May 24 17:55:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 24 May 2018 15:55:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1330: ODBC comp misc: unsuported featured as error? In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1330&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: well after some short investigation in odbc docs, seems arte very complicated and dirver specific related.. thanks in any way benoit later i'll test odbc for postgres and odbc for sqlite, not only postgres/sqlite direct db components From taboege at gmail.com Thu May 24 18:12:43 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 24 May 2018 18:12:43 +0200 Subject: [Gambas-user] [Gambas-Notification] [Git][gambas/gambas][master] Correctly fix the READ instruction without leaking memory. In-Reply-To: <5b06b9c9db6a4_dd0f3f9259e88ef81975ef@sidekiq-asap-03.mail> References: <5b06b9c9db6a4_dd0f3f9259e88ef81975ef@sidekiq-asap-03.mail> Message-ID: <20180524161243.GI17317@highrise.localdomain> On Thu, 24 May 2018, Beno?t Minisini via Notification wrote: > Beno?t Minisini pushed to branch master at Gambas / gambas > > > Commits: > 35e98598 by gambas at 2018-05-24T13:09:51Z > Correctly fix the READ instruction without leaking memory. > > [INTERPRETER] > * BUG: Correctly fix the READ instruction without leaking memory. > I need a clarification on this. Did you temporarily introduce a memory leak in READ while fixing my Bug #1329 yesterday or was there one even before that? We have a German Gambas user who is experiencing OOM errors after some hours of watching a process which is generating data by the second. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Thu May 24 18:16:22 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 May 2018 18:16:22 +0200 Subject: [Gambas-user] [Gambas-Notification] [Git][gambas/gambas][master] Correctly fix the READ instruction without leaking memory. In-Reply-To: <20180524161243.GI17317@highrise.localdomain> References: <5b06b9c9db6a4_dd0f3f9259e88ef81975ef@sidekiq-asap-03.mail> <20180524161243.GI17317@highrise.localdomain> Message-ID: Le 24/05/2018 ? 18:12, Tobias Boege a ?crit?: > On Thu, 24 May 2018, Beno?t Minisini via Notification wrote: >> Beno?t Minisini pushed to branch master at Gambas / gambas >> >> >> Commits: >> 35e98598 by gambas at 2018-05-24T13:09:51Z >> Correctly fix the READ instruction without leaking memory. >> >> [INTERPRETER] >> * BUG: Correctly fix the READ instruction without leaking memory. >> > > I need a clarification on this. Did you temporarily introduce > a memory leak in READ while fixing my Bug #1329 yesterday or > was there one even before that? We have a German Gambas user > who is experiencing OOM errors after some hours of watching > a process which is generating data by the second. > > Regards, > Tobi > I introduced it in the first fix. A buffer is allocated to read the stream data, but that buffer must be freed. Before the first fix, the buffer was freed twice if there was an error. After the first fix, the buffer was never freed. After the second fix, the buffer should be correctly freed once. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 24 18:50:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 May 2018 18:50:55 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications Message-ID: Hi, There is now a new mailing-list named "bugtracker" for all bugtracker notifications. The "user" mailing-list will not receive them anymore. So if you want to continue seeing them, you have to subcribe here: https://lists.gambas-basic.org/listinfo/bugtracker Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Thu May 24 19:15:43 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 24 May 2018 13:15:43 -0400 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: Message-ID: errr, well, was more easy one place to all, i only check one mail list.. but well any way! ok got it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-24 12:50 GMT-04:00 Beno?t Minisini : > Hi, > > There is now a new mailing-list named "bugtracker" for all bugtracker > notifications. The "user" mailing-list will not receive them anymore. > > So if you want to continue seeing them, you have to subcribe here: > > https://lists.gambas-basic.org/listinfo/bugtracker > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From softwaredevelopment at smartsonsite.com Thu May 24 20:32:22 2018 From: softwaredevelopment at smartsonsite.com (softwaredevelopment at smartsonsite.com) Date: Thu, 24 May 2018 14:32:22 -0400 Subject: [Gambas-user] Editor Tab size of 1 space not working as expected... In-Reply-To: <828f1c78-aca6-1f3f-41ee-156722f96896@gmail.com> References: <0df77b93-f44a-610e-338a-34f9c8b0f116@smartsonsite.com> <82f6da43-a988-78c7-95fe-1ba27463db65@smartsonsite.com> <828f1c78-aca6-1f3f-41ee-156722f96896@gmail.com> Message-ID: On 2018-05-24 10:25, Beno?t Minisini wrote: > Le 24/05/2018 ? 14:47, Stephen Bungay a ?crit?: >> Has this been fixed in later versions? I'm running 3.10.0 on Mint 17.3 >> >> When it comes to defining the number of spaces a Tab will create, >> there is a disconnect between what the preferences are set to and what >> the editor does. Setting Project->Properties->Options->Tab Size to 1 >> results in 2 spaces being inserted by the tab key, while values >1 >> work as expected. >> >> It is a small (but REALLY annoying) bug because when it comes to using >> the tab key to indenting large blocks of code. >> > > Sorry, I can't reproduce the bug with the latest version. Maybe it was > fixed? Can you try it? Will pull down and compile the latest to test. Will let you know. From shordi at gmail.com Thu May 24 20:32:08 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 24 May 2018 20:32:08 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: Message-ID: Ok. Done. Thanks again. Best Regards 2018-05-24 18:50 GMT+02:00 Beno?t Minisini : > Hi, > > There is now a new mailing-list named "bugtracker" for all bugtracker > notifications. The "user" mailing-list will not receive them anymore. > > So if you want to continue seeing them, you have to subcribe here: > > https://lists.gambas-basic.org/listinfo/bugtracker > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu May 24 21:48:55 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 24 May 2018 21:48:55 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: Message-ID: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> Hello Beno?t, Am 24.05.2018 um 18:50 schrieb Beno?t Minisini: > There is now a new mailing-list named "bugtracker" for all bugtracker > notifications. The "user" mailing-list will not receive them anymore. > > So if you want to continue seeing them, you have to subcribe here: > > https://lists.gambas-basic.org/listinfo/bugtracker I like that, my feeling is that now the topics of the user list are much easier to distinguish. 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: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Thu May 24 22:08:49 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 24 May 2018 16:08:49 -0400 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> Message-ID: 2018-05-24 15:48 GMT-04:00 Christof Thalhofer : > I like that, my feeling is that now the topics of the user list are much > easier to distinguish. > maybe due a digest mode active.. deactivate able to receive all in indivicual threaths > > Thank you! > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu May 24 22:16:23 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 24 May 2018 22:16:23 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> Message-ID: <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Am 24.05.2018 um 22:08 schrieb PICCORO McKAY Lenz: > I like that, my feeling is that now the topics of the user list are much > easier to distinguish. > > maybe due a digest mode active.. deactivate able to receive all in > indivicual threaths No, I receive in non-digest-mode. Yes I get individual threads, but I did not like all the bugtracker topics inbetween. Sometimes I had to search to find the real user threads. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Thu May 24 22:45:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 24 May 2018 16:45:00 -0400 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Message-ID: 2018-05-24 16:16 GMT-04:00 Christof Thalhofer : > Sometimes I had to search to find the real user threads. > The Subject are not difference? maillist subjects had the "bugtracker" word inside.. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu May 24 23:03:05 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 24 May 2018 23:03:05 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Message-ID: Am 24.05.2018 um 22:45 schrieb PICCORO McKAY Lenz: > 2018-05-24 16:16 GMT-04:00 Christof Thalhofer >: > > Sometimes I had to search to find the real user threads. > > The Subject are not difference? > > maillist subjects had the "bugtracker" word inside.. Sure but if there were a lot of bugtracker mails the form with topics in thunderbird was full of them and I had to scroll up and down to find the threads where people talk. Now I see your post a lot faster. :-) And yes, I could have filtered, but for some strange thing in TB that was not reliable. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Thu May 24 23:12:19 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 24 May 2018 17:12:19 -0400 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Message-ID: 2018-05-24 17:03 GMT-04:00 Christof Thalhofer : > Sure but if there were a lot of bugtracker mails the form with topics in > thunderbird was full of them and I had to scroll up and down to find the > threads where people talk. > ahh the problem its your mail client X-D i also a fan of thunderbird but this its a signal of that apps like gmail with tags and labels for separating the threads are the rule today! > > Now I see your post a lot faster. :-) > > And yes, I could have filtered, but for some strange thing in TB that > was not reliable. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From softwaredevelopment at smartsonsite.com Fri May 25 05:52:47 2018 From: softwaredevelopment at smartsonsite.com (Stephen Bungay) Date: Thu, 24 May 2018 23:52:47 -0400 Subject: [Gambas-user] Console... Message-ID: ? Is there a preferences setting for this so it works more like an actual console? i.e. No single line for entering things with a pre-entered '?' prompt. As I recall it used to work like an actual console/terminal. If I wanted to change my installation what is the name of it's source file (I have been looking for it to no avail). From chrisml at deganius.de Fri May 25 07:38:05 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 25 May 2018 07:38:05 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Message-ID: Am 24.05.2018 um 23:12 schrieb PICCORO McKAY Lenz: > Sure but if there were a lot of bugtracker mails the form with topics in > thunderbird was full of them and I had to scroll up and down to find the > threads where people talk. > > ahh the problem its your mail client No. Because I am member in a lot of mailinglists and this was the only one that had the problem (in my eyes) that it mixed (half-)automated output with talk between people. You will see, it will be much cleaner now. > X-D > > i also a fan of thunderbird but this its a signal of that apps like > gmail with tags and labels for separating the threads are the rule today! What?! You rant about Winbuntu and then recommend Gmail??? ;-) Gmail doesn't even seem to be able to quote correctly ... Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From rwe-sse at osnanet.de Fri May 25 08:27:12 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 25 May 2018 08:27:12 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Message-ID: Am 24.05.2018 um 23:03 schrieb Christof Thalhofer: > Am 24.05.2018 um 22:45 schrieb PICCORO McKAY Lenz: > >> 2018-05-24 16:16 GMT-04:00 Christof Thalhofer > >: >> >> Sometimes I had to search to find the real user threads. >> >> The Subject are not difference? >> >> maillist subjects had the "bugtracker" word inside.. > > Sure but if there were a lot of bugtracker mails the form with topics in > thunderbird was full of them and I had to scroll up and down to find the > threads where people talk. > > Now I see your post a lot faster. :-) > > And yes, I could have filtered, but for some strange thing in TB that > was not reliable. > > > Alles Gute > > Christof Thalhofer In Thunderbird, I made a subdirectory (below the Gambas directory) for the bugtracker mails, then made a filter which would put all mails with a [Gambas Bug Tracker] to this directory. Then I set it to keep those mails for a maximum of a few days, that's it. Regards Rolf From pjbonovox at gmail.com Fri May 25 08:43:11 2018 From: pjbonovox at gmail.com (Phil Underhill) Date: Thu, 24 May 2018 23:43:11 -0700 Subject: [Gambas-user] Receiving events on an array of process objects Message-ID: Hi all. Given the following example code... ?##### ? Public myProcesses As New Object[] Public Sub Button1_Click() Dim myProcess As Process myProcess = Exec ["/usr/bin/glxgears"] As "myProcess" myProcesses.Push(myProcess) End ##### ...is it possible for me receive events from this array of Process objects? Any pointers much appreciated. Phil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri May 25 11:43:44 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 25 May 2018 11:43:44 +0200 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Message-ID: <78353353-4419-adc7-6dcf-8bc0e2a1bf59@deganius.de> Am 25.05.2018 um 08:27 schrieb Rolf-Werner Eilert: > In Thunderbird, I made a subdirectory (below the Gambas directory) for > the bugtracker mails, then made a filter which would put all mails with > a [Gambas Bug Tracker] to this directory. Then I set it to keep those > mails for a maximum of a few days, that's it. Yes. You can do this now also. Just change your filter to filter by To. But now newbies in the mailinglist are not overwhelmed by stuff that is no talk between humans any more. I usually filter with procmail and so will I do here. But it's more reliable to filter by To: than Subject:. So one can write a mail with "[Gambas Bug Tracker]" in the subject to the user mailinglist and it is clear that it is a talk between humans about something relating to "[Gambas Bug Tracker]". Computer generated stuff disturbs talk between people. We had a lot of unsubscriptions as notifications were piped into the mailinglists and it got a lot better as we sent them to a specialized ml. So it will be here. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From taboege at gmail.com Fri May 25 12:27:09 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 25 May 2018 12:27:09 +0200 Subject: [Gambas-user] Receiving events on an array of process objects In-Reply-To: References: Message-ID: <20180525102709.GC27874@highrise.localdomain> On Thu, 24 May 2018, Phil Underhill wrote: > Hi all. > > Given the following example code... > > ?##### > > ? > Public myProcesses As New Object[] > > Public Sub Button1_Click() > Dim myProcess As Process > myProcess = Exec ["/usr/bin/glxgears"] As "myProcess" > myProcesses.Push(myProcess) > End > ##### > > ...is it possible for me receive events from this array of Process objects? > Any pointers much appreciated. > In Gambas, objects raise events under an event name and their observer(s) intercept them. You are creating myProcess = Exec [...] As "myProcess" The 'As "myProcess"' clause declares the event name of the myProcess object. The default observer is the object in which this code is run. For more details, see [1]. By creating many different processes with the same event name, you can treat events of many objects with a single event handler. The special variable LAST is used during event handlers to indicate which Process raised the event. So, did you try the code you posted above? It should do exactly what you want (that's at least the best interpretation I can think of for "receiving events from an array of Process objects"). Assuming of course, that you have declared event handlers Public Sub myProcess_Read() and such. Regards, Tobi [1] http://gambaswiki.org/wiki/doc/object-model -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From rwe-sse at osnanet.de Fri May 25 12:44:10 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 25 May 2018 12:44:10 +0200 Subject: [Gambas-user] Crypting single files Message-ID: There is a gb.crypt component, but it is meant to encrypt passwords only. Is there a component that has some easy-to-handle functions to encrypt files? Or if not, how do you handle this? Regards Rolf From taboege at gmail.com Fri May 25 13:05:53 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 25 May 2018 13:05:53 +0200 Subject: [Gambas-user] Crypting single files In-Reply-To: References: Message-ID: <20180525110552.GD27874@highrise.localdomain> On Fri, 25 May 2018, Rolf-Werner Eilert wrote: > There is a gb.crypt component, but it is meant to encrypt passwords only. > > Is there a component that has some easy-to-handle functions to encrypt > files? > > Or if not, how do you handle this? > gb.openssl does this. Example: Public Sub Main() Dim sTemp As String = Temp$() File.Save(sTemp, CStr(Now)) Print "Original data:";; File.Load(sTemp) File.Save(sTemp, Cipher["BF-CBC"].EncryptSalted(File.Load(sTemp), "passphrase", "salt")) Print "Encrypted data:";; Base64$(File.Load(sTemp)) Print "Decrypted data:";; Cipher["BF-CBC"].DecryptSalted(File.Load(sTemp), "passphrase") Print "Wrongly decrypted data:";; Cipher["BF-CBC"].DecryptSalted(File.Load(sTemp), "Passphrase") End Original data: 05/25/2018 10:58:45.768 Encrypted data: U2FsdGVkX19zYWx0AAAAAEQ8/7vYGZRMqEpmhf7SssiQJkBlcT4tmw== Decrypted data: 05/25/2018 10:58:45.768 ' Last line raises an error because the password is wrong Note that the encrypted data is base64 encoded because it is binary gibberish that you don't want to print to a terminal. Indexing the Cipher class with a cipher method (here "BF-CBC") gives you an object, which you can use to encrypt and decrypt arbitrary strings. The Cipher.List property gives you a list of all ciphers available from the openssl crypto library on your system. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Fri May 25 13:08:50 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 25 May 2018 13:08:50 +0200 Subject: [Gambas-user] Crypting single files In-Reply-To: <20180525110552.GD27874@highrise.localdomain> References: <20180525110552.GD27874@highrise.localdomain> Message-ID: <2237428e-894c-b3c5-44d4-c5d987111d48@gmail.com> Le 25/05/2018 ? 13:05, Tobias Boege a ?crit?: > On Fri, 25 May 2018, Rolf-Werner Eilert wrote: >> There is a gb.crypt component, but it is meant to encrypt passwords only. >> >> Is there a component that has some easy-to-handle functions to encrypt >> files? >> >> Or if not, how do you handle this? >> > > gb.openssl does this. Example: > > Public Sub Main() > > Dim sTemp As String = Temp$() > > File.Save(sTemp, CStr(Now)) > Print "Original data:";; File.Load(sTemp) > > File.Save(sTemp, Cipher["BF-CBC"].EncryptSalted(File.Load(sTemp), "passphrase", "salt")) > > Print "Encrypted data:";; Base64$(File.Load(sTemp)) > Print "Decrypted data:";; Cipher["BF-CBC"].DecryptSalted(File.Load(sTemp), "passphrase") > > Print "Wrongly decrypted data:";; Cipher["BF-CBC"].DecryptSalted(File.Load(sTemp), "Passphrase") > > End > > Original data: 05/25/2018 10:58:45.768 > Encrypted data: U2FsdGVkX19zYWx0AAAAAEQ8/7vYGZRMqEpmhf7SssiQJkBlcT4tmw== > Decrypted data: 05/25/2018 10:58:45.768 > ' Last line raises an error because the password is wrong > > Note that the encrypted data is base64 encoded because it is binary > gibberish that you don't want to print to a terminal. > > Indexing the Cipher class with a cipher method (here "BF-CBC") gives you > an object, which you can use to encrypt and decrypt arbitrary strings. > The Cipher.List property gives you a list of all ciphers available from > the openssl crypto library on your system. > > Regards, > Tobi > Just a remark: you have first to decide whether you want symmetric or asymmetric encryption. By the way: I have just upgraded to Ubuntu 18.10, and now compiling gb.openssl complains about deprecated functions. Regards, -- Beno?t Minisini From taboege at gmail.com Fri May 25 13:56:04 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 25 May 2018 13:56:04 +0200 Subject: [Gambas-user] Crypting single files In-Reply-To: <2237428e-894c-b3c5-44d4-c5d987111d48@gmail.com> References: <20180525110552.GD27874@highrise.localdomain> <2237428e-894c-b3c5-44d4-c5d987111d48@gmail.com> Message-ID: <20180525115604.GE27874@highrise.localdomain> On Fri, 25 May 2018, Beno?t Minisini wrote: > Le 25/05/2018 ? 13:05, Tobias Boege a ?crit?: > > On Fri, 25 May 2018, Rolf-Werner Eilert wrote: > > > There is a gb.crypt component, but it is meant to encrypt passwords only. > > > > > > Is there a component that has some easy-to-handle functions to encrypt > > > files? > > > > > > Or if not, how do you handle this? > > > > > > > gb.openssl does this. Example: > > > > Public Sub Main() > > > > Dim sTemp As String = Temp$() > > > > File.Save(sTemp, CStr(Now)) > > Print "Original data:";; File.Load(sTemp) > > > > File.Save(sTemp, Cipher["BF-CBC"].EncryptSalted(File.Load(sTemp), "passphrase", "salt")) > > > > Print "Encrypted data:";; Base64$(File.Load(sTemp)) > > Print "Decrypted data:";; Cipher["BF-CBC"].DecryptSalted(File.Load(sTemp), "passphrase") > > > > Print "Wrongly decrypted data:";; Cipher["BF-CBC"].DecryptSalted(File.Load(sTemp), "Passphrase") > > > > End > > > > Original data: 05/25/2018 10:58:45.768 > > Encrypted data: U2FsdGVkX19zYWx0AAAAAEQ8/7vYGZRMqEpmhf7SssiQJkBlcT4tmw== > > Decrypted data: 05/25/2018 10:58:45.768 > > ' Last line raises an error because the password is wrong > > > > Note that the encrypted data is base64 encoded because it is binary > > gibberish that you don't want to print to a terminal. > > > > Indexing the Cipher class with a cipher method (here "BF-CBC") gives you > > an object, which you can use to encrypt and decrypt arbitrary strings. > > The Cipher.List property gives you a list of all ciphers available from > > the openssl crypto library on your system. > > > > Regards, > > Tobi > > > > Just a remark: you have first to decide whether you want symmetric or > asymmetric encryption. > To make the decision easier: gb.openssl has only symmetric encryption right now. But yes, if you want asymmetric encryption, you should shell out to the `openssl` or `gpg` utilities. For another project, I'll soon, as time allows, be looking into asymmetric encryption with OpenSSL. If that bears fruit, I'll add it to gb.openssl as well. > By the way: I have just upgraded to Ubuntu 18.10, and now compiling > gb.openssl complains about deprecated functions. > How many? I'm running 1.1.0h (27 Mar 2018) and I only get complaints about two uses of RAND_pseudo_bytes. But I'm away over the weekend and can't take a look. (Ceterum censeo... I would also be reluctant to, because a function deprecated in >= 1.1.0 is guaranteed to be required by that Frankenssl from PICCORO's 1980s Debian.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Fri May 25 14:03:02 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 25 May 2018 14:03:02 +0200 Subject: [Gambas-user] Crypting single files In-Reply-To: <20180525115604.GE27874@highrise.localdomain> References: <20180525110552.GD27874@highrise.localdomain> <2237428e-894c-b3c5-44d4-c5d987111d48@gmail.com> <20180525115604.GE27874@highrise.localdomain> Message-ID: Le 25/05/2018 ? 13:56, Tobias Boege a ?crit?: >> By the way: I have just upgraded to Ubuntu 18.10, and now compiling >> gb.openssl complains about deprecated functions. >> > > How many? I'm running 1.1.0h (27 Mar 2018) and I only get complaints > about two uses of RAND_pseudo_bytes. But I'm away over the weekend > and can't take a look. (Ceterum censeo... I would also be reluctant to, > because a function deprecated in >= 1.1.0 is guaranteed to be required > by that Frankenssl from PICCORO's 1980s Debian.) > > Regards, > Tobi > Yes, that's it (gcc 7.3.0). I just told in case you didn't see them. -- Beno?t Minisini From t.lee.davidson at gmail.com Fri May 25 14:07:29 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 25 May 2018 08:07:29 -0400 Subject: [Gambas-user] DataBrowser (gb.db.form) Events In-Reply-To: References: Message-ID: <40a85b53-5d10-5895-e1bf-532692660781@gmail.com> I don't believe it's possible to catch events on the individual buttons of the toolbar in a DataBrowser. The events that are raised are listed at http://gambaswiki.org/wiki/comp/gb.db.form/databrowser If you need to catch events on individual functions/buttons, then you should use a DataViewer in conjunction with discrete buttons (that you place on your form) that will have their own events. -- Lee On 05/24/2018 09:36 AM, M Be wrote: > How can I catch one the events when storing or deleting data if I click the corresponding button of the control? > > Thank you > Ingo > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From taboege at gmail.com Fri May 25 14:16:33 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 25 May 2018 14:16:33 +0200 Subject: [Gambas-user] Receiving my own mail Message-ID: <20180525121633.GF27874@highrise.localdomain> Hi, since yesterday(?) I don't seem to receive my own mails to the mailing list anymore. The corresponding option in my settings says that I *do* want to receive copies of mails I send. They also don't arrive in spam and are not sorted into some other mailbox. I have received other peoples' replies to my mail but not my messages themselves and they do appear in the user archive. Does this happen to anyone else? Figured I'll ask because there was at least some change to the Mailman recently, even if it was just a new list added. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri May 25 14:28:51 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 08:28:51 -0400 Subject: [Gambas-user] New mailing-list for bugtracker notifications In-Reply-To: References: <05e2f816-02cb-faf7-529a-148c154f26ad@deganius.de> <6bbab361-8133-70b0-fc68-ea429ec7ecda@deganius.de> Message-ID: 2018-05-25 1:38 GMT-04:00 Christof Thalhofer : > No. Because I am member in a lot of mailinglists and this was the only > one that had the problem (in my eyes) that it mixed (half-)automated > output with talk between people. > > You will see, it will be much cleaner now. > it's not the list, i have a lot of more and same problem but due filters, same problem in the roundcube filters for some list.. that worked in others like mail.ru very strange.. but well with list separation now are good > What?! You rant about Winbuntu and then recommend Gmail??? > ;-) > i hate gmail but have a problem: mail.ru dont receibe mail from gmail and some people (that uses google app platform) that send mail to me never see it that mails.. so i make redirections using the thunderbird.. > > Gmail doesn't even seem to be able to quote correctly ... > gmail quote correctly just need more configuration from some labs that are not freely available > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri May 25 14:31:32 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 25 May 2018 14:31:32 +0200 Subject: [Gambas-user] Receiving my own mail In-Reply-To: <20180525121633.GF27874@highrise.localdomain> References: <20180525121633.GF27874@highrise.localdomain> Message-ID: Am 25.05.2018 um 14:16 schrieb Tobias Boege: > Hi, > > since yesterday(?) I don't seem to receive my own mails to the mailing > list anymore. The corresponding option in my settings says that I *do* > want to receive copies of mails I send. They also don't arrive in spam > and are not sorted into some other mailbox. I have received other peoples' > replies to my mail but not my messages themselves and they do appear > in the user archive. > > Does this happen to anyone else? Figured I'll ask because there was > at least some change to the Mailman recently, even if it was just a > new list added. > > Regards, > Tobi > I saw this phenomenon on some other list recently, but nobody really seemed to know how to fix it. I know this can drive you nuts. Gr??e Rolf From mckaygerhard at gmail.com Fri May 25 14:32:50 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 08:32:50 -0400 Subject: [Gambas-user] Receiving my own mail In-Reply-To: References: <20180525121633.GF27874@highrise.localdomain> Message-ID: 2018-05-25 8:31 GMT-04:00 Rolf-Werner Eilert : > Am 25.05.2018 um 14:16 schrieb Tobias Boege: > >> Hi, >> >> since yesterday(?) I don't seem to receive my own mails to the mailing >> list anymore. The corresponding option in my settings says that I *do* >> want to receive copies of mails I send. They also don't arrive in spam >> and are not sorted into some other mailbox. I have received other peoples' >> replies to my mail but not my messages themselves and they do appear >> in the user archive. >> > are you using a desktop mail client? i remenber that this happened with thunderbird! > >> Does this happen to anyone else? Figured I'll ask because there was >> at least some change to the Mailman recently, even if it was just a >> new list added. >> >> Regards, >> Tobi >> >> > I saw this phenomenon on some other list recently, but nobody really > seemed to know how to fix it. I know this can drive you nuts. > > Gr??e > Rolf > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 25 14:37:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 08:37:21 -0400 Subject: [Gambas-user] Receiving events on an array of process objects In-Reply-To: <20180525102709.GC27874@highrise.localdomain> References: <20180525102709.GC27874@highrise.localdomain> Message-ID: 2018-05-25 6:27 GMT-04:00 Tobias Boege : > By creating many different processes with the same event name, you can > treat > events of many objects with a single event handler. The special variable > LAST > is used during event handlers to indicate which Process raised the event. > HI tobi, thuis are very interesting to.. gambas run in one unique threath right? but from that, if we created more proceses under same name this are equivalent of the java group threathing? i mean group of threaths? under that main process (the gambas code that invoke the other proceses) > > So, did you try the code you posted above? It should do exactly what you > want (that's at least the best interpretation I can think of for "receiving > events from an array of Process objects"). Assuming of course, that you > have declared event handlers Public Sub myProcess_Read() and such. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/doc/object-model > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri May 25 14:46:34 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 25 May 2018 14:46:34 +0200 Subject: [Gambas-user] Receiving my own mail In-Reply-To: References: <20180525121633.GF27874@highrise.localdomain> Message-ID: <20180525124634.GG27874@highrise.localdomain> On Fri, 25 May 2018, PICCORO McKAY Lenz wrote: > 2018-05-25 8:31 GMT-04:00 Rolf-Werner Eilert : > > > Am 25.05.2018 um 14:16 schrieb Tobias Boege: > > > >> Hi, > >> > >> since yesterday(?) I don't seem to receive my own mails to the mailing > >> list anymore. The corresponding option in my settings says that I *do* > >> want to receive copies of mails I send. They also don't arrive in spam > >> and are not sorted into some other mailbox. I have received other peoples' > >> replies to my mail but not my messages themselves and they do appear > >> in the user archive. > >> > > are you using a desktop mail client? i remenber that this happened with > thunderbird! > I'm reading mail with mutt, they are retrieved by fetchmail and sorted by procmail, but that isn't the issue. There is no trace of these mails on the IMAP server either. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri May 25 14:47:02 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 08:47:02 -0400 Subject: [Gambas-user] Crypting single files In-Reply-To: <20180525115604.GE27874@highrise.localdomain> References: <20180525110552.GD27874@highrise.localdomain> <2237428e-894c-b3c5-44d4-c5d987111d48@gmail.com> <20180525115604.GE27874@highrise.localdomain> Message-ID: 2018-05-25 7:56 GMT-04:00 Tobias Boege : > by that Frankenssl from PICCORO's 1980s Debian.) > ------> ?_?u -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 25 14:52:59 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 08:52:59 -0400 Subject: [Gambas-user] Crypting single files In-Reply-To: References: <20180525110552.GD27874@highrise.localdomain> <2237428e-894c-b3c5-44d4-c5d987111d48@gmail.com> <20180525115604.GE27874@highrise.localdomain> Message-ID: 2018-05-25 8:03 GMT-04:00 Beno?t Minisini : > Le 25/05/2018 ? 13:56, Tobias Boege a ?crit : > >> By the way: I have just upgraded to Ubuntu 18.10, and now compiling >>> gb.openssl complains about deprecated functions. >> >> > because a function deprecated in >= 1.1.0 is guaranteed to be required >>> >> by that Frankenssl from PICCORO's 1980s Debian.) >> > > Yes, that's it (gcc 7.3.0). I just told in case you didn't see them. >> > > >-( I am aware that there will come a time when I will not be able to continue to keep these equipment embedded with the latest version of prawns But you also have to bear in mind that it is illogical to spend $ 1200 on new equipment when the ones you already have work even better (very resistant to electric shocks, short cirtuits, bad user manipulation, and blows) ... ... that retain in profit agains low manteniance, a good bussines! > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri May 25 15:03:44 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 25 May 2018 15:03:44 +0200 Subject: [Gambas-user] Receiving events on an array of process objects In-Reply-To: References: <20180525102709.GC27874@highrise.localdomain> Message-ID: <20180525130344.GH27874@highrise.localdomain> On Fri, 25 May 2018, PICCORO McKAY Lenz wrote: > 2018-05-25 6:27 GMT-04:00 Tobias Boege : > > > By creating many different processes with the same event name, you can > > treat > > events of many objects with a single event handler. The special variable > > LAST > > is used during event handlers to indicate which Process raised the event. > > > > HI tobi, thuis are very interesting to.. > > gambas run in one unique threath right? > "thread", yes. > but from that, if we created more proceses under same name this are > equivalent of the java group threathing? > > i mean group of threaths? under that main process (the gambas code that > invoke the other proceses) > What really happens is that you fork() a lot of processes, which execve() the program that you specify in the EXEC instruction. Those are separate processes now whose three main file descriptors are linked into the main Gambas process via pipes (depending on whether you Exec For Read|Write). Gambas takes those file descriptors and watches them in its event loop. It is like opening multiple sockets at the same time. You get an event when any of them has data for you. If all of them have the same event name, those events happen to be raised with the same prefix. No threads are involved and there is no concurrent execution of Gambas code. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri May 25 15:00:35 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 09:00:35 -0400 Subject: [Gambas-user] Receiving events on an array of process objects In-Reply-To: <20180525130344.GH27874@highrise.localdomain> References: <20180525102709.GC27874@highrise.localdomain> <20180525130344.GH27874@highrise.localdomain> Message-ID: 2018-05-25 9:03 GMT-04:00 Tobias Boege : > What really happens is that you fork() a lot of processes, which execve() > the program that you specify in the EXEC instruction. Those are separate > processes now whose three main file descriptors are linked into the main > Gambas process via pipes (depending on whether you Exec For Read|Write). > Gambas takes those file descriptors and watches them in its event loop. > > It is like opening multiple sockets at the same time. You get an event > when any of them has data for you. If all of them have the same event > name, those events happen to be raised with the same prefix. No threads > are involved and there is no concurrent execution of Gambas code. > GRRR works like pascal or ANSI C! ok got it! > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 25 15:47:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 09:47:57 -0400 Subject: [Gambas-user] problem lto option with early version of gcc that supported but not right implementing Message-ID: i really dont understant those problems with lto i using debian jeeesie and gcc 4.9 , reading gcc.gnu.org/gcc-5/changes.html#general : "Contrary to earlier GCC releases, the optimization and target options passed on the link command line are ignored." so seems in some distributions, lto linking need pass to the ld a plugin argument, that in recent versions are not passed and dont need it! (gcc 5, 6, 7 or 8), so that's why some users here reported these error: "plugin needed to handle lto object" i think that's was the first and original problem with lto linking in gambas! so i think we need to detect the version of gcc and only enables if are gcc 6+ (not 5 due in this are still experimental) so i must reported this at bugtracker, due i got those errors when compiling with lto enabled: AR libgbx.a BFD: libgbx_a-gb_error.o: plugin needed to handle lto object BFD: libgbx_a-gbx_split.o: plugin needed to handle lto object ..... BFD: libgbx_a-gbx_exec_operator.o: plugin needed to handle lto object BFD: libgbx_a-gbx_value.o: plugin needed to handle lto object CC gb_la-gbx_c_class.lo CC gb_la-gbx_c_collection.lo ..... CC gbx3-gbx_signal.o CCLD gbx3 /tmp/cckmyMwU.ltrans0.ltrans.o: In function `add_strftime': /home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1202: undefined reference to `COMMON_get_size_left' /home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1202: undefined reference to `COMMON_get_current' /home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1203: undefined reference to `COMMON_pos' /tmp/cckmyMwU.ltrans0.ltrans.o: In function `LOCAL_format_date': /home/remoto/dumps/gambas3-3.11.3/main/gbx/gbx_local.c:1424: undefined reference to `COMMON_strncasecmp' /tmp/cckmyMwU.ltrans0.ltrans.o: In function `begin': Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From softwaredevelopment at smartsonsite.com Fri May 25 16:14:29 2018 From: softwaredevelopment at smartsonsite.com (Stephen Bungay) Date: Fri, 25 May 2018 10:14:29 -0400 Subject: [Gambas-user] Tab size of 1 space is not working as expected... Message-ID: <38cc020c-dafa-827f-1626-659782438ba3@smartsonsite.com> ? Hi Benoit ? Just confirming that the above referenced subject definetly has been fixed in 3.11. Thanks for your time. Now about that console window... From bm.530502 at gmail.com Fri May 25 20:35:02 2018 From: bm.530502 at gmail.com (M Be) Date: Fri, 25 May 2018 20:35:02 +0200 Subject: [Gambas-user] DataBrowser (gb.db.form) Events In-Reply-To: <40a85b53-5d10-5895-e1bf-532692660781@gmail.com> References: <40a85b53-5d10-5895-e1bf-532692660781@gmail.com> Message-ID: Hi Lee, thank you. That's a pity :-( Regards Ingo 2018-05-25 14:07 GMT+02:00 T Lee Davidson : > I don't believe it's possible to catch events on the individual buttons of > the toolbar in a DataBrowser. The events that are > raised are listed at http://gambaswiki.org/wiki/ > comp/gb.db.form/databrowser > > If you need to catch events on individual functions/buttons, then you > should use a DataViewer in conjunction with discrete > buttons (that you place on your form) that will have their own events. > > > -- > Lee > > > On 05/24/2018 09:36 AM, M Be wrote: > > How can I catch one the events when storing or deleting data if I click > the corresponding button of the control? > > > > Thank you > > Ingo > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjbonovox at gmail.com Fri May 25 20:40:31 2018 From: pjbonovox at gmail.com (pjbonovox at gmail.com) Date: Fri, 25 May 2018 11:40:31 -0700 Subject: [Gambas-user] Receiving events on an array of process objects In-Reply-To: <20180525102709.GC27874@highrise.localdomain> Message-ID: Perfect, thanks for the explanation of how this process naming works. I presumed that because the 'myProcess' object went out of scope when I left the subroutine, that I'd need to reference it via the parent array. Have tested events now using myProcess and they work as expected. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mb at code-it.com Fri May 25 21:20:43 2018 From: mb at code-it.com (mikeb) Date: Fri, 25 May 2018 13:20:43 -0600 Subject: [Gambas-user] a comment and a question... Message-ID: <20180525132043.7a58aeaf@codeit> eGreetings Gambas folks. A comment and a Question... Comment **************************************** I want to pass on a BIG "that a boy" to all that contributed to the v11 updates. Most all the emails and posts went way beyond my head but it showed how much work goes into keeping things afloat. I am advising all my folowers (or folks that download a Gambas developed app from me - in v10 or v11) to run these three terminal commands BEFORE installing any of my Gambas developed apps: sudo add-apt-repository ppa:gambas-team/gambas3 sudo apt-get update sudo apt install gambas3-runtime I also instruct that they will only have to do this once. So far - this seems to be working and does'nt seem to be too much to ask of the end user. If anyone has a better suggestion on how to distribute Gambas developed software to the "Just swithed to Linux - now show me what it can do" crowd - please advise? a Question ****************************************** When using the "Make Install Package" I always select to use "General Public License". The Install package is generated and works just fine (have only tested with Linux Mint and Ubuntu) but displays that licence is "Priority". This started occuring with v.11. Am I doing something wrong or is it a bug? Thanks to all and have a GREAT day. mikeB From mckaygerhard at gmail.com Fri May 25 21:46:24 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 15:46:24 -0400 Subject: [Gambas-user] a comment and a question... In-Reply-To: <20180525132043.7a58aeaf@codeit> References: <20180525132043.7a58aeaf@codeit> Message-ID: too much complication just download a ready to use ISO/USB image do the trick, i'll will introduce it this week end ot solve that problem..a "that's enought" end point! if not i understant that "end user" are only usage related, no "administrative task" related, a worng concept introduced by Mocosoft ruindows of bill so linux users must known if want ot do administrative things.. of course we always start from novice, but for that there's instructions and must be done.. ther's no muscule gain without a pain.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-25 15:20 GMT-04:00 mikeb : > eGreetings Gambas folks. > A comment and a Question... > Comment **************************************** > I want to pass on a BIG "that a boy" to all that > contributed to the v11 updates. Most all the emails > and posts went way beyond my head but it showed how > much work goes into keeping things afloat. > > I am advising all my folowers (or folks that download > a Gambas developed app from me - in v10 or v11) > to run these three terminal commands BEFORE installing > any of my Gambas developed apps: > > sudo add-apt-repository ppa:gambas-team/gambas3 > sudo apt-get update > sudo apt install gambas3-runtime > > I also instruct that they will only have to do this once. > > So far - this seems to be working and does'nt seem to > be too much to ask of the end user. If anyone has a better > suggestion on how to distribute Gambas developed software > to the "Just swithed to Linux - now show me what it can do" > crowd - please advise? > > a Question ****************************************** > When using the "Make Install Package" I always select > to use "General Public License". > The Install package is generated and works just fine > (have only tested with Linux Mint and Ubuntu) but displays > that licence is "Priority". This started occuring with v.11. > Am I doing something wrong or is it a bug? > > Thanks to all and have a GREAT day. > mikeB > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 25 21:49:03 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 15:49:03 -0400 Subject: [Gambas-user] a comment and a question... In-Reply-To: <20180525132043.7a58aeaf@codeit> References: <20180525132043.7a58aeaf@codeit> Message-ID: 2018-05-25 15:20 GMT-04:00 mikeb : > to use "General Public License". > The Install package is generated and works just fine > (have only tested with Linux Mint and Ubuntu) but displays > that licence is "Priority". This started occuring with v.11. > Am I doing something wrong or is it a bug? > license are always need, with 3.11 now can be warned the user (administrative or end-user) witout a license (in legal aspect) we cannot determine behaviour usage of a piece or artifac > > Thanks to all and have a GREAT day. > mikeB > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 25 22:33:45 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 16:33:45 -0400 Subject: [Gambas-user] SQL NULL vs empty when difference not when insert Message-ID: i see in the wiki data mapping that Gambas always stores NULL in the database, never a void string, so i ask if analoges and contray of the wiki example can work too or are differend, i mean: For example, this can work: SELECT * FROM table WHERE name <> ''; Take with care the "<>" ad "diference of" that are valid in DB SQL ANSI: SELECT * FROM table WHERE name <> NULL; at DBMS level, i dont think so that " name <> NULL" witll be same as "name <> ''" MY QUESTION IN FACT IS: independent of how gambas store the data, if i made the query, will assume NULL and '' as same, and both querys are valid of different (comparing again null or '' but with "<>" event with "=") reding the wiki due i work with many DBMS not popular (not mysql-baby cry) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjbonovox at gmail.com Fri May 25 23:03:45 2018 From: pjbonovox at gmail.com (pjbonovox at gmail.com) Date: Fri, 25 May 2018 14:03:45 -0700 Subject: [Gambas-user] Bug with tabStrips, or user error? Message-ID: Hi all. Having an issue whereby if I reference a child of a tab, I get a segfault and the program closes. Here's an example : TabStrip1[0].Children[0].Delete The form is just a single tabstrip (tabStrip1) with a single tab (tabStrip1[0]). On that tab is a button. The behaviour I'd expect is for the button to get destroyed. Not sure if this is user error or a bug. I'm using 3.11.2 on Linux. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 25 23:15:19 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 25 May 2018 23:15:19 +0200 Subject: [Gambas-user] Bug with tabStrips, or user error? In-Reply-To: References: Message-ID: Le 25/05/2018 ? 23:03, pjbonovox at gmail.com a ?crit?: > Hi all. > > Having an issue whereby if I reference a child of a tab, I get a > segfault and the program closes. Here's an example : > > TabStrip1[0].Children[0].Delete > > > The form is just a single tabstrip (tabStrip1) with a single tab > (tabStrip1[0]). On that tab is a button. The behaviour I'd expect is for > the button to get destroyed. Not sure if this is user error or a bug. > I'm using 3.11.2 on Linux. > Please provide a small project that reproduces the crash. -- Beno?t Minisini From pjbonovox at gmail.com Fri May 25 23:30:55 2018 From: pjbonovox at gmail.com (Phil Underhill) Date: Fri, 25 May 2018 14:30:55 -0700 Subject: [Gambas-user] Bug with tabStrips, or user error? In-Reply-To: References: Message-ID: See attached. Extremely simple. On Fri, 25 May 2018 at 14:16, Beno?t Minisini wrote: > Le 25/05/2018 ? 23:03, pjbonovox at gmail.com a ?crit : > > Hi all. > > > > Having an issue whereby if I reference a child of a tab, I get a > > segfault and the program closes. Here's an example : > > > > TabStrip1[0].Children[0].Delete > > > > > > The form is just a single tabstrip (tabStrip1) with a single tab > > (tabStrip1[0]). On that tab is a button. The behaviour I'd expect is for > > the button to get destroyed. Not sure if this is user error or a bug. > > I'm using 3.11.2 on Linux. > > > > Please provide a small project that reproduces the crash. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testarea.zip Type: application/zip Size: 15043 bytes Desc: not available URL: From mckaygerhard at gmail.com Fri May 25 23:33:28 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 17:33:28 -0400 Subject: [Gambas-user] Bug with tabStrips, or user error? In-Reply-To: References: Message-ID: ZIP ? was made in gambas or by hand? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-25 17:30 GMT-04:00 Phil Underhill : > See attached. Extremely simple. > > On Fri, 25 May 2018 at 14:16, Beno?t Minisini wrote: > >> Le 25/05/2018 ? 23:03, pjbonovox at gmail.com a ?crit : >> > Hi all. >> > >> > Having an issue whereby if I reference a child of a tab, I get a >> > segfault and the program closes. Here's an example : >> > >> > TabStrip1[0].Children[0].Delete >> > >> > >> > The form is just a single tabstrip (tabStrip1) with a single tab >> > (tabStrip1[0]). On that tab is a button. The behaviour I'd expect is >> for >> > the button to get destroyed. Not sure if this is user error or a bug. >> > I'm using 3.11.2 on Linux. >> > >> >> Please provide a small project that reproduces the crash. >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 25 23:35:09 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 17:35:09 -0400 Subject: [Gambas-user] Bug with tabStrips, or user error? In-Reply-To: References: Message-ID: yeah confirmed the crash! but was a zip? maybe has garbage too! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-25 17:33 GMT-04:00 PICCORO McKAY Lenz : > ZIP ? was made in gambas or by hand? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-25 17:30 GMT-04:00 Phil Underhill : > >> See attached. Extremely simple. >> >> On Fri, 25 May 2018 at 14:16, Beno?t Minisini wrote: >> >>> Le 25/05/2018 ? 23:03, pjbonovox at gmail.com a ?crit : >>> > Hi all. >>> > >>> > Having an issue whereby if I reference a child of a tab, I get a >>> > segfault and the program closes. Here's an example : >>> > >>> > TabStrip1[0].Children[0].Delete >>> > >>> > >>> > The form is just a single tabstrip (tabStrip1) with a single tab >>> > (tabStrip1[0]). On that tab is a button. The behaviour I'd expect is >>> for >>> > the button to get destroyed. Not sure if this is user error or a bug. >>> > I'm using 3.11.2 on Linux. >>> > >>> >>> Please provide a small project that reproduces the crash. >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri May 25 23:37:07 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 25 May 2018 17:37:07 -0400 Subject: [Gambas-user] Bug with tabStrips, or user error? In-Reply-To: References: Message-ID: GOT IT! crash only in GTK2 or GTK3, QT4 works fine! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-25 17:35 GMT-04:00 PICCORO McKAY Lenz : > yeah confirmed the crash! > > but was a zip? maybe has garbage too! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-25 17:33 GMT-04:00 PICCORO McKAY Lenz : > >> ZIP ? was made in gambas or by hand? >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-05-25 17:30 GMT-04:00 Phil Underhill : >> >>> See attached. Extremely simple. >>> >>> On Fri, 25 May 2018 at 14:16, Beno?t Minisini wrote: >>> >>>> Le 25/05/2018 ? 23:03, pjbonovox at gmail.com a ?crit : >>>> > Hi all. >>>> > >>>> > Having an issue whereby if I reference a child of a tab, I get a >>>> > segfault and the program closes. Here's an example : >>>> > >>>> > TabStrip1[0].Children[0].Delete >>>> > >>>> > >>>> > The form is just a single tabstrip (tabStrip1) with a single tab >>>> > (tabStrip1[0]). On that tab is a button. The behaviour I'd expect is >>>> for >>>> > the button to get destroyed. Not sure if this is user error or a bug. >>>> > I'm using 3.11.2 on Linux. >>>> > >>>> >>>> Please provide a small project that reproduces the crash. >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjbonovox at gmail.com Fri May 25 23:46:31 2018 From: pjbonovox at gmail.com (Phil Underhill) Date: Fri, 25 May 2018 14:46:31 -0700 Subject: [Gambas-user] Bug with tabStrips, or user error? In-Reply-To: References: Message-ID: Glad you were able to recreate. I'm working in a GTK environment so that explains it. The project was created in Gambas IDE, not by hand. On Fri, 25 May 2018, 14:38 PICCORO McKAY Lenz, wrote: > GOT IT! crash only in GTK2 or GTK3, QT4 works fine! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-25 17:35 GMT-04:00 PICCORO McKAY Lenz : > >> yeah confirmed the crash! >> >> but was a zip? maybe has garbage too! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-05-25 17:33 GMT-04:00 PICCORO McKAY Lenz : >> >>> ZIP ? was made in gambas or by hand? >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-05-25 17:30 GMT-04:00 Phil Underhill : >>> >>>> See attached. Extremely simple. >>>> >>>> On Fri, 25 May 2018 at 14:16, Beno?t Minisini wrote: >>>> >>>>> Le 25/05/2018 ? 23:03, pjbonovox at gmail.com a ?crit : >>>>> > Hi all. >>>>> > >>>>> > Having an issue whereby if I reference a child of a tab, I get a >>>>> > segfault and the program closes. Here's an example : >>>>> > >>>>> > TabStrip1[0].Children[0].Delete >>>>> > >>>>> > >>>>> > The form is just a single tabstrip (tabStrip1) with a single tab >>>>> > (tabStrip1[0]). On that tab is a button. The behaviour I'd expect is >>>>> for >>>>> > the button to get destroyed. Not sure if this is user error or a >>>>> bug. >>>>> > I'm using 3.11.2 on Linux. >>>>> > >>>>> >>>>> Please provide a small project that reproduces the crash. >>>>> >>>>> -- >>>>> Beno?t Minisini >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat May 26 12:01:59 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 26 May 2018 12:01:59 +0200 Subject: [Gambas-user] Receiving my own mail In-Reply-To: <20180525124634.GG27874@highrise.localdomain> References: <20180525121633.GF27874@highrise.localdomain> <20180525124634.GG27874@highrise.localdomain> Message-ID: <5e54f9bf-40a3-c8d9-8549-0bb2c2b11125@deganius.de> Hi Tobi, Am 25.05.2018 um 14:46 schrieb Tobias Boege: > I'm reading mail with mutt, they are retrieved by fetchmail and sorted by > procmail, but that isn't the issue. There is no trace of these mails on the > IMAP server either. AFAIK there was no change on the user mailinglist, I use this reply as test. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat May 26 12:23:11 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 26 May 2018 12:23:11 +0200 Subject: [Gambas-user] Receiving my own mail In-Reply-To: <5e54f9bf-40a3-c8d9-8549-0bb2c2b11125@deganius.de> References: <20180525121633.GF27874@highrise.localdomain> <20180525124634.GG27874@highrise.localdomain> <5e54f9bf-40a3-c8d9-8549-0bb2c2b11125@deganius.de> Message-ID: Am 26.05.2018 um 12:01 schrieb Christof Thalhofer: > AFAIK there was no change on the user mailinglist, I use this reply as test. Hmm, I see my own mail. My settings on the ml-account are the same as yours. It seems to have sth to do with Gmail??? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat May 26 15:33:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 26 May 2018 15:33:44 +0200 Subject: [Gambas-user] First nuclear trial! Message-ID: ...and I won't stop because of a tweet. Here is the generated code for the curious: // Main void mmain_2(uchar n) { mmain_2_IMPL(); } static void mmain_2_IMPL() { int l0 = 0; int l1 = 0; int l2 = 0; int l3 = 0; JIT.hello(); l1 = 1; l2 = 2; static ushort s0 = 0x7C05; (PUSH_i(1),PUSH_i(l1),PUSH_t(GET_CHAR(32)),PUSH_i(l2),PUSH_t(GET_CHAR(32)),CALL_SUBR_CODE(s0)); __L14:; bool t; t = (l0 < 32); if (!t) goto __L44; l3 = (l1 + l2); static ushort s1 = 0x7C03; (PUSH_i(1),PUSH_i(l3),PUSH_t(GET_CHAR(32)),CALL_SUBR_CODE(s1)); l1 = l2; l2 = l3; l0 = (l0 + 1); goto __L14; __L44:; static ushort s2 = 0x7C02; (PUSH_i(1),PUSH_t(GET_CHAR(10)),CALL_SUBR_CODE(s2)); __RETURN: return; } -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_20180526_152922.png Type: image/png Size: 61579 bytes Desc: not available URL: From mckaygerhard at gmail.com Sat May 26 16:32:26 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 26 May 2018 10:32:26 -0400 Subject: [Gambas-user] First nuclear trial! In-Reply-To: References: Message-ID: HOLY SH**T amazing! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-26 9:33 GMT-04:00 Beno?t Minisini : > ...and I won't stop because of a tweet. > > Here is the generated code for the curious: > > // Main > > void mmain_2(uchar n) > { > mmain_2_IMPL(); > } > > static void mmain_2_IMPL() > { > int l0 = 0; > int l1 = 0; > int l2 = 0; > int l3 = 0; > > JIT.hello(); > l1 = 1; > l2 = 2; > static ushort s0 = 0x7C05; > > (PUSH_i(1),PUSH_i(l1),PUSH_t(GET_CHAR(32)),PUSH_i(l2),PUSH_t > (GET_CHAR(32)),CALL_SUBR_CODE(s0)); > __L14:; > bool t; > t = (l0 < 32); > if (!t) goto __L44; > l3 = (l1 + l2); > static ushort s1 = 0x7C03; > (PUSH_i(1),PUSH_i(l3),PUSH_t(GET_CHAR(32)),CALL_SUBR_CODE(s1)); > l1 = l2; > l2 = l3; > l0 = (l0 + 1); > goto __L14; > __L44:; > static ushort s2 = 0x7C02; > (PUSH_i(1),PUSH_t(GET_CHAR(10)),CALL_SUBR_CODE(s2)); > __RETURN: > return; > } > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat May 26 20:44:38 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 26 May 2018 21:44:38 +0300 Subject: [Gambas-user] First nuclear trial! In-Reply-To: References: Message-ID: Great! Amazing to see it already working, even when only simple code, but still! Just tell me when you need someone to test the new JIT! Jussi On Sat, May 26, 2018 at 4:33 PM, Beno?t Minisini wrote: > ...and I won't stop because of a tweet. > > Here is the generated code for the curious: > > // Main > > void mmain_2(uchar n) > { > mmain_2_IMPL(); > } > > static void mmain_2_IMPL() > { > int l0 = 0; > int l1 = 0; > int l2 = 0; > int l3 = 0; > > JIT.hello(); > l1 = 1; > l2 = 2; > static ushort s0 = 0x7C05; > > (PUSH_i(1),PUSH_i(l1),PUSH_t(GET_CHAR(32)),PUSH_i(l2),PUSH_t > (GET_CHAR(32)),CALL_SUBR_CODE(s0)); > __L14:; > bool t; > t = (l0 < 32); > if (!t) goto __L44; > l3 = (l1 + l2); > static ushort s1 = 0x7C03; > (PUSH_i(1),PUSH_i(l3),PUSH_t(GET_CHAR(32)),CALL_SUBR_CODE(s1)); > l1 = l2; > l2 = l3; > l0 = (l0 + 1); > goto __L14; > __L44:; > static ushort s2 = 0x7C02; > (PUSH_i(1),PUSH_t(GET_CHAR(10)),CALL_SUBR_CODE(s2)); > __RETURN: > return; > } > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon May 28 17:50:28 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 28 May 2018 18:50:28 +0300 Subject: [Gambas-user] test Message-ID: <20180528155028.M93397@455.co.il> This is a test In the past few days I have not received a mailing list I want to know if this is just my problem From sharon at 455.co.il Mon May 28 17:42:30 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 28 May 2018 18:42:30 +0300 Subject: [Gambas-user] test Message-ID: <20180528154048.M51571@455.co.il> This is a test In the past few days I have not received a mailing list I want to know if this is just my problem From sharon at 455.co.il Mon May 28 17:52:20 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 28 May 2018 18:52:20 +0300 Subject: [Gambas-user] test In-Reply-To: <20180528155028.M93397@455.co.il> References: <20180528155028.M93397@455.co.il> Message-ID: <20180528155133.M58672@455.co.il> Thank you and sorry The problem was on my server ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Mon, 28 May 2018 18:50:28 +0300 Subject: [Gambas-user] test > This is a test > In the past few days I have not received a mailing list > I want to know if this is just my problem > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From mckaygerhard at gmail.com Tue May 29 14:16:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 29 May 2018 08:16:01 -0400 Subject: [Gambas-user] can be connection path relative in next version? Message-ID: can be the connections at main/lib/db/gb.db/.src that handles the internal ide connections use relative paths, especially for sqlite ? appreciate the commit related to adapt to other gambas versions (if i cannot build recent) request already in bugtracker http://gambaswiki.org/bugtracker/edit?object=BUG.1334 posted here for discussion of users Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue May 29 20:51:45 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 29 May 2018 14:51:45 -0400 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: References: Message-ID: hi, log time i ask for VERSION file inside, but now with gambas 3.1.1 and 3.5.0 putting the file VERSION at the root of the project file works and when i mark "take from version file" all works as expected but with gambas 3.11 this behaviour are not working! hwere now must be the VERSION file to work!? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-21 10:34 GMT-04:00 Beno?t Minisini : > Le 21/06/2017 ? 16:03, PICCORO McKAY Lenz a ?crit : > >> in project, i just chekc project "get from VERSION file" option for >> version >> numbering, >> >> where its or where i must put this file? >> >> directly in DATA, its not getting the value! >> >> > In a parent directory of the project. > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue May 29 23:10:48 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 29 May 2018 23:10:48 +0200 Subject: [Gambas-user] Enter a name at the beginning of a list of names Message-ID: If we want to insert a name in a ListView of names we have the possibility to do it with the fourth entry of the Add(....) method. But what if we have to insert it as the first name? Do I miss some other method? Do you have any better ideas than the one in my attached project? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestInsert-0.0.1.tar.gz Type: application/gzip Size: 12029 bytes Desc: not available URL: From hans at gambas-buch.de Wed May 30 08:02:31 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 30 May 2018 08:02:31 +0200 Subject: [Gambas-user] Enter a name at the beginning of a list of names In-Reply-To: References: Message-ID: Hello Gianluigi, You are welcome to look into the project on http://www.gambas-book.net/doku.php?id=k17:k17.4:k17.4.1:start. With kind regards Honsek From mnaltrogge at web.de Wed May 30 10:52:30 2018 From: mnaltrogge at web.de (Michael N. Altrogge) Date: Wed, 30 May 2018 10:52:30 +0200 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: References: Message-ID: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> Gerardo, I have the VERSION file in the root folder of my project and it works fine with gambas 3.11 ... regards Am 29.05.2018 um 20:51 schrieb PICCORO McKAY Lenz: > hi, log time i ask for VERSION file inside, but now with gambas 3.1.1 > and 3.5.0 putting the file VERSION at the root of the project file > works and when i mark "take from version file" all works as expected > > but with gambas 3.11 this behaviour are not working! > > hwere now must be the VERSION file to work!? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-21 10:34 GMT-04:00 Beno?t Minisini > >: > > Le 21/06/2017 ? 16:03, PICCORO McKAY Lenz a ?crit : > > in project, i just chekc project "get from VERSION file" > option for version > numbering, > > where its or where i must put this file? > > directly in DATA, its not getting the value! > > > In a parent directory of the project. > > -- > Beno?t Minisini > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 30 13:42:09 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 30 May 2018 13:42:09 +0200 Subject: [Gambas-user] Enter a name at the beginning of a list of names In-Reply-To: References: Message-ID: 2018-05-30 8:02 GMT+02:00 Hans Lehmann : > Hello Gianluigi, > You are welcome to look into the project on http://www.gambas-book.net/dok > u.php?id=k17:k17.4:k17.4.1:start. > With kind regards > > Honsek > > Hi Hans, sorry, but I see no way to add a name to the top of the list. Maybe you want to suggest me using JSONCollection instead of the array? If so, is there a particular reason? Thank you very much Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed May 30 15:33:33 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 30 May 2018 15:33:33 +0200 Subject: [Gambas-user] Enter a name at the beginning of a list of names In-Reply-To: References: Message-ID: <20180530133333.GD32407@highrise.localdomain> On Tue, 29 May 2018, Gianluigi wrote: > If we want to insert a name in a ListView of names we have the possibility > to do it with the fourth entry of the Add(....) method. > But what if we have to insert it as the first name? > Do I miss some other method? > Do you have any better ideas than the one in my attached project? > This is quicker: ListView1.Add(Key, Text).MoveFirst() but there doesn't seem to be a way to request that an item be added *before* some other item, or at the beginning. It's an asymmetric interface. (Although in the backend of ListView's implementation, there *is* a flag which lets you put elements before, not after, the given reference item). Regards, Tobi PS: Generating keys via CStr(ListView1.Count) only works as long as you never delete anything from the ListView. I often use a ListView for display purposes only and don't care about keys either. Letting the ListView generate a unique key in case the Key argument to ListView.Add() is Null is a nice task for someone's first contribution to Gambas... ;-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Wed May 30 15:44:28 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 30 May 2018 15:44:28 +0200 Subject: [Gambas-user] Receiving my own mail In-Reply-To: References: <20180525121633.GF27874@highrise.localdomain> <20180525124634.GG27874@highrise.localdomain> <5e54f9bf-40a3-c8d9-8549-0bb2c2b11125@deganius.de> Message-ID: <20180530134428.GE32407@highrise.localdomain> On Sat, 26 May 2018, Christof Thalhofer wrote: > Am 26.05.2018 um 12:01 schrieb Christof Thalhofer: > > > AFAIK there was no change on the user mailinglist, I use this reply as test. > > Hmm, I see my own mail. My settings on the ml-account are the same as yours. > > It seems to have sth to do with Gmail??? > I don't know. It looks like it was just a temporary hickup /somewhere/. These days I'm receiving them again. Thankfully you offer mbox files in the user archive. I'll take this as a programming exercise to complete my local (Maildir) archive :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Wed May 30 16:00:08 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 10:00:08 -0400 Subject: [Gambas-user] Enter a name at the beginning of a list of names In-Reply-To: <20180530133333.GD32407@highrise.localdomain> References: <20180530133333.GD32407@highrise.localdomain> Message-ID: noted that when we need a solution the list are here, but answers comes almost later.. we need something that serach engines like yandex and google can track to find common solutions the answwer of Tobias are great and very helpfull.. but comes 17 hours later, a entire day of work later Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-30 9:33 GMT-04:00 Tobias Boege : > On Tue, 29 May 2018, Gianluigi wrote: > > If we want to insert a name in a ListView of names we have the > possibility > > to do it with the fourth entry of the Add(....) method. > > But what if we have to insert it as the first name? > > Do I miss some other method? > > Do you have any better ideas than the one in my attached project? > > > > This is quicker: > > ListView1.Add(Key, Text).MoveFirst() > > but there doesn't seem to be a way to request that an item be added > *before* > some other item, or at the beginning. It's an asymmetric interface. > (Although in the backend of ListView's implementation, there *is* a flag > which lets you put elements before, not after, the given reference item). > > Regards, > Tobi > > PS: Generating keys via CStr(ListView1.Count) only works as long as you > never delete anything from the ListView. I often use a ListView for display > purposes only and don't care about keys either. Letting the ListView > generate a unique key in case the Key argument to ListView.Add() is Null > is a nice task for someone's first contribution to Gambas... ;-) > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 30 16:04:08 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 10:04:08 -0400 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> References: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> Message-ID: quite xtrange, does not take it! maybe a problem with gambas version, i'm using 3.11.3 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-30 4:52 GMT-04:00 Michael N. Altrogge : > Gerardo, > > I have the VERSION file in the root folder of my project and it works fine > with gambas 3.11 ... > > regards > > Am 29.05.2018 um 20:51 schrieb PICCORO McKAY Lenz: > > hi, log time i ask for VERSION file inside, but now with gambas 3.1.1 and > 3.5.0 putting the file VERSION at the root of the project file works and > when i mark "take from version file" all works as expected > > but with gambas 3.11 this behaviour are not working! > > hwere now must be the VERSION file to work!? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-21 10:34 GMT-04:00 Beno?t Minisini : > >> Le 21/06/2017 ? 16:03, PICCORO McKAY Lenz a ?crit : >> >>> in project, i just chekc project "get from VERSION file" option for >>> version >>> numbering, >>> >>> where its or where i must put this file? >>> >>> directly in DATA, its not getting the value! >>> >>> >> In a parent directory of the project. >> >> -- >> Beno?t Minisini >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Wed May 30 16:01:41 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 30 May 2018 15:01:41 +0100 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> References: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> Message-ID: On 30/05/18 09:52, Michael N. Altrogge wrote: > > Gerardo, > > I have the VERSION file in the root folder of my project and it works > fine with gambas 3.11 ... > > regards > > > Am 29.05.2018 um 20:51 schrieb PICCORO McKAY Lenz: >> hi, log time i ask for VERSION file inside, but now with gambas 3.1.1 >> and 3.5.0 putting the file VERSION at the root of the project file >> works and when i mark "take from version file" all works as expected >> >> but with gambas 3.11 this behaviour are not working! >> >> hwere now must be the VERSION file to work!? >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2017-06-21 10:34 GMT-04:00 Beno?t Minisini >> >: >> >> Le 21/06/2017 ? 16:03, PICCORO McKAY Lenz a ?crit : >> >> in project, i just chekc project "get from VERSION file" >> option for version >> numbering, >> >> where its or where i must put this file? >> >> directly in DATA, its not getting the value! >> >> >> In a parent directory of the project. >> >> -- >> Beno?t Minisini >> >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Try the attached. Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Version.tar.gz Type: application/gzip Size: 12071 bytes Desc: not available URL: From mckaygerhard at gmail.com Wed May 30 16:42:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 10:42:37 -0400 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: References: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> Message-ID: when i opened your project and goes to the project properties, the "check from version" are uncheked, and by example produced packages get 0.0.1 event your number version.. atached screenshot.. the only difference i think its the languaje.. maybe that are a point..? seems here are a bug? 2018-05-30 10:01 GMT-04:00 Charlie Ogier : > Try the attached. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2018-05-30 10-38-51.png Type: image/png Size: 37821 bytes Desc: not available URL: From bagonergi at gmail.com Wed May 30 17:58:42 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 30 May 2018 17:58:42 +0200 Subject: [Gambas-user] Enter a name at the beginning of a list of names In-Reply-To: <20180530133333.GD32407@highrise.localdomain> References: <20180530133333.GD32407@highrise.localdomain> Message-ID: 2018-05-30 15:33 GMT+02:00 Tobias Boege : > On Tue, 29 May 2018, Gianluigi wrote: > > If we want to insert a name in a ListView of names we have the > possibility > > to do it with the fourth entry of the Add(....) method. > > But what if we have to insert it as the first name? > > Do I miss some other method? > > Do you have any better ideas than the one in my attached project? > > > > This is quicker: > > ListView1.Add(Key, Text).MoveFirst() > > but there doesn't seem to be a way to request that an item be added > *before* > some other item, or at the beginning. It's an asymmetric interface. > (Although in the backend of ListView's implementation, there *is* a flag > which lets you put elements before, not after, the given reference item). > > Regards, > Tobi > > PS: Generating keys via CStr(ListView1.Count) only works as long as you > never delete anything from the ListView. I often use a ListView for display > purposes only and don't care about keys either. Letting the ListView > generate a unique key in case the Key argument to ListView.Add() is Null > is a nice task for someone's first contribution to Gambas... ;-) > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Hi Tobias, I thank you very much, it's exactly what I was looking for. I apologize for the inaccurate example. I have always used ListView with a database or with unique names, inserting the name both as a key and as text. Otherwise I think a counter saved at the end of the program is sufficient. Without offense to others, you are my favorite teacher :-D Regards Gianluigi PS: It would be nice to have an automatic counter. :-) > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 30 18:01:50 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 30 May 2018 18:01:50 +0200 Subject: [Gambas-user] Enter a name at the beginning of a list of names In-Reply-To: References: <20180530133333.GD32407@highrise.localdomain> Message-ID: 2018-05-30 16:00 GMT+02:00 PICCORO McKAY Lenz : > noted that when we need a solution the list are here, but answers comes > almost later.. > > we need something that serach engines like yandex and google can track to > find common solutions > > the answwer of Tobias are great and very helpfull.. but comes 17 hours > later, a entire day of work later > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > I had done an accurate research (I think), but I did not find Tobias's solution. The Tobias solutions, I are willing to wait them even a month :-) Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 30 19:04:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 13:04:05 -0400 Subject: [Gambas-user] Debian and Devuan specific packages for gambas 3.11 ready to use In-Reply-To: References: Message-ID: 2018-05-14 4:42 GMT-04:00 Dimitris Anogiatis : > Awesome job :) > > But I have a question > > According to the wiki there is a gb.qt5 component for QT5 support of Gambas > after 3.11.3 and some patcheds backported form master gambas 3.11.3 packages for debian and devuan are now available! now qt5, sdl2 are available for debian 8 and debian 9 also devuan 1 at: https://software.opensuse.org//download.html?project=home%3Avegnuli%3Agambas&package=gambas311 due *problems on wheeze and also some still bugs in 3.11.3, i backported gambas 3.10.0* *but without qt5, jit and sdl2 for wheeze and also squeeze, strech, etc inclusivelly devua*n at https://software.opensuse.org//download.html?project=home%3Avegnuli%3Agambas&package=gambas310 dependences (except for gambas3 metapackage) are fully corrected respect debian and others the wiki page for build the debian packagges will be updated soon based on those experiences > > I haven't followed packaging practices for a long time... has that > component been > replaced by something else because I don't see it on your list of packages. > > > On Sun, May 13, 2018 at 5:26 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> >> Venenux For gambas 3.11 to Debian 8, 9, and Devuan 1 and 2 respectivelly >> >> https://software.opensuse.org//download.html?project=home%3A >> vegnuli%3Agambas&package=gambas3 >> >> Devuan 1 (jessie) are same as Debian 8 (jessie) (same as Venenux 1.0) >> >> Devuan 2 (ascii) are same as Debian 9 (strecht) (same as Venenux 2.0) >> >> Debian 7 has no packages yet due some problems with dependences.. >> >> JIT module are disable ddue some problems but will be enabled in future >> >> >> must unninstall all the gambas debian original 3.9 or 3.5 package before >> install them >> this due stil need correct depends beetween newer >> >> no more Windo-like-buntu PPA! yeah! >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 30 19:26:28 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 13:26:28 -0400 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: References: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> Message-ID: i'll report as a bug, tested with gambas 3.8.0 and works perfect, with 3.11.3 does not work with 3.10.0 detect but when package loads and try to generate a source tarball the version number are not get from file Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-30 10:42 GMT-04:00 PICCORO McKAY Lenz : > when i opened your project and goes to the project properties, the "check > from version" are uncheked, and by example produced packages get 0.0.1 > event your number version.. > > atached screenshot.. > > the only difference i think its the languaje.. maybe that are a point..? > seems here are a bug? > > 2018-05-30 10:01 GMT-04:00 Charlie Ogier : > >> Try the attached. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 30 20:37:38 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 14:37:38 -0400 Subject: [Gambas-user] donot permit another instance of my program Message-ID: ok taking in consideration that gambas its not multi-thread how can i avoid second instance of my program.. in another case, how can i take care of that, if i manage settings file? seems if the file are access by two instacens a lock may cause corruption of data a good example would be great Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 30 22:06:31 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 30 May 2018 22:06:31 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: 2018-05-30 20:37 GMT+02:00 PICCORO McKAY Lenz : > ok taking in consideration that gambas its not multi-thread > > how can i avoid second instance of my program.. > > in another case, how can i take care of that, if i manage settings file? > seHelpBuilder checks if an instance of the program is already open and asks the user. You can see them. I do not know if it can help you. > seems if the file are access by two instacens a lock may cause corruption > of data > > a good example would be great > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 30 22:07:58 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 16:07:58 -0400 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: great! thanks , now checking my copy of sehelpbuilder Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-30 16:06 GMT-04:00 Gianluigi : > > > 2018-05-30 20:37 GMT+02:00 PICCORO McKAY Lenz : > >> ok taking in consideration that gambas its not multi-thread >> >> how can i avoid second instance of my program.. >> >> in another case, how can i take care of that, if i manage settings file? >> > > seHelpBuilder checks if an instance of the program is already open and > asks the user. > You can see them. > I do not know if it can help you. > > >> seems if the file are access by two instacens a lock may cause corruption >> of data >> >> a good example would be great >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed May 30 22:21:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 16:21:15 -0400 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: errr Gianluigi that does not are usefully for me! the sehelpbuilder only check if the current main window are instanciates and present.. not if the hole program are running per se! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-30 16:07 GMT-04:00 PICCORO McKAY Lenz : > great! thanks , now checking my copy of sehelpbuilder > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-30 16:06 GMT-04:00 Gianluigi : > >> >> >> 2018-05-30 20:37 GMT+02:00 PICCORO McKAY Lenz : >> >>> ok taking in consideration that gambas its not multi-thread >>> >>> how can i avoid second instance of my program.. >>> >>> in another case, how can i take care of that, if i manage settings file? >>> >> >> seHelpBuilder checks if an instance of the program is already open and >> asks the user. >> You can see them. >> I do not know if it can help you. >> >> >>> seems if the file are access by two instacens a lock may cause >>> corruption of data >>> >>> a good example would be great >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 30 23:11:20 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 30 May 2018 23:11:20 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: Look here, good night https://lists.gambas-basic.org/pipermail/user/2012-November/041904.html 2018-05-30 22:21 GMT+02:00 PICCORO McKAY Lenz : > errr Gianluigi that does not are usefully for me! the sehelpbuilder only > check if the current main window are instanciates and present.. not if the > hole program are running per se! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-30 16:07 GMT-04:00 PICCORO McKAY Lenz : > >> great! thanks , now checking my copy of sehelpbuilder >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-05-30 16:06 GMT-04:00 Gianluigi : >> >>> >>> >>> 2018-05-30 20:37 GMT+02:00 PICCORO McKAY Lenz : >>> >>>> ok taking in consideration that gambas its not multi-thread >>>> >>>> how can i avoid second instance of my program.. >>>> >>>> in another case, how can i take care of that, if i manage settings file? >>>> >>> >>> seHelpBuilder checks if an instance of the program is already open and >>> asks the user. >>> You can see them. >>> I do not know if it can help you. >>> >>> >>>> seems if the file are access by two instacens a lock may cause >>>> corruption of data >>>> >>>> a good example would be great >>>> >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed May 30 23:38:47 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 31 May 2018 00:38:47 +0300 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: This problem has nothing to do with multi-threading of Gambas. Anyway, you can solve your problem this way: When your program starts, check if there is "lock" file written. No --> Write a file with the programs pid number on it. Yes --> Check if there exist program with the given pid number. No --> Replace the pid number of the current instance. Yes --> Exit. This way you can ensure there is only one instance at the time. However, if this should apply per system (instead of per user), you need to write the lock file with root permissions. And thus in that case, it may not be good solution. This is also one solution, which I use: Exec ["pgrep", "-fl", "YourProgram.gambas"] Wait To sOutput If Split(Trim$(sOutput), gb.NewLine).Count > 1 Then Message.Error("Only one instance allowed!") Quit Endif Jussi On Wed, May 30, 2018 at 9:37 PM, PICCORO McKAY Lenz wrote: > ok taking in consideration that gambas its not multi-thread > > how can i avoid second instance of my program.. > > in another case, how can i take care of that, if i manage settings file? > > seems if the file are access by two instacens a lock may cause corruption > of data > > a good example would be great > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 31 02:33:33 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 30 May 2018 20:33:33 -0400 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: ok thanks to started point, seems the exec must be more elaborate i manage with: ps -lxa | grep " & nameproc & " | sed 's/ */ /g' | cut -d' ' -f3,13,14,15 by example the gambas named program its really executed by gbr so i must filter by the arguments... thanks to both now i detect property the already running program.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-30 17:38 GMT-04:00 Jussi Lahtinen : > This problem has nothing to do with multi-threading of Gambas. > > Anyway, you can solve your problem this way: > > When your program starts, check if there is "lock" file written. > > No --> Write a file with the programs pid number on it. > Yes --> Check if there exist program with the given pid number. > No --> Replace the pid number of the current instance. > Yes --> Exit. > > This way you can ensure there is only one instance at the time. However, > if this should apply per system (instead of per user), you need to write > the lock file with root permissions. > And thus in that case, it may not be good solution. > > This is also one solution, which I use: > > Exec ["pgrep", "-fl", "YourProgram.gambas"] Wait To sOutput > > If Split(Trim$(sOutput), gb.NewLine).Count > 1 Then > Message.Error("Only one instance allowed!") > Quit > Endif > > > Jussi > > > > On Wed, May 30, 2018 at 9:37 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> ok taking in consideration that gambas its not multi-thread >> >> how can i avoid second instance of my program.. >> >> in another case, how can i take care of that, if i manage settings file? >> >> seems if the file are access by two instacens a lock may cause corruption >> of data >> >> a good example would be great >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu May 31 08:21:50 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 31 May 2018 08:21:50 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: Am 30.05.2018 um 20:37 schrieb PICCORO McKAY Lenz: > ok taking in consideration that gambas its not multi-thread > > how can i avoid second instance of my program.. > > in another case, how can i take care of that, if i manage settings file? > > seems if the file are access by two instacens a lock may cause > corruption of data > > a good example would be great > What I use is this. My program name is "Kartei8.gambas": Public Sub Form_Open() Dim sOutput As String 'Schutz vor doppeltem Start - von Jussi Lahtinen Exec ["pgrep", "-f", "-l", "-u", System.User.Name, "Kartei8.gambas"] Wait To sOutput If Split(Trim$(sOutput), gb.NewLine).Count > 1 Then Quit Endif Hope it helps! Regards Rolf From hans at gambas-buch.de Thu May 31 11:57:35 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 31 May 2018 11:57:35 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> Hello, the given solutions both have a small hook. The 'pgrep' program is not installed by default on all systems. The variant with the look file runs empty if the program crashes at runtime and the created look file can no longer be deleted. The presented variant does not require much effort and works well to reliably prevent a second program start. FMain.class ' Gambas class file Public hObject As DBO ' D-Bus-Object Public Sub _new() ? Dim sMessage As String ? DBus.Unique = True ? hObject = New DBO ? Try DBus.Session.Register(hObject, "/Export1") ? If Error Then ???? sMessage = Subst("&1 '&2' &3", ("The program"), Application.Name, ("has already been started!")) ???? Message.Warning(sMessage) ???? Me.Close() ? Endif End Public Sub Form_Open() ? FMain.Resizable = False End Public Sub Form_Close() ? If DBus.IsRegistered(hObject) Then DBus.Session.Unregister(hObject) ? Me.Close() End ------------------------------------------------------------------------ DBO.class ' Gambas class file Inherits DBusObject Create Static ' The class can remain empty from here on... ------------------------------------------------------------------------ With kind regards Hans www.gambas-book.net -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gphablcjfgkgmiid.png Type: image/png Size: 13835 bytes Desc: not available URL: From hans at gambas-buch.de Thu May 31 12:08:43 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 31 May 2018 12:08:43 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: Message-ID: <9e0e9389-dfce-c6d0-a5bb-67b758037951@gambas-buch.de> Hello. Supplement: This solution is suitable for the variant with the lock file: Static Public Sub Application_Error() ? If Exist(Application.Path &/ ".lock.file") Then Kill Application.Path &/ ".lock.file" ? Wait End Hans From mckaygerhard at gmail.com Thu May 31 15:59:39 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 31 May 2018 09:59:39 -0400 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> References: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> Message-ID: Hans, the dbus interface are not a default neither! specially if my program its a daemon in a efficient linux and not a stupid systemd windo-like-redhat linux Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-31 5:57 GMT-04:00 Hans Lehmann : > Hello, > > the given solutions both have a small hook. The 'pgrep' program is not > installed by default on all systems. The variant with the look file runs > empty if the program crashes at runtime and the created look file can no > longer be deleted. The presented variant does not require much effort and > works well to reliably prevent a second program start. > > FMain.class > > ' Gambas class file > > Public hObject As DBO ' D-Bus-Object > > Public Sub _new() > > Dim sMessage As String > DBus.Unique = True > > hObject = New DBO > Try DBus.Session.Register(hObject, "/Export1") > If Error Then > sMessage = Subst("&1 '&2' &3", ("The program"), Application.Name, > ("has already been started!")) > Message.Warning(sMessage) > Me.Close() > Endif > > End > > Public Sub Form_Open() > FMain.Resizable = False > End > > Public Sub Form_Close() > If DBus.IsRegistered(hObject) Then DBus.Session.Unregister(hObject) > Me.Close() > End > > ------------------------------ > > DBO.class > > ' Gambas class file > > Inherits DBusObject > Create Static > > ' The class can remain empty from here on... > > ------------------------------ > > > > With kind regards > > Hans > www.gambas-book.net > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu May 31 16:49:43 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 31 May 2018 16:49:43 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> Message-ID: <01aa4ef8-cfa7-47db-fe50-a219ebb86fb5@osnanet.de> Piccoro, you are right, a complete solution would then - check for dbus, and if it isn't there: - check for pgrep, and if it isn't there: - use a lock file Regards Rolf Am 31.05.2018 um 15:59 schrieb PICCORO McKAY Lenz: > Hans, the dbus interface are not a default neither! specially if my > program its a daemon in a efficient linux and not a stupid systemd > windo-like-redhat linux > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-31 5:57 GMT-04:00 Hans Lehmann >: > > Hello, > > the given solutions both have a small hook. The 'pgrep' program is > not installed by default on all systems. The variant with the look > file runs empty if the program crashes at runtime and the created > look file can no longer be deleted. The presented variant does not > require much effort and works well to reliably prevent a second > program start. > > FMain.class > > ' Gambas class file > > Public hObject As DBO ' D-Bus-Object > > Public Sub _new() > > ? Dim sMessage As String > ? DBus.Unique = True > > ? hObject = New DBO > ? Try DBus.Session.Register(hObject, "/Export1") > ? If Error Then > ???? sMessage = Subst("&1 '&2' &3", ("The program"), > Application.Name, ("has already been started!")) > ???? Message.Warning(sMessage) > ???? Me.Close() > ? Endif > > End > > Public Sub Form_Open() > ? FMain.Resizable = False > End > > Public Sub Form_Close() > ? If DBus.IsRegistered(hObject) Then DBus.Session.Unregister(hObject) > ? Me.Close() > End > > ------------------------------------------------------------------------ > > DBO.class > > ' Gambas class file > > Inherits DBusObject > Create Static > > ' The class can remain empty from here on... > > ------------------------------------------------------------------------ > > > > With kind regards > > Hans > www.gambas-book.net > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From taboege at gmail.com Thu May 31 18:13:38 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 31 May 2018 18:13:38 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: <01aa4ef8-cfa7-47db-fe50-a219ebb86fb5@osnanet.de> References: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> <01aa4ef8-cfa7-47db-fe50-a219ebb86fb5@osnanet.de> Message-ID: <20180531161338.GA820@highrise.localdomain> On Thu, 31 May 2018, Rolf-Werner Eilert wrote: > Piccoro, you are right, a complete solution would then > > - check for dbus, and if it isn't there: > - check for pgrep, and if it isn't there: > - use a lock file > I don't know anything about dbus. In that case I shouldn't say this, but: it looks like overhead for this task, even if it's just conceptual overhead. I'm elaborating on the latter two fallbacks a bit here. pgrep not being installed isn't a huge problem. If you wanted, you could rewrite it in a few lines of Gambas -- if you assume your target is a Linux system. My problem with pgrep is that you have to essentially hard-code the name of your program into its code. Using Application.Name is slightly better from a maintenance point of view, but still prevents the user from renaming your .gambas executable or executing it using alternate names or symlinks. If you want to go into /proc//cmdline, to find out what Gambas project really runs, you'll quickly find yourself resolving symlinks and comparing checksums, for instance, and what about two different versions of your project which exist on the same machine? It just isn't a robust solution in the face of things that a user could realistically want to do. I like a lock file much more. Not only is it available on any POSIX system, but you don't actually have to worry about application crashes (not even the ones Application_Error can't save you from). Gambas' LOCK and UNLOCK instructions use the lockf() interface, which provides an exclusive lock managed by the kernel. If your process dies, the lock will be automatically released from higher up, without you doing anything. Play around with the attached project, start it as two processes A and B and in particular convince yourself that: * if A is running and has the lock, B will fail to acquire the lock after trying for 2 seconds, * if A terminates, it will release the lock and if B is started afterwards, it will succeed acquiring the lock, * if A is running and has the lock, start B and within 2 seconds hit Ctrl+C in the terminal running A. The installed signal handler will make process A crash hard with a segfault (which is not recoverable via Application_Error). Gambas has no chance to release the lock itself, but instead the kernel releases the lock while tidying up process A, and B succeeds to acquire the lock as soon as that has happened! I would advise that you read the manpage for lockf() though. It mentions that the lock is released as soon as *any* file descriptor of a process holding the lock is closed. This means that you *could* lock the file twice (this is allowed by lockf) and lose your lock when the first stream object representing your lock in Gambas goes out of scope -- even though your process is still running. I don't think that will usually happen, but still good to know. Also note that locks aren't inherited by child processes, e.g. when you Shell, Exec or Task. Sadly, LOCK and UNLOCK relying on lockf() are an implementation detail, so this kind of stuff is missing from the documentation. Finally, some standalone daemons like fetchmail use a combined approach: when the daemon is starting, it writes its PID into a special file like $HOME/.fetchmail.pid, possibly also putting a lock on that file. Writing the PID directly into a predetermined file avoids all the complications of using pgrep. Furthermore, a new instance of your program can read the PID file, determine if the process is still alive by probing the lock and then send commands or a "wake up" signal to the daemon. For example, if I run `fetchmail` and it detects that fetchmail already runs in daemon mode (by examining $HOME/.fetchmail.pid), the newer fetchmail will not just terminate, it will tell the fetchmail daemon that I want it to fetch my mail *now* and not on the next regular cycle. You can also use that as a limited crash detection. If you write your application so that it removes the lock file upon normal exit, and you at some point detect that the lock file exists without being locked, your program has likely crashed. Vim, for example, informs you about this kind of stuff and offers to attempt to recover files, abort starting or tidy up for you. My point is: if you don't need fancy DBUS-IPC capabilities, reconsider if a lock file should really be the last fallback on your list, and not the default implementation. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: locktest-0.0.1.tar.gz Type: application/gzip Size: 11342 bytes Desc: not available URL: From mckaygerhard at gmail.com Thu May 31 18:14:34 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 31 May 2018 12:14:34 -0400 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: <20180531161338.GA820@highrise.localdomain> References: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> <01aa4ef8-cfa7-47db-fe50-a219ebb86fb5@osnanet.de> <20180531161338.GA820@highrise.localdomain> Message-ID: good anwers Tobi, but also too complicated: ps -lxa | grep " & nameproc & " | sed 's/ */ /g' | cut -d' ' -f3,13,14,15 nameproc must have the first char close inside "[" "]" and that's all NOW THE PROBLEM I[TS THAT THE WIKI OFFILE IF A PAGE ARE NOT IN MY LANG DOES NOT DISPLAY ANYTHIG! the offline wiki are only usefully in english! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-31 12:13 GMT-04:00 Tobias Boege : > On Thu, 31 May 2018, Rolf-Werner Eilert wrote: > > Piccoro, you are right, a complete solution would then > > > > - check for dbus, and if it isn't there: > > - check for pgrep, and if it isn't there: > > - use a lock file > > > > I don't know anything about dbus. In that case I shouldn't say this, but: > it looks like overhead for this task, even if it's just conceptual > overhead. > I'm elaborating on the latter two fallbacks a bit here. > > pgrep not being installed isn't a huge problem. If you wanted, you > could rewrite it in a few lines of Gambas -- if you assume your target > is a Linux system. My problem with pgrep is that you have to essentially > hard-code the name of your program into its code. Using Application.Name > is slightly better from a maintenance point of view, but still prevents > the user from renaming your .gambas executable or executing it using > alternate names or symlinks. If you want to go into /proc//cmdline, > to find out what Gambas project really runs, you'll quickly find yourself > resolving symlinks and comparing checksums, for instance, and what about > two different versions of your project which exist on the same machine? > It just isn't a robust solution in the face of things that a user could > realistically want to do. > > I like a lock file much more. Not only is it available on any POSIX > system, but you don't actually have to worry about application crashes > (not even the ones Application_Error can't save you from). Gambas' > LOCK and UNLOCK instructions use the lockf() interface, which provides > an exclusive lock managed by the kernel. If your process dies, the lock > will be automatically released from higher up, without you doing anything. > > Play around with the attached project, start it as two processes A and B > and in particular convince yourself that: > > * if A is running and has the lock, B will fail to acquire the lock > after trying for 2 seconds, > * if A terminates, it will release the lock and if B is started > afterwards, it will succeed acquiring the lock, > * if A is running and has the lock, start B and within 2 seconds > hit Ctrl+C in the terminal running A. The installed signal handler > will make process A crash hard with a segfault (which is not > recoverable via Application_Error). Gambas has no chance to release > the lock itself, but instead the kernel releases the lock while > tidying up process A, and B succeeds to acquire the lock as soon > as that has happened! > > I would advise that you read the manpage for lockf() though. It mentions > that the lock is released as soon as *any* file descriptor of a process > holding the lock is closed. This means that you *could* lock the file > twice (this is allowed by lockf) and lose your lock when the first stream > object representing your lock in Gambas goes out of scope -- even though > your process is still running. I don't think that will usually happen, > but still good to know. Also note that locks aren't inherited by child > processes, e.g. when you Shell, Exec or Task. Sadly, LOCK and UNLOCK > relying on lockf() are an implementation detail, so this kind of stuff > is missing from the documentation. > > Finally, some standalone daemons like fetchmail use a combined approach: > when the daemon is starting, it writes its PID into a special file like > $HOME/.fetchmail.pid, possibly also putting a lock on that file. > Writing the PID directly into a predetermined file avoids all the > complications of using pgrep. Furthermore, a new instance of your program > can read the PID file, determine if the process is still alive by probing > the lock and then send commands or a "wake up" signal to the daemon. > For example, if I run `fetchmail` and it detects that fetchmail already > runs in daemon mode (by examining $HOME/.fetchmail.pid), the newer > fetchmail will not just terminate, it will tell the fetchmail daemon > that I want it to fetch my mail *now* and not on the next regular cycle. > > You can also use that as a limited crash detection. If you write your > application so that it removes the lock file upon normal exit, and you > at some point detect that the lock file exists without being locked, > your program has likely crashed. Vim, for example, informs you about > this kind of stuff and offers to attempt to recover files, abort starting > or tidy up for you. > > My point is: if you don't need fancy DBUS-IPC capabilities, reconsider > if a lock file should really be the last fallback on your list, and > not the default implementation. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu May 31 18:42:49 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 31 May 2018 18:42:49 +0200 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: References: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> <01aa4ef8-cfa7-47db-fe50-a219ebb86fb5@osnanet.de> <20180531161338.GA820@highrise.localdomain> Message-ID: <20180531164249.GB820@highrise.localdomain> On Thu, 31 May 2018, PICCORO McKAY Lenz wrote: > good anwers Tobi, but also too complicated: > > ps -lxa | grep " & nameproc & " | sed 's/ */ /g' | cut -d' ' -f3,13,14,15 > > nameproc must have the first char close inside "[" "]" and that's all > ps and pgrep come in the same package, procps. It was brought up here that pgrep might not be installed on your system. If you are worried about that, you can't rely on ps either. pgrep will be missing if and only if ps is missing. Also, email headers tell me that you took shortly under 1 minute to read my email and write your reply. I know you are always in a hurry, but there is a big paragraph in my message which advises against using `pgrep` or `ps | grep` in the first place. For the sake of others interested in this subject here, don't just say "yours is too complicated, I already have X", right after I brought up reasons against "X". Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Thu May 31 20:14:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 31 May 2018 14:14:15 -0400 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: <20180531164249.GB820@highrise.localdomain> References: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> <01aa4ef8-cfa7-47db-fe50-a219ebb86fb5@osnanet.de> <20180531161338.GA820@highrise.localdomain> <20180531164249.GB820@highrise.localdomain> Message-ID: 2018-05-31 12:42 GMT-04:00 Tobias Boege : > ps and pgrep come in the same package, procps. It was brought up here that > pgrep might not be installed on your system. If you are worried about that, > you can't rely on ps either. pgrep will be missing if and only if ps is > missing. > that's right! i use your solution and in the second attemp use my command > > Also, email headers tell me that you took shortly under 1 minute to read > my email and write your reply. I know you are always in a hurry, but there > is a big paragraph in my message which advises against using `pgrep` or > `ps | grep` in the first place. For the sake of others interested in > this subject here, don't just say "yours is too complicated, I already > have X", right after I brought up reasons against "X". > wrong ! there's a difference of time beetween us.. also my clock email client that uses the gmail account are also worng.. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu May 31 20:16:11 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 31 May 2018 14:16:11 -0400 Subject: [Gambas-user] ofline wiki are unusefully Message-ID: my gambas are in spanish, when i put wiki help offline, many many pages are missing of course due there's no such translation but when i use online version atleast the english are use! that's made the offline wiki mode unusefully! how can i build and use the complete wiki in localhost on my particular machine! ? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu May 31 21:33:41 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 31 May 2018 22:33:41 +0300 Subject: [Gambas-user] donot permit another instance of my program In-Reply-To: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> References: <03574926-8937-e156-f21b-6473dc284b3a@gambas-buch.de> Message-ID: > The variant with the look file runs empty if the program crashes at > runtime and the created look file can no longer be deleted. > That's not problem with my suggestion, because the lock file contains pid of the program, which is validated. Lock file left from crashed program is either recycled (if the pid in the file happens to be same as the pid of the new instance) or the new pid is written into the file (because the old pid isn't valid anymore). Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: