From shannon at inflecto.org Thu Mar 1 02:10:51 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Wed, 28 Feb 2018 19:10:51 -0600 Subject: [Gambas-user] File Downloading Message-ID: ?Total noobie here I have searched and searched and can't seem to figure this out I simply need to download a file The problem is this code works when it feels like it. When it works it works great. When it doesn't work it just creates the temp.zip and does nothing. It doesn't raise an error so I don't know what's going on. ? On top of that I can't get it to download if the url is redirected for example I want to download this file? https://github.com/SphereII/SMXBigBackPack/archive/master.zip but the url is redirected to https://codeload.github.com/ClockworkOrange420/7-Days-to-die-Unofficial-XML-Fixes/zip/master Ideally I want to download master.zip from https://github.com/SphereII/SMXBigBackPack/archive/master.zip and save it to /tmp/mi4l/master.zip ? Public hGetFileClient As New HttpClient As "hGetFileClient" Private sDownloadBuffer As String Public Sub DownloadFile() hGetFileClient.URL = URL hGetFileClient.TimeOut = 0 hGetFileClient.Async = True hGetFileClient.Get([], "/tmp/mi4l/" & "temp.zip") end Public Sub hGetFileClient_Error() ? hGetFileClient.Stop() ? Message("Error: Downloading") End Public Sub hGetFileClient_Finished() Shell "unzip -o /tmp/mi4l/*.zip" & " -d " & "/tmp/mi4l/" Wait end ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From shannon at inflecto.org Thu Mar 1 02:19:49 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Wed, 28 Feb 2018 19:19:49 -0600 Subject: [Gambas-user] File Downloading Message-ID: ? opps I forgot I'm using Gambas 3.10 -----Original message----- From: Shannon Kuchler? Sent: Wednesday 28th February 2018 19:18 To: Gambas Mailing List Subject: [Gambas-user] File Downloading ?Total noobie here I have searched and searched and can't seem to figure this out I simply need to download a file The problem is this code works when it feels like it. When it works it works great. When it doesn't work it just creates the temp.zip and does nothing. It doesn't raise an error so I don't know what's going on. ? On top of that I can't get it to download if the url is redirected for example I want to download this file? https://github.com/SphereII/SMXBigBackPack/archive/master.zip but the url is redirected to https://codeload.github.com/ClockworkOrange420/7-Days-to-die-Unofficial-XML-Fixes/zip/master Ideally I want to download master.zip from https://github.com/SphereII/SMXBigBackPack/archive/master.zip and save it to /tmp/mi4l/master.zip ? Public hGetFileClient As New HttpClient As "hGetFileClient" Private sDownloadBuffer As String Public Sub DownloadFile() hGetFileClient.URL = URL hGetFileClient.TimeOut = 0 hGetFileClient.Async = True hGetFileClient.Get([], "/tmp/mi4l/" & "temp.zip") end Public Sub hGetFileClient_Error() ? hGetFileClient.Stop() ? Message("Error: Downloading") End Public Sub hGetFileClient_Finished() Shell "unzip -o /tmp/mi4l/*.zip" & " -d " & "/tmp/mi4l/" Wait end ? -------------------------------------------------- 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 Thu Mar 1 14:42:45 2018 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 1 Mar 2018 13:42:45 +0000 Subject: [Gambas-user] File Downloading In-Reply-To: References: Message-ID: <92711eff-3489-1414-d2da-0a6f8ea8f18c@cogier.com> Hi Shannon, Try this: - /Public Sub Main()// // //If Not Exist("/tmp/mi4l") Then Mkdir "/tmp/mi4l"// //Shell "cd /tmp/mi4l && wget https://github.com/SphereII/SMXBigBackPack/archive/master.zip" // // //End// / If it does not work make sure you have 'wget' installed. Charlie On 01/03/18 01:19, Shannon Kuchler wrote: > RE: [Gambas-user] File Downloading > > ? > > opps I forgot I'm using Gambas 3.10 > > > -----Original message----- > *From:* Shannon Kuchler? > *Sent:* Wednesday 28th February 2018 19:18 > *To:* Gambas Mailing List > *Subject:* [Gambas-user] File Downloading > > ?Total noobie here > > > I have searched and searched and can't seem to figure this out > > I simply need to download a file > > > The problem is this code works when it feels like it. When it > works it works great. When it doesn't work it just creates the > temp.zip and does nothing. > > It doesn't raise an error so I don't know what's going on. > > > On top of that I can't get it to download if the url is redirected > > for example I want to download this file > https://github.com/SphereII/SMXBigBackPack/archive/master.zip > > but the url is redirected to > https://codeload.github.com/ClockworkOrange420/7-Days-to-die-Unofficial-XML-Fixes/zip/master > > > > Ideally I want to download master.zip from > https://github.com/SphereII/SMXBigBackPack/archive/master.zip and > save it to /tmp/mi4l/master.zip > > ? > > > > > Public hGetFileClient As New HttpClient As "hGetFileClient" > Private sDownloadBuffer As String > > Public Sub DownloadFile() > > > hGetFileClient.URL = URL > hGetFileClient.TimeOut = 0 > hGetFileClient.Async = True > hGetFileClient.Get([], "/tmp/mi4l/" & "temp.zip") > > > end > > > Public Sub hGetFileClient_Error() > > ? hGetFileClient.Stop() > ? Message("Error: Downloading") > End > > > > Public Sub hGetFileClient_Finished() > > > Shell "unzip -o /tmp/mi4l/*.zip" & " -d " & "/tmp/mi4l/" Wait > > > end > > ? > > > > > > -------------------------------------------------- > > > > 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 shannon at inflecto.org Thu Mar 1 17:04:33 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Thu, 1 Mar 2018 10:04:33 -0600 Subject: [Gambas-user] File Downloading Message-ID: ?Thanks Charlie the code I'm actually using at the moment is below but in this case I'm having issues with stopping execution if the process is killed before the download is completed and I cant find any way to get user feed back via a progressbar. gb.net.curl seemed easier to manage if I could get it working reliably. Public Sub DownloadFile() Dim p1 As Process p1 = Shell "wget -P" & " " & "/tmp/mi4l/" & " " & TextBox2.Text For Input As "Process" End ? Hi Shannon, Try this: - Public Sub Main() If Not Exist("/tmp/mi4l") Then Mkdir "/tmp/mi4l" Shell "cd /tmp/mi4l && wget https://github.com/SphereII/SMXBigBackPack/archive/master.zip" End If it does not work make sure you have 'wget' installed. Charlie On 01/03/18 01:19, Shannon Kuchler wrote: ? opps I forgot I'm using Gambas 3.10 -----Original message----- From: Shannon Kuchler? Sent: Wednesday 28th February 2018 19:18 To: Gambas Mailing List Subject: [Gambas-user] File Downloading ?Total noobie here I have searched and searched and can't seem to figure this out I simply need to download a file The problem is this code works when it feels like it. When it works it works great. When it doesn't work it just creates the temp.zip and does nothing. It doesn't raise an error so I don't know what's going on. ? On top of that I can't get it to download if the url is redirected for example I want to download this file? https://github.com/SphereII/SMXBigBackPack/archive/master.zip but the url is redirected tohttps://codeload.github.com/ClockworkOrange420/7-Days-to-die-Unofficial-XML-Fixes/zip/master Ideally I want to download master.zip from https://github.com/SphereII/SMXBigBackPack/archive/master.zip and save it to /tmp/mi4l/master.zip ? Public hGetFileClient As New HttpClient As "hGetFileClient" Private sDownloadBuffer As String Public Sub DownloadFile() hGetFileClient.URL = URL hGetFileClient.TimeOut = 0 hGetFileClient.Async = True hGetFileClient.Get([], "/tmp/mi4l/" & "temp.zip") end Public Sub hGetFileClient_Error() ? hGetFileClient.Stop() ? Message("Error: Downloading") End Public Sub hGetFileClient_Finished() Shell "unzip -o /tmp/mi4l/*.zip" & " -d " & "/tmp/mi4l/" Wait end ? -------------------------------------------------- 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 Thu Mar 1 21:32:16 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 1 Mar 2018 15:32:16 -0500 Subject: [Gambas-user] File Downloading In-Reply-To: References: Message-ID: <84bbad2e-f88d-7885-7447-a4a42349c055@gmail.com> On 02/28/2018 08:10 PM, Shannon Kuchler wrote: > ?Total noobie here > > > I have searched and searched and can't seem to figure this out > > I simply need to download a file > > > The problem is this code works when it feels like it. When it works it works great. When it doesn't work it just creates the > temp.zip and does nothing. > > It doesn't raise an error so I don't know what's going on. > > ? > > On top of that I can't get it to download if the url is redirected > [snip] HttpClient does not handle redirects automatically. You would need to loop while the response code is 4XX, retrieving the Url in the response Location header. A recursion depth might be a good idea, since some redirects are circular (probably as bot traps). Perhaps a more workable solution would be to use, from the Webkit component, Webview and WebDownload. Webview does not have to be displayed to work. But, it does require a parent so we just create a Form (which we do not open or show) as its container. The following was actually implemented as a command-line application which seemed to work well: [code] ' Gambas module file Private Download As WebDownload 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://github.com/SphereII/SMXBigBackPack/archive/master.zip" '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 Wait 0.1 Wend 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 = User.home &/ "tmp/master.zip" End [/code] -- Lee From g4mba5 at gmail.com Thu Mar 1 22:18:52 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 1 Mar 2018 22:18:52 +0100 Subject: [Gambas-user] File Downloading In-Reply-To: <84bbad2e-f88d-7885-7447-a4a42349c055@gmail.com> References: <84bbad2e-f88d-7885-7447-a4a42349c055@gmail.com> Message-ID: Le 01/03/2018 ? 21:32, T Lee Davidson a ?crit?: > On 02/28/2018 08:10 PM, Shannon Kuchler wrote: >> ?Total noobie here >> >> >> I have searched and searched and can't seem to figure this out >> >> I simply need to download a file >> >> >> The problem is this code works when it feels like it. When it works it works great. When it doesn't work it just creates the >> temp.zip and does nothing. >> >> It doesn't raise an error so I don't know what's going on. >> >> >> >> On top of that I can't get it to download if the url is redirected >> > [snip] > > HttpClient does not handle redirects automatically. Maybe I should support the automatic redirection option of libcurl? -- Beno?t Minisini From gitlab at mg.gitlab.com Thu Mar 1 22:52:37 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 01 Mar 2018 21:52:37 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] HttpClient.Redirect is a new boolean property that enables automatic redirection following. Message-ID: <5a987627960c_e4523fd7619218b442327ee@sidekiq-asap-03.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: 3f2838c6 by gambas at 2018-03-01T21:51:48Z HttpClient.Redirect is a new boolean property that enables automatic redirection following. [GB.NET.CURL] * NEW: HttpClient.Redirect is a new boolean property that enables automatic redirection following. - - - - - 2 changed files: - gb.net.curl/src/CHttpClient.c - gb.net.curl/src/CHttpClient.h View it on GitLab: https://gitlab.com/gambas/gambas/commit/3f2838c60971455a560f1cfa613eeff2e3bc9929 --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/3f2838c60971455a560f1cfa613eeff2e3bc9929 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Mar 1 22:54:17 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 1 Mar 2018 22:54:17 +0100 Subject: [Gambas-user] File Downloading In-Reply-To: References: <84bbad2e-f88d-7885-7447-a4a42349c055@gmail.com> Message-ID: <66c82f48-4830-d8b6-05eb-70341a5abf85@gmail.com> Le 01/03/2018 ? 22:18, Beno?t Minisini a ?crit?: > Le 01/03/2018 ? 21:32, T Lee Davidson a ?crit?: >> On 02/28/2018 08:10 PM, Shannon Kuchler wrote: >>> ?Total noobie here >>> >>> >>> I have searched and searched and can't seem to figure this out >>> >>> I simply need to download a file >>> >>> >>> The problem is this code works when it feels like it. When it works >>> it works great. When it doesn't work it just creates the >>> temp.zip and does nothing. >>> >>> It doesn't raise an error so I don't know what's going on. >>> >>> >>> On top of that I can't get it to download if the url is redirected >>> >> [snip] >> >> HttpClient does not handle redirects automatically. > Maybe I should support the automatic redirection option of libcurl? > I added automatic redirection support in commit https://gitlab.com/gambas/gambas/commit/3f2838c60971455a560f1cfa613eeff2e3bc9929 But I didn't test it. Can someone test that for us? -- Beno?t Minisini From t.lee.davidson at gmail.com Thu Mar 1 23:33:18 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 1 Mar 2018 17:33:18 -0500 Subject: [Gambas-user] File Downloading In-Reply-To: <66c82f48-4830-d8b6-05eb-70341a5abf85@gmail.com> References: <84bbad2e-f88d-7885-7447-a4a42349c055@gmail.com> <66c82f48-4830-d8b6-05eb-70341a5abf85@gmail.com> Message-ID: <3c9a028b-3f7c-7dce-0ed1-9c312dbd35f9@gmail.com> On 03/01/2018 04:54 PM, Beno?t Minisini wrote: > Le 01/03/2018 ? 22:18, Beno?t Minisini a ?crit?: >> Le 01/03/2018 ? 21:32, T Lee Davidson a ?crit?: >>> On 02/28/2018 08:10 PM, Shannon Kuchler wrote: >>>> ?Total noobie here >>>> >>>> >>>> I have searched and searched and can't seem to figure this out >>>> >>>> I simply need to download a file >>>> >>>> >>>> The problem is this code works when it feels like it. When it works it works great. When it doesn't work it just creates the >>>> temp.zip and does nothing. >>>> >>>> It doesn't raise an error so I don't know what's going on. >>>> >>>> >>>> On top of that I can't get it to download if the url is redirected >>>> >>> [snip] >>> >>> HttpClient does not handle redirects automatically. >> Maybe I should support the automatic redirection option of libcurl? >> > > I added automatic redirection support in commit https://gitlab.com/gambas/gambas/commit/3f2838c60971455a560f1cfa613eeff2e3bc9929 > > But I didn't test it. Can someone test that for us? > I can test as soon as the latest commit is built for the unstable openSUSE OBS repo to which I subscribe. In the meantime, does the documentation need to be refreshed? -- Lee From g4mba5 at gmail.com Thu Mar 1 23:36:22 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 1 Mar 2018 23:36:22 +0100 Subject: [Gambas-user] File Downloading In-Reply-To: <3c9a028b-3f7c-7dce-0ed1-9c312dbd35f9@gmail.com> References: <84bbad2e-f88d-7885-7447-a4a42349c055@gmail.com> <66c82f48-4830-d8b6-05eb-70341a5abf85@gmail.com> <3c9a028b-3f7c-7dce-0ed1-9c312dbd35f9@gmail.com> Message-ID: Le 01/03/2018 ? 23:33, T Lee Davidson a ?crit?: >>> >> >> I added automatic redirection support in commit https://gitlab.com/gambas/gambas/commit/3f2838c60971455a560f1cfa613eeff2e3bc9929 >> >> But I didn't test it. Can someone test that for us? >> > > I can test as soon as the latest commit is built for the unstable openSUSE OBS repo to which I subscribe. In the meantime, does > the documentation need to be refreshed? > No. I will update the documentation when the feature is known to work. -- Beno?t Minisini From shannon at inflecto.org Fri Mar 2 20:12:24 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Fri, 2 Mar 2018 13:12:24 -0600 Subject: [Gambas-user] Guestion about DirBox.Dialog.SelectDirectory Message-ID: ?In DirBox.Dialog.SelectDirectory I can't find a way to change the current device so that I have access to other mounted drives. I know I have to be over looking something here. Maybe this is the wrong control for the task I need. Looking through the components I can't find anything that looks like it will work. Did I miss something in this control?? Is there a component I missed?? Therefore I'm trying to use the wrong control? What I need to do is allow the user to select and or create a directory on any mounted hard drive -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Mar 2 22:51:09 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 2 Mar 2018 22:51:09 +0100 Subject: [Gambas-user] Guestion about DirBox.Dialog.SelectDirectory In-Reply-To: References: Message-ID: I'm not sure I understood the question. Can this be useful? Public Sub Form_Open() DirBox1.Value = "/tmp" DirBox1_Click() End Public Sub DirBox1_Click() Print DirBox1.Value End Regards Gianluigi 2018-03-02 20:12 GMT+01:00 Shannon Kuchler : > ?In DirBox.Dialog.SelectDirectory I can't find a way to change the current > device so that I have access to other mounted drives. > > I know I have to be over looking something here. Maybe this is the wrong > control for the task I need. Looking through the components I can't find > anything that looks like it will work. > > > Did I miss something in this control? Is there a component I missed? > Therefore I'm trying to use the wrong control? > > > What I need to do is allow the user to select and or create a directory on > any mounted hard drive > > > > > > -------------------------------------------------- > > 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 Mar 2 22:55:22 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 2 Mar 2018 16:55:22 -0500 Subject: [Gambas-user] Guestion about DirBox.Dialog.SelectDirectory In-Reply-To: References: Message-ID: <94f70e1c-fafa-90c3-7214-4e0655f22ec7@gmail.com> I don't see that capability in DirBox either. You probably already know this, but any mounted device should be accessible through the root directory. For example, on my system, a CD-ROM disk is mounted at: /run/media/[user]/ DirChooser has a Root property, as does DirView. Maybe you could set that with something like: DirChooser1.Root = "/run/media/" & User.Name I know, not much help. Ah, good catch Gianluigi. I missed the Value property on DirBox. Maybe you could set that as suggested. -- Lee On 03/02/2018 02:12 PM, Shannon Kuchler wrote: > ?In DirBox.Dialog.SelectDirectory I can't find a way to change the current device so that I have access to other mounted drives. > > I know I have to be over looking something here. Maybe this is the wrong control for the task I need. Looking through the > components I can't find anything that looks like it will work. > > > Did I miss something in this control?? Is there a component I missed?? Therefore I'm trying to use the wrong control? > > > What I need to do is allow the user to select and or create a directory on any mounted hard drive > From t.lee.davidson at gmail.com Fri Mar 2 23:17:01 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 2 Mar 2018 17:17:01 -0500 Subject: [Gambas-user] [Git][gambas/gambas][master] HttpClient.Redirect is a new boolean property that enables automatic redirection following. In-Reply-To: <5a987627960c_e4523fd7619218b442327ee@sidekiq-asap-03.mail> References: <5a987627960c_e4523fd7619218b442327ee@sidekiq-asap-03.mail> Message-ID: On 03/01/2018 04:52 PM, Beno?t Minisini via User wrote: > > Beno?t Minisini pushed to branch master at Gambas / gambas > > Commits: > > * *3f2838c6 * > by gambas /at 2018-03-01T21:51:48Z/ > > HttpClient.Redirect is a new boolean property that enables automatic redirection following. > > [GB.NET.CURL] > * NEW: HttpClient.Redirect is a new boolean property that enables automatic redirection following. > This new feature does appear to return the correct response body. Awesome! However, HttpClient.Code and HttpClient.Reason return the redirect code and reason, ie. "301 Moved Permanently". Maybe that's by design. The response headers also contain two response codes, "HTTP/1.1 301 Moved Permanently" and "HTTP/1.1 200 OK", when retrieving http://www.windpowermonthly.com (non-SSL) which is forced to SSL. [response_headers] HTTP/1.1 301 Moved Permanently Content-Type: text/html; charset=UTF-8 Location: https://www.windpowermonthly.com/ Server: Microsoft-IIS/7.5 X-HMIO-Server: HBI-NET-2 X-Powered-By: ASP.NET Access-Control-Allow-Origin: * Date: Fri, 02 Mar 2018 22:08:06 GMT Content-Length: 156 Set-Cookie: BIGipServerPOOL-HBI-DOTNET=981641408.20480.0000; path=/ HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html; charset=utf-8 Vary: User-Agent Server: Microsoft-IIS/7.5 X-AspNetMvc-Version: 3.0 X-AspNet-Version: 4.0.30319 Set-Cookie: CM_AT=q1R4gixxM2nSLukBYVo8X+NjY6D2ja/PqdYSQvYKm+r3sdF9aIVBbMMV7wD5ZaNWrppBqjgA/tc6V61Yx8AyPXYAj6lb9tHKhN8XUk uMQLqKVbRIkdo+NQ==; domain=.windpowermonthly.com; expires=Sat, 02-Mar-2019 22:08:07 GMT; path=/; HttpOnly X-HMIO-Server: HBI-NET-2 X-Powered-By: ASP.NET Access-Control-Allow-Origin: * Date: Fri, 02 Mar 2018 22:08:07 GMT Content-Length: 47493 [/response_headers] -- Lee From g4mba5 at gmail.com Sat Mar 3 00:25:21 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Mar 2018 00:25:21 +0100 Subject: [Gambas-user] Guestion about DirBox.Dialog.SelectDirectory In-Reply-To: References: Message-ID: Le 02/03/2018 ? 20:12, Shannon Kuchler a ?crit?: > ?In DirBox.Dialog.SelectDirectory I can't find a way to change the > current device so that I have access to other mounted drives. > > I know I have to be over looking something here. Maybe this is the wrong > control for the task I need. Looking through the components I can't find > anything that looks like it will work. > > > Did I miss something in this control?? Is there a component I missed? > Therefore I'm trying to use the wrong control? > > > What I need to do is allow the user to select and or create a directory > on any mounted hard drive > > At the moment the DirChooser control does not know how to list mounted device. This is something to add. -- Beno?t Minisini From gitlab at mg.gitlab.com Sat Mar 3 03:17:45 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 03 Mar 2018 02:17:45 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] 5 commits: Fix render of Slider controls with Breeze theme. Message-ID: <5a9a05c984855_1750e3f9028d707d86006739@sidekiq-asap-05.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: c6587f61 by gambas at 2018-03-03T02:12:24Z Fix render of Slider controls with Breeze theme. [GB.QT4] * BUG: Fix render of Slider controls with Breeze theme. [GB.QT5] * BUG: Fix render of Slider controls with Breeze theme. - - - - - 58ddc650 by gambas at 2018-03-03T02:14:11Z Try to add some more static datatype analysis, but did not succed. [COMPILER] * NEW: Try to add some more static datatype analysis, but did not succed. - - - - - 51dd51df by gambas at 2018-03-03T02:15:16Z TabPanel: The tab close button will not appear incorrectly anymore. [GB.FORM] * BUG: TabPanel: The tab close button will not appear incorrectly anymore. - - - - - 4c90fc88 by gambas at 2018-03-03T02:16:07Z Make the "very small" toolbar size less small. [GB.FORM.MDI] * NEW: Make the "very small" toolbar size less small. - - - - - c1de765d by gambas at 2018-03-03T02:16:45Z Make the Gambas theme current line color lighter, so that there is more difference with the selection color. [DEVELOPMENT ENVIRONMENT] * BUG: Make the Gambas theme current line color lighter, so that there is more difference with the selection color. - - - - - 13 changed files: - app/src/gambas3/theme/gambas - comp/src/gb.form.mdi/.src/ToolBar/FToolBar.class - comp/src/gb.form/.project - comp/src/gb.form/.src/TabPanel/_TabPanelButton.class - gb.qt4/src/fix_breeze.cpp - main/gbc/gbc_class.c - main/gbc/gbc_class.h - main/gbc/gbc_trans.c - main/gbc/gbc_trans_expr.c - main/gbc/gbc_type.c - main/gbc/gbc_type.h - main/share/gb_reserved.h - main/share/gb_reserved_keyword.h View it on GitLab: https://gitlab.com/gambas/gambas/compare/3f2838c60971455a560f1cfa613eeff2e3bc9929...c1de765d8fccd32cc1e9e514c24f5402a1fad049 --- View it on GitLab: https://gitlab.com/gambas/gambas/compare/3f2838c60971455a560f1cfa613eeff2e3bc9929...c1de765d8fccd32cc1e9e514c24f5402a1fad049 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Mar 3 12:29:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 3 Mar 2018 12:29:32 +0100 Subject: [Gambas-user] Guestion about DirBox.Dialog.SelectDirectory In-Reply-To: References: Message-ID: 2018-03-03 0:25 GMT+01:00 Beno?t Minisini : > Le 02/03/2018 ? 20:12, Shannon Kuchler a ?crit : > >> ?In DirBox.Dialog.SelectDirectory I can't find a way to change the >> current device so that I have access to other mounted drives. >> >> I know I have to be over looking something here. Maybe this is the wrong >> control for the task I need. Looking through the components I can't find >> anything that looks like it will work. >> >> >> Did I miss something in this control? Is there a component I missed? >> Therefore I'm trying to use the wrong control? >> >> >> What I need to do is allow the user to select and or create a directory >> on any mounted hard drive >> >> >> > At the moment the DirChooser control does not know how to list mounted > device. This is something to add. > > -- > Beno?t Minisini > > -------------------------------------------------- > I do not understand, here it works: Public Sub Form_Open() Dim sPath, sUser, sDevice As String sUser = User.Name sDevice = "Elements" sPath = "/media" &/ sUser &/ sDevice DirBox1.Value = sPath DirBox1_Click() End Public Sub DirBox1_Click() Print DirBox1.Value End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Mar 3 12:34:30 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 3 Mar 2018 12:34:30 +0100 Subject: [Gambas-user] Guestion about DirBox.Dialog.SelectDirectory In-Reply-To: References: Message-ID: 2018-03-03 12:29 GMT+01:00 Gianluigi : > > > 2018-03-03 0:25 GMT+01:00 Beno?t Minisini : > >> Le 02/03/2018 ? 20:12, Shannon Kuchler a ?crit : >> >>> ?In DirBox.Dialog.SelectDirectory I can't find a way to change the >>> current device so that I have access to other mounted drives. >>> >>> I know I have to be over looking something here. Maybe this is the wrong >>> control for the task I need. Looking through the components I can't find >>> anything that looks like it will work. >>> >>> >>> Did I miss something in this control? Is there a component I missed? >>> Therefore I'm trying to use the wrong control? >>> >>> >>> What I need to do is allow the user to select and or create a directory >>> on any mounted hard drive >>> >>> >>> >> At the moment the DirChooser control does not know how to list mounted >> device. This is something to add. >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> > I do not understand, here it works: > > > Public Sub Form_Open() > > Dim sPath, sUser, sDevice As String > > sUser = User.Name > sDevice = "Elements" > sPath = "/media" &/ sUser &/ sDevice > DirBox1.Value = sPath > DirBox1_Click() > > End > > Public Sub DirBox1_Click() > > Print DirBox1.Value > > End > > Regards > Gianluigi > > Sorry, now I understand, I can not know the name "Elements" from DirBox. OK thanks. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From shannon at inflecto.org Sat Mar 3 20:53:37 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sat, 3 Mar 2018 13:53:37 -0600 Subject: [Gambas-user] Guestion about DirBox.Dialog.SelectDirectory Message-ID: ? Thanks Lee indeed I do know that. What I'm doing is writing a game launcher, game installer, mod installer for the most basic of Linux users. I of course I can't expect every Linux gamer out there to know how to navigate root to find there mounted devices.? I also don't expect everyone will want to install everything in /home/user/..... either. I'm trying to fallow the old adage "keep it simple stupid" so as to not make things to complicated for the end user. ? Thank you all very much for your replies. I was hoping I missed something in the DirBox control or was just over looking another that had this capability. On the other hand I was afraid that I might not have done enough research before posting this issue. I haven't written and code sense the early VB5 days so I'm basically relearning everything as I go. I can see Gambas is still very much a work in progress and it's so great to see so much support and dedication. ? ? I don't see that capability in DirBox either. You probably already know this, but any mounted device should be accessible through the root directory. For example, on my system, a CD-ROM disk is mounted at: /run/media/[user]/ DirChooser has a Root property, as does DirView. Maybe you could set that with something like: DirChooser1.Root = "/run/media/" & User.Name I know, not much help. Ah, good catch Gianluigi. I missed the Value property on DirBox. Maybe you could set that as suggested. -- Lee On 03/02/2018 02:12 PM, Shannon Kuchler wrote: > ?In DirBox.Dialog.SelectDirectory I can't find a way to change the current device so that I have access to other mounted drives. > > I know I have to be over looking something here. Maybe this is the wrong control for the task I need. Looking through the > components I can't find anything that looks like it will work. > > > Did I miss something in this control?? Is there a component I missed?? Therefore I'm trying to use the wrong control? > > > What I need to do is allow the user to select and or create a directory on any mounted hard drive > -------------------------------------------------- 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 gitlab at mg.gitlab.com Mon Mar 5 00:13:07 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 04 Mar 2018 23:13:07 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] Help browser: Always display buzy cursor when opening it. Message-ID: <5a9c7d83b4d09_4dd13fb61d7a1e2c6397554@sidekiq-asap-02.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: 329edaa2 by gambas at 2018-03-04T23:11:09Z Help browser: Always display buzy cursor when opening it. [DEVELOPMENT ENVIRONMENT] * BUG: Help browser: Always display buzy cursor when opening it. * BUG: Software farm: Use small icons in buttons. - - - - - 6 changed files: - app/src/gambas3/.project - app/src/gambas3/.src/FMain.class - app/src/gambas3/.src/Help/MHelp.module - app/src/gambas3/.src/Project/Farm/CSoftware.class - app/src/gambas3/.src/Project/Farm/FSoftwareFarm.class - app/src/gambas3/.src/Project/Farm/FSoftwareFarm.form View it on GitLab: https://gitlab.com/gambas/gambas/commit/329edaa228384573f590d08066cfba4a2720f365 --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/329edaa228384573f590d08066cfba4a2720f365 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Mon Mar 5 09:54:12 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 5 Mar 2018 09:54:12 +0100 Subject: [Gambas-user] Stable version vs. 3.10.0 In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> Message-ID: Hello, is there a significant difference between these two downloads? https://gitlab.com/gambas/gambas/repository/*v3.10.0*/archive.tar.bz2 https://gitlab.com/gambas/gambas/repository/*stable*/archive.tar.bz2 In my understanding, 3.10.0 is the stable Gambas version. With kind regards Hans From adrien.prokopowicz at gmail.com Mon Mar 5 10:14:25 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Mon, 5 Mar 2018 10:14:25 +0100 Subject: [Gambas-user] Stable version vs. 3.10.0 In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> Message-ID: <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> Le 05/03/2018 ? 09:54, Hans Lehmann a ?crit?: > Hello, > > is there a significant difference between these two downloads? > > https://gitlab.com/gambas/gambas/repository/*v3.10.0*/archive.tar.bz2 > https://gitlab.com/gambas/gambas/repository/*stable*/archive.tar.bz2 > > In my understanding, 3.10.0 is the stable Gambas version. > > With kind regards > > Hans 3.10.0 is indeed the stable Gambas version, so right now the two downloads are equivalent. Hovever, whenever 3.11.0 will be released, the stable download will be equivalent to 3.11.0, while of course the 3.10.0 download will stay on that version and won't change. -- Adrien Prokopowicz From hans at gambas-buch.de Mon Mar 5 10:23:22 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 5 Mar 2018 10:23:22 +0100 Subject: [Gambas-user] Stable version vs. 3.10.0 In-Reply-To: <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> Message-ID: <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> Am 05.03.2018 um 10:14 schrieb Adrien Prokopowicz: > 3.10.0 is indeed the stable Gambas version, so right now the two > downloads are equivalent. > > Hovever, whenever 3.11.0 will be released, the stable download will be > equivalent to 3.11.0, while of course the 3.10.0 download will stay on > that version and won't change. > > -- > Adrien Prokopowicz Hello Adrien, but why is the archive of the stable version 13.5 MB large and the archive of the version 3.10.0 but 65.9 MB large? So there has to be a difference, just which one? With kind regards Hans From adrien.prokopowicz at gmail.com Mon Mar 5 10:40:06 2018 From: adrien.prokopowicz at gmail.com (Adrien Prokopowicz) Date: Mon, 5 Mar 2018 10:40:06 +0100 Subject: [Gambas-user] Stable version vs. 3.10.0 In-Reply-To: <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> Message-ID: Le 05/03/2018 ? 10:23, Hans Lehmann a ?crit?: > Am 05.03.2018 um 10:14 schrieb Adrien Prokopowicz: >> 3.10.0 is indeed the stable Gambas version, so right now the two >> downloads are equivalent. >> >> Hovever, whenever 3.11.0 will be released, the stable download will be >> equivalent to 3.11.0, while of course the 3.10.0 download will stay on >> that version and won't change. >> >> -- >> Adrien Prokopowicz > > Hello Adrien, > > but why is the archive of the stable version 13.5 MB large and the > archive of the version 3.10.0 but 65.9 MB large? > So there has to be a difference, just which one? > > With kind regards > > Hans > Oh, I missed that. I don't know for sure, but it seems like Beno?t is preparing for 3.11 to be released, so the stable download already points to 3.11 (even though it's not tagged yet? ). The difference in size is explained by the fact that Beno?t removed a lot of useless/temporary files from the repository in 3.11. -- Adrien Prokopowicz From crimeangothic at nigge.rs Tue Mar 6 10:41:55 2018 From: crimeangothic at nigge.rs (crimeangothic) Date: Tue, 6 Mar 2018 09:41:55 +0000 Subject: [Gambas-user] How to install gambas on gentoo? Message-ID: Hi all, I just switched distros to CloverOS(a version of gentoo) and I'd like to know how I can install gambas. Thanks in advance. From taboege at gmail.com Tue Mar 6 13:02:33 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 6 Mar 2018 13:02:33 +0100 Subject: [Gambas-user] How to install gambas on gentoo? In-Reply-To: References: Message-ID: <20180306120233.GA11679@highrise.localdomain> On Tue, 06 Mar 2018, crimeangothic wrote: > Hi all, I just switched distros to CloverOS(a version of gentoo) and I'd > like to know how I can install gambas. Thanks in advance. > Apparently the Gambas wiki doesn't have any gentoo-specific instructions (which is a bit surprising). The reason seems to be that, AFAICS, Gambas is not in the main portage tree and the only overlay [1] I found is out- dated. [ At least the repository hosting and the component list changed since Gambas 3.8. ] If you can't find any Gambas ebuild that you like, you have to make your own or compile and install from source past your package manager. For that, see here: [2]. Regards, Tobi [1] https://github.com/damex/gambas-overlay [2] http://gambaswiki.org/wiki/install -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at gambaswiki.org Tue Mar 6 14:30:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 06 Mar 2018 13:30:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4- Comment #21 by Olivier CRUILLES: After a long time dealing with this error of socket disconnection, it works now as expected and it's stable. When the socket have a disconnection (maybe the other side of the socket is busy or buffer full), I just close it and open a new one. I have just find a little think that I need to add in my code and this is the declaration of AsConsumerSocket_Closed() event to correctly close the Socket. This one permit to receive information from the Socket Server that the Socket is Close or Busy. In the case of I permit receive this information instead of Close brutally the Socket client side, as described on Internet, the socket (server side) don't wait ~2 min before be closed by the kernel. Does it make sense for you ? From bugtracker at gambaswiki.org Tue Mar 6 22:39:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 06 Mar 2018 21:39:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4- Comment #22 by Olivier CRUILLES: I whish to prevent the 'Socket broken Pipe' and be sure that the socket is not close on server side before I write on it, so as I can read on Internet, exist some options to help this case. Could you take a look at this page on Internet and see if you can add available options on Gambas side regarding that for example or other: To ignore the SIGPIPE signal, use the following code: signal(SIGPIPE, SIG_IGN); Related page: https://stackoverflow.com/questions/108183/how-to-prevent-sigpipes-or-handle-them-properly Thank you Olivier From bugtracker at gambaswiki.org Tue Mar 6 23:28:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 06 Mar 2018 22:28:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4- Comment #23 by Beno?t MINISINI: The flag that disables SIGPIPE is normally already used when reading or writing to the socket. How exactly and when do you get that signal? From gitlab at mg.gitlab.com Tue Mar 6 23:50:44 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 06 Mar 2018 22:50:44 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] 8 commits: New stock icons. Message-ID: <5a9f1b44ace87_182443f90a16e7b9017928e@sidekiq-asap-05.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: d0b9e6d8 by gambas at 2018-03-06T20:35:41Z New stock icons. [GB.FORM.STOCK] * NEW: New stock icons. - - - - - 2eccfbc7 by gambas at 2018-03-06T20:36:31Z New stock icons. [GB.FORM] * NEW: New stock icons. - - - - - 69abff8f by gambas at 2018-03-06T22:35:59Z Menu.Closed property now takes the menu proxy into account. [GB.QT4] * BUG: Menu.Closed property now takes the menu proxy into account. [GB.QT5] * BUG: Menu.Closed property now takes the menu proxy into account. - - - - - 0b4adeb3 by gambas at 2018-03-06T22:36:43Z Implement the menu proxy management. [GB.GTK] * NEW: Implement the menu proxy management. [GB.GTK3] * NEW: Implement the menu proxy management. - - - - - fee00298 by gambas at 2018-03-06T22:37:19Z FontChooser: Ignore case when sorting fonts. [GB.FORM] * BUG: FontChooser: Ignore case when sorting fonts. - - - - - 3038cc39 by gambas at 2018-03-06T22:45:02Z [GB.FORM.EDITOR] * NEW: Support for disable breakpoints. - - - - - 0ba668b4 by gambas at 2018-03-06T22:46:09Z Toolbar: The minimum height is now 80% of the font height. [GB.FORM.MDI] * NEW: Toolbar: The minimum height is now 80% of the font height. - - - - - 9b2daacf by gambas at 2018-03-06T22:47:43Z Breakpoints now can be disabled. [DEVELOPMENT ENVIRONMENT] * NEW: Update french translation. * NEW: Breakpoints now can be disabled. * NEW: Debug panel: Add buttons to enable or disable breakpoints. * NEW: Debug panel: Multiple breakpoints can be selected at the same time now. * NEW: Image editor: Setting the grid snap to zero is now equivalent to default half-pixel snap. * NEW: Image editor: Change default toolbar icons. - - - - - 30 changed files: - app/src/gambas3/.lang/fr.mo - app/src/gambas3/.lang/fr.po - app/src/gambas3/.src/Debug/Design.module - app/src/gambas3/.src/Debug/FDebugButton.form - app/src/gambas3/.src/Debug/FDebugInfo.class - app/src/gambas3/.src/Debug/FDebugInfo.form - app/src/gambas3/.src/Editor/Code/FEditor.class - app/src/gambas3/.src/Editor/Image/FImageEditor.class - app/src/gambas3/.src/Editor/Image/FImageEditor.form - app/src/gambas3/.src/Editor/Image/FImageProperty.class - app/src/gambas3/.src/Editor/Image/FImageProperty.form - comp/src/gb.form.editor/.src/CLineInfo.class - comp/src/gb.form.editor/.src/Helper.module - comp/src/gb.form.editor/.src/TextEditor.class - comp/src/gb.form.editor/.src/_TextEditor_Line.class - comp/src/gb.form.mdi/.src/ToolBar/FToolBar.class - comp/src/gb.form.stock/gambas-mono/32/internet.png - comp/src/gb.form.stock/gambas-mono/32/revert.png - + comp/src/gb.form.stock/gambas-mono/32/text-baseline.png - + comp/src/gb.form.stock/gambas-mono/32/text-bottom.png - + comp/src/gb.form.stock/gambas-mono/32/text-middle.png - comp/src/gb.form.stock/gambas-mono/32/text-strike.png - + comp/src/gb.form.stock/gambas-mono/32/text-top.png - comp/src/gb.form.stock/gambas-mono/32/text-underline.png - comp/src/gb.form.stock/gambas/32/internet.png - comp/src/gb.form.stock/gambas/32/revert.png - + comp/src/gb.form.stock/gambas/32/text-baseline.png - + comp/src/gb.form.stock/gambas/32/text-bottom.png - + comp/src/gb.form.stock/gambas/32/text-middle.png - comp/src/gb.form.stock/gambas/32/text-strike.png View it on GitLab: https://gitlab.com/gambas/gambas/compare/329edaa228384573f590d08066cfba4a2720f365...9b2daacf9332dd90807072c0d13f9c43f05e6407 --- View it on GitLab: https://gitlab.com/gambas/gambas/compare/329edaa228384573f590d08066cfba4a2720f365...9b2daacf9332dd90807072c0d13f9c43f05e6407 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gitlab at mg.gitlab.com Wed Mar 7 01:11:45 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 07 Mar 2018 00:11:45 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] 3 commits: TextEditor: Don't store breakpoints and bookmarks in each line, but in global collections. Message-ID: <5a9f2e42237db_182443f90dc3c4b6c1840974@sidekiq-asap-05.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: cb86aa9a by gambas at 2018-03-07T00:09:44Z TextEditor: Don't store breakpoints and bookmarks in each line, but in global collections. [GB.FORM.EDITOR] * NEW: TextEditor: Don't store breakpoints and bookmarks in each line, but in global collections. - - - - - dbff0b1e by gambas at 2018-03-07T00:10:44Z Redraw 'revert' stock icons. [GB.FORM.STOCK] * NEW: Redraw 'revert' stock icons. - - - - - 0c611d12 by gambas at 2018-03-07T00:11:10Z [DEVELOPMENT ENVIRONMENT] * BUG: Debug panel: The 'Remove all breakpoints' button works correctly now. - - - - - 7 changed files: - app/src/gambas3/.src/Debug/FDebugInfo.class - comp/src/gb.form.editor/.src/CDocument.class - comp/src/gb.form.editor/.src/CLineInfo.class - comp/src/gb.form.editor/.src/TextEditor.class - comp/src/gb.form.editor/.src/_TextEditor_Line.class - comp/src/gb.form.stock/gambas-mono/32/revert.png - comp/src/gb.form.stock/gambas/32/revert.png View it on GitLab: https://gitlab.com/gambas/gambas/compare/9b2daacf9332dd90807072c0d13f9c43f05e6407...0c611d127f90bac0b4da6e02dd574146ac513688 --- View it on GitLab: https://gitlab.com/gambas/gambas/compare/9b2daacf9332dd90807072c0d13f9c43f05e6407...0c611d127f90bac0b4da6e02dd574146ac513688 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed Mar 7 01:14:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 07 Mar 2018 00:14:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- Comment #1 by Beno?t MINISINI: Done in commit https://gitlab.com/gambas/gambas/commit/0c611d127f90bac0b4da6e02dd574146ac513688 Beno?t MINISINI changed the state of the bug to: Fixed. From t.lee.davidson at gmail.com Wed Mar 7 05:41:24 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 6 Mar 2018 23:41:24 -0500 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3 In-Reply-To: <5a9f0ab7.428a500a.392f7.f9d8SMTPIN_ADDED_BROKEN@mx.google.com> References: <5a9f0ab7.428a500a.392f7.f9d8SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <8c76a074-ff89-cc9e-754b-ffa88ba2c3f1@gmail.com> On 03/06/2018 04:39 PM, bugtracker at gambaswiki.org wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4- > > Comment #22 by Olivier CRUILLES: > > I whish to prevent the 'Socket broken Pipe' and be sure that the socket is not close on server side before I write on it, so as I can read on Internet, exist some options to help this case. > Could you take a look at this page on Internet and see if you can add available options on Gambas side regarding that for example or other: > > To ignore the SIGPIPE signal, use the following code: > signal(SIGPIPE, SIG_IGN); > > Related page: > > https://stackoverflow.com/questions/108183/how-to-prevent-sigpipes-or-handle-them-properly > > Thank you > Olivier > Wouldn't Signal[Signal.SIGPIPE].Ignore do that? -- Lee From shordi at gmail.com Wed Mar 7 10:21:59 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 7 Mar 2018 10:21:59 +0100 Subject: [Gambas-user] A Task Issue Message-ID: Hi everyone, I'm doing a Mail Checker using a task. It checks Mail in a timer interval of 10 seconds and send a desktop notify if there is new incoming mail. It seems work well but after a time it hangs. The check mail process is done by a task and I guess that there is something I missed about handling tasks. Each time the task checks mail a process of openssl remains open even the task is stoped and/or destroyed (null). Someone can help me about this? I've attached a little working example and the picture of the process list remaining after each mail check. Thanks in advance Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CheckMail-0.0.1.tar.gz Type: application/gzip Size: 13474 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: console.png Type: image/png Size: 82472 bytes Desc: not available URL: From bagonergi at gmail.com Wed Mar 7 11:17:52 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 7 Mar 2018 11:17:52 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: Hi Jorge, I just looked at the code and I see that in bCheckMail_Click() is missing, I do not know if it can be useful. Else Balloon(("Can't connect with mailserver. Check your data."), bCheckMail) mailAccount.Clear() lOk = False ' Missing Dec Application.Busy ' or Application.Busy = 0 Endif Regards Gianluigi 2018-03-07 10:21 GMT+01:00 Jorge Carri?n : > Hi everyone, > I'm doing a Mail Checker using a task. It checks Mail in a timer interval > of 10 seconds and send a desktop notify if there is new incoming mail. It > seems work well but after a time it hangs. > The check mail process is done by a task and I guess that there is > something I missed about handling tasks. > > Each time the task checks mail a process of openssl remains open even the > task is stoped and/or destroyed (null). > > Someone can help me about this? I've attached a little working example and > the picture of the process list remaining after each mail check. > > Thanks in advance > > Best Regards > > > -------------------------------------------------- > > 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 Mar 7 11:38:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 7 Mar 2018 11:38:05 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: No Jorge, I'm sorry I said nonsense, the dec of your code works well. Regards Gianluigi 2018-03-07 11:17 GMT+01:00 Gianluigi : > Hi Jorge, > I just looked at the code and I see that in bCheckMail_Click() is missing, > I do not know if it can be useful. > > Else > Balloon(("Can't connect with mailserver. Check your data."), > bCheckMail) > mailAccount.Clear() > lOk = False > ' Missing Dec Application.Busy ' or > Application.Busy = 0 > Endif > > Regards > Gianluigi > > 2018-03-07 10:21 GMT+01:00 Jorge Carri?n : > >> Hi everyone, >> I'm doing a Mail Checker using a task. It checks Mail in a timer interval >> of 10 seconds and send a desktop notify if there is new incoming mail. It >> seems work well but after a time it hangs. >> The check mail process is done by a task and I guess that there is >> something I missed about handling tasks. >> >> Each time the task checks mail a process of openssl remains open even the >> task is stoped and/or destroyed (null). >> >> Someone can help me about this? I've attached a little working example >> and the picture of the process list remaining after each mail check. >> >> Thanks in advance >> >> Best Regards >> >> >> -------------------------------------------------- >> >> 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 shordi at gmail.com Wed Mar 7 11:58:23 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 7 Mar 2018 11:58:23 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: Thanks for your interest, Gianluigi. Best regards 2018-03-07 11:38 GMT+01:00 Gianluigi : > No Jorge, > I'm sorry I said nonsense, the dec of your code works well. > > Regards > Gianluigi > > 2018-03-07 11:17 GMT+01:00 Gianluigi : > >> Hi Jorge, >> I just looked at the code and I see that in bCheckMail_Click() is >> missing, I do not know if it can be useful. >> >> Else >> Balloon(("Can't connect with mailserver. Check your data."), >> bCheckMail) >> mailAccount.Clear() >> lOk = False >> ' Missing Dec Application.Busy ' or >> Application.Busy = 0 >> Endif >> >> Regards >> Gianluigi >> >> 2018-03-07 10:21 GMT+01:00 Jorge Carri?n : >> >>> Hi everyone, >>> I'm doing a Mail Checker using a task. It checks Mail in a timer >>> interval of 10 seconds and send a desktop notify if there is new incoming >>> mail. It seems work well but after a time it hangs. >>> The check mail process is done by a task and I guess that there is >>> something I missed about handling tasks. >>> >>> Each time the task checks mail a process of openssl remains open even >>> the task is stoped and/or destroyed (null). >>> >>> Someone can help me about this? I've attached a little working example >>> and the picture of the process list remaining after each mail check. >>> >>> Thanks in advance >>> >>> Best Regards >>> >>> >>> -------------------------------------------------- >>> >>> 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 Wed Mar 7 12:18:49 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 7 Mar 2018 12:18:49 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: <9d96c78d-9755-1361-fb1f-7a2453f3ec0c@gmail.com> Le 07/03/2018 ? 10:21, Jorge Carri?n a ?crit?: > Hi everyone, > I'm doing a Mail Checker using a task. It checks Mail in a timer > interval of 10 seconds and send a desktop notify if there is new > incoming mail. It seems work well but after a time it hangs. > The check mail process is done by a task and I guess that there is > something I missed about handling tasks. > > Each time the task checks mail a process of openssl remains open even > the task is stoped and/or destroyed (null). > > Someone can help me about this? I've attached a little working example > and the picture of the process list remaining after each mail check. > > Thanks in advance > > Best Regards > > What you didn't understand is that a Task does not run in the same process! If you call tc.CheckMail() from the main process, you just run the method in the main process. The task does nothing. Only the task Main() method is automatically called in the task context (and then every other method called from the Main() method). And you have to close the Pop3Client in all cases, which you do not, check your code. I think this is the reason why the openssl processes still run. -- Beno?t Minisini From shordi at gmail.com Wed Mar 7 13:35:51 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 7 Mar 2018 13:35:51 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: 2018-03-07 12:18 GMT+01:00 Beno?t Minisini : > Le 07/03/2018 ? 10:21, Jorge Carri?n a ?crit : > >> Hi everyone, >> I'm doing a Mail Checker using a task. It checks Mail in a timer interval >> of 10 seconds and send a desktop notify if there is new incoming mail. It >> seems work well but after a time it hangs. >> The check mail process is done by a task and I guess that there is >> something I missed about handling tasks. >> >> Each time the task checks mail a process of openssl remains open even the >> task is stoped and/or destroyed (null). >> >> Someone can help me about this? I've attached a little working example >> and the picture of the process list remaining after each mail check. >> >> Thanks in advance >> >> Best Regards >> >> >> > What you didn't understand is that a Task does not run in the same process! > > If you call tc.CheckMail() from the main process, you just run the method > in the main process. The task does nothing. Only the task Main() method is > automatically called in the task context (and then every other method > called from the Main() method). > > And you have to close the Pop3Client in all cases, which you do not, check > your code. I think this is the reason why the openssl processes still run. Beno?t: This seems the solution indeed. It was really that: I don't understand that task doesn't run in same process. Another question: Can be more than one task simultaneously? I've tried to do so and the program abort with code 6 and this message on console: "[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. gbx3: ../../src/xcb_io.c:274: poll_for_event: La declaraci?n `!xcb_xlib_threads_sequence_lost' no se cumple." 2018-03-07 11:58 GMT+01:00 Jorge Carri?n : > Thanks for your interest, Gianluigi. > > Best regards > > 2018-03-07 11:38 GMT+01:00 Gianluigi : > >> No Jorge, >> I'm sorry I said nonsense, the dec of your code works well. >> >> Regards >> Gianluigi >> >> 2018-03-07 11:17 GMT+01:00 Gianluigi : >> >>> Hi Jorge, >>> I just looked at the code and I see that in bCheckMail_Click() is >>> missing, I do not know if it can be useful. >>> >>> Else >>> Balloon(("Can't connect with mailserver. Check your data."), >>> bCheckMail) >>> mailAccount.Clear() >>> lOk = False >>> ' Missing Dec Application.Busy ' or >>> Application.Busy = 0 >>> Endif >>> >>> Regards >>> Gianluigi >>> >>> 2018-03-07 10:21 GMT+01:00 Jorge Carri?n : >>> >>>> Hi everyone, >>>> I'm doing a Mail Checker using a task. It checks Mail in a timer >>>> interval of 10 seconds and send a desktop notify if there is new incoming >>>> mail. It seems work well but after a time it hangs. >>>> The check mail process is done by a task and I guess that there is >>>> something I missed about handling tasks. >>>> >>>> Each time the task checks mail a process of openssl remains open even >>>> the task is stoped and/or destroyed (null). >>>> >>>> Someone can help me about this? I've attached a little working example >>>> and the picture of the process list remaining after each mail check. >>>> >>>> Thanks in advance >>>> >>>> Best Regards >>>> >>>> >>>> -------------------------------------------------- >>>> >>>> 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 shordi at gmail.com Wed Mar 7 13:36:59 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 7 Mar 2018 13:36:59 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: I means two different task, not two instances of same task... 2018-03-07 13:35 GMT+01:00 Jorge Carri?n : > > 2018-03-07 12:18 GMT+01:00 Beno?t Minisini : > >> Le 07/03/2018 ? 10:21, Jorge Carri?n a ?crit : >> >>> Hi everyone, >>> I'm doing a Mail Checker using a task. It checks Mail in a timer >>> interval of 10 seconds and send a desktop notify if there is new incoming >>> mail. It seems work well but after a time it hangs. >>> The check mail process is done by a task and I guess that there is >>> something I missed about handling tasks. >>> >>> Each time the task checks mail a process of openssl remains open even >>> the task is stoped and/or destroyed (null). >>> >>> Someone can help me about this? I've attached a little working example >>> and the picture of the process list remaining after each mail check. >>> >>> Thanks in advance >>> >>> Best Regards >>> >>> >>> >> What you didn't understand is that a Task does not run in the same >> process! >> >> If you call tc.CheckMail() from the main process, you just run the method >> in the main process. The task does nothing. Only the task Main() method is >> automatically called in the task context (and then every other method >> called from the Main() method). >> >> And you have to close the Pop3Client in all cases, which you do not, >> check your code. I think this is the reason why the openssl processes still >> run. > > > Beno?t: > This seems the solution indeed. It was really that: I don't understand > that task doesn't run in same process. > Another question: > Can be more than one task simultaneously? > I've tried to do so and the program abort with code 6 and this message on > console: > > "[xcb] Most likely this is a multi-threaded client and XInitThreads has > not been called > [xcb] Aborting, sorry about that. > gbx3: ../../src/xcb_io.c:274: poll_for_event: La declaraci?n > `!xcb_xlib_threads_sequence_lost' no se cumple." > > 2018-03-07 11:58 GMT+01:00 Jorge Carri?n : > >> Thanks for your interest, Gianluigi. >> >> Best regards >> >> 2018-03-07 11:38 GMT+01:00 Gianluigi : >> >>> No Jorge, >>> I'm sorry I said nonsense, the dec of your code works well. >>> >>> Regards >>> Gianluigi >>> >>> 2018-03-07 11:17 GMT+01:00 Gianluigi : >>> >>>> Hi Jorge, >>>> I just looked at the code and I see that in bCheckMail_Click() is >>>> missing, I do not know if it can be useful. >>>> >>>> Else >>>> Balloon(("Can't connect with mailserver. Check your data."), >>>> bCheckMail) >>>> mailAccount.Clear() >>>> lOk = False >>>> ' Missing Dec Application.Busy ' or >>>> Application.Busy = 0 >>>> Endif >>>> >>>> Regards >>>> Gianluigi >>>> >>>> 2018-03-07 10:21 GMT+01:00 Jorge Carri?n : >>>> >>>>> Hi everyone, >>>>> I'm doing a Mail Checker using a task. It checks Mail in a timer >>>>> interval of 10 seconds and send a desktop notify if there is new incoming >>>>> mail. It seems work well but after a time it hangs. >>>>> The check mail process is done by a task and I guess that there is >>>>> something I missed about handling tasks. >>>>> >>>>> Each time the task checks mail a process of openssl remains open even >>>>> the task is stoped and/or destroyed (null). >>>>> >>>>> Someone can help me about this? I've attached a little working example >>>>> and the picture of the process list remaining after each mail check. >>>>> >>>>> Thanks in advance >>>>> >>>>> Best Regards >>>>> >>>>> >>>>> -------------------------------------------------- >>>>> >>>>> 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 Wed Mar 7 13:50:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 7 Mar 2018 13:50:11 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: Le 07/03/2018 ? 13:35, Jorge Carri?n a ?crit?: > > Beno?t: > This seems the solution indeed. It was really that: I don't understand > that task doesn't run in same process. > Another question: > Can be more than one task simultaneously? Of course. > I've tried to do so and the program abort with code 6 and this message > on console: > > "[xcb] Most likely this is a multi-threaded client and XInitThreads has > not been called > [xcb] Aborting, sorry about that. > gbx3: ../../src/xcb_io.c:274: poll_for_event: La declaraci?n > `!xcb_xlib_threads_sequence_lost' no se cumple." > Because you are in a GUI program, and GUI libraries do not like being forked at all. Apparently the xcb library aborts as soon as you want to use the event loop inside a task (the Pop3Client uses it). Try to put 'GB_X11_INIT_THREADS=1' in your environment to force the XInitThreads() X11 method to be called, and check if it works. -- Beno?t Minisini From shordi at gmail.com Wed Mar 7 13:53:59 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 7 Mar 2018 13:53:59 +0100 Subject: [Gambas-user] A Task Issue In-Reply-To: References: Message-ID: Yes. The second task tried to create a Form, so it uses graphic libraries. I'll try what you suggest. Thanks again. 2018-03-07 13:50 GMT+01:00 Beno?t Minisini : > Le 07/03/2018 ? 13:35, Jorge Carri?n a ?crit : > >> >> Beno?t: >> This seems the solution indeed. It was really that: I don't understand >> that task doesn't run in same process. >> Another question: >> Can be more than one task simultaneously? >> > > Of course. > > I've tried to do so and the program abort with code 6 and this message on >> console: >> >> "[xcb] Most likely this is a multi-threaded client and XInitThreads has >> not been called >> [xcb] Aborting, sorry about that. >> gbx3: ../../src/xcb_io.c:274: poll_for_event: La declaraci?n >> `!xcb_xlib_threads_sequence_lost' no se cumple." >> >> > Because you are in a GUI program, and GUI libraries do not like being > forked at all. > > Apparently the xcb library aborts as soon as you want to use the event > loop inside a task (the Pop3Client uses it). > > Try to put 'GB_X11_INIT_THREADS=1' in your environment to force the > XInitThreads() X11 method to be called, and check if it works. > > -- > 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 Mar 7 19:59:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 07 Mar 2018 18:59:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4- Comment #24 by Olivier CRUILLES: In fact after checked in the log of my application, there is no more "System error #32: Broken pipe" since I have added multiple security regarding 'Socket closed' So forget my remark. Waiting few days to confirm all works fine and I back to you. From gitlab at mg.gitlab.com Wed Mar 7 22:08:33 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 07 Mar 2018 21:08:33 +0000 Subject: [Gambas-user] =?utf-8?b?W0dpdF1bZ2FtYmFzL2dhbWJhc11bbWFzdGVyXSBS?= =?utf-8?q?esult=2EGetAll=28=29_is_a_new_method_that_returns_an_array_of_t?= =?utf-8?q?he_values_of_a=E2=80=A6?= Message-ID: <5aa054d152bd1_22133f808e0a654c33627b@sidekiq-asap-03.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: 043229a0 by gambas at 2018-03-07T21:06:02Z Result.GetAll() is a new method that returns an array of the values of a specific field from each record. [INTERPRETER] * NEW: New API for reference a Gambas string. [GB.DB] * NEW: Result.GetAll() is a new method that returns an array of the values of a specific field from each record. It is about twice faster than the equivalent code written in Gambas. - - - - - 4 changed files: - main/gbx/gbx_api.c - main/gbx/gbx_api.h - main/lib/db/CResult.c - main/share/gambas.h View it on GitLab: https://gitlab.com/gambas/gambas/commit/043229a013a8e6fba587520522db41622912297c --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/043229a013a8e6fba587520522db41622912297c You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gitlab at mg.gitlab.com Wed Mar 7 22:09:23 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 07 Mar 2018 21:09:23 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] Redraw the 'archive' icon. Message-ID: <5aa0550354d43_22133f808ba4c0f43364078@sidekiq-asap-03.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: c6b696b3 by gambas at 2018-03-07T21:08:44Z Redraw the 'archive' icon. [GB.FORM.STOCK] * NEW: Redraw the 'archive' icon. - - - - - 2 changed files: - comp/src/gb.form.stock/gambas-mono/32/archive.png - comp/src/gb.form.stock/gambas/32/archive.png View it on GitLab: https://gitlab.com/gambas/gambas/commit/c6b696b33c0577f6d730efdb074e34d7aeebe318 --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/c6b696b33c0577f6d730efdb074e34d7aeebe318 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gitlab at mg.gitlab.com Thu Mar 8 02:03:33 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 08 Mar 2018 01:03:33 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] 2 commits: ColumnView[].Rename() method now takes an optional argument to indicate the column to rename. Message-ID: <5aa08be675247_22133f80a8a66b08355065d@sidekiq-asap-03.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: 8b80a430 by gambas at 2018-03-08T01:00:31Z ColumnView[].Rename() method now takes an optional argument to indicate the column to rename. [GB.GUI.BASE] * NEW: ColumnView[].Rename() method now takes an optional argument to indicate the column to rename. - - - - - c192a062 by gambas at 2018-03-08T01:01:54Z Debug panel: Merge the 'Local variables' and 'Current object' panels in one 'Debugging panel' put to the left. Put the stack backtrace in that new panel. [DEVELOPMENT ENVIRONMENT] * NEW: Debug panel: Merge the 'Local variables' and 'Current object' panels in one 'Debugging panel' put to the left. Put the stack backtrace in that new panel. - - - - - 12 changed files: - app/src/gambas3/.lang/fr.mo - app/src/gambas3/.lang/fr.po - app/src/gambas3/.src/Debug/Design.module - app/src/gambas3/.src/Debug/FDebugButton.form - app/src/gambas3/.src/Debug/FDebugExpr.form - app/src/gambas3/.src/Debug/FDebugInfo.class - app/src/gambas3/.src/Debug/FDebugInfo.form - comp/src/gb.gui.base/.project - comp/src/gb.gui.base/.src/Test/FMain.form - comp/src/gb.gui.base/.src/TreeView/RenameBox.class - comp/src/gb.gui.base/.src/TreeView/_TreeView.class - comp/src/gb.gui.base/.src/TreeView/_TreeView_Item.class View it on GitLab: https://gitlab.com/gambas/gambas/compare/c6b696b33c0577f6d730efdb074e34d7aeebe318...c192a0627dc6fcc325c428f11bddd223fbeda0bd --- View it on GitLab: https://gitlab.com/gambas/gambas/compare/c6b696b33c0577f6d730efdb074e34d7aeebe318...c192a0627dc6fcc325c428f11bddd223fbeda0bd You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gitlab at mg.gitlab.com Thu Mar 8 02:35:59 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 08 Mar 2018 01:35:59 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] Workaround a new bug in QT5 that prevents some bold fonts from being seen. Message-ID: <5aa0937fc875e_148c3fe36b6a5de039198f4@sidekiq-asap-04.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: b9de5d02 by gambas at 2018-03-08T01:35:09Z Workaround a new bug in QT5 that prevents some bold fonts from being seen. [GB.QT5] * BUG: Workaround a new bug in QT5 that prevents some bold fonts from being seen. - - - - - 1 changed file: - gb.qt4/src/CFont.cpp View it on GitLab: https://gitlab.com/gambas/gambas/commit/b9de5d027cf342f728be95c4067ccdc1d20cd866 --- View it on GitLab: https://gitlab.com/gambas/gambas/commit/b9de5d027cf342f728be95c4067ccdc1d20cd866 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu Mar 8 03:43:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 08 Mar 2018 02:43:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- Comment #2 by V?ctor PEREZ: https://gitlab.com/gambas/gambas/commit/9b2daacf9332dd90807072c0d13f9c43f05e6407 From gitlab at mg.gitlab.com Thu Mar 8 10:15:49 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 08 Mar 2018 09:15:49 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] 2 commits: [GB.GUI.BASE] Message-ID: <5aa0ff459b68d_182443f90e25695e8388023d@sidekiq-asap-05.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: 56e96865 by gambas at 2018-03-08T09:10:21Z [GB.GUI.BASE] * BUG: TreeView: TreeView[].MoveFirst() and TreeView[].MoveLast() were inverted. * NEW: GridView: It now raises a Font event when its font changes. * BUG: GridView: Do not reset row heights when the font changes. * BUG: TreeView: Correctly react to font changes. - - - - - 1b890bd2 by gambas at 2018-03-08T09:15:00Z Debug panel: Merge the 'Watch' panel into the 'Debugging' panel. [DEVELOPMENT ENVIRONMENT] * NEW: Debug panel: Merge the 'Watch' panel into the 'Debugging' panel. - - - - - 12 changed files: - app/src/gambas3/.lang/fr.mo - app/src/gambas3/.lang/fr.po - app/src/gambas3/.src/Debug/FDebugButton.form - app/src/gambas3/.src/Debug/FDebugExpr.class - app/src/gambas3/.src/Debug/FDebugInfo.class - app/src/gambas3/.src/Debug/FDebugInfo.form - app/src/gambas3/.src/Editor/Code/FEditor.class - app/src/gambas3/.src/Options/FOption.class - comp/src/gb.gui.base/.src/GridView/GridView.class - comp/src/gb.gui.base/.src/GridView/_GridView_Rows.class - comp/src/gb.gui.base/.src/TreeView/_TreeView.class - comp/src/gb.gui.base/.src/TreeView/_TreeView_Item.class View it on GitLab: https://gitlab.com/gambas/gambas/compare/b9de5d027cf342f728be95c4067ccdc1d20cd866...1b890bd2472bc7a984ea24a5fc2882b0bedb9bb5 --- View it on GitLab: https://gitlab.com/gambas/gambas/compare/b9de5d027cf342f728be95c4067ccdc1d20cd866...1b890bd2472bc7a984ea24a5fc2882b0bedb9bb5 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Mar 8 12:12:14 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 8 Mar 2018 12:12:14 +0100 Subject: [Gambas-user] Args - got it wrong? Message-ID: Hi folks, Did I get this wrong? Using Args[], I can read commandline arguments given to the program during start, right? This project is a simple PDF viewer. When I insert this into Form_Open(), it doesn't run properly. The program shall get the name of the file to be openend by the calling application: Select Args.Count Case 0 TextLabel1.Text = "Keine Datei angegeben" Case 1 PDFDatei = Args[0] If Not Exist(PDFDatei) Then TextLabel1.Text = "??? " & PDFDatei Return Endif Case Else TextLabel1.Text = "Zu viele Argumente angegeben" Return End Select - When I give the name of the file, I get the name of the project. - When I give no argument (no argument in Project...Arguments), I get the same. It always lands under Case 1 and finds there is no file named "PDF Viewer". Can you help me here? Regards Rolf From g4mba5 at gmail.com Thu Mar 8 12:35:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 8 Mar 2018 12:35:11 +0100 Subject: [Gambas-user] Args - got it wrong? In-Reply-To: References: Message-ID: Le 08/03/2018 ? 12:12, Rolf-Werner Eilert a ?crit?: > Hi folks, > > Did I get this wrong? Using Args[], I can read commandline arguments > given to the program during start, right? > > This project is a simple PDF viewer. When I insert this into > Form_Open(), it doesn't run properly. The program shall get the name of > the file to be openend by the calling application: > > ? Select Args.Count > ? Case 0 > ??? TextLabel1.Text = "Keine Datei angegeben" > ? Case 1 > ??? PDFDatei = Args[0] > ??? If Not Exist(PDFDatei) Then > ????? TextLabel1.Text = "??? " & PDFDatei > ????? Return > ??? Endif > ? Case Else > ??? TextLabel1.Text = "Zu viele Argumente angegeben" > ??? Return > ? End Select > > - When I give the name of the file, I get the name of the project. > - When I give no argument (no argument in Project...Arguments), I get > the same. > > It always lands under Case 1 and finds there is no file named "PDF Viewer". > > Can you help me here? > > Regards > Rolf > It's Unix standard : the first argument is always the name used for runnning your program. The real first argument is actually second, and so on. -- Beno?t Minisini From gitlab at mg.gitlab.com Thu Mar 8 14:57:59 2018 From: gitlab at mg.gitlab.com (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 08 Mar 2018 13:57:59 +0000 Subject: [Gambas-user] [Git][gambas/gambas][master] 4 commits: Add some stock icons for some mimetypes. Message-ID: <5aa14167c2955_22133f809fde50d04299670@sidekiq-asap-03.mail> Beno?t Minisini pushed to branch master at Gambas / gambas Commits: 72899676 by gambas at 2018-03-08T11:48:23Z Add some stock icons for some mimetypes. [GB.FORM] * NEW: Add some stock icons for some mimetypes. - - - - - df7413f3 by gambas at 2018-03-08T11:49:19Z Desktop.RemoteDisplay is a new property that returns if the application is connected to a remote display. [GB.DESKTOP] * NEW: Remove static dependency on 'gb.desktop.x11' component. * NEW: Load 'gb.desktop.x11' only if $XDG_SESSION_TYPE is not "wayland". * NEW: Desktop.RemoteDisplay is a new property that returns if the application is connected to a remote display. * BUG: Fix Desktop.GetFileIcon(). - - - - - 369c668c by gambas at 2018-03-08T11:54:34Z Use file icon and file preview in file autocompletion. [DEVELOPMENT ENVIRONMENT] * NEW: Use file icon and file preview in file autocompletion. - - - - - 1307a0e5 by gambas at 2018-03-08T11:55:36Z TextEditor: Take wayland into account when testing for a remote desktop. [GB.FORM.EDITOR] * BUG: TextEditor: Take wayland into account when testing for a remote desktop. [GB.FORM.TERMINAL] * NEW: Update .gitignore. [GB.WEB.FORM] * NEW: Update .gitignore. - - - - - 20 changed files: - app/src/gambas3/.src/Debug/FDebugInfo.class - app/src/gambas3/.src/Editor/Code/FCompletion.class - comp/src/gb.desktop/.component - comp/src/gb.desktop/.icon.png - comp/src/gb.desktop/.project - comp/src/gb.desktop/.settings - comp/src/gb.desktop/.src/Atom.class - comp/src/gb.desktop/.src/Desktop.class - comp/src/gb.desktop/.src/DesktopMime.class - comp/src/gb.desktop/.src/DesktopWatcher.class - comp/src/gb.desktop/.src/DesktopWindow.class - comp/src/gb.desktop/.src/Main.module - comp/src/gb.desktop/.src/Tests/Form1.class - comp/src/gb.desktop/.src/_DesktopVirtual.class - comp/src/gb.desktop/.src/_Desktop_Windows.class - comp/src/gb.desktop/.startup - comp/src/gb.form.editor/.src/TextEditor.class - comp/src/gb.form.terminal/.gitignore - comp/src/gb.form/map/icon.map - comp/src/gb.web.form/.gitignore View it on GitLab: https://gitlab.com/gambas/gambas/compare/1b890bd2472bc7a984ea24a5fc2882b0bedb9bb5...1307a0e55ba658fefb285a72413674c2d22cb7c0 --- View it on GitLab: https://gitlab.com/gambas/gambas/compare/1b890bd2472bc7a984ea24a5fc2882b0bedb9bb5...1307a0e55ba658fefb285a72413674c2d22cb7c0 You're receiving this email because of your account on gitlab.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Mar 8 15:40:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 8 Mar 2018 15:40:43 +0100 Subject: [Gambas-user] Notifications of git commits Message-ID: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> Hi, The notification of git commits are now sent to a new mailing-list named: "notification". You can subscribe here: https://lists.gambas-basic.org/listinfo/notification Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Thu Mar 8 15:56:27 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 8 Mar 2018 15:56:27 +0100 Subject: [Gambas-user] Args - got it wrong? In-Reply-To: References: Message-ID: Am 08.03.2018 um 12:35 schrieb Beno?t Minisini: > Le 08/03/2018 ? 12:12, Rolf-Werner Eilert a ?crit?: >> Hi folks, >> >> Did I get this wrong? Using Args[], I can read commandline arguments >> given to the program during start, right? >> >> This project is a simple PDF viewer. When I insert this into >> Form_Open(), it doesn't run properly. The program shall get the name >> of the file to be openend by the calling application: >> >> ?? Select Args.Count >> ?? Case 0 >> ???? TextLabel1.Text = "Keine Datei angegeben" >> ?? Case 1 >> ???? PDFDatei = Args[0] >> ???? If Not Exist(PDFDatei) Then >> ?????? TextLabel1.Text = "??? " & PDFDatei >> ?????? Return >> ???? Endif >> ?? Case Else >> ???? TextLabel1.Text = "Zu viele Argumente angegeben" >> ???? Return >> ?? End Select >> >> - When I give the name of the file, I get the name of the project. >> - When I give no argument (no argument in Project...Arguments), I get >> the same. >> >> It always lands under Case 1 and finds there is no file named "PDF >> Viewer". >> >> Can you help me here? >> >> Regards >> Rolf >> > > It's Unix standard : the first argument is always the name used for > runnning your program. The real first argument is actually second, and > so on. > Ah, ok. Now I found that additionally I have to switch on the argument line I want to use. That is Debug/Run With + NOT no argument. That is for IDE only, isn't it? Regards Rolf From bugtracker at gambaswiki.org Thu Mar 8 16:15:59 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 08 Mar 2018 15:15:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1258: grouping events and methods separately Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1258&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- grouping events and methods separately Type : Request Priority : Low Gambas version : 3.10 Product : Development Environment Description ----------- grouping events and methods separately, as well as being separated from the public of the private. System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Thu Mar 8 16:16:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 08 Mar 2018 15:16:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1258: grouping events and methods separately In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1258&from=L21haW4- V?ctor PEREZ added an attachment: separar eventos de metodos.jpg From bugtracker at gambaswiki.org Fri Mar 9 04:45:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 09 Mar 2018 03:45:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1259: Ide crash when want to see breakpoint list Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1259&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Ide crash when want to see breakpoint list Type : Bug Priority : Medium Gambas version : Master Product : Development Environment Description ----------- Ide crash when want to see breakpoint list Reproduce the bug : (attach Video) 1) Open project (attach project) 2) Add breakpoint 3) Make ugly the code 4) Click pretty code Toolbutton 5) Click Tab Breakpoint System information ------------------ [System] Gambas=3.10.90 1307a0e (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zaOPWUQ488 DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1441,unix/:/tmp/.ICE-unix/1441 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/1252 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Fri Mar 9 04:45:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 09 Mar 2018 03:45:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1259: Ide crash when want to see breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1259&from=L21haW4- Zainudin AHMAD added an attachment: test-ide-breakpoint-0.0.1.tar.gz From bugtracker at gambaswiki.org Fri Mar 9 04:46:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 09 Mar 2018 03:46:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1259: Ide crash when want to see breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1259&from=L21haW4- Zainudin AHMAD added an attachment: BugIde-Breakpoint.mp4 From bugtracker at gambaswiki.org Fri Mar 9 04:55:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 09 Mar 2018 03:55:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #871: Point of breakpoints have disappeared when clicking the make code pretty In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.871&from=L21haW4- Comment #1 by Zainudin AHMAD: I meant if make pretty code manual the breakpoint not disappeared/remove, but when make pretty code with make code pretty toolbutton the breakpoint disappeared/remove. just lost feature because it's not disappeared when using older gambas3. (attach video) From bugtracker at gambaswiki.org Fri Mar 9 04:56:11 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 09 Mar 2018 03:56:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #871: Point of breakpoints have disappeared when clicking the make code pretty In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.871&from=L21haW4- Zainudin AHMAD added an attachment: TestBreakpoint.mp4 From chrisml at deganius.de Fri Mar 9 09:32:49 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 9 Mar 2018 09:32:49 +0100 Subject: [Gambas-user] Notifications of git commits In-Reply-To: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> References: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> Message-ID: Hi, Am 08.03.2018 um 15:40 schrieb Beno?t Minisini: > The notification of git commits are now sent to a new mailing-list > named: "notification". Wouldn't it be cool to send then bugtracker messages to notification@ also? 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 shordi at gmail.com Fri Mar 9 10:25:54 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 9 Mar 2018 10:25:54 +0100 Subject: [Gambas-user] Notifications of git commits In-Reply-To: References: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> Message-ID: We don't think so. Bug messages are "general interest" matter. Git messages are "developer interest" mostly. We use only stable version from repositories of gambas-team and we can't (lack of time) be involved in Git, but we need to know the bugs. Best Regards 2018-03-09 9:32 GMT+01:00 Christof Thalhofer : > Hi, > > Am 08.03.2018 um 15:40 schrieb Beno?t Minisini: > > > The notification of git commits are now sent to a new mailing-list > > named: "notification". > > Wouldn't it be cool to send then bugtracker messages to notification@ > also? > > > 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 Fri Mar 9 16:36:09 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 9 Mar 2018 16:36:09 +0100 Subject: [Gambas-user] Notifications of git commits In-Reply-To: References: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> Message-ID: <203b7fe9-b630-353e-9810-227f314e0963@deganius.de> Am 09.03.2018 um 10:25 schrieb Jorge Carri?n: > We don't think so. Bug messages are "general interest" matter. Git > messages are "developer interest" mostly. > We use only stable version from repositories of gambas-team and we can't > (lack of time) be involved in Git, but we need to know the bugs. For me it's no problem to leave it there. I can filter. But I saw a lot of unsubscriptions the last weeks and I mention it is because of a lot of automaticated notification mails in user at . user@ is for discussions via mail between real people IMO. Bugtracker messages are sth inbetween, there is a lot of automatic stuff. But if you like to receive just them, why not subscribe to notification@ and filter Git messages to /dev/null ? 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 Fri Mar 9 17:29:28 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 9 Mar 2018 17:29:28 +0100 Subject: [Gambas-user] Notifications of git commits In-Reply-To: <203b7fe9-b630-353e-9810-227f314e0963@deganius.de> References: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> <203b7fe9-b630-353e-9810-227f314e0963@deganius.de> Message-ID: <8930dae5-fa4e-fb40-efa2-9e5b3a08c5c2@gmail.com> Le 09/03/2018 ? 16:36, Christof Thalhofer a ?crit?: > Am 09.03.2018 um 10:25 schrieb Jorge Carri?n: > >> We don't think so. Bug messages are "general interest" matter. Git >> messages are "developer interest" mostly. >> We use only stable version from repositories of gambas-team and we can't >> (lack of time) be involved in Git, but we need to know the bugs. > > For me it's no problem to leave it there. I can filter. But I saw a lot > of unsubscriptions the last weeks and I mention it is because of a lot > of automaticated notification mails in user at . > > user@ is for discussions via mail between real people IMO. > > Bugtracker messages are sth inbetween, there is a lot of automatic > stuff. But if you like to receive just them, why not subscribe to > notification@ and filter Git messages to /dev/null ? > > > Alles Gute > > Christof Thalhofer > I prefer bugtracker notifications to stay on the user mailing-list too, for the same reason as Jorge. Regards, -- Beno?t Minisini From hans at gambas-buch.de Fri Mar 9 17:59:50 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 9 Mar 2018 17:59:50 +0100 Subject: [Gambas-user] D-Bus - Change property In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> Message-ID: <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> Hello, after the notes in the documentation (http://gambaswiki.org/wiki/doc/dbus) I tested a (D-Bus-)Server, which only has a property' Trigger', whose value should read and change a (D-Bus-)Client: FMain.class: ' Gambas class file Public Sub _new() ?? DBus.Unique = True ?? DBus.Session.Register(Export1, "/export1") End Public Sub Form_Open() ? FMain.Resizable = False ? FMain.Caption = ("The data server is activated") End Public Sub Form_Close() ? FMain.Close() End export1.class: ' Gambas class file Inherits DBusObject Create Static Property Trigger1 As Float Private $fTrigger1 As Float = Pi(4) Private Sub Trigger1_Read() As Float ? Return $fTrigger1 End Private Sub Trigger1_Write(Value As Float) ? $fTrigger1 = Value End ' dbus-send --session --print-reply --dest=org.gambas.dbusserver /export1 org.freedesktop.DBus.Introspectable.Introspect ' Extract from the XML introspection file: ' ... '?? '???? '???? ... '?? ---- The client is simple: FMain.class: ' Gambas class file Public hDBusProxy As DBusProxy Public Sub Form_Open() ? hDBusProxy = DBus["org.gambas.server"]["/export1"] End Public Sub btnDataRefresh_Click() ? Print hDBusProxy.Trigger1 End Public Sub btnSetData_Click() ? hDBusProxy.Trigger1 = 44? ----->> ERROR End As a result, I can read the value of the property from the exported object from the client via the D-Bus without any problems. However, I do not succeed in setting the value for the property Trigger. Only the error message "No function" is displayed. Where is my mental error? I have oriented myself to the following: To get the value of a property, do: DBus[Application][ObjectPath].Property And to set the value of a property, do: DBus[Application][ObjectPath].Property = Value Regards Hans From shordi at gmail.com Fri Mar 9 18:36:52 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 9 Mar 2018 18:36:52 +0100 Subject: [Gambas-user] Notifications of git commits In-Reply-To: <203b7fe9-b630-353e-9810-227f314e0963@deganius.de> References: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> <203b7fe9-b630-353e-9810-227f314e0963@deganius.de> Message-ID: Well... it's an option. I don't mind to do the filter. I just give my opinion. I'll accept whatever will be decided to do, of course. Best Regards 2018-03-09 16:36 GMT+01:00 Christof Thalhofer : > Am 09.03.2018 um 10:25 schrieb Jorge Carri?n: > > > We don't think so. Bug messages are "general interest" matter. Git > > messages are "developer interest" mostly. > > We use only stable version from repositories of gambas-team and we can't > > (lack of time) be involved in Git, but we need to know the bugs. > > For me it's no problem to leave it there. I can filter. But I saw a lot > of unsubscriptions the last weeks and I mention it is because of a lot > of automaticated notification mails in user at . > > user@ is for discussions via mail between real people IMO. > > Bugtracker messages are sth inbetween, there is a lot of automatic > stuff. But if you like to receive just them, why not subscribe to > notification@ and filter Git messages to /dev/null ? > > > 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 Fri Mar 9 20:35:42 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 9 Mar 2018 20:35:42 +0100 Subject: [Gambas-user] Notifications of git commits In-Reply-To: <8930dae5-fa4e-fb40-efa2-9e5b3a08c5c2@gmail.com> References: <45f50d51-ea8d-ce96-59e7-801e5d834758@gmail.com> <203b7fe9-b630-353e-9810-227f314e0963@deganius.de> <8930dae5-fa4e-fb40-efa2-9e5b3a08c5c2@gmail.com> Message-ID: Am 09.03.2018 um 17:29 schrieb Beno?t Minisini: > I prefer bugtracker notifications to stay on the user mailing-list too, > for the same reason as Jorge. Ok. 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 Fri Mar 9 21:40:45 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 09 Mar 2018 20:40:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1259: Ide crash when want to see breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1259&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri Mar 9 21:41:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 09 Mar 2018 20:41:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #871: Point of breakpoints have disappeared when clicking the make code pretty In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.871&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sat Mar 10 02:56:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 01:56:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1259: Ide crash when want to see breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1259&from=L21haW4- Comment #1 by Beno?t MINISINI: It should be fixed in commit https://gitlab.com/gambas/gambas/commit/f6231bf6165df587e77d7692b29b4d06b0a7592b Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sat Mar 10 02:57:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 01:57:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #871: Point of breakpoints have disappeared when clicking the make code pretty In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.871&from=L21haW4- Comment #2 by Beno?t MINISINI: It should be fixed in commit https://gitlab.com/gambas/gambas/commit/f6231bf6165df587e77d7692b29b4d06b0a7592b Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sat Mar 10 02:59:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 01:59:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1190: git in IDE Gambas In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1190&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sat Mar 10 03:05:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 02:05:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #790: Cursor moves when running beautify In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.790&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/4244505ba6bf5a343dc22f11229d539db40e063e Beno?t MINISINI changed the state of the bug to: Fixed. From t.lee.davidson at gmail.com Sat Mar 10 06:41:45 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 10 Mar 2018 00:41:45 -0500 Subject: [Gambas-user] D-Bus - Change property In-Reply-To: <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> Message-ID: <6d4b17b8-aad3-a9e5-7fe7-7fae3ffa9383@gmail.com> I get the same thing, Hans. Interestingly, even though the documentation says that method and property names are case sensitive, this: Public Sub btnDataRefresh_Click() Print hDBusProxy.trigger1 End works. BTW, Beno?t, is there any way to make the Console tab the default when an application is executed from the IDE, instead of the Debugging tab (which actually shows nothing unless there's an exception)? As a preference perhaps? -- Lee On 03/09/2018 11:59 AM, Hans Lehmann wrote: > Hello, > > after the notes in the documentation (http://gambaswiki.org/wiki/doc/dbus) I tested a (D-Bus-)Server, which only has a property' > Trigger', whose value should read and change a (D-Bus-)Client: > > FMain.class: > > ' Gambas class file > > Public Sub _new() > ?? DBus.Unique = True > ?? DBus.Session.Register(Export1, "/export1") > End > > Public Sub Form_Open() > ? FMain.Resizable = False > ? FMain.Caption = ("The data server is activated") > End > > Public Sub Form_Close() > ? FMain.Close() > End > > export1.class: > > ' Gambas class file > > Inherits DBusObject > Create Static > > Property Trigger1 As Float > Private $fTrigger1 As Float = Pi(4) > > Private Sub Trigger1_Read() As Float > ? Return $fTrigger1 > End > > Private Sub Trigger1_Write(Value As Float) > ? $fTrigger1 = Value > End > > ' dbus-send --session --print-reply --dest=org.gambas.dbusserver /export1 org.freedesktop.DBus.Introspectable.Introspect > ' Extract from the XML introspection file: > ' ... > '?? > '???? > '???? ... > '?? > > ---- > > The client is simple: > > FMain.class: > > ' Gambas class file > > Public hDBusProxy As DBusProxy > > Public Sub Form_Open() > ? hDBusProxy = DBus["org.gambas.server"]["/export1"] > End > > Public Sub btnDataRefresh_Click() > ? Print hDBusProxy.Trigger1 > End > > Public Sub btnSetData_Click() > ? hDBusProxy.Trigger1 = 44? ----->> ERROR > End > > As a result, I can read the value of the property from the exported object from the client via the D-Bus without any problems. > However, I do not succeed in setting the value for the property Trigger. Only the error message "No function" is displayed. > Where is my mental error? I have oriented myself to the following: > > To get the value of a property, do: DBus[Application][ObjectPath].Property > And to set the value of a property, do: DBus[Application][ObjectPath].Property = Value > > Regards > > Hans > > -------------------------------------------------- > > 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 From g4mba5 at gmail.com Sat Mar 10 13:32:37 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 10 Mar 2018 13:32:37 +0100 Subject: [Gambas-user] Make the console tab the default while debugging (was Re: D-Bus - Change property) In-Reply-To: <6d4b17b8-aad3-a9e5-7fe7-7fae3ffa9383@gmail.com> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <6d4b17b8-aad3-a9e5-7fe7-7fae3ffa9383@gmail.com> Message-ID: <06b1be05-f997-723f-9f0a-c5b932e30763@gmail.com> Le 10/03/2018 ? 06:41, T Lee Davidson a ?crit?: > > BTW, Beno?t, is there any way to make the Console tab the default when an application is executed from the IDE, instead of the > Debugging tab (which actually shows nothing unless there's an exception)? As a preference perhaps? > I done something about that in the last commit. P.S. Please create another thread if you want to talk about something completely unrelated to the current thread! Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Mar 10 15:57:17 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 10 Mar 2018 15:57:17 +0100 Subject: [Gambas-user] D-Bus - Change property In-Reply-To: <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> Message-ID: <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> Le 09/03/2018 ? 17:59, Hans Lehmann a ?crit?: > Hello, > > after the notes in the documentation > (http://gambaswiki.org/wiki/doc/dbus) I tested a (D-Bus-)Server, which > only has a property' Trigger', whose value should read and change a > (D-Bus-)Client: > > FMain.class: > > ' Gambas class file > > Public Sub _new() > ?? DBus.Unique = True > ?? DBus.Session.Register(Export1, "/export1") > End > > Public Sub Form_Open() > ? FMain.Resizable = False > ? FMain.Caption = ("The data server is activated") > End > > Public Sub Form_Close() > ? FMain.Close() > End > > export1.class: > > ' Gambas class file > > Inherits DBusObject > Create Static > > Property Trigger1 As Float > Private $fTrigger1 As Float = Pi(4) > > Private Sub Trigger1_Read() As Float > ? Return $fTrigger1 > End > > Private Sub Trigger1_Write(Value As Float) > ? $fTrigger1 = Value > End > > ' dbus-send --session --print-reply --dest=org.gambas.dbusserver > /export1 org.freedesktop.DBus.Introspectable.Introspect > ' Extract from the XML introspection file: > ' ... > '?? > '???? > '???? ... > '?? > > ---- > > The client is simple: > > FMain.class: > > ' Gambas class file > > Public hDBusProxy As DBusProxy > > Public Sub Form_Open() > ? hDBusProxy = DBus["org.gambas.server"]["/export1"] > End > > Public Sub btnDataRefresh_Click() > ? Print hDBusProxy.Trigger1 > End > > Public Sub btnSetData_Click() > ? hDBusProxy.Trigger1 = 44? ----->> ERROR > End > > As a result, I can read the value of the property from the exported > object from the client via the D-Bus without any problems. However, I do > not succeed in setting the value for the property Trigger. Only the > error message "No function" is displayed. Where is my mental error? I > have oriented myself to the following: > > To get the value of a property, do: DBus[Application][ObjectPath].Property > And to set the value of a property, do: > DBus[Application][ObjectPath].Property = Value > > Regards > > Hans > Fixed in commit https://gitlab.com/gambas/gambas/commit/be3375e0d29022f3e43adcfc38dafee9684060ba -- Beno?t Minisini From hans at gambas-buch.de Sat Mar 10 16:12:36 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 10 Mar 2018 16:12:36 +0100 Subject: [Gambas-user] Gambas - Stable version? In-Reply-To: <06b1be05-f997-723f-9f0a-c5b932e30763@gmail.com> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <6d4b17b8-aad3-a9e5-7fe7-7fae3ffa9383@gmail.com> <06b1be05-f997-723f-9f0a-c5b932e30763@gmail.com> Message-ID: Hello, obviously there is a difference between the stable Gambas version and version 3.10.0 when comparing the contents of the archives. https://gitlab.com/gambas/gambas/repository/stable/archive.tar.bz2 https://gitlab.com/gambas/gambas/repository/v3.10.0/archive.tar.bz2 I always thought that V 3.10.0 is the stable version. What applies? With kind regards Hans From hans at gambas-buch.de Sat Mar 10 18:32:46 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 10 Mar 2018 18:32:46 +0100 Subject: [Gambas-user] Error during registration on the D-Bus In-Reply-To: <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> Message-ID: Hello, I try in vain to call my service program for the D-Bus only once. At the first start I see the window and can use the service with a D-Bus client program. After a further start I expect the inserted error message - instead there is an error message: This application has raised an unexpected error and must abort. Unique application is already registered. DBus._RegisterApplication.78 With kind regards Hans FMain.class: Public Sub Form_Open() ? DBus.Unique = True ? If DBus.IsRegistered(Service) Then ???? Message.Error("An instance of " & Application.Name & " already exists.") ???? FMain.Close() ? Else ???? DBus.Session.Register(Service, "/Service") ? Endif End Public Sub Form_Close() ? If DBus.IsRegistered(Service) Then DBus.Session.Unregister(Service) ? FMain.Close() End -------------------------------------------------------------------------------------------------- Service.class: Inherits DBusObject Create Static Public Function ComputeAdd(Value1 As Float, Value2 As Float) As Float ? Return Value1 + Value2 End From g4mba5 at gmail.com Sat Mar 10 18:38:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 10 Mar 2018 18:38:34 +0100 Subject: [Gambas-user] Error during registration on the D-Bus In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> Message-ID: <22e17d78-0d81-ddcf-867c-75a676267451@gmail.com> Le 10/03/2018 ? 18:32, Hans Lehmann a ?crit?: > Hello, > > I try in vain to call my service program for the D-Bus only once. > At the first start I see the window and can use the service with a D-Bus > client program. > After a further start I expect the inserted error message - instead > there is an error message: > > This application has raised an unexpected error and must abort. > Unique application is already registered. > DBus._RegisterApplication.78 > > With kind regards > > Hans > > FMain.class: > > Public Sub Form_Open() > > ? DBus.Unique = True > > ? If DBus.IsRegistered(Service) Then > ???? Message.Error("An instance of " & Application.Name & " already > exists.") > ???? FMain.Close() > ? Else > ???? DBus.Session.Register(Service, "/Service") > ? Endif > > End > > Public Sub Form_Close() > > ? If DBus.IsRegistered(Service) Then DBus.Session.Unregister(Service) > ? FMain.Close() > > End > > -------------------------------------------------------------------------------------------------- > > > Service.class: > > Inherits DBusObject > Create Static > > Public Function ComputeAdd(Value1 As Float, Value2 As Float) As Float > ? Return Value1 + Value2 > End > 1) Please post full projects, otherwise it's a pain for me to debug. 2) Please create a new thread when you create a new subject. Don't reply to another post! Thanks. -- Beno?t Minisini From bugtracker at gambaswiki.org Sun Mar 11 00:38:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 23:38:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1260: Ide crash when click remove button in breakpoint list Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1260&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Ide crash when click remove button in breakpoint list Type : Bug Priority : Medium Gambas version : Master Product : Development Environment Description ----------- Ide crash when click remove button in breakpoint list Reproduce the bug: (attach video) 1) open the project (attach project) 2) add breakpoint 3) click breakpoint tab(open breakpoint list) 4) select breakpoint 5) click button remove (breakpoint list empty) 6) click again button remove (ide crash) System information ------------------ [System] Gambas=3.10.90 1307a0e (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zaOPWUQ488 DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1441,unix/:/tmp/.ICE-unix/1441 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/1252 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Sun Mar 11 00:39:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 23:39:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1260: Ide crash when click remove button in breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1260&from=L21haW4- Zainudin AHMAD added an attachment: Bug-Ide-RemoveBreakpointButton.mp4 From bugtracker at gambaswiki.org Sun Mar 11 00:40:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 23:40:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1260: Ide crash when click remove button in breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1260&from=L21haW4- Zainudin AHMAD added an attachment: 20180311-004000-test-0.0.1.tar.gz From bugtracker at gambaswiki.org Sun Mar 11 00:56:58 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 23:56:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1261: In 64 bit systems, size of string, object and variant different with 32 bit systems Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1261&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- In 64 bit systems, size of string, object and variant different with 32 bit systems Type : Bug Priority : Low Gambas version : Unknown Product : Wiki Description ----------- In 64 bit systems, size of string, object and variant different with 32 bit systems.(attach picture) string -> 8 byte object -> 8 byte variant -> 16 byte In wiki page http://gambaswiki.org/wiki/lang/type?nh string -> 4 byte object -> 4 byte variant -> 12 byte System information ------------------ [System] Gambas=3.10.90 1307a0e (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zaOPWUQ488 DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1441,unix/:/tmp/.ICE-unix/1441 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/1252 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Sun Mar 11 00:57:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 10 Mar 2018 23:57:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1261: In 64 bit systems, size of string, object and variant different with 32 bit systems In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1261&from=L21haW4- Zainudin AHMAD added an attachment: SizeOfVar.png From bugtracker at gambaswiki.org Sun Mar 11 01:03:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 00:03:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1260: Ide crash when click remove button in breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1260&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun Mar 11 01:03:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 00:03:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1261: In 64 bit systems, size of string, object and variant different with 32 bit systems In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1261&from=L21haW4- Comment #1 by Tobias BOEGE: String and Object are pointers, Variant contains a pointer, that's why. Fixed. Tobias BOEGE changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sun Mar 11 01:05:38 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 00:05:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1260: Ide crash when click remove button in breakpoint list In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1260&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/e0dca9514d7a14770690fd5bfe87a77002730fd6 Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sun Mar 11 01:07:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 00:07:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1261: In 64 bit systems, size of string, object and variant different with 32 bit systems In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1261&from=L21haW4- Comment #2 by Beno?t MINISINI: These *are* the differences between 32 and 64 bits systems in Gambas. I don't think there are others. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Sun Mar 11 02:43:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 01:43:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1261: In 64 bit systems, size of string, object and variant different with 32 bit systems In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1261&from=L21haW4- Comment #3 by Zainudin AHMAD: I can see the documentation has changed. this report for wiki and I know that is any different between 32 and 64. So next time, if I get the documentation not complete I should report it with Request or Bug report ? From shannon at inflecto.org Sun Mar 11 03:23:21 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sat, 10 Mar 2018 21:23:21 -0500 Subject: [Gambas-user] Filtering listbox list Message-ID: ? Using Gambas 3.10 I'm looking for a way to filter the content of a ListBox using TextBox_KeyPress() I know it can be done, but honesty have no idea where to start. -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Mar 11 08:11:12 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 11 Mar 2018 03:11:12 -0400 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: On 03/10/2018 09:23 PM, Shannon Kuchler wrote: > ? > > Using Gambas 3.10 I'm looking for a way to filter the content of a ListBox using TextBox_KeyPress() > > > I know it can be done, but honesty have no idea where to start. Just to be clear, are you saying that you want to filter the List of a ListBox based on the Text property of a TextBox? (I actually have to wonder how you know it can be done.) ListBox has no 'mask' property. So, since ListBox.List is a string array, you would have to: 1. maintain a separate string array, 2. fill the ListBox.List from that original array, 3. on a key event, clear the List and then refill it incrementally from the original array using String[].Find (with Mode=gb.Like). If you instead are wanting to do incremental searching, you can do that relatively easily by setting the ListBox.Index with ListBox.Find. But, you'll want to use the KeyRelease event. [code] Public Sub Form_Open() With ListBox1 .List = ["abcd", "abce", "abde", "bcde", "bdef"] .Mode = Select.Single End With TextBox1.SetFocus End Public Sub TextBox1_KeyRelease() ListBox1.Index = ListBox1.Find(TextBox1.Text & "*", gb.Like) End [/code] -- Lee From bugtracker at gambaswiki.org Sun Mar 11 08:50:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 07:50:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1261: In 64 bit systems, size of string, object and variant different with 32 bit systems In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1261&from=L21haW4- Comment #4 by Beno?t MINISINI: As you like, or you can ask on the mailing-list first. The bugtracker is mainly for the software, not for the documentation contents. From g4mba5 at gmail.com Sun Mar 11 09:02:14 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 11 Mar 2018 09:02:14 +0100 Subject: [Gambas-user] Error during registration on the D-Bus In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> Message-ID: <419e5a9b-a6da-6591-06f5-04fb8159445a@gmail.com> Le 10/03/2018 ? 18:32, Hans Lehmann a ?crit?: > ? DBus.Unique = True > > ? If DBus.IsRegistered(Service) Then Of course, Service is an object in your program. If you run the program twice, you have a different Service object which is never registered at program start. Registering an object is different from subscribing an application to the DBus, which is done automatically by the component. You don't have a method that will tell you that your application is already registered. If you had one, it won't work anyway because of the race condition it will imply. So you have to deal with DBus.Unique only, and wait for an error telling you that your application is already registered. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Sun Mar 11 09:24:11 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 11 Mar 2018 04:24:11 -0400 Subject: [Gambas-user] Error during registration on the D-Bus In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> Message-ID: <48c353ef-8066-8295-cf59-207ae25b1b30@gmail.com> On 03/10/2018 12:32 PM, Hans Lehmann wrote: > Hello, > > I try in vain to call my service program for the D-Bus only once. > At the first start I see the window and can use the service with a D-Bus client program. > After a further start I expect the inserted error message - instead there is an error message: > > This application has raised an unexpected error and must abort. > Unique application is already registered. > DBus._RegisterApplication.78 > > With kind regards > > Hans > > FMain.class: > > Public Sub Form_Open() > > ? DBus.Unique = True > > ? If DBus.IsRegistered(Service) Then > ???? Message.Error("An instance of " & Application.Name & " already exists.") > ???? FMain.Close() > ? Else > ???? DBus.Session.Register(Service, "/Service") > ? Endif > > End > > Public Sub Form_Close() > > ? If DBus.IsRegistered(Service) Then DBus.Session.Unregister(Service) > ? FMain.Close() > > End > > -------------------------------------------------------------------------------------------------- > > Service.class: > > Inherits DBusObject > Create Static > > Public Function ComputeAdd(Value1 As Float, Value2 As Float) As Float > ? Return Value1 + Value2 > End > Hans, it appears that you provided the complete code of a project modeled after the example in the Wiki. You are testing by launching two separate instances of the application, correct? If so, then I'm sure the problem is that the Service object of the first instance 'belongs' to that particular instance, and the second instance of the app knows nothing about it because it has its own, distinct Service object. So, it sees its own Service object as not registered and tries to register another "org.gambas.server" on the bus which is a collision. (For some reason, the behavior of DBus.Unique seems to be reversed. When set to True a non-unique ID is registered.) I think you would need to try calling a dbus method of the app and then only register on the bus if there is an exception. Something like: [code] Try DBus["org.gambas.server"]["/Service"].ComputeAdd(0, 0) If Error Then DBus.Session.Register(Service, "/Service") Else Message.Error("An instance of " & Application.Name & " already exists.") FMain.Close() Endif [/code] -- Lee From t.lee.davidson at gmail.com Sun Mar 11 09:29:25 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 11 Mar 2018 04:29:25 -0400 Subject: [Gambas-user] Error during registration on the D-Bus In-Reply-To: <419e5a9b-a6da-6591-06f5-04fb8159445a@gmail.com> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> <419e5a9b-a6da-6591-06f5-04fb8159445a@gmail.com> Message-ID: On 03/11/2018 04:02 AM, Beno?t Minisini wrote: > Le 10/03/2018 ? 18:32, Hans Lehmann a ?crit?: >> ?? DBus.Unique = True >> >> ?? If DBus.IsRegistered(Service) Then > > Of course, Service is an object in your program. If you run the program twice, you have a different Service object which is > never registered at program start. > > Registering an object is different from subscribing an application to the DBus, which is done automatically by the component. > > You don't have a method that will tell you that your application is already registered. If you had one, it won't work anyway > because of the race condition it will imply. > > So you have to deal with DBus.Unique only, and wait for an error telling you that your application is already registered. > > Regards, > You snuck that one in while I was composing the one I just sent. And I wonder now why I made it so complicated. Duh. [code] Try DBus.Session.Register(Service, "/Service") If Error Then Message.Error("An instance of " & Application.Name & " already exists.") FMain.Close() Else DBus.Session.Register(Service, "/Service") Endif [/code] -- Lee From shannon at inflecto.org Sun Mar 11 09:32:21 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sun, 11 Mar 2018 03:32:21 -0500 Subject: [Gambas-user] Filtering listbox list Message-ID: ? Sorry I didn't explain myself well enough maybe I'll get it right this time. I'm trying to filter the List of a ListBox based on the text property of a textBox with the results being added to another listbox during a key eventI hope that make more sense > Using Gambas 3.10 I'm looking for a way to filter the content of a ListBox using TextBox_KeyPress() > > > I know it can be done, but honesty have no idea where to start. Just to be clear, are you saying that you want to filter the List of a ListBox based on the Text property of a TextBox? (I actually have to wonder how you know it can be done.) ListBox has no 'mask' property. So, since ListBox.List is a string array, you would have to: 1. maintain a separate string array, 2. fill the ListBox.List from that original array, 3. on a key event, clear the List and then refill it incrementally from the original array using String[].Find (with Mode=gb.Like). If you instead are wanting to do incremental searching, you can do that relatively easily by setting the ListBox.Index with ListBox.Find. But, you'll want to use the KeyRelease event. [code] Public Sub Form_Open() With ListBox1 .List = ["abcd", "abce", "abde", "bcde", "bdef"] .Mode = Select.Single End With TextBox1.SetFocus End Public Sub TextBox1_KeyRelease() ListBox1.Index = ListBox1.Find(TextBox1.Text & "*", gb.Like) End [/code] -- Lee -------------------------------------------------- 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 Sun Mar 11 09:58:42 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 11 Mar 2018 09:58:42 +0100 Subject: [Gambas-user] Error during registration on the D-Bus In-Reply-To: <419e5a9b-a6da-6591-06f5-04fb8159445a@gmail.com> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> <4de5fd44-59b9-23a5-14dc-bf6f95d7c57a@gmail.com> <4dac83fc-c613-373b-f8fc-38708f1842fa@gambas-buch.de> <7b9c28a4-13ea-27ee-d1d2-ffd608a1bf1d@gambas-buch.de> <8f0fd12f-f11a-5aeb-81e2-2eec9639a440@gmail.com> <419e5a9b-a6da-6591-06f5-04fb8159445a@gmail.com> Message-ID: Am 11.03.2018 um 09:02 schrieb Beno?t Minisini: > Of course, Service is an object in your program. If you run the > program twice, you have a different Service object which is never > registered at program start. Yeah, I missed that. > > Registering an object is different from subscribing an application to > the DBus, which is done automatically by the component. It's good to know that the component registers itself on the bus. I had suspected it, but I didn't know it. > > You don't have a method that will tell you that your application is > already registered. If you had one, it won't work anyway because of > the race condition it will imply. For what purpose does the 'DBus.IsRegistered' property exist? In which case do you use this property? > > So you have to deal with DBus.Unique only, and wait for an error > telling you that your application is already registered. Thanks for pointing out that Lee added a source code. Hello Benoit, hello Lee. Thank you for your comments and suggestions. With kind regards Hans From shannon at inflecto.org Sun Mar 11 10:33:44 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sun, 11 Mar 2018 04:33:44 -0500 Subject: [Gambas-user] Filtering listbox list Message-ID: ? -I think I figured it out Public Sub TextBox4_KeyRelease() Dim i As Integer Dim l As Integer ListBox6.Clear ???? ? ????? If TextBox4.text > "z" Or TextBox4.text < " " Then Return ????? For l = 0 To ListBox1.Count ??????? Inc i ????????? If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another ????????? ListBox6.Add(ListBox1[i].Text) ????? Endif ????? Next End Sorry I didn't explain myself well enough maybe I'll get it right this time. I'm trying to filter the List of a ListBox based on the text property of a textBox with the results being added to another listbox during a key eventI hope that make more sense > Using Gambas 3.10 I'm looking for a way to filter the content of a ListBox using TextBox_KeyPress() > > > I know it can be done, but honesty have no idea where to start. Just to be clear, are you saying that you want to filter the List of a ListBox based on the Text property of a TextBox? (I actually have to wonder how you know it can be done.) ListBox has no 'mask' property. So, since ListBox.List is a string array, you would have to: 1. maintain a separate string array, 2. fill the ListBox.List from that original array, 3. on a key event, clear the List and then refill it incrementally from the original array using String[].Find (with Mode=gb.Like). If you instead are wanting to do incremental searching, you can do that relatively easily by setting the ListBox.Index with ListBox.Find. But, you'll want to use the KeyRelease event. [code] Public Sub Form_Open() With ListBox1 .List = ["abcd", "abce", "abde", "bcde", "bdef"] .Mode = Select.Single End With TextBox1.SetFocus End Public Sub TextBox1_KeyRelease() ListBox1.Index = ListBox1.Find(TextBox1.Text & "*", gb.Like) End [/code] -- Lee -------------------------------------------------- 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 Sun Mar 11 11:04:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 10:04:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1261: In 64 bit systems, size of string, object and variant different with 32 bit systems In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1261&from=L21haW4- Comment #5 by Zainudin AHMAD: Ok I am agree, It's better to ask/report in mailing-list for the documentation content. From bagonergi at gmail.com Sun Mar 11 14:37:51 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 11 Mar 2018 14:37:51 +0100 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: Maybe you could use the KeyPress event with "If Key.Code = Key.Return Then ...", "Inc i" is useless and you should use ListBox1.List.Max (or ListBox1.count -1) instead of ListBox1.Count to avoid the 'out of bound' error. Regards Gianluigi 2018-03-11 10:33 GMT+01:00 Shannon Kuchler : > ? > > -I think I figured it out > > > Public Sub TextBox4_KeyRelease() > Dim i As Integer > Dim l As Integer > > ListBox6.Clear > > > If TextBox4.text > "z" Or TextBox4.text < " " Then Return > For l = 0 To ListBox1.Count > Inc i > If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > ListBox6.Add(ListBox1[i].Text) > Endif > Next > > End > > > > Sorry I didn't explain myself well enough maybe I'll get it right this > time. > > I'm trying to filter the List of a ListBox based on the text property of a > textBox with the results being added to another listbox during a key event > > I hope that make more sense > > > > > Using Gambas 3.10 I'm looking for a way to filter the content of a > ListBox using TextBox_KeyPress() > > > > > > > I know it can be done, but honesty have no idea where to start. > > Just to be clear, are you saying that you want to filter the List of a ListBox based on the Text property of a TextBox? (I > actually have to wonder how you know it can be done.) > > ListBox has no 'mask' property. So, since ListBox.List is a string array, you would have to: > 1. maintain a separate string array, > 2. fill the ListBox.List from that original array, > 3. on a key event, clear the List and then refill it incrementally from the original array using String[].Find (with Mode=gb.Like). > > If you instead are wanting to do incremental searching, you can do that relatively easily by setting the ListBox.Index with > ListBox.Find. But, you'll want to use the KeyRelease event. > > [code] > Public Sub Form_Open() > > With ListBox1 > .List = ["abcd", "abce", "abde", "bcde", "bdef"] > .Mode = Select.Single > End With > > TextBox1.SetFocus > > End > > Public Sub TextBox1_KeyRelease() > > ListBox1.Index = ListBox1.Find(TextBox1.Text & "*", gb.Like) > > End > [/code] > > > -- > Lee > > -------------------------------------------------- > > 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 Sun Mar 11 14:41:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 13:41:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1262: Still can replace any word in Lock/Read only File(module, class and other text file) Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1262&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Still can replace any word in Lock/Read only File(module, class and other text file) Type : Bug Priority : Low Gambas version : Master Product : Development Environment Description ----------- Still can replace any word in Lock/Read only File(module, class and other text file) Reproduce the bug: 1) Open the Project (attach project) 2) Lock Main module 3) Replace "Print" word with other word the word(Print) still can replace with other word System information ------------------ [System] Gambas=3.10.90 1307a0e (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zaOPWUQ488 DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1441,unix/:/tmp/.ICE-unix/1441 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/1252 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Sun Mar 11 14:41:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 13:41:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1262: Still can replace any word in Lock/Read only File(module, class and other text file) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1262&from=L21haW4- Zainudin AHMAD added an attachment: test-0.0.1.tar.gz From bugtracker at gambaswiki.org Sun Mar 11 14:42:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 13:42:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1262: Still can replace any word in Lock/Read only File(module, class and other text file) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1262&from=L21haW4- Zainudin AHMAD added an attachment: Bug-Ide-ReplaceFeature.mp4 From bugtracker at gambaswiki.org Sun Mar 11 16:31:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 15:31:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4- Comment #25 by Olivier CRUILLES: I think you can close the bug it's seems to be ok now. Thank you Benoit. From bugtracker at gambaswiki.org Sun Mar 11 17:20:34 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 16:20:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1246: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1246&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sun Mar 11 18:00:11 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 17:00:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1262: Still can replace any word in Lock/Read only File(module, class and other text file) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1262&from=L21haW4- Comment #1 by Beno?t MINISINI: It should be fixed in commit https://gitlab.com/gambas/gambas/commit/cc79f63461ed251bbe1cbcfaedc56700c9da2ae2 Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sun Mar 11 18:00:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 17:00:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1258: grouping events and methods separately In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1258&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From t.lee.davidson at gmail.com Sun Mar 11 19:37:24 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 11 Mar 2018 14:37:24 -0400 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: <4be6efc8-3fa5-70be-3ae1-ee91b76eab36@gmail.com> Good advice on using ListBox.List.Max. I have found the KeyRelease event to be more reliable in regards to having access to the actual, current keystroke value. And, instead of looping through List, I personally would simply use ListBox.Find. -- Lee On 03/11/2018 09:37 AM, Gianluigi wrote: > Maybe you could use the KeyPress event with "If Key.Code = Key.Return Then ...", > "Inc i" is useless and you should use ListBox1.List.Max (or ListBox1.count -1) instead of ListBox1.Count to avoid the 'out of > bound' error. > > Regards > Gianluigi > > 2018-03-11 10:33 GMT+01:00 Shannon Kuchler >: > > __ > > ? > > -I think I figured it out > > > Public Sub TextBox4_KeyRelease() > Dim i As Integer > Dim l As Integer > > ListBox6.Clear > ???? ? > > ????? If TextBox4.text > "z" Or TextBox4.text < " " Then Return > ????? For l = 0 To ListBox1.Count > ??????? Inc i > ????????? If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > ????????? ListBox6.Add(ListBox1[i].Text) > ????? Endif > ????? Next > > End > > > From bugtracker at gambaswiki.org Sun Mar 11 21:08:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 20:08:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- autocomplete error in right margin Type : Bug Priority : Low Gambas version : 3.10 Product : Bugtracker Description ----------- autocomplete error in over right margin System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Sun Mar 11 21:09:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 11 Mar 2018 20:09:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- V?ctor PEREZ added an attachment: bug-end-line-rigth.ogv From shannon at inflecto.org Sun Mar 11 22:03:08 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sun, 11 Mar 2018 16:03:08 -0500 Subject: [Gambas-user] Filtering listbox list Message-ID: ? This code works Public Sub TextBox4_KeyRelease()Dim i As Integer Dim l As Integer i = (-1) ListBox6.Clear If TextBox4.Text = "" Then ListBox6.List = ListBox1.List If TextBox4.Text <= " " Then Return ' not searchable For l = 0 To ListBox1.List.Max Inc i If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another ListBox6.Add(ListBox1[i].Text) Endif Next end I could not get it to work with out the "Inc i" perhaps I'm missing something there. Before it wasn't catching listbox1.index(0)? so I had to add "i = (-1)"However it still need something because it only 1/2 works for instance this is the data in listbox1 The Dying Lands Bad Company Valmod Expansion Pack Valmod Overhaul Pack Darkness Falls (BBP) Starvation War Of The Walkers 5.2 (BBP) if I type "v" in textbox4 I get this output to listbox6 which I expected Valmod Expansion Pack Valmod Overhaul Pack However if I type "t" in textbox4 I get this output to listbox6 The Dying Lands I expected 't" to give me everything that had a 't' like this The Dying LandsStarvationWar Of The Walkers 5.2 (BBP) Good advice on using ListBox.List.Max. I have found the KeyRelease event to be more reliable in regards to having access to the actual, current keystroke value. And, instead of looping through List, I personally would simply use ListBox.Find. -- Lee On 03/11/2018 09:37 AM, Gianluigi wrote: > Maybe you could use the KeyPress event with "If Key.Code = Key.Return Then ...", > "Inc i" is useless and you should use ListBox1.List.Max (or ListBox1.count -1) instead of ListBox1.Count to avoid the 'out of > bound' error. > > Regards > Gianluigi > > 2018-03-11 10:33 GMT+01:00 Shannon Kuchler >: > > __ > > ? > > -I think I figured it out > > > Public Sub TextBox4_KeyRelease() > Dim i As Integer > Dim l As Integer > > ListBox6.Clear > ???? ? > > ????? If TextBox4.text > "z" Or TextBox4.text < " " Then Return > ????? For l = 0 To ListBox1.Count > ??????? Inc i > ????????? If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > ????????? ListBox6.Add(ListBox1[i].Text) > ????? Endif > ????? Next > > End > > > -------------------------------------------------- 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 Sun Mar 11 22:25:10 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 11 Mar 2018 22:25:10 +0100 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: If you use 'Like TextBox4.Text & "*"' you will get the textbox text plus zero or n characters. If you want to find the characters written in textbox even in the middle of the sentences then you have to write 'Like "*" & TextBox4.Text & "*"' Regards Gianluigi 2018-03-11 22:03 GMT+01:00 Shannon Kuchler : > ? > > This code works > > > Public Sub TextBox4_KeyRelease() > > Dim i As Integer > Dim l As Integer > i = (-1) > > ListBox6.Clear > > If TextBox4.Text = "" Then ListBox6.List = ListBox1.List > If TextBox4.Text <= " " Then Return ' not searchable > For l = 0 To ListBox1.List.Max > Inc i > If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > ListBox6.Add(ListBox1[i].Text) > Endif > Next > end > > > I could not get it to work with out the "Inc i" perhaps I'm missing > something there. Before it wasn't catching listbox1.index(0) so I had to > add "i = (-1)" > > However it still need something because it only 1/2 works > > > for instance this is the data in listbox1 > > > The Dying Lands > Bad Company > Valmod Expansion Pack > Valmod Overhaul Pack > Darkness Falls (BBP) > Starvation > War Of The Walkers 5.2 (BBP) > > > if I type "v" in textbox4 I get this output to listbox6 which I expected > > > Valmod Expansion Pack > Valmod Overhaul Pack > > > However if I type "t" in textbox4 I get this output to listbox6 > > > The Dying Lands > > > I expected 't" to give me everything that had a 't' like this > > > The Dying Lands > > Starvation > > War Of The Walkers 5.2 (BBP) > > > > > > > > Good advice on using ListBox.List.Max. > > I have found the KeyRelease event to be more reliable in regards to having access to the actual, current keystroke value. > > And, instead of looping through List, I personally would simply use ListBox.Find. > > > -- > Lee > > On 03/11/2018 09:37 AM, Gianluigi wrote: > > Maybe you could use the KeyPress event with "If Key.Code = Key.Return Then ...", > > "Inc i" is useless and you should use ListBox1.List.Max (or ListBox1.count -1) instead of ListBox1.Count to avoid the 'out of > > bound' error. > > > > Regards > > Gianluigi > > > > 2018-03-11 10:33 GMT+01:00 Shannon Kuchler >: > > > > __ > > > > ? > > > > -I think I figured it out > > > > > > Public Sub TextBox4_KeyRelease() > > Dim i As Integer > > Dim l As Integer > > > > ListBox6.Clear > > > > > > If TextBox4.text > "z" Or TextBox4.text < " " Then Return > > For l = 0 To ListBox1.Count > > Inc i > > If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > > ListBox6.Add(ListBox1[i].Text) > > Endif > > Next > > > > End > > > > > > > > -------------------------------------------------- > > 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 Sun Mar 11 22:38:06 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 11 Mar 2018 22:38:06 +0100 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: I forgot, in the loop 'i' and 'l'' have the same value. Regards Gianluigi 2018-03-11 22:25 GMT+01:00 Gianluigi : > If you use 'Like TextBox4.Text & "*"' you will get the textbox text plus > zero or n characters. > If you want to find the characters written in textbox even in the middle > of the sentences then you have to write 'Like "*" & TextBox4.Text & "*"' > > Regards > Gianluigi > > 2018-03-11 22:03 GMT+01:00 Shannon Kuchler : > >> ? >> >> This code works >> >> >> Public Sub TextBox4_KeyRelease() >> >> Dim i As Integer >> Dim l As Integer >> i = (-1) >> >> ListBox6.Clear >> >> If TextBox4.Text = "" Then ListBox6.List = ListBox1.List >> If TextBox4.Text <= " " Then Return ' not searchable >> For l = 0 To ListBox1.List.Max >> Inc i >> If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another >> ListBox6.Add(ListBox1[i].Text) >> Endif >> Next >> end >> >> >> I could not get it to work with out the "Inc i" perhaps I'm missing >> something there. Before it wasn't catching listbox1.index(0) so I had to >> add "i = (-1)" >> >> However it still need something because it only 1/2 works >> >> >> for instance this is the data in listbox1 >> >> >> The Dying Lands >> Bad Company >> Valmod Expansion Pack >> Valmod Overhaul Pack >> Darkness Falls (BBP) >> Starvation >> War Of The Walkers 5.2 (BBP) >> >> >> if I type "v" in textbox4 I get this output to listbox6 which I expected >> >> >> Valmod Expansion Pack >> Valmod Overhaul Pack >> >> >> However if I type "t" in textbox4 I get this output to listbox6 >> >> >> The Dying Lands >> >> >> I expected 't" to give me everything that had a 't' like this >> >> >> The Dying Lands >> >> Starvation >> >> War Of The Walkers 5.2 (BBP) >> >> >> >> >> >> >> >> Good advice on using ListBox.List.Max. >> >> I have found the KeyRelease event to be more reliable in regards to having access to the actual, current keystroke value. >> >> And, instead of looping through List, I personally would simply use ListBox.Find. >> >> >> -- >> Lee >> >> On 03/11/2018 09:37 AM, Gianluigi wrote: >> > Maybe you could use the KeyPress event with "If Key.Code = Key.Return Then ...", >> > "Inc i" is useless and you should use ListBox1.List.Max (or ListBox1.count -1) instead of ListBox1.Count to avoid the 'out of >> > bound' error. >> > >> > Regards >> > Gianluigi >> > >> > 2018-03-11 10:33 GMT+01:00 Shannon Kuchler >: >> > >> > __ >> > >> > ? >> > >> > -I think I figured it out >> > >> > >> > Public Sub TextBox4_KeyRelease() >> > Dim i As Integer >> > Dim l As Integer >> > >> > ListBox6.Clear >> > >> > >> > If TextBox4.text > "z" Or TextBox4.text < " " Then Return >> > For l = 0 To ListBox1.Count >> > Inc i >> > If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another >> > ListBox6.Add(ListBox1[i].Text) >> > Endif >> > Next >> > >> > End >> > >> > >> > >> >> -------------------------------------------------- >> >> 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 d4t4full at gmail.com Sun Mar 11 22:38:49 2018 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Sun, 11 Mar 2018 18:38:49 -0300 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: <10a019e8-8df4-41a7-a1f9-be021e45060f@gmail.com> Shannon, Did not actuallt try it but I guess that you could change the line: If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another To this to allow looking for letters/words not at the beginning: If (ListBox1[i].Text Like ("*" & TextBox4.Text & "*")) Then ' found another That is, prefix the search term with another asterisk. Parentheses are optional, of course, but they do clarify my own mind. Risking being pedantic, I'd also suggest you use meaningful control and variable names. ListBox1 says nothing but lstAllOptions does. Same for TextBox4, it could be txtSearch, and ListBox6 could be lstFiltered. You'll thank me later when you revisit code some time from now. Been there, done that, regretted it big time. Hope it helps, zxMarce. On Mar 11, 2018, 18:04, at 18:04, Shannon Kuchler wrote: > > >This code works >Public Sub TextBox4_KeyRelease()Dim i As Integer >Dim l As Integer >i = (-1) > >ListBox6.Clear > >If TextBox4.Text = "" Then ListBox6.List = ListBox1.List > If TextBox4.Text <= " " Then Return ' not searchable > For l = 0 To ListBox1.List.Max > Inc i > If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > ListBox6.Add(ListBox1[i].Text) > Endif > Next > >end >I could not get it to work with out the "Inc i" perhaps I'm missing >something there. Before it wasn't catching listbox1.index(0)? so I had >to add "i = (-1)"However it still need something because it only 1/2 >works > >for instance this is the data in listbox1 > >The Dying Lands >Bad Company >Valmod Expansion Pack >Valmod Overhaul Pack >Darkness Falls (BBP) >Starvation >War Of The Walkers 5.2 (BBP) >if I type "v" in textbox4 I get this output to listbox6 which I >expected > >Valmod Expansion Pack >Valmod Overhaul Pack >However if I type "t" in textbox4 I get this output to listbox6 > >The Dying Lands >I expected 't" to give me everything that had a 't' like this > >The Dying LandsStarvationWar Of The Walkers 5.2 (BBP) > > > > > > >Good advice on using ListBox.List.Max. > >I have found the KeyRelease event to be more reliable in regards to >having access to the actual, current keystroke value. > >And, instead of looping through List, I personally would simply use >ListBox.Find. > > >-- >Lee > >On 03/11/2018 09:37 AM, Gianluigi wrote: >> Maybe you could use the KeyPress event with "If Key.Code = Key.Return >Then ...", >> "Inc i" is useless and you should use ListBox1.List.Max (or >ListBox1.count -1) instead of ListBox1.Count to avoid the 'out of >> bound' error. >> >> Regards >> Gianluigi >> >> 2018-03-11 10:33 GMT+01:00 Shannon Kuchler >: >> >> __ >> >> ? >> >> -I think I figured it out >> >> >> Public Sub TextBox4_KeyRelease() >> Dim i As Integer >> Dim l As Integer >> >> ListBox6.Clear >> ???? ? >> >> ????? If TextBox4.text > "z" Or TextBox4.text < " " Then >Return >> ????? For l = 0 To ListBox1.Count >> ??????? Inc i >> ????????? If ListBox1[i].Text Like TextBox4.Text & "*" Then ' >found another >> ????????? ListBox6.Add(ListBox1[i].Text) >> ????? Endif >> ????? Next >> >> End >> >> >> > >-------------------------------------------------- > >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 Sun Mar 11 22:54:43 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 11 Mar 2018 17:54:43 -0400 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: On 03/11/2018 05:03 PM, Shannon Kuchler wrote: > This code works > > > Public Sub TextBox4_KeyRelease() > > Dim i As Integer > Dim l As Integer > i = (-1) > > ListBox6.Clear > > If TextBox4.Text = "" Then ListBox6.List = ListBox1.List > If TextBox4.Text <= " " Then Return ' not searchable > For l = 0 To ListBox1.List.Max > Inc i > If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > ListBox6.Add(ListBox1[i].Text) > Endif > Next > > end So does this: Public Sub TextBox4_KeyRelease() Dim ndx As Integer ListBox6.Clear If TextBox4.Text = "" Then ListBox6.List = ListBox4.List If TextBox4.Text <= " " Then Return ' not searchable ndx = ListBox4.Find("*" & TextBox4.Text & "*", gb.Like) While ndx >= 0 ' found another ListBox6.Add(ListBox4[ndx].Text) ndx = ListBox4.List.Find("*" & TextBox4.Text & "*", gb.Like, ndx + 1) Wend End :-) -- Lee From shannon at inflecto.org Sun Mar 11 23:14:21 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sun, 11 Mar 2018 17:14:21 -0500 Subject: [Gambas-user] Filtering listbox list Message-ID: ? Thanks guys the? Like "*" & TextBox4.Text & "*" ? did the trick. I know I still have a lot to learn and I really thank you guys for your patience Shannon, Did not actuallt try it but I guess that you could change the line: If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another To this to allow looking for letters/words not at the beginning: If (ListBox1[i].Text Like ("*" & TextBox4.Text & "*")) Then ' found another That is, prefix the search term with another asterisk. Parentheses are optional, of course, but they do clarify my own mind. Risking being pedantic, I'd also suggest you use meaningful control and variable names. ListBox1 says nothing but lstAllOptions does. Same for TextBox4, it could be txtSearch, and ListBox6 could be lstFiltered. You'll thank me later when you revisit code some time from now. Been there, done that, regretted it big time. Hope it helps, zxMarce. On Mar 11, 2018, at 18:04, Shannon Kuchler > wrote: ? This code works Public Sub TextBox4_KeyRelease()Dim i As Integer Dim l As Integer i = (-1) ListBox6.Clear If TextBox4.Text = "" Then ListBox6.List = ListBox1.List If TextBox4.Text <= " " Then Return ' not searchable For l = 0 To ListBox1.List.Max Inc i If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another ListBox6.Add(ListBox1[i].Text) Endif Next end I could not get it to work with out the "Inc i" perhaps I'm missing something there. Before it wasn't catching listbox1.index(0)? so I had to add "i = (-1)"However it still need something because it only 1/2 works for instance this is the data in listbox1 The Dying Lands Bad Company Valmod Expansion Pack Valmod Overhaul Pack Darkness Falls (BBP) Starvation War Of The Walkers 5.2 (BBP) if I type "v" in textbox4 I get this output to listbox6 which I expected Valmod Expansion Pack Valmod Overhaul Pack However if I type "t" in textbox4 I get this output to listbox6 The Dying Lands I expected 't" to give me everything that had a 't' like this The Dying LandsStarvationWar Of The Walkers 5.2 (BBP) Good advice on using ListBox.List.Max. I have found the KeyRelease event to be more reliable in regards to having access to the actual, current keystroke value. And, instead of looping through List, I personally would simply use ListBox.Find. -- Lee On 03/11/2018 09:37 AM, Gianluigi wrote: > Maybe you could use the KeyPress event with "If Key.Code = Key.Return Then ...", > "Inc i" is useless and you should use ListBox1.List.Max (or ListBox1.count -1) instead of ListBox1.Count to avoid the 'out of > bound' error. > > Regards > Gianluigi > > 2018-03-11 10:33 GMT+01:00 Shannon Kuchler >: > > __ > > ? > > -I think I figured it out > > > Public Sub TextBox4_KeyRelease() > Dim i As Integer > Dim l As Integer > > ListBox6.Clear > ???? ? > > ????? If TextBox4.text > "z" Or TextBox4.text < " " Then Return > ????? For l = 0 To ListBox1.Count > ??????? Inc i > ????????? If ListBox1[i].Text Like TextBox4.Text & "*" Then ' found another > ????????? ListBox6.Add(ListBox1[i].Text) > ????? Endif > ????? Next > > End -------------------------------------------------- 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 Sun Mar 11 23:47:43 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 11 Mar 2018 23:47:43 +0100 Subject: [Gambas-user] Filtering listbox list In-Reply-To: References: Message-ID: > > > So does this: > > Public Sub TextBox4_KeyRelease() > > Dim ndx As Integer > > ListBox6.Clear > > If TextBox4.Text = "" Then ListBox6.List = ListBox4.List > If TextBox4.Text <= " " Then Return ' not searchable > ndx = ListBox4.Find("*" & TextBox4.Text & "*", gb.Like) > While ndx >= 0 ' found another > ListBox6.Add(ListBox4[ndx].Text) > ndx = ListBox4.List.Find("*" & TextBox4.Text & "*", gb.Like, ndx + 1) > Wend > > End > > :-) > > > -- > Lee > > -------------------------------------------------- Hi Lee, your code works very well ? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail.gambaspi at gmail.com Mon Mar 12 00:56:16 2018 From: mail.gambaspi at gmail.com (Zainudin Ahmad) Date: Mon, 12 Mar 2018 06:56:16 +0700 Subject: [Gambas-user] CPointer() , not documented ? Message-ID: Hi All I can't found any word "CPointer" in documentation. may be any someone know ? or may be any reason why it's not documented ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Mar 12 01:01:15 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 12 Mar 2018 01:01:15 +0100 Subject: [Gambas-user] CPointer() , not documented ? In-Reply-To: References: Message-ID: Le 12/03/2018 ? 00:56, Zainudin Ahmad a ?crit?: > Hi All > > I can't found any word "CPointer" in documentation. may be any someone > know ? > or may be any reason why it's not documented ? > It was just forgotten. -- Beno?t Minisini From bugtracker at gambaswiki.org Mon Mar 12 02:38:51 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 12 Mar 2018 01:38:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1258: grouping events and methods separately In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1258&from=L21haW4- Comment #1 by Beno?t MINISINI: Done in commit https://gitlab.com/gambas/gambas/commit/25d7b565ab354098793f42d8a8e8598dddb1b9cf Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Mon Mar 12 02:44:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 12 Mar 2018 01:44:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1201: Menu Edition In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1201&from=L21haW4- Comment #1 by Beno?t MINISINI: Done in commit https://gitlab.com/gambas/gambas/commit/56bf5447e3cba19bb4dbe4d688d7686a9e890f73 Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Mon Mar 12 02:45:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 12 Mar 2018 01:45:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #975: Exclude class/module In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.975&from=L21haW4- Comment #2 by Beno?t MINISINI: No answer for a year, closing the issue. Beno?t MINISINI changed the state of the bug to: Abandoned. From bugtracker at gambaswiki.org Mon Mar 12 02:47:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 12 Mar 2018 01:47:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1147: Application with GTK3 widgetset not responsive In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1147&from=L21haW4- Comment #7 by Beno?t MINISINI: Do you still have the problem? Did you try with the development version? Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Mar 12 02:47:58 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 12 Mar 2018 01:47:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1147: Application with GTK3 widgetset not responsive In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1147&from=L21haW4- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From hans at gambas-buch.de Tue Mar 13 09:21:15 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 13 Mar 2018 09:21:15 +0100 Subject: [Gambas-user] DBusVariant or DBusValues? In-Reply-To: <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> Message-ID: Am 23.02.2018 um 15:00 schrieb Beno?t Minisini: > Le 23/02/2018 ? 14:56, Hans Lehmann a ?crit?: >> Am 22.02.2018 um 22:44 schrieb Beno?t Minisini: >>> The reason is that if they were the same, i.e. if we had only >>> DBusVariant, it would not be possible to make the difference between >>> a DBus method that returns of array of three variants with a method >>> that returns three values, each one being a variant. >>> >>> With DBusValues, we are sure that we want to return several values, >>> and that if it the value of the DBusValues is an array, then we have >>> multiple values. >>> >>> The DBus signature associated with these things are different: "av" >>> for the DBusVariant, "vvv" for the DBusValues. >> Hello! >> >> Would this description also be correct? >> >> The reason for the existence of two classes is that only such a >> distinction can be made between two methods, one of which returns an >> array of three Variant type values and the other three values, each >> of which is Variant. In both cases there are exactly three values! >> Using DBusValues makes it clear that you want to return several >> values. This is also reflected in the different DBus signatures: for >> DBusVariant it is "av" and for DBusValues it is "vvv". >> ? >> >> Regards >> >> Honsek >> > > Mmm. I think so... If it's for a book, you can provide an example to > explain that if you want to return several values, you have to use > DBusValues because DBusVariant is ambiguous. > > -- > Beno?t Minisini Hello, do all the above considerations for the return value of methods also apply in the same way for signals to be sent with complex signatures? Or are there serious differences? With kind regards Hans From bugtracker at gambaswiki.org Tue Mar 13 10:11:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 09:11:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1264: Doing : vTmp = Last.value inside MyTask_Kill(), will raise an Error "File or ..." Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1264&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Doing : vTmp = Last.value inside MyTask_Kill(), will raise an Error "File or ..." Type : Bug Priority : Medium Gambas version : Master Product : Language Description ----------- This code will raise an Error "File or Directory does not exist ..." Public Sub MyTask_Kill() Dim vTmp As Variant vTmp = Last.value End Reproduce the Bug: 1) Open the project (attach project) 2) Run It's fine with older gambas3 version (this happen only with Master version) System information ------------------ [System] Gambas=3.10.90 1307a0e (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zaOPWUQ488 DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1441,unix/:/tmp/.ICE-unix/1441 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/1252 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Tue Mar 13 10:11:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 09:11:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1264: Doing : vTmp = Last.value inside MyTask_Kill(), will raise an Error "File or ..." In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1264&from=L21haW4- Zainudin AHMAD added an attachment: Bug-Task-0.0.1.tar.gz From bugtracker at gambaswiki.org Tue Mar 13 10:44:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 09:44:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1265: Duplicated startup icon in project tree Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1265&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Duplicated startup icon in project tree Type : Bug Priority : Low Gambas version : Master Product : Development Environment Description ----------- The startup icon in project tree sometimes duplicated. (attach videos) I can't reproduce it because this happened sometimes. other project (attach pic) System information ------------------ [System] Gambas=3.10.90 56bf544 (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8uIg5EIr5b DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1316,unix/:/tmp/.ICE-unix/1316 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/1131 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Tue Mar 13 10:45:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 09:45:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1265: Duplicated startup icon in project tree In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1265&from=L21haW4- Zainudin AHMAD added an attachment: Bug-Ide-StartupIcon.mp4 From bugtracker at gambaswiki.org Tue Mar 13 10:45:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 09:45:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1265: Duplicated startup icon in project tree In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1265&from=L21haW4- Zainudin AHMAD added an attachment: Screenshot_2018-03-13_16-22-40.png From bugtracker at gambaswiki.org Tue Mar 13 10:45:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 09:45:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1265: Duplicated startup icon in project tree In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1265&from=L21haW4- Zainudin AHMAD added an attachment: Screenshot_2018-03-13_16-22-40.png From g4mba5 at gmail.com Tue Mar 13 10:50:03 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 13 Mar 2018 10:50:03 +0100 Subject: [Gambas-user] DBusVariant or DBusValues? In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> Message-ID: <1e39d584-b861-afd8-e23c-22195d6924bd@gmail.com> Le 13/03/2018 ? 09:21, Hans Lehmann a ?crit?: > > Hello, > > do all the above considerations for the return value of methods also > apply in the same way for signals to be sent with complex signatures? > Or are there serious differences? > > With kind regards > > Hans > AFAIK DBus signals do not return anything. -- Beno?t Minisini From rwe-sse at osnanet.de Tue Mar 13 12:03:06 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 13 Mar 2018 12:03:06 +0100 Subject: [Gambas-user] Gambas form on a certain screen Message-ID: <0e35fb98-a1bd-939f-53d8-9725001a78dd@osnanet.de> Just curious: Is it possible to define a screen for a form to open in? Up to now, I can define a window for an application AND/OR an application's form in KDE, i. e. KDE remembers "this program should be opened on screen X". Thanks for your advice. Rolf From hans at gambas-buch.de Tue Mar 13 12:27:06 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 13 Mar 2018 12:27:06 +0100 Subject: [Gambas-user] D-Bus method with a complex data type triggers an error In-Reply-To: References: <30ca50c1-b02f-4256-bcd9-64adb7e6622b@gambas-buch.de> <318fd6eb-65a6-df42-80b9-10b03000992a@gmail.com> <674e5b37-f66e-b123-6940-970111c3ca8c@gmail.com> Message-ID: <3a6b2328-d73f-faff-ac48-6e4ffd2b8edb@gambas-buch.de> Hello, I am testing a D-Bus server that offers a method with a complex data type as a return value ( signature isiava{sv} ). The method uses a parameter of type String. A D-Bus client calls the method and should map the return value to a (gambas) data type Struct. Unfortunately there is an error: org.freedesktop.DBus.Error.Failed: Zero object? The two projects for server and client are attached. I can't find the error on my own, so I need help. With kind regards Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: dbusc-0.0.18.tar.gz Type: application/gzip Size: 52624 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dbuss-0.0.110.tar.gz Type: application/gzip Size: 54070 bytes Desc: not available URL: From mnaltrogge at web.de Tue Mar 13 14:54:35 2018 From: mnaltrogge at web.de (Michael N. Altrogge) Date: Tue, 13 Mar 2018 14:54:35 +0100 Subject: [Gambas-user] Type mismatch: wanted FEditor, got TextEditor instead Message-ID: <1f315686-c9c9-f53b-356c-764077508a82@web.de> Even with a new project I can't open the code ... [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=4.13.0-36-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=de_DE.UTF-8 Memory=3390M [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] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-QGUctsUy3v,guid=f6eb9254fef2e04ea1c833945aa7ced6 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_AUTOSTART_ID=10f798bda4e9e89c1152094690378990300000018820007 DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=de_DE GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=de_DE.UTF-8 LANGUAGE=de_DE 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/1882,unix/:/tmp/.ICE-unix/1882 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1990 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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas3 Fehler.png Type: image/png Size: 23545 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Mar 13 15:35:33 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 13 Mar 2018 15:35:33 +0100 Subject: [Gambas-user] Type mismatch: wanted FEditor, got TextEditor instead In-Reply-To: <1f315686-c9c9-f53b-356c-764077508a82@web.de> References: <1f315686-c9c9-f53b-356c-764077508a82@web.de> Message-ID: <9717f83a-a279-2324-70b3-23d2950ff9f5@gmail.com> Le 13/03/2018 ? 14:54, Michael N. Altrogge a ?crit?: > Even with a new project I can't open the code ... > It should be fixed in commit https://gitlab.com/gambas/gambas/commit/b9a31ab9895e8cbb3f0612991e993e8827d318e5 Regards, -- Beno?t Minisini From charlie at cogier.com Tue Mar 13 14:37:00 2018 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 13 Mar 2018 13:37:00 +0000 Subject: [Gambas-user] Gambas form on a certain screen In-Reply-To: <0e35fb98-a1bd-939f-53d8-9725001a78dd@osnanet.de> References: <0e35fb98-a1bd-939f-53d8-9725001a78dd@osnanet.de> Message-ID: Hi Rolf, I have done a bit of testing and if you put the code below in your program it will open in the first Workspace. Note that Workspaces start at '0' not '1' I tested this on Mint 18 (Cinnamon) and it worked straight away. I have got it working on Kubuntu 17.10 but needed to install 'wmctrl' first. Just change the '0' to the Workspace you want the program to open in. I had a bit of fun testing 'wmctrl' with the attached program. Charlie Public Sub _new() Shell "wmctrl -s 0" Wait End On 13/03/18 11:03, Rolf-Werner Eilert wrote: > Just curious: Is it possible to define a screen for a form to open in? > > Up to now, I can define a window for an application AND/OR an > application's form in KDE, i. e. KDE remembers "this program should be > opened on screen X". > > Thanks for your advice. > > 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 -------------- A non-text attachment was scrubbed... Name: WorkSpace_Shifter.tar.gz Type: application/gzip Size: 288438 bytes Desc: not available URL: From bugtracker at gambaswiki.org Tue Mar 13 15:47:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 14:47:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1265: Duplicated startup icon in project tree In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1265&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From g4mba5 at gmail.com Tue Mar 13 15:51:09 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 13 Mar 2018 15:51:09 +0100 Subject: [Gambas-user] Gambas form on a certain screen In-Reply-To: <0e35fb98-a1bd-939f-53d8-9725001a78dd@osnanet.de> References: <0e35fb98-a1bd-939f-53d8-9725001a78dd@osnanet.de> Message-ID: <62edaf0c-2e49-8dad-9648-aa92630c0477@gmail.com> Le 13/03/2018 ? 12:03, Rolf-Werner Eilert a ?crit?: > Just curious: Is it possible to define a screen for a form to open in? > > Up to now, I can define a window for an application AND/OR an > application's form in KDE, i. e. KDE remembers "this program should be > opened on screen X". > > Thanks for your advice. > > Rolf > It is possible by explicitly moving the window on that screen. But that means that all your monitors are merged into a single virtual one. -- Beno?t Minisini From bugtracker at gambaswiki.org Tue Mar 13 15:52:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 14:52:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1265: Duplicated startup icon in project tree In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1265&from=L21haW4- Comment #1 by Beno?t MINISINI: It should be fixed in commit https://gitlab.com/gambas/gambas/commit/52056b6146345d069e948d2b9381029c0931576d. Beno?t MINISINI changed the state of the bug to: Fixed. From rwe-sse at osnanet.de Tue Mar 13 16:04:24 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 13 Mar 2018 16:04:24 +0100 Subject: [Gambas-user] Gambas form on a certain screen In-Reply-To: <62edaf0c-2e49-8dad-9648-aa92630c0477@gmail.com> References: <0e35fb98-a1bd-939f-53d8-9725001a78dd@osnanet.de> <62edaf0c-2e49-8dad-9648-aa92630c0477@gmail.com> Message-ID: <9a5f73ad-fec7-7313-21cf-bbb962c79c2d@osnanet.de> Am 13.03.2018 um 15:51 schrieb Beno?t Minisini: > Le 13/03/2018 ? 12:03, Rolf-Werner Eilert a ?crit?: >> Just curious: Is it possible to define a screen for a form to open in? >> >> Up to now, I can define a window for an application AND/OR an >> application's form in KDE, i. e. KDE remembers "this program should be >> opened on screen X". >> >> Thanks for your advice. >> >> Rolf >> > > It is possible by explicitly moving the window on that screen. > > But that means that all your monitors are merged into a single virtual one. > Ok, my question was too fuzzy. I meant virtual "Desktop", not physical "Screen". Anyway, how would I define this? Regards Rolf From hans at gambas-buch.de Tue Mar 13 16:34:14 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 13 Mar 2018 16:34:14 +0100 Subject: [Gambas-user] D-Bus method with a complex data type triggers an error Message-ID: Hello, I am testing a D-Bus server that offers a method with a complex data type as a return value ( signature isiava{sv} ). The method uses a parameter of type String. A D-Bus client calls the method and should map the return value to a (gambas) data type Struct. Unfortunately there is an error: org.freedesktop.DBus.Error.Failed: Zero object? The two projects for server and client are attached. I can't find the error on my own, so I need help. With kind regards Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: dbusc-0.0.18.tar.gz Type: application/gzip Size: 52624 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dbuss-0.0.110.tar.gz Type: application/gzip Size: 54070 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Mar 13 16:58:39 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 13 Mar 2018 16:58:39 +0100 Subject: [Gambas-user] D-Bus method with a complex data type triggers an error In-Reply-To: References: Message-ID: <8d6a120a-8e2e-614d-de7a-ba3f08a7a72e@gmail.com> Le 13/03/2018 ? 16:34, Hans Lehmann a ?crit?: > Hello, > > I am testing a D-Bus server that offers a method with a complex data > type as a return value ( signature isiava{sv} ). > > The method uses a parameter of type String. A D-Bus client calls the > method and should map the return value to a (gambas) data type Struct. > > Unfortunately there is an error: org.freedesktop.DBus.Error.Failed: Zero > object? > > The two projects for server and client are attached. I can't find the > error on my own, so I need help. > > With kind regards > > Hans > Struct are not used by gb.dbus. Struct is mainly there when dealing with external functions in libraries written in C/C++. You should not use them for anything else, unless as a synonymous of a class with no methods and public members only. Compound values are returned as an array of variants. See http://gambaswiki.org/wiki/doc/dbus#t10 Regards, -- Beno?t Minisini From olivier.cruilles at yahoo.fr Tue Mar 13 18:44:29 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Tue, 13 Mar 2018 13:44:29 -0400 Subject: [Gambas-user] How to audit memory consumption in Gambas project Message-ID: Hello all, I?m trying to figure why one of my project increase in the time his memory consumption and where/what object(s) take all this memory. I have tried ?Object.SizeOf()? but without success? Is there way to figure it for a Gambas project in command line installed on a server and without IDE. Thank you for you advices. Olivier Cruilles -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Tue Mar 13 19:29:29 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 13 Mar 2018 19:29:29 +0100 Subject: [Gambas-user] D-Bus method with a complex data type triggers an error In-Reply-To: <8d6a120a-8e2e-614d-de7a-ba3f08a7a72e@gmail.com> References: <8d6a120a-8e2e-614d-de7a-ba3f08a7a72e@gmail.com> Message-ID: <450df350-e21f-f7a0-5462-145520db357a@gambas-buch.de> Am 13.03.2018 um 16:58 schrieb Beno?t Minisini: > Struct are not used by gb.dbus. This is understandable at http://gambaswiki.org/wiki/doc/dbus#t10. I didn't use such a structure on the D-Bus server either. > Compound values are returned as an array of variants. That's how I realized it with three classes. I oriented myself on the source code of the component gb.dbus.trayicon. FMain.class: ------------------ Public hDBusObject As TService Public Sub Form_Open() ? hDBusObject = New TService ? FMain.Resizable = False ? FMain.Caption = ("The data server is activated") ? DBus.Unique = True ? Try DBus.Session.Register(hDBusObject, "/TService") ? If Error Then ???? Message.Error("An instance of " & Application.Name & " already exists.") ???? FMain.Close() ? Endif End Public Sub Form_Close() ? If DBus.IsRegistered(hDBusObject) Then DBus.Session.Unregister(hDBusObject) ? FMain.Close() End TService.class: ---------------------- Inherits DBusObject Create Static Public Function GetTemperature(Trigger As String) As RValue ? Dim hItem As RValue ? Dim s1, s2, s3, s4 As String ? Dim i1, i2, i3, i4 As Integer ? Dim f1 As Float ? Dim aTime As Variant[] ? Dim cTemperature As Collection ? i1 = Day(Now()) ? s1 = Format(Now(), "mmmm") ? i2 = Year(Now()) ? i3 = Hour(Now()) ? i4 = Minute(Now()) ? s2 = "UTC" ? aTime = [i3, i4, s2] ' The temperature value is read out in real operation from an RS232-AD converter ? f1 = 22.4 ' ? Select Case Trigger ??? Case "C" ????? s3 = "?" ????? s4 = "C" ??? Case "K" ????? f1 = f1 + 273.15 ????? s3 = "" ????? s4 = "K" ??? Case "F" ????? f1 = (9 / 5) * f1 + 32 ????? s3 = "?" ????? s4 = "F" ? End Select ? cTemperature["T"] = f1? ' Temperature ? cTemperature["L"] = s3? ' Label ? cTemperature["S"] = s4? ' Scale ? hItem = New RValue ? hItem.Value = [i1, s1, i2, aTime, cTemperature] ' <<-- Compound values are returned as an array of variants. ? Return hItem End RValue.class: ------------------- ' This class RValue (stands for ReturnValue) is needed to define the complex return type with the signature' isiava{sv}: Export Inherits DBusVariant Public Const Signature As String = "isiava{sv}" --- The error occurs at the client in dbusc.class: Public hDBusProxy As DBusProxy Public Struct StructVariant ? String1 As String ? Integer1 As String ? String2 As String ? Array As Variant[] ? Collection As Collection End Struct Public structS As New StructVariant Public Sub Form_Open() Dim sMessage As String ? DBus.Debug = True ? FMain.Resizable = False ? If Not DBus.Session.Applications.Exist("org.gambas.dbuss") Then ???? sMessage = ("There is no suitable data server on the session bus!") ???? sMessage &= "
" ???? sMessage &= ("The program is terminated.") ???? sMessage &= "
" ???? Message.Warning(sMessage) ???? FMain.Close() ? Else ??? hDBusProxy = DBus["org.gambas.dbuss"]["/TService"] ??? GetData() ? Endif End Private Sub GetData() ? structS = hDBusProxy.GetTemperature(tboxScale.Text) --> ERROR: org.freedesktop.DBus.Error.Failed: Zero object? End Public Sub btnGetData_Click() ? GetData() End Public Sub Form_Close() ? FMain.Close() End The question remains as to why this error occurs? With kind regards Hans From g4mba5 at gmail.com Tue Mar 13 19:51:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 13 Mar 2018 19:51:42 +0100 Subject: [Gambas-user] How to audit memory consumption in Gambas project In-Reply-To: References: Message-ID: <126be6c4-a5c0-e550-d3d6-1d183f09e284@gmail.com> Le 13/03/2018 ? 18:44, Yahoo via User a ?crit?: > Hello all, > > I?m trying to figure why one of my project increase in the time his > memory consumption and where/what object(s) take all this memory. > > I have tried ?Object.SizeOf()? but without success? > > Is there way to figure it for a Gambas project in command line installed > on a server and without IDE. > > Thank you for you advices. > > Olivier Cruilles > You have to find the "big loop" of your server, i.e. a point in your code where the used memory should be the same. Then at that point you count the number of objects and prints it, using the Class.Count property, and make the difference with the previous loop to know how many objects of each class have been created or destroyed. You will have a better view of what happens exactly. -- Beno?t Minisini From hans at gambas-buch.de Tue Mar 13 20:16:12 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 13 Mar 2018 20:16:12 +0100 Subject: [Gambas-user] D-Bus method with a complex data type triggers an error In-Reply-To: <450df350-e21f-f7a0-5462-145520db357a@gambas-buch.de> References: <8d6a120a-8e2e-614d-de7a-ba3f08a7a72e@gmail.com> <450df350-e21f-f7a0-5462-145520db357a@gambas-buch.de> Message-ID: Hello, the error is found. Rrrrrr! It was a simple mistake when declaring the collection cTemperature, which I had always overlooked - because I suspected the error in other classes: ? Dim cTemperature As Collection ? ... ? cTemperature = New Collection ? cTemperature.Add(f1, "T") ' Temperature ? cTemperature.Add(s3, "L") ' Label ? cTemperature.Add(s4, "S") ' Scale The D-Bus server and the D-Bus client now work as expected! With kind regards Hans From olivier.cruilles at yahoo.fr Tue Mar 13 20:25:48 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Tue, 13 Mar 2018 15:25:48 -0400 Subject: [Gambas-user] How to audit memory consumption in Gambas project In-Reply-To: <126be6c4-a5c0-e550-d3d6-1d183f09e284@gmail.com> References: <126be6c4-a5c0-e550-d3d6-1d183f09e284@gmail.com> Message-ID: Benoit, I?m not sure to understand correctly but I already count each Object[] / Collection / String[] / Task, etc? that I use all long the process run and for example at the end of each Task, I delete or assign to NULL each Arrays or Object. Normally I?m able to figure where the memory is not released but in this case I can find it. This process receive many data on a Socket File -> Store Data to a Collection -> Translate all this Collection to a Class[] -> Flush this Class[] to disk over Tasks -> Release this Class[] -> repeat this cycle The only Array still growing is the Collection containing the Data because this is the Aggregation Array. So now, to prevent a crash of the process, I have implemented a king of journal that is a backup of the Data Collection into a Json file that I can reload at the startup if it present. In this case I can see that after a big Data Collection reloaded into the memory I never exceed 30MB of memory (process + Data Collection loaded) but after 24h running, the process take more than 1GB of memory.? Could the Socket File does not release any memory or Task allocation is not released in some case because I start a tone of they ?? Olivier Le March 13, 2018 ? 14:52:02, Beno?t Minisini (g4mba5 at gmail.com) a ?crit: Class.Count -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Mar 13 20:29:31 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 13 Mar 2018 20:29:31 +0100 Subject: [Gambas-user] How to audit memory consumption in Gambas project In-Reply-To: References: <126be6c4-a5c0-e550-d3d6-1d183f09e284@gmail.com> Message-ID: Le 13/03/2018 ? 20:25, Yahoo via User a ?crit?: > Benoit, > > I?m not sure to understand correctly but I already count each Object[] / > Collection / String[] / Task, etc? that I use all long the process run > and for example at the end of each Task, I delete or assign to NULL each > Arrays or Object. > > Normally I?m able to figure where the memory is not released but in this > case I can find it. > > This process receive many data on a Socket File -> Store Data to a > Collection -> Translate all this Collection to a Class[] -> Flush this > Class[] to disk over Tasks -> Release this Class[] -> repeat this cycle > > The only Array still growing is the Collection containing the Data > because this is the Aggregation Array. > > So now, to prevent a crash of the process, I have implemented a king of > journal that is a backup of the Data Collection into a Json file that I > can reload at the startup if it present. In this case I can see that > after a big Data Collection reloaded into the memory I never exceed 30MB > of memory (process + Data Collection loaded) but after 24h running, the > process take more than 1GB of memory. > > Could the Socket File does not release any memory or Task allocation is > not released in some case because I start a tone of they ? > > Olivier > Yes, you can have a memory leak inside a component, but first you must be sure that it is not in your code, i.e. that objects don't accumulate. -- Beno?t Minisini From bugtracker at gambaswiki.org Tue Mar 13 21:45:55 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 20:45:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- T. Lee DAVIDSON reported a new bug. Summary ------- ValueBox with Type=date automatically adds 1900/2000 for dates in first century Type : Bug Priority : Medium Gambas version : Master Product : GUI components Description ----------- Setting: ValueBox.Text = "01/01/0099", ValueBox displays "01/01/1999". ValueBox.Text = "01/01/0030", ValueBox displays "01/01/2030". P.S. Just in case I can't figure out how to attach a project (not possible at bug report creation?): ' Gambas class file Public Sub Form_Open() ValueBox1.Text = "01/01/0100" ValueBox2.Text = "01/01/0099" ValueBox3.Text = "01/01/0030" End System information ------------------ [System] Gambas=3.10.90 56bf5447e (master) OperatingSystem=Linux Kernel=4.4.114-42-default Architecture=x86_64 Distribution=openSUSE Leap 42.3 Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11502.0 Curl=/usr/lib64/libcurl.so.4.3.0 DBus=/lib64/libdbus-1.so.3.8.14 GStreamer=/usr/lib64/libgstreamer-0.10.so.0.30.0 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.803.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.31 GTK+3=/usr/lib64/libgtk-3.so.0.2000.10 OpenGL=/usr/lib64/libGL.so.1.2.0 Poppler=/usr/lib64/libpoppler.so.60.0.0 QT4=/usr/lib64/libQtCore.so.4.8.6 QT5=/usr/lib64/libQt5Core.so.5.6.2 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 [Environment] ALSA_CONFIG_PATH=/etc/alsa-pulse.conf AUDIODRIVER=pulseaudio COLORTERM=1 CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-YHDPVlx8i8,guid=bf51f537c70ab50b401c81a25aa82784 DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 FROM_HEADER= GB_GUI=gb.qt5 GOARCH=amd64 GOOS=linux GOPATH=/go:/usr/share/go/1.9/contrib GOROOT=/usr/lib64/go/1.9 GPG_AGENT_INFO=/tmp/gpg-IVlydG/S.gpg-agent:6762:1 GPG_TTY=not a tty GS_LIB=/.fonts GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 INPUTRC=/.inputrc JAVA_BINDIR=/usr/lib64/jvm/java/bin JAVA_HOME=/usr/lib64/jvm/java JAVA_ROOT=/usr/lib64/jvm/java JDK_HOME=/usr/lib64/jvm/java JRE_HOME=/usr/lib64/jvm/java/jre KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 KOTLIN_HOME=/.sdkman/candidates/kotlin/current LANG=en_US.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MINICOM=-c on MORE=-sl NNTPSERVER=news OSTYPE=linux PAGER=less PATH=/.sdkman/candidates/kotlin/current/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games PROFILEREAD=true PULSE_PROP_OVERRIDE_application.icon_name=plasma PULSE_PROP_OVERRIDE_application.name=Plasma PULSE_PROP_OVERRIDE_application.version=5.8.7 PWD= PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QMLSCENE_DEVICE= QSG_RENDER_LOOP= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_NO_GLIB=1 QT_SYSTEM_DIR=/usr/share/desktop-data SDKMAN_CANDIDATES_DIR=/.sdkman/candidates SDKMAN_CURRENT_API=https://api.sdkman.io/2 SDKMAN_DIR=/.sdkman SDKMAN_LEGACY_API=https://api.sdkman.io/1 SDKMAN_PLATFORM=Linux64 SDKMAN_VERSION=5.5.13+272 SDK_HOME=/usr/lib64/jvm/java SDL_AUDIODRIVER=pulse SESSION_MANAGER=local/:@/tmp/.ICE-unix/6833,unix/:/tmp/.ICE-unix/6833 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=6761 SSH_ASKPASS=/usr/lib/ssh/ksshaskpass SSH_AUTH_SOCK=/tmp/*/agent.6659 TERM=xterm TZ=:/etc/localtime USER= VDPAU_DRIVER=va_gl WINDOWMANAGER=/usr/bin/startkde XAUTHLOCALHOSTNAME= XAUTHORITY=/.Xauthority XCURSOR_SIZE=0 XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/usr/share XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=18 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session5 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes _=/usr/bin/kwrapper5 From bugtracker at gambaswiki.org Tue Mar 13 21:46:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 13 Mar 2018 20:46:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- T. Lee DAVIDSON added an attachment: datebox-0.0.1.tar.gz From shannon at inflecto.org Wed Mar 14 02:19:35 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Tue, 13 Mar 2018 20:19:35 -0500 Subject: [Gambas-user] command line options Message-ID: I am wondering how one might go about? introducing command line options into a Gambas program. I'm thinking that? one could code a program with or with out a gui such that when executed like ./myganbasprogram -example ?or ./myganbasprogram -example -command The program would execute a list of predefined routines. Could someone give me an example of how this might be achieved in Gambas or point me somewhere I can read up on it?? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Mar 14 02:25:29 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 14 Mar 2018 03:25:29 +0200 Subject: [Gambas-user] command line options In-Reply-To: References: Message-ID: Look up Application.Args, it's array containing command line options obeying to Linux standard. Jussi On Wed, Mar 14, 2018 at 3:19 AM, Shannon Kuchler wrote: > I am wondering how one might go about introducing command line options > into a Gambas program. > > I'm thinking that one could code a program with or with out a gui such > that when executed like ./myganbasprogram -example > > ?or ./myganbasprogram -example -command > > The program would execute a list of predefined routines. > > Could someone give me an example of how this might be achieved in Gambas > > or point me somewhere I can read up on it? > > > -------------------------------------------------- > > 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 olivier.cruilles at yahoo.fr Wed Mar 14 03:08:29 2018 From: olivier.cruilles at yahoo.fr (Linus) Date: Tue, 13 Mar 2018 22:08:29 -0400 Subject: [Gambas-user] command line options In-Reply-To: References: Message-ID: Hello, Maybe it could help you. This is a thread from the mailling list of Gambas about gb.args [Gambas-user] gb.args Olivier Cruilles > Le 13 mars 2018 ? 21:25, Jussi Lahtinen a ?crit : > > Look up Application.Args, it's array containing command line options obeying to Linux standard. > > > Jussi > > > > On Wed, Mar 14, 2018 at 3:19 AM, Shannon Kuchler > wrote: > I am wondering how one might go about introducing command line options into a Gambas program. > I'm thinking that one could code a program with or with out a gui such that when executed like ./myganbasprogram -example > ?or ./myganbasprogram -example -command > The program would execute a list of predefined routines. > Could someone give me an example of how this might be achieved in Gambas > or point me somewhere I can read up on it? > > > -------------------------------------------------- > > 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 shannon at inflecto.org Wed Mar 14 03:41:31 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Tue, 13 Mar 2018 21:41:31 -0500 Subject: [Gambas-user] command line options Message-ID: ? Thank you Jussi, that's what I was looking for.?Also just to let you guys know. I did search the mailing list before posting this. However, Although I knew what I wanted to do. I didn't know the proper term to search for so of course I came up empty. I'm trying my best to learn without being to annoying. Hello, Maybe it could help you. This is a thread from the mailling list of Gambas about gb.args [Gambas-user] gb.args Olivier Cruilles Le 13 mars 2018 ? 21:25, Jussi Lahtinen > a ?crit : Look up Application.Args, it's array containing command line options obeying to Linux standard. Jussi On Wed, Mar 14, 2018 at 3:19 AM, Shannon Kuchler > wrote: I am wondering how one might go about? introducing command line options into a Gambas program. I'm thinking that? one could code a program with or with out a gui such that when executed like ./myganbasprogram -example ?or ./myganbasprogram -example -command The program would execute a list of predefined routines. Could someone give me an example of how this might be achieved in Gambas or point me somewhere I can read up on it?? ? -------------------------------------------------- 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 Wed Mar 14 03:44:29 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 14 Mar 2018 04:44:29 +0200 Subject: [Gambas-user] command line options In-Reply-To: References: Message-ID: There was absolutely nothing annoying in your question. Jussi On Wed, Mar 14, 2018 at 4:41 AM, Shannon Kuchler wrote: > ? > > Thank you Jussi, that's what I was looking for. > > Also just to let you guys know. I did search the mailing list before > posting this. However, Although I knew what I wanted to do. I didn't know > the proper term to search for so of course I came up empty. > > I'm trying my best to learn without being to annoying. > > > > > Hello, > > Maybe it could help you. > This is a thread from the mailling list of Gambas about gb.args > > [Gambas-user] gb.args > > > > Olivier Cruilles > > Le 13 mars 2018 ? 21:25, Jussi Lahtinen a > ?crit : > > Look up Application.Args, it's array containing command line options > obeying to Linux standard. > > > Jussi > > > > On Wed, Mar 14, 2018 at 3:19 AM, Shannon Kuchler > wrote: > >> I am wondering how one might go about introducing command line options >> into a Gambas program. >> I'm thinking that one could code a program with or with out a gui such >> that when executed like ./myganbasprogram -example >> ?or ./myganbasprogram -example -command >> The program would execute a list of predefined routines. >> Could someone give me an example of how this might be achieved in Gambas >> or point me somewhere I can read up on it? >> >> >> -------------------------------------------------- >> >> 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 chrisml at deganius.de Wed Mar 14 12:04:24 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 14 Mar 2018 12:04:24 +0100 Subject: [Gambas-user] command line options In-Reply-To: References: Message-ID: <099ee966-58bc-7851-b739-672445b2f0a2@deganius.de> > Maybe it could help you. > This is a thread from the mailling list of Gambas about gb.args > > [Gambas-user] gb.args > Great! I've put the link there: http://gambaswiki.org/wiki/comp/gb.args/args 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 Mar 14 16:49:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 14 Mar 2018 15:49:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1264: Doing : vTmp = Last.value inside MyTask_Kill(), will raise an Error "File or ..." In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1264&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed Mar 14 17:04:03 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 14 Mar 2018 16:04:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1264: Doing : vTmp = Last.value inside MyTask_Kill(), will raise an Error "File or ..." In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1264&from=L21haW4- Comment #1 by Beno?t MINISINI: It's actually normal that you get an error, as your task Main method does not return anything. In commit https://gitlab.com/gambas/gambas/commit/d6b8c451c93c355245008ec55b6ee93904bc917e, I changed the error message to "No return value", which is more explicit. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed Mar 14 17:20:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 14 Mar 2018 16:20:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- Comment #1 by Beno?t MINISINI: This is the standard way of automatically converting string to dates. If you want to avoid that, set the ValueBox.Value property directly with the date you want. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Wed Mar 14 17:21:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 14 Mar 2018 16:21:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- Comment #1 by Beno?t MINISINI: What's the bug exactly? From bugtracker at gambaswiki.org Wed Mar 14 17:44:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 14 Mar 2018 16:44:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed Mar 14 17:52:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 14 Mar 2018 16:52:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #1 by Beno?t MINISINI: If I make the finish translation the French translation (by just copying the translation file), it works. I have no error at all from the GNU translation library with Finnish, just that no translation is returned! There's something weird with Finnish, but what? From jussi.lahtinen at gmail.com Wed Mar 14 18:58:49 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 14 Mar 2018 19:58:49 +0200 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: <5aa9535f.03251c0a.8627e.312bSMTPIN_ADDED_BROKEN@mx.google.com> References: <5aa9535f.03251c0a.8627e.312bSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: I really don't know enough about how these things work, but currently I can't get Finnish spell checker for some unknown reason. For Firefox the reason is new plug-in system, which doesn't support needed libraries (voikko). So, maybe there is something similar here. Finnish language is bit special in that regard. Jussi On Wed, Mar 14, 2018 at 6:52 PM, wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- > > Comment #1 by Beno?t MINISINI: > > If I make the finish translation the French translation (by just copying > the translation file), it works. > > I have no error at all from the GNU translation library with Finnish, just > that no translation is returned! > > There's something weird with Finnish, but what? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Wed Mar 14 19:32:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 14 Mar 2018 18:32:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- Comment #2 by T. Lee DAVIDSON: I tried that way too, Beno?t, and experienced the same issue. So, I thought setting by .Text would be more explicit since I could format the years with prepended zeros. Public Sub Form_Open() ValueBox1.Value = Date(100, 1, 1) ValueBox2.Value = Date(99, 1, 1) ValueBox3.Value = Date(30, 1, 1) Print ValueBox1.Value Print ValueBox2.Value Print ValueBox3.Value End produces: 01/01/100 00:00:00 01/01/1999 00:00:00 01/01/2030 00:00:00 T. Lee DAVIDSON changed the state of the bug to: Opened. From bugtracker at gambaswiki.org Thu Mar 15 01:56:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 00:56:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- Comment #2 by V?ctor PEREZ: the autocomplete window appears and disappears immediately, unable to use it. From bugtracker at gambaswiki.org Thu Mar 15 12:00:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 11:00:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1267: Breakpoint, the break position not correctly Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1267&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Breakpoint, the break position not correctly Type : Bug Priority : Medium Gambas version : Master Product : Development Environment Description ----------- Breakpoint, the break position not correctly Reproduce the bug: 1) open the project (attach project) 2) add breakpoint (attach video) 3) run System information ------------------ [System] Gambas=3.10.90 56bf544 (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8uIg5EIr5b DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1316,unix/:/tmp/.ICE-unix/1316 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/1131 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Thu Mar 15 12:00:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 11:00:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1267: Breakpoint, the break position not correctly In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1267&from=L21haW4- Zainudin AHMAD added an attachment: test-ide-breakpoint-0.0.1.tar.gz From bugtracker at gambaswiki.org Thu Mar 15 12:01:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 11:01:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1267: Breakpoint, the break position not correctly In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1267&from=L21haW4- Zainudin AHMAD added an attachment: bug-ide-breakpoint.mp4 From bugtracker at gambaswiki.org Thu Mar 15 12:06:58 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 11:06:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1267: Breakpoint, the break position not correctly In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1267&from=L21haW4- Comment #1 by Zainudin AHMAD: sorry , I am forget to "add new line" step Reproduce the bug : 1) Open the project 2) add breakpoint 3) add new line in the code (just follow the video how to do that) 4) run From bugtracker at gambaswiki.org Thu Mar 15 12:16:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 11:16:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1267: Breakpoint, the break position not correctly In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1267&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Mar 15 16:28:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 15:28:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1267: Breakpoint, the break position not correctly In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1267&from=L21haW4- Comment #2 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/c9e2c340810156c62867d748e1bdad3a0bdcbbb2 Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Thu Mar 15 16:42:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 15:42:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- Comment #3 by Beno?t MINISINI: OK, I see. The bug is not in the ValueBox, but in the inner DateBox control. From bugtracker at gambaswiki.org Thu Mar 15 16:42:15 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 15:42:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Mar 15 17:05:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 15 Mar 2018 16:05:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- Comment #4 by Beno?t MINISINI: Well, your idea of prepending zeros to prevent two-digits year interpretation is not a bad idea. From mnaltrogge at web.de Thu Mar 15 18:12:47 2018 From: mnaltrogge at web.de (Michael N. Altrogge) Date: Thu, 15 Mar 2018 18:12:47 +0100 Subject: [Gambas-user] Type mismatch: wanted FEditor, got TextEditor instead In-Reply-To: <9717f83a-a279-2324-70b3-23d2950ff9f5@gmail.com> References: <1f315686-c9c9-f53b-356c-764077508a82@web.de> <9717f83a-a279-2324-70b3-23d2950ff9f5@gmail.com> Message-ID: <2705a3ab-3742-5c9c-d67d-608a7a7f31d7@web.de> Yes, it is fixed ... thank you :) Am 13.03.2018 um 15:35 schrieb Beno?t Minisini: > Le 13/03/2018 ? 14:54, Michael N. Altrogge a ?crit?: >> Even with a new project I can't open the code ... >> > > It should be fixed in commit > https://gitlab.com/gambas/gambas/commit/b9a31ab9895e8cbb3f0612991e993e8827d318e5 > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Fri Mar 16 01:54:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 00:54:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- Comment #5 by Beno?t MINISINI: The commit https://gitlab.com/gambas/gambas/commit/b517994783a03d8a3b1ff2376006a49761942e6e should fix the problem. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Fri Mar 16 01:55:05 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 00:55:05 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #2 by Beno?t MINISINI: Do you have some other project with Finnish translation? If you start a Finnish translation of the IDE (for example), does it fail too? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Fri Mar 16 03:15:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 02:15:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #3 by Jussi LAHTINEN: At least with command "LANG=fi_FI.utf8 gambas3" the IDE starts without translation (everything is in English). I did test project with only one string and the result is same. It seems Finnish translations do not work with any project. Jussi LAHTINEN changed the state of the bug to: Accepted. From rwe-sse at osnanet.de Fri Mar 16 09:09:22 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 16 Mar 2018 09:09:22 +0100 Subject: [Gambas-user] German translation of IDE - small typo Message-ID: Wer macht die deutsche ?bersetzung der IDE? In "Werkzeuge/Einstellungen" das Wort "Quellarchive" ohne "ie"... ;) Ich hab aber noch die 3.9.2 hier, vielleicht ist es schon verbessert. Gr??e Rolf From taboege at gmail.com Fri Mar 16 09:48:09 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 16 Mar 2018 09:48:09 +0100 Subject: [Gambas-user] German translation of IDE - small typo In-Reply-To: References: Message-ID: <20180316084809.GH3670@highrise.localdomain> On Fri, 16 Mar 2018, Rolf-Werner Eilert wrote: > Wer macht die deutsche ?bersetzung der IDE? > > In "Werkzeuge/Einstellungen" das Wort "Quellarchive" ohne "ie"... ;) > > Ich hab aber noch die 3.9.2 hier, vielleicht ist es schon verbessert. > Das meiste hat Matti Eber seinerzeit gemacht. Seit 2014 schaue ich einmal im Jahr (mittlerweile scheinbar alle 3 Jahre) dr?ber pflege neue Sachen ein. Danke f?r den Hinweis, ist korrigiert (in zwei Instanzen) in 6a87383c3. Es sind auch wieder 140 neue Strings dazugekommen. Ich rei?e mich nicht darum, die zu ?bersetzen... Gru?, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Fri Mar 16 10:00:31 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 16 Mar 2018 10:00:31 +0100 Subject: [Gambas-user] Copy file from project Message-ID: Am I not able to understand or is there something that does not work? Attached two projects that, if launched by the IDE, work and that is copying all images and subfolders in "/tmp". But if I work with executables (positioned within projects) the project TestDirImage2 only copies visible images and TestDirImage3 does not work and does not write anything in the log file. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestDirImage2-0.0.1.tar.gz Type: application/gzip Size: 190483 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestDirImage3-0.0.1.tar.gz Type: application/gzip Size: 190426 bytes Desc: not available URL: From shordi at gmail.com Fri Mar 16 11:08:09 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 16 Mar 2018 11:08:09 +0100 Subject: [Gambas-user] Copy file from project In-Reply-To: References: Message-ID: Try this: sPath1="image" without beginning with dot (./) When you set the ./ you are mentioning the working directory of the project, that isn't the same in executable that in IDE. Hope It works. Best regards 2018-03-16 10:00 GMT+01:00 Gianluigi : > Am I not able to understand or is there something that does not work? > Attached two projects that, if launched by the IDE, work and that is > copying all images and subfolders in "/tmp". > But if I work with executables (positioned within projects) the project > TestDirImage2 only copies visible images and TestDirImage3 does not work > and does not write anything in the log file. > > 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 Mar 16 11:24:37 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 16 Mar 2018 11:24:37 +0100 Subject: [Gambas-user] Copy file from project In-Reply-To: References: Message-ID: Hi Jorge, thanks for the attention, unfortunately the suggestion does not work. Regards Gianluigi 2018-03-16 11:08 GMT+01:00 Jorge Carri?n : > Try this: > > sPath1="image" > > without beginning with dot (./) > > When you set the ./ you are mentioning the working directory of the > project, that isn't the same in executable that in IDE. > > Hope It works. > > Best regards > > 2018-03-16 10:00 GMT+01:00 Gianluigi : > >> Am I not able to understand or is there something that does not work? >> Attached two projects that, if launched by the IDE, work and that is >> copying all images and subfolders in "/tmp". >> But if I work with executables (positioned within projects) the project >> TestDirImage2 only copies visible images and TestDirImage3 does not work >> and does not write anything in the log file. >> >> 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 bagonergi at gmail.com Fri Mar 16 12:17:40 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 16 Mar 2018 12:17:40 +0100 Subject: [Gambas-user] Copy file from project In-Reply-To: References: Message-ID: Hi Jorge, thinking back to what you suggested to me; I believe that after compiled only the relative paths work, and AFAIK "./" is a relative path. Regards Gianluigi 2018-03-16 11:24 GMT+01:00 Gianluigi : > Hi Jorge, > thanks for the attention, unfortunately the suggestion does not work. > > Regards > Gianluigi > > 2018-03-16 11:08 GMT+01:00 Jorge Carri?n : > >> Try this: >> >> sPath1="image" >> >> without beginning with dot (./) >> >> When you set the ./ you are mentioning the working directory of the >> project, that isn't the same in executable that in IDE. >> >> Hope It works. >> >> Best regards >> >> 2018-03-16 10:00 GMT+01:00 Gianluigi : >> >>> Am I not able to understand or is there something that does not work? >>> Attached two projects that, if launched by the IDE, work and that is >>> copying all images and subfolders in "/tmp". >>> But if I work with executables (positioned within projects) the project >>> TestDirImage2 only copies visible images and TestDirImage3 does not work >>> and does not write anything in the log file. >>> >>> 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 shordi at gmail.com Fri Mar 16 12:22:15 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 16 Mar 2018 12:22:15 +0100 Subject: [Gambas-user] Copy file from project In-Reply-To: References: Message-ID: You are right. It way just that I doesn't use the ./ in relative paths... Best Regards 2018-03-16 12:17 GMT+01:00 Gianluigi : > Hi Jorge, > thinking back to what you suggested to me; I believe that after compiled > only the relative paths work, and AFAIK "./" is a relative path. > > Regards > Gianluigi > > 2018-03-16 11:24 GMT+01:00 Gianluigi : > >> Hi Jorge, >> thanks for the attention, unfortunately the suggestion does not work. >> >> Regards >> Gianluigi >> >> 2018-03-16 11:08 GMT+01:00 Jorge Carri?n : >> >>> Try this: >>> >>> sPath1="image" >>> >>> without beginning with dot (./) >>> >>> When you set the ./ you are mentioning the working directory of the >>> project, that isn't the same in executable that in IDE. >>> >>> Hope It works. >>> >>> Best regards >>> >>> 2018-03-16 10:00 GMT+01:00 Gianluigi : >>> >>>> Am I not able to understand or is there something that does not work? >>>> Attached two projects that, if launched by the IDE, work and that is >>>> copying all images and subfolders in "/tmp". >>>> But if I work with executables (positioned within projects) the project >>>> TestDirImage2 only copies visible images and TestDirImage3 does not work >>>> and does not write anything in the log file. >>>> >>>> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Fri Mar 16 13:06:38 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 16 Mar 2018 13:06:38 +0100 Subject: [Gambas-user] DBus.Introspectable.Introspect vs. Gambas Message-ID: <81b55759-ec3f-ada9-2aea-77aaf50ed8d6@gambas-buch.de> Hello, I can't find a gambas method in the gb.dbus component to use this console command to introspect a gambas project dbusserver1 with the /service object: $ dbus-send --session --print-reply --dest=org.gambas.dbusserver1 /service org.freedesktop.DBus.Introspectable.Introspect > service.xml in Gambas. Every suggestion is gladly read. With kind regards Hans From bugtracker at gambaswiki.org Fri Mar 16 13:43:11 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 12:43:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1268: Copy files from project, malfunctioning. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1268&from=L21haW4- Gianluigi GRADASCHI reported a new bug. Summary ------- Copy files from project, malfunctioning. Type : Bug Priority : Medium Gambas version : Master Product : Unknown Description ----------- Once the projects have been compiled, in the copy of the files and folders from the project to the "/tmp" folder, I get the following malfunctions: TestDirImage2 copies only visible files. TestDirImage3 does not work and does not write anything in the log file. Note: In the IDE its work correctly. Attached the projects TestDirImage2 and TestDirImage3. System information ------------------ [System] Gambas=3.10.90 c9e2c34 (master) OperatingSystem=Linux Kernel=4.13.0-37-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=UNITY Theme=Cleanlooks Language=it_IT.UTF-8 Memory=15967M [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_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wA5z3fX9TU DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=it GIO_LAUNCHED_DESKTOP_FILE=/home//.local/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=8321 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME=/home/ IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=it_IT.UTF-8 LANGUAGE=it:en LC_ADDRESS=it_IT.UTF-8 LC_IDENTIFICATION=it_IT.UTF-8 LC_MEASUREMENT=it_IT.UTF-8 LC_MONETARY=it_IT.UTF-8 LC_NAME=it_IT.UTF-8 LC_NUMERIC=it_IT.UTF-8 LC_PAPER=it_IT.UTF-8 LC_TELEPHONE=it_IT.UTF-8 LC_TIME=it_IT.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=a4 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=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/1355,unix/:/tmp/.ICE-unix/1355 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/1132 USER= XAUTHORITY=/home//.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_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus From bugtracker at gambaswiki.org Fri Mar 16 13:43:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 12:43:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1268: Copy files from project, malfunctioning. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1268&from=L21haW4- Gianluigi GRADASCHI added an attachment: TestDirImage2-0.0.1.tar.gz From bugtracker at gambaswiki.org Fri Mar 16 13:44:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 12:44:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1268: Copy files from project, malfunctioning. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1268&from=L21haW4- Gianluigi GRADASCHI added an attachment: TestDirImage3-0.0.1.tar.gz From g4mba5 at gmail.com Fri Mar 16 13:50:15 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 16 Mar 2018 13:50:15 +0100 Subject: [Gambas-user] DBus.Introspectable.Introspect vs. Gambas In-Reply-To: <81b55759-ec3f-ada9-2aea-77aaf50ed8d6@gambas-buch.de> References: <81b55759-ec3f-ada9-2aea-77aaf50ed8d6@gambas-buch.de> Message-ID: <94ac8757-b084-4859-ef90-c445e0f62e5c@gmail.com> Le 16/03/2018 ? 13:06, Hans Lehmann a ?crit?: > Hello, > > I can't find a gambas method in the gb.dbus component to use this > console command to introspect a gambas project dbusserver1 with the > /service object: > > $ dbus-send --session --print-reply --dest=org.gambas.dbusserver1 > /service org.freedesktop.DBus.Introspectable.Introspect > service.xml > > in Gambas. Every suggestion is gladly read. > > With kind regards > > Hans > I don't understand your question. The DBusObject implements the 'Instropect' method of the 'org.freedesktop.DBus.Introspectable' interface for all Gambas objects that inherit it. So there is no reason why this command would not work. -- Beno?t Minisini From bugtracker at gambaswiki.org Fri Mar 16 13:55:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 12:55:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1268: Copy files from project, malfunctioning. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1268&from=L21haW4- Comment #1 by Beno?t MINISINI: For TestDirImage2, it's normal as hidden files are not put in the executable (except special project files or directories). For TestDirImage3, RDir() seems not to work recursively in the executable. Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri Mar 16 14:19:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 13:19:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1268: Copy files from project, malfunctioning. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1268&from=L21haW4- Comment #2 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/4c38b0f5c394568847b0baf60fb8051632f2b75d Note that you won't see hidden files as they are not stored in the executable. You see them when running your project from the IDE because the interpreter does not try to guess which files will actually go to the executable or not. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Fri Mar 16 14:54:01 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 13:54:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- Gianluigi GRADASCHI reported a new bug. Summary ------- Gambas bug traker Type : Bug Priority : Medium Gambas version : Unknown Product : Bugtracker Description ----------- I'm only able to insert a new bug, but then I can not answer. In all windows I only see "No bug report has been found" System information ------------------ [System] Gambas=3.10.90 c9e2c34 (master) OperatingSystem=Linux Kernel=4.13.0-37-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=UNITY Theme=Cleanlooks Language=it_IT.UTF-8 Memory=15967M [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_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wA5z3fX9TU DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=it GIO_LAUNCHED_DESKTOP_FILE=/home//.local/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=8655 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME=/home/ IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=it_IT.UTF-8 LANGUAGE=it:en LC_ADDRESS=it_IT.UTF-8 LC_IDENTIFICATION=it_IT.UTF-8 LC_MEASUREMENT=it_IT.UTF-8 LC_MONETARY=it_IT.UTF-8 LC_NAME=it_IT.UTF-8 LC_NUMERIC=it_IT.UTF-8 LC_PAPER=it_IT.UTF-8 LC_TELEPHONE=it_IT.UTF-8 LC_TIME=it_IT.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=a4 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=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/1355,unix/:/tmp/.ICE-unix/1355 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/1132 USER= XAUTHORITY=/home//.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_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus From hans at gambas-buch.de Fri Mar 16 16:32:01 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 16 Mar 2018 16:32:01 +0100 Subject: [Gambas-user] DBus.Introspectable.Introspect vs. Gambas In-Reply-To: <94ac8757-b084-4859-ef90-c445e0f62e5c@gmail.com> References: <81b55759-ec3f-ada9-2aea-77aaf50ed8d6@gambas-buch.de> <94ac8757-b084-4859-ef90-c445e0f62e5c@gmail.com> Message-ID: Am 16.03.2018 um 13:50 schrieb Beno?t Minisini: > The DBusObject implements the 'Instropect' method of the > 'org.freedesktop.DBus.Introspectable' interface for all Gambas objects > that inherit it. Good to know and where is that in the documentation? > > So there is no reason why this command would not work. That's my problem. I can't see the way. Hello. Obviously only a small part of gambas code would help here. With kind regards Hans From t.lee.davidson at gmail.com Fri Mar 16 17:46:48 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 16 Mar 2018 12:46:48 -0400 Subject: [Gambas-user] DBus.Introspectable.Introspect vs. Gambas In-Reply-To: References: <81b55759-ec3f-ada9-2aea-77aaf50ed8d6@gambas-buch.de> <94ac8757-b084-4859-ef90-c445e0f62e5c@gmail.com> Message-ID: <90a77711-ef6f-a7af-ce79-1a12392f7ed4@gmail.com> On 03/16/2018 11:32 AM, Hans Lehmann wrote: > Am 16.03.2018 um 13:50 schrieb Beno?t Minisini: >> The DBusObject implements the 'Instropect' method of the 'org.freedesktop.DBus.Introspectable' interface for all Gambas >> objects that inherit it. > Good to know and where is that in the documentation? >> >> So there is no reason why this command would not work. > That's my problem. I can't see the way. > > Hello. > > Obviously only a small part of gambas code would help here. > > With kind regards > > Hans > I think you would do something like: Print DBus["org.freedesktop.DBus"]["/org.freedesktop.DBus.Introspectable"].Instrospect() But, when I try that, in the console I get: process 5278: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file dbus-message.c line 1344. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace KCrash: Application 'gbx3' crashing... I tried observing the bus with: [code] Public hObserver As DBusObserver Public Sub Main() hObserver = New DBusObserver(DBus.Session, DBus.Method, Null, Null, Null, "*") As "BusWatch" End Public Sub BusWatch_Message() Print "Received: " & hObserver.Message End [/code] But, the event doesn't trigger. -- Lee From t.lee.davidson at gmail.com Fri Mar 16 18:09:18 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 16 Mar 2018 13:09:18 -0400 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1266: ValueBox with Type=date automatically adds 1900/2000 for dates in first century In-Reply-To: <5aab15ab.06a11c0a.631c.4679SMTPIN_ADDED_BROKEN@mx.google.com> References: <5aab15ab.06a11c0a.631c.4679SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <61522a92-ebf0-ae0f-e124-36ff8117d1bd@gmail.com> On 03/15/2018 08:54 PM, bugtracker at gambaswiki.org wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1266&from=L21haW4- > > Comment #5 by Beno?t MINISINI: > > The commit https://gitlab.com/gambas/gambas/commit/b517994783a03d8a3b1ff2376006a49761942e6e should fix the problem. > > Beno?t MINISINI changed the state of the bug to: Fixed. > Confirmed. It works as expected by setting .Value with Date(), and by setting .Text with a four-digit year (ie. "yyyy"). Thank you! -- Lee From bugtracker at gambaswiki.org Fri Mar 16 18:15:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 17:15:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- Comment #1 by Gianluigi GRADASCHI: Try add comment From bugtracker at gambaswiki.org Fri Mar 16 18:18:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 17:18:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- Comment #2 by Gianluigi GRADASCHI: But I can only do it from Bugs of Personal information From bugtracker at gambaswiki.org Fri Mar 16 19:09:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 18:09:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- Comment #3 by Gianluigi GRADASCHI: Now work well thankyou From bugtracker at gambaswiki.org Fri Mar 16 19:15:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 18:15:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- Comment #4 by Gianluigi GRADASCHI: Unfortunately I can not change from opened in fixed state Gianluigi GRADASCHI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Fri Mar 16 19:17:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 18:17:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- Comment #5 by Gianluigi GRADASCHI: :-/ From bugtracker at gambaswiki.org Fri Mar 16 19:20:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 16 Mar 2018 18:20:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1268: Copy files from project, malfunctioning. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1268&from=L21haW4- Comment #3 by Gianluigi GRADASCHI: Thanks for all From g4mba5 at gmail.com Fri Mar 16 19:43:17 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 16 Mar 2018 19:43:17 +0100 Subject: [Gambas-user] DBus.Introspectable.Introspect vs. Gambas In-Reply-To: <81b55759-ec3f-ada9-2aea-77aaf50ed8d6@gambas-buch.de> References: <81b55759-ec3f-ada9-2aea-77aaf50ed8d6@gambas-buch.de> Message-ID: <23a7706e-044f-89df-297e-094ce2712f80@gmail.com> Le 16/03/2018 ? 13:06, Hans Lehmann a ?crit?: > Hello, > > I can't find a gambas method in the gb.dbus component to use this > console command to introspect a gambas project dbusserver1 with the > /service object: > > $ dbus-send --session --print-reply --dest=org.gambas.dbusserver1 > /service org.freedesktop.DBus.Introspectable.Introspect > service.xml > > in Gambas. Every suggestion is gladly read. > > With kind regards > > Hans > I tried with a test DBus server project, and it works as expected. So show your code. -- Beno?t Minisini From g4mba5 at gmail.com Fri Mar 16 19:19:41 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 16 Mar 2018 19:19:41 +0100 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker In-Reply-To: <5aac09e6.15abdf0a.9ccb0.8361SMTPIN_ADDED_BROKEN@mx.google.com> References: <5aac09e6.15abdf0a.9ccb0.8361SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Le 16/03/2018 ? 19:15, bugtracker at gambaswiki.org a ?crit?: > http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- > > Comment #4 by Gianluigi GRADASCHI: > > Unfortunately I can not change from opened in fixed state > > Gianluigi GRADASCHI changed the state of the bug to: Fixed. > I find this message somewhat surreal. I like it. :-) -- Beno?t Minisini From bugtracker at gambaswiki.org Sat Mar 17 11:15:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 17 Mar 2018 10:15:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1270: Error in `test-free': double free or corruption (fasttop): 0x00000000025527e0 Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1270&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Error in `test-free': double free or corruption (fasttop): 0x00000000025527e0 Type : Bug Priority : Low Gambas version : Master Product : Language Description ----------- When run this project (attach project) I get Segmentation fault, this really low priority bug because the project is doing bad practice code. Reproduce the bug: 1) open the project 2) Run System information ------------------ [System] Gambas=3.10.90 56bf544 (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8uIg5EIr5b DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1316,unix/:/tmp/.ICE-unix/1316 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/1131 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Sat Mar 17 11:16:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 17 Mar 2018 10:16:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1270: Error in `test-free': double free or corruption (fasttop): 0x00000000025527e0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1270&from=L21haW4- Zainudin AHMAD added an attachment: test-free-0.0.1.tar.gz From bugtracker at gambaswiki.org Sat Mar 17 11:26:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 17 Mar 2018 10:26:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1270: Error in `test-free': double free or corruption (fasttop): 0x00000000025527e0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1270&from=L21haW4- Zainudin AHMAD added an attachment: result-test-free.png From bugtracker at gambaswiki.org Sat Mar 17 11:27:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 17 Mar 2018 10:27:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1270: Error in `test-free': double free or corruption (fasttop): 0x00000000025527e0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1270&from=L21haW4- Zainudin AHMAD added an attachment: result.txt From bagonergi at gmail.com Sat Mar 17 13:12:09 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 17 Mar 2018 13:12:09 +0100 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1269: Gambas bug traker In-Reply-To: References: <5aac09e6.15abdf0a.9ccb0.8361SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Nice, right? LOL Regards Gianluigi 2018-03-16 19:19 GMT+01:00 Beno?t Minisini : > Le 16/03/2018 ? 19:15, bugtracker at gambaswiki.org a ?crit : > >> http://gambaswiki.org/bugtracker/edit?object=BUG.1269&from=L21haW4- >> >> Comment #4 by Gianluigi GRADASCHI: >> >> Unfortunately I can not change from opened in fixed state >> >> Gianluigi GRADASCHI changed the state of the bug to: Fixed. >> >> > I find this message somewhat surreal. I like 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 bugtracker at gambaswiki.org Sat Mar 17 23:37:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 17 Mar 2018 22:37:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1270: Error in `test-free': double free or corruption (fasttop): 0x00000000025527e0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1270&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sat Mar 17 23:38:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 17 Mar 2018 22:38:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1270: Error in `test-free': double free or corruption (fasttop): 0x00000000025527e0 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1270&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/f47d63100cedbda84eaf7c845363f4dd425deea1. You now get an error message for trying to store a reference on an object being freed. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sun Mar 18 16:05:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 18 Mar 2018 15:05:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1271: Startup icon not appear when rename the startup class Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1271&from=L21haW4- Zainudin AHMAD reported a new bug. Summary ------- Startup icon not appear when rename the startup class Type : Bug Priority : Low Gambas version : Master Product : Development Environment Description ----------- Startup icon not appear when rename the startup class. Reproduce the bug: (attach video) 1) Create new project 2) Create Startup module/class 3) Rename the Startup module/class System information ------------------ [System] Gambas=3.10.90 b9389e5 (master) OperatingSystem=Linux Kernel=4.13.0-32-generic Architecture=x86_64 Distribution=Ubuntu 16.04.3 LTS Desktop=XFCE Theme=Gtk Language=en_US.UTF-8 Memory=1740M [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_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-tz6pgMRRg0 DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=en_US GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=id_ID.UTF-8 LC_IDENTIFICATION=id_ID.UTF-8 LC_MEASUREMENT=id_ID.UTF-8 LC_MONETARY=id_ID.UTF-8 LC_NAME=id_ID.UTF-8 LC_NUMERIC=id_ID.UTF-8 LC_PAPER=id_ID.UTF-8 LC_TELEPHONE=id_ID.UTF-8 LC_TIME=id_ID.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.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= QT_ACCESSIBILITY=1 QT_IM_MODULE=compose QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1326,unix/:/tmp/.ICE-unix/1326 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/1142 USER= XAUTHORITY=/.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:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= From bugtracker at gambaswiki.org Sun Mar 18 16:06:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 18 Mar 2018 15:06:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1271: Startup icon not appear when rename the startup class In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1271&from=L21haW4- Zainudin AHMAD added an attachment: bug-startup-icon.mp4 From taboege at gmail.com Mon Mar 19 13:20:45 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 19 Mar 2018 13:20:45 +0100 Subject: [Gambas-user] Linux Mint 18.2, Gambas 3.10 installed from repos, no toolboxes on the screen In-Reply-To: <1521460838099-0.post@n7.nabble.com> References: <1521460838099-0.post@n7.nabble.com> Message-ID: <20180319122045.GI3670@highrise.localdomain> On Mon, 19 Mar 2018, fargodwe via Gambas-user wrote: > I decided to try to see if I can learn gambas. I am running Linux Mint 18.2 > (Sarah). I installed gambas 3.10 via the package manager. When I create a > new project, the window on the left (project properties??) is displayed and > a blank form is displayed. There are no tool boxes on the screen and no > options under any of the icon or text menus to do so. I have seen screen > shots on the web where it looks like visual basic with a toolbox to chose > items that go on the screen and also the toolbox that shows the properties > for them. I cannot get this to come up at all. I tried deleting everything > and followed the instructions for Ubuntu (Mint is based on Ubuntu) by adding > the repo, updating the package lists and installing gambas 3.10. Same thing > happens. > > I assume there must be something I don't understand at all. Maybe this > doesn't come with the various tool boxes I was used to seeing in visual > basic - I have no clue as I'm just starting out. > > If someone could tell this old guy what the heck he is doing wrong it would > be greatly appreciated! > Important note: This list on sourceforge is no longer active. You have to use the new one: https://lists.gambas-basic.org/listinfo/user. I'll answer this question with the new list in CC. If you open your eyes really wide and hover with your cursor over the area in the attached screenshot, you will see two arrows pop up (shown inside the red ellipse). Click on that control and the toolbox should become visible. There are other panels which you can show/hide in this way. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: ide-1.png Type: image/png Size: 17880 bytes Desc: not available URL: From bagonergi at gmail.com Mon Mar 19 13:23:27 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 19 Mar 2018 13:23:27 +0100 Subject: [Gambas-user] Linux Mint 18.2, Gambas 3.10 installed from repos, no toolboxes on the screen In-Reply-To: <20180319122045.GI3670@highrise.localdomain> References: <1521460838099-0.post@n7.nabble.com> <20180319122045.GI3670@highrise.localdomain> Message-ID: 2018-03-19 13:20 GMT+01:00 Tobias Boege : > On Mon, 19 Mar 2018, fargodwe via Gambas-user wrote: > > I decided to try to see if I can learn gambas. I am running Linux Mint > 18.2 > > (Sarah). I installed gambas 3.10 via the package manager. When I > create a > > new project, the window on the left (project properties??) is displayed > and > > a blank form is displayed. There are no tool boxes on the screen and no > > options under any of the icon or text menus to do so. I have seen screen > > shots on the web where it looks like visual basic with a toolbox to chose > > items that go on the screen and also the toolbox that shows the > properties > > for them. I cannot get this to come up at all. I tried deleting > everything > > and followed the instructions for Ubuntu (Mint is based on Ubuntu) by > adding > > the repo, updating the package lists and installing gambas 3.10. Same > thing > > happens. > > > > I assume there must be something I don't understand at all. Maybe this > > doesn't come with the various tool boxes I was used to seeing in visual > > basic - I have no clue as I'm just starting out. > > > > If someone could tell this old guy what the heck he is doing wrong it > would > > be greatly appreciated! > > > > Important note: This list on sourceforge is no longer active. You have to > use the new one: https://lists.gambas-basic.org/listinfo/user. I'll answer > this question with the new list in CC. > > If you open your eyes really wide and hover with your cursor over the area > in the attached screenshot, you will see two arrows pop up (shown inside > the > red ellipse). Click on that control and the toolbox should become visible. > There are other panels which you can show/hide in this way. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > If the Gambas Help menu is visible and works, I suggest you add to the your e-mail the System information to see if you have installed all the libraries. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Mon Mar 19 15:24:57 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 19 Mar 2018 15:24:57 +0100 Subject: [Gambas-user] Error in gb.dbus ? Message-ID: Hello, if I want to observe selected signals for two DBus applications in a project, it does not work. Only the signals of the DBus object _noted first_ are observed. The signals of the second object are ignored. An error in the component gb.dbus? With kind regards Hans Source section: Public Sub Form_Open() ... ? $cDBus = DBus.Session ? $sInterface = "org.gtk.Private.RemoteVolumeMonitor" ? hDBusSignal = New DBusSignal($cDBus, $sInterface, True) As "hDBusSignal" ? $cDBus = DBus.System ? $sInterface = "org.freedesktop.NetworkManager" ? hDBusSignalNM = New DBusSignal($cDBus, $sInterface, True) As "hDBusSignalNM" ... End Public Sub hDBusSignalNM_Signal(Signal As String, Arguments As Variant[]) ? If Signal = "StateChanged" Then ???? $iNetworkState = Arguments[0] ? Endif End Public Sub hDBusSignal_Signal(Signal As String, Arguments As Variant[]) ? txaReport.Insert(Signal & gb.NewLine) ? If Signal = "MountAdded" Then $sMountAddedPath = Arguments[2][5] ? If $sMountAddedPath Begins "file:///" Then $sDataDestination = Replace($sMountAddedPath, "file://", "") ... End From t.lee.davidson at gmail.com Mon Mar 19 22:59:01 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 19 Mar 2018 17:59:01 -0400 Subject: [Gambas-user] Error in gb.dbus ? In-Reply-To: References: Message-ID: <50992d98-5259-e854-f784-e028a2908873@gmail.com> On 03/19/2018 10:24 AM, Hans Lehmann wrote: > Hello, > > if I want to observe selected signals for two DBus applications in a project, it does not work. > Only the signals of the DBus object _noted first_ are observed. The signals of the second object are ignored. > An error in the component gb.dbus? > > With kind regards > > Hans > [source snipped] I had to change the session interface to match my system, but the following worked for me, showing appropriate signals from _both_ buses. ' Gambas module file Public Sub Main() Dim hDBusSessionSignal, hDBusSystemSignal As DBusSignal hDBusSessionSignal = New DBusSignal(DBus.Session, "org.mpris.MediaPlayer2.Player", True) As "SessionSignal" hDBusSystemSignal = New DBusSignal(DBus.System, "org.freedesktop.NetworkManager", True) As "SystemSignal" End Public Sub SystemSignal_Signal(Signal As String, Arguments As Variant[]) If Signal = "StateChanged" Then Print "State changed." Endif End Public Sub SessionSignal_Signal(Signal As String, Arguments As Variant[]) Print Signal End -- Lee From hans at gambas-buch.de Tue Mar 20 09:29:21 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 20 Mar 2018 09:29:21 +0100 Subject: [Gambas-user] Error in gb.dbus ? In-Reply-To: <50992d98-5259-e854-f784-e028a2908873@gmail.com> References: <50992d98-5259-e854-f784-e028a2908873@gmail.com> Message-ID: <6e9ba15a-f9c6-f81c-77c3-fe8d31bf1c0a@gambas-buch.de> Am 19.03.2018 um 22:59 schrieb T Lee Davidson: > ' Gambas module file > > Public Sub Main() > > Dim hDBusSessionSignal, hDBusSystemSignal As DBusSignal > hDBusSessionSignal = New DBusSignal(DBus.Session, "org.mpris.MediaPlayer2.Player", True) As "SessionSignal" > hDBusSystemSignal = New DBusSignal(DBus.System, "org.freedesktop.NetworkManager", True) As "SystemSignal" > > End > > Public Sub SystemSignal_Signal(Signal As String, Arguments As Variant[]) > > If Signal = "StateChanged" Then > Print "State changed." > Endif > > End > > Public Sub SessionSignal_Signal(Signal As String, Arguments As Variant[]) > > Print Signal > > End Hello Lee, the program only shows me the signals of the signal noted first. Unfortunately. Thanks for the source code. With kind regards Hans [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.13.0-37-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=de_DE.UTF-8 Memory=7894M [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-8ItKlGal30,guid=ac1a978e06f46567d3e5e50c5ab0b753 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=de_DE GIO_LAUNCHED_DESKTOP_FILE=/Schreibtisch/GAMBAS 3.10.0.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=6541 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= INSIDE_NEMO_PYTHON= LANG=de_DE.UTF-8 LANGUAGE=de_DE:de LC_ADDRESS=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_NUMERIC=de_DE.UTF-8 LC_PAPER=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 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/2995,unix/:/tmp/.ICE-unix/2995 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=3052 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=c4 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at gambaswiki.org Tue Mar 20 22:22:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 20 Mar 2018 21:22:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1271: Startup icon not appear when rename the startup class In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1271&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Tue Mar 20 22:34:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 20 Mar 2018 21:34:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1271: Startup icon not appear when rename the startup class In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1271&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/b5c96c17ccc69a0534110234206ad08f25ae6f36 Beno?t MINISINI changed the state of the bug to: Fixed. From t.lee.davidson at gmail.com Wed Mar 21 17:04:38 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 21 Mar 2018 12:04:38 -0400 Subject: [Gambas-user] No output on Console Message-ID: <04b69905-348f-1d78-f6af-e841c0110ac7@gmail.com> Is it just me that is getting no output on the Console? ' Gambas module file Public Sub Main() Print "Hello world" End Produces nothing for me. I see that Commit 6eae56c3 states, "BUG: Output console: Ensure that the terminal screen width is accurate even if the output console has not been shown yet." Is that perhaps related? [System] Gambas=3.10.90 76ac4ee2d (master) OperatingSystem=Linux Kernel=4.4.114-42-default Architecture=x86_64 Distribution=openSUSE Leap 42.3 Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M -- Lee From t.lee.davidson at gmail.com Wed Mar 21 17:06:52 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 21 Mar 2018 12:06:52 -0400 Subject: [Gambas-user] No output on Console In-Reply-To: <04b69905-348f-1d78-f6af-e841c0110ac7@gmail.com> References: <04b69905-348f-1d78-f6af-e841c0110ac7@gmail.com> Message-ID: <4c6843d1-069a-80e8-9741-98b6d956b311@gmail.com> Nevermind. Must have been a corrupted instance. I closed and re-launched Gambas and it corrected itself. On 03/21/2018 12:04 PM, T Lee Davidson wrote: > Is it just me that is getting no output on the Console? > > ' Gambas module file > > Public Sub Main() > > Print "Hello world" > > End > > Produces nothing for me. > > I see that Commit 6eae56c3 states, "BUG: Output console: Ensure that the terminal screen width is accurate even if the output > console has not been shown yet." Is that perhaps related? > > [System] > Gambas=3.10.90 76ac4ee2d (master) > OperatingSystem=Linux > Kernel=4.4.114-42-default > Architecture=x86_64 > Distribution=openSUSE Leap 42.3 > Desktop=KDE5 > Theme=QtCurve > Language=en_US.UTF-8 > Memory=3951M > > -- Lee From bugtracker at gambaswiki.org Wed Mar 21 18:40:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 21 Mar 2018 17:40:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- T. Lee DAVIDSON reported a new bug. Summary ------- DBus not fully case sensitive Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- When using DBusProxy, it is unable to distinguish between a method and a property if they have the same name with different capitalization. For example: ' Gambas module file Public Sub Main() Dim hDBusApplication As DBusApplication Dim hDBusProxy As DBusProxy Dim iState As Integer hDBusApplication = New DBusApplication(DBus.System, "org.freedesktop.NetworkManager") hDBusProxy = New DBusProxy(hDBusApplication, "/org/freedesktop/NetworkManager", "org.freedesktop.NetworkManager") Try Print hDBusProxy.Version Try Print hDBusProxy.state() Try Print hDBusProxy.State() 'Should be invalid Try Print hDBusProxy.State Try iState = hDBusProxy.State If Error Then Print Error.Text End Produces: 1.0.12 70 70 (Function DBusProxy:2) Type mismatch: wanted Integer, got Function instead System information ------------------ [System] Gambas=3.10.90 76ac4ee2d (master) OperatingSystem=Linux Kernel=4.4.114-42-default Architecture=x86_64 Distribution=openSUSE Leap 42.3 Desktop=KDE5 Theme=QtCurve Language=en_US.UTF-8 Memory=3951M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11502.0 Curl=/usr/lib64/libcurl.so.4.3.0 DBus=/lib64/libdbus-1.so.3.8.14 GStreamer=/usr/lib64/libgstreamer-0.10.so.0.30.0 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.803.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.31 GTK+3=/usr/lib64/libgtk-3.so.0.2000.10 OpenGL=/usr/lib64/libGL.so.1.2.0 Poppler=/usr/lib64/libpoppler.so.60.0.0 QT4=/usr/lib64/libQtCore.so.4.8.6 QT5=/usr/lib64/libQt5Core.so.5.6.2 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 [Environment] ALSA_CONFIG_PATH=/etc/alsa-pulse.conf AUDIODRIVER=pulseaudio COLORTERM=1 CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8Uq3ReBYDi,guid=5c736fcdc58fc1ab4ab50a0a5ab2658e DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 FROM_HEADER= GB_GUI=gb.qt5 GOARCH=amd64 GOOS=linux GOPATH=/go:/usr/share/go/1.9/contrib GOROOT=/usr/lib64/go/1.9 GPG_AGENT_INFO=/tmp/gpg-XGeH6Y/S.gpg-agent:2421:1 GPG_TTY=not a tty GS_LIB=/.fonts GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0 GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 INPUTRC=/.inputrc JAVA_BINDIR=/usr/lib64/jvm/java/bin JAVA_HOME=/usr/lib64/jvm/java JAVA_ROOT=/usr/lib64/jvm/java JDK_HOME=/usr/lib64/jvm/java JRE_HOME=/usr/lib64/jvm/java/jre KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 KOTLIN_HOME=/.sdkman/candidates/kotlin/current LANG=en_US.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MINICOM=-c on MORE=-sl NNTPSERVER=news OSTYPE=linux PAGER=less PATH=/.sdkman/candidates/kotlin/current/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games PROFILEREAD=true PWD= PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QMLSCENE_DEVICE= QSG_RENDER_LOOP= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_SYSTEM_DIR=/usr/share/desktop-data SDKMAN_CANDIDATES_DIR=/.sdkman/candidates SDKMAN_CURRENT_API=https://api.sdkman.io/2 SDKMAN_DIR=/.sdkman SDKMAN_LEGACY_API=https://api.sdkman.io/1 SDKMAN_PLATFORM=Linux64 SDKMAN_VERSION=5.5.13+272 SDK_HOME=/usr/lib64/jvm/java SDL_AUDIODRIVER=pulse SESSION_MANAGER=local/:@/tmp/.ICE-unix/2494,unix/:/tmp/.ICE-unix/2494 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=2420 SSH_ASKPASS=/usr/lib/ssh/ksshaskpass SSH_AUTH_SOCK=/tmp/*/agent.2315 TERM=xterm TZ=:/etc/localtime USER= VDPAU_DRIVER=va_gl WINDOWMANAGER=/usr/bin/startkde XAUTHLOCALHOSTNAME= XAUTHORITY=/.Xauthority XCURSOR_SIZE=0 XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/usr/share XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=3 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes _=/usr/bin/kwrapper5 From bugtracker at gambaswiki.org Wed Mar 21 19:01:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 21 Mar 2018 18:01:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- Comment #1 by Beno?t MINISINI: It's Gambas that is not case sensitive. It picks the case from the first time the symbol is encountered. So if it sees ".state()" first, it will use lower case for all occurrences of that symbol ('State', 'sTaTE', 'STATE'...) and you won't get any error. Otherwise, if you use for example '.State()' first, you will get an error. From jussi.lahtinen at gmail.com Wed Mar 21 20:22:18 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 21 Mar 2018 21:22:18 +0200 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: References: <5ab29e5f.95c8620a.cc3f3.de2fSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: What you mean by property and method with same name? That shouldn't be possible, despite of different case. Unless you are over driving the declaration, but then there is only either the property or the function... still I don't think that should be possible. Jussi On Wed, Mar 21, 2018 at 9:17 PM, Jussi Lahtinen wrote: > ?? > > The error is in this line: > Try iState = hDBusProxy.State > > It should be: > Try iState = hDBusProxy.State() > > Or: > Try iState = hDBusProxy.state() > > The case doesn't matter in Gambas. > > > Jussi > > > On Wed, Mar 21, 2018 at 8:01 PM, wrote: > >> http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- >> >> Comment #1 by Beno?t MINISINI: >> >> It's Gambas that is not case sensitive. It picks the case from the first >> time the symbol is encountered. >> >> So if it sees ".state()" first, it will use lower case for all >> occurrences of that symbol ('State', 'sTaTE', 'STATE'...) and you won't get >> any error. >> >> Otherwise, if you use for example '.State()' first, you will get an error. >> >> >> >> -------------------------------------------------- >> >> 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 Wed Mar 21 20:17:57 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 21 Mar 2018 21:17:57 +0200 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: <5ab29e5f.95c8620a.cc3f3.de2fSMTPIN_ADDED_BROKEN@mx.google.com> References: <5ab29e5f.95c8620a.cc3f3.de2fSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: ?? The error is in this line: Try iState = hDBusProxy.State It should be: Try iState = hDBusProxy.State() Or: Try iState = hDBusProxy.state() The case doesn't matter in Gambas. Jussi On Wed, Mar 21, 2018 at 8:01 PM, wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- > > Comment #1 by Beno?t MINISINI: > > It's Gambas that is not case sensitive. It picks the case from the first > time the symbol is encountered. > > So if it sees ".state()" first, it will use lower case for all occurrences > of that symbol ('State', 'sTaTE', 'STATE'...) and you won't get any error. > > Otherwise, if you use for example '.State()' first, you will get an error. > > > > -------------------------------------------------- > > 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 Thu Mar 22 00:20:38 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 21 Mar 2018 19:20:38 -0400 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: References: <5ab29e5f.95c8620a.cc3f3.de2fSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: I mean that the org.freedesktop.NetworkManager DBus application/interface has a method named "state" _and_ a property named "State". So to invoke the method, one would use ".state()" and to read the property, ".State". On 03/21/2018 03:22 PM, Jussi Lahtinen wrote: > What you mean by property and method with same name? That shouldn't be possible, despite of different case. Unless you are over > driving the declaration, but then there is only either the property or the function... still I don't think that should be possible. > > > Jussi > > On Wed, Mar 21, 2018 at 9:17 PM, Jussi Lahtinen > wrote: > > ?? > > The error is in this line: > Try iState = hDBusProxy.State > > It should be: > Try iState = hDBusProxy.State() > > Or: > Try iState = hDBusProxy.state() > > The case doesn't matter in Gambas. > > > Jussi > > > On Wed, Mar 21, 2018 at 8:01 PM, > wrote: > > http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- > > > Comment #1 by Beno?t MINISINI: > > It's Gambas that is not case sensitive. It picks the case from the first time the symbol is encountered. > > So if it sees ".state()" first, it will use lower case for all occurrences of that symbol ('State', 'sTaTE', 'STATE'...) > and you won't get any error. > > Otherwise, if you use for example '.State()' first, you will get an error. > From jussi.lahtinen at gmail.com Thu Mar 22 00:34:55 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 22 Mar 2018 01:34:55 +0200 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: References: <5ab29e5f.95c8620a.cc3f3.de2fSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: I don't think that is true. No where in your example you are reading the property, all the references are made to the function. Jussi On Thu, Mar 22, 2018 at 1:20 AM, T Lee Davidson wrote: > I mean that the org.freedesktop.NetworkManager DBus application/interface > has a method named "state" _and_ a property named > "State". So to invoke the method, one would use ".state()" and to read the > property, ".State". > > > On 03/21/2018 03:22 PM, Jussi Lahtinen wrote: > > What you mean by property and method with same name? That shouldn't be > possible, despite of different case. Unless you are over > > driving the declaration, but then there is only either the property or > the function... still I don't think that should be possible. > > > > > > Jussi > > > > On Wed, Mar 21, 2018 at 9:17 PM, Jussi Lahtinen < > jussi.lahtinen at gmail.com > wrote: > > > > ?? > > > > The error is in this line: > > Try iState = hDBusProxy.State > > > > It should be: > > Try iState = hDBusProxy.State() > > > > Or: > > Try iState = hDBusProxy.state() > > > > The case doesn't matter in Gambas. > > > > > > Jussi > > > > > > On Wed, Mar 21, 2018 at 8:01 PM, bugtracker at gambaswiki.org>> wrote: > > > > http://gambaswiki.org/bugtracker/edit?object=BUG. > 1272&from=L21haW4- > > 1272&from=L21haW4-> > > > > Comment #1 by Beno?t MINISINI: > > > > It's Gambas that is not case sensitive. It picks the case from > the first time the symbol is encountered. > > > > So if it sees ".state()" first, it will use lower case for all > occurrences of that symbol ('State', 'sTaTE', 'STATE'...) > > and you won't get any error. > > > > Otherwise, if you use for example '.State()' first, you will get > an error. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu Mar 22 00:36:01 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 21 Mar 2018 23:36:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- Comment #3 by Beno?t MINISINI: I cannot reproduce this behaviour. Please provide a full project that reproduces the bug. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From jussi.lahtinen at gmail.com Thu Mar 22 00:45:30 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 22 Mar 2018 01:45:30 +0200 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: References: <5ab29e5f.95c8620a.cc3f3.de2fSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Gambas does not accept anything declared with same name. So that should generate error. .State() gives value of the function. .State gives reference to the same function. The case doesn't matter. I don't understand the documentation: https://developer.gnome.org/NetworkManager/stable/gdbus-org.freedesktop.NetworkManager.html The property and method seem to do exactly the same thing. Maybe it is just error. Jussi On Thu, Mar 22, 2018 at 1:34 AM, Jussi Lahtinen wrote: > I don't think that is true. No where in your example you are reading the > property, all the references are made to the function. > > > Jussi > > > > On Thu, Mar 22, 2018 at 1:20 AM, T Lee Davidson > wrote: > >> I mean that the org.freedesktop.NetworkManager DBus application/interface >> has a method named "state" _and_ a property named >> "State". So to invoke the method, one would use ".state()" and to read >> the property, ".State". >> >> >> On 03/21/2018 03:22 PM, Jussi Lahtinen wrote: >> > What you mean by property and method with same name? That shouldn't be >> possible, despite of different case. Unless you are over >> > driving the declaration, but then there is only either the property or >> the function... still I don't think that should be possible. >> > >> > >> > Jussi >> > >> > On Wed, Mar 21, 2018 at 9:17 PM, Jussi Lahtinen < >> jussi.lahtinen at gmail.com > wrote: >> > >> > ?? >> > >> > The error is in this line: >> > Try iState = hDBusProxy.State >> > >> > It should be: >> > Try iState = hDBusProxy.State() >> > >> > Or: >> > Try iState = hDBusProxy.state() >> > >> > The case doesn't matter in Gambas. >> > >> > >> > Jussi >> > >> > >> > On Wed, Mar 21, 2018 at 8:01 PM, > > wrote: >> > >> > http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from= >> L21haW4- >> > > from=L21haW4-> >> > >> > Comment #1 by Beno?t MINISINI: >> > >> > It's Gambas that is not case sensitive. It picks the case from >> the first time the symbol is encountered. >> > >> > So if it sees ".state()" first, it will use lower case for all >> occurrences of that symbol ('State', 'sTaTE', 'STATE'...) >> > and you won't get any error. >> > >> > Otherwise, if you use for example '.State()' first, you will >> get an error. >> > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Thu Mar 22 01:43:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 00:43:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- Comment #4 by V?ctor PEREZ: probe with: screen resolution 1024x768 and 1280x1024 and the same thing happens. I suppose that with the other resolutions the same thing happens. add characters until the horizontal bar appears and continue typing with the cursor at the end of the line. V?ctor PEREZ changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Mar 22 01:43:18 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 00:43:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- V?ctor PEREZ added an attachment: bug-end-line-0.0.1.tar.gz From bugtracker at gambaswiki.org Thu Mar 22 02:16:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 01:16:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- Comment #2 by Beno?t MINISINI: Apparently the state() method and the State property do the same thing, so it's not a big deal. In commit https://gitlab.com/gambas/gambas/commit/cc1879b3cc54d14b74522e7b227f7e058dce6984, I allowed the DBusProxy._Invoke() method to be called explicitly, so that case ambiguity can be solved. Beno?t MINISINI changed the state of the bug to: Fixed. From t.lee.davidson at gmail.com Thu Mar 22 04:02:24 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 21 Mar 2018 23:02:24 -0400 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: <5ab303e5.95571c0a.ebad0.010bSMTPIN_ADDED_BROKEN@mx.google.com> References: <5ab303e5.95571c0a.ebad0.010bSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: On 03/21/2018 09:16 PM, bugtracker at gambaswiki.org wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- > > Comment #2 by Beno?t MINISINI: > > Apparently the state() method and the State property do the same thing, so it's not a big deal. > > In commit https://gitlab.com/gambas/gambas/commit/cc1879b3cc54d14b74522e7b227f7e058dce6984, I allowed the DBusProxy._Invoke() method to be called explicitly, so that case ambiguity can be solved. > > Beno?t MINISINI changed the state of the bug to: Fixed. > That's great. I noticed that the Gambas Farm example DBus-Explorer uses _Introspect() in 'Try Print DBus[Last.current.text]._Introspect("/")' Are _Introspect() and _Invoke() documented somewhere, or would one need to read the source code? -- Lee From gcos7 at yahoo.com Thu Mar 22 05:07:34 2018 From: gcos7 at yahoo.com (David Eaton) Date: Thu, 22 Mar 2018 04:07:34 +0000 (UTC) Subject: [Gambas-user] Hope I'm doing this correctly - I'm searching for help to reference a control using a variable References: <2053880799.5053489.1521691654524.ref@mail.yahoo.com> Message-ID: <2053880799.5053489.1521691654524@mail.yahoo.com> I'm new to this mailing list idea - I don't know how they work or if I'm posting into the correct one. I am looking for some help in programming with Gambas.? In particular, I have a program that has several label controls.? I need to be able to set properties on these labels via a variable - similar to this pseudo code: dim stringx as string = ""dim myint as integer = 1 myint = somenumber_determined_at_runtime stringx = "Label" & myintStringx.propertiy = somevalue_determined_at_runtime I was able to do this in Visual Basic following some samples on the internet. Is there a way to do this in Gambas? Thank you, and if I have put this in the completely wrong place please let me know. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Mar 22 09:31:55 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 22 Mar 2018 09:31:55 +0100 Subject: [Gambas-user] Hope I'm doing this correctly - I'm searching for help to reference a control using a variable In-Reply-To: <2053880799.5053489.1521691654524@mail.yahoo.com> References: <2053880799.5053489.1521691654524.ref@mail.yahoo.com> <2053880799.5053489.1521691654524@mail.yahoo.com> Message-ID: Hi, David, You can do this: Public Sub Form_Open() Label1.Border = Border.Plain Label1.Alignment = Align.Center End Public Sub Button1_Click() Dim sString As String ' Defaul is "" Dim iInt As Integer iInt = 2753 + 235 sString = "Sum result = " & CStr(iInt) Label1.text = sString ' or ' Label1.Text = "Sum result = " & CStr(2753 + 235) End Regards Gianluigi 2018-03-22 5:07 GMT+01:00 David Eaton via User : > I'm new to this mailing list idea - I don't know how they work or if I'm > posting into the correct one. > > I am looking for some help in programming with Gambas. In particular, I > have a program that has several label controls. I need to be able to set > properties on these labels via a variable - similar to this pseudo code: > > dim stringx as string = "" > dim myint as integer = 1 > > myint = somenumber_determined_at_runtime > stringx = "Label" & myint > Stringx.propertiy = somevalue_determined_at_runtime > > I was able to do this in Visual Basic following some samples on the > internet. > > Is there a way to do this in Gambas? > > Thank you, and if I have put this in the completely wrong place please let > me know. > > > -------------------------------------------------- > > 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 Mar 22 12:14:00 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Mar 2018 12:14:00 +0100 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1272: DBus not fully case sensitive In-Reply-To: References: <5ab303e5.95571c0a.ebad0.010bSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <733c35c5-9b34-d072-f966-9094fd21360b@gmail.com> Le 22/03/2018 ? 04:02, T Lee Davidson a ?crit?: > On 03/21/2018 09:16 PM, bugtracker at gambaswiki.org wrote: >> http://gambaswiki.org/bugtracker/edit?object=BUG.1272&from=L21haW4- >> >> Comment #2 by Beno?t MINISINI: >> >> Apparently the state() method and the State property do the same thing, so it's not a big deal. >> >> In commit https://gitlab.com/gambas/gambas/commit/cc1879b3cc54d14b74522e7b227f7e058dce6984, I allowed the DBusProxy._Invoke() method to be called explicitly, so that case ambiguity can be solved. >> >> Beno?t MINISINI changed the state of the bug to: Fixed. >> > > That's great. > > I noticed that the Gambas Farm example DBus-Explorer uses _Introspect() in 'Try Print DBus[Last.current.text]._Introspect("/")' > > Are _Introspect() and _Invoke() documented somewhere, or would one need to read the source code? > > The are not documented because nobody should use them, they are internal functions. -- Beno?t Minisini From charlie at cogier.com Thu Mar 22 15:17:23 2018 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 22 Mar 2018 14:17:23 +0000 Subject: [Gambas-user] Hope I'm doing this correctly - I'm searching for help to reference a control using a variable In-Reply-To: <2053880799.5053489.1521691654524@mail.yahoo.com> References: <2053880799.5053489.1521691654524.ref@mail.yahoo.com> <2053880799.5053489.1521691654524@mail.yahoo.com> Message-ID: Hi David, Have a look at the example code attached. Charlie On 22/03/18 04:07, David Eaton via User wrote: > I'm new to this mailing list idea - I don't know how they work or if > I'm posting into the correct one. > > I am looking for some help in programming with Gambas.? In particular, > I have a program that has several label controls. I need to be able to > set properties on these labels via a variable - similar to this pseudo > code: > > dim stringx as string = "" > dim myint as integer = 1 > > myint = somenumber_determined_at_runtime > stringx = "Label" & myint > Stringx.propertiy = somevalue_determined_at_runtime > > I was able to do this in Visual Basic following some samples on the > internet. > > Is there a way to do this in Gambas? > > Thank you, and if I have put this in the completely wrong place please > let me know. > > > -------------------------------------------------- > > 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: GUITest.tar.gz Type: application/gzip Size: 293937 bytes Desc: not available URL: From t.lee.davidson at gmail.com Thu Mar 22 18:01:48 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 22 Mar 2018 13:01:48 -0400 Subject: [Gambas-user] Hope I'm doing this correctly - I'm searching for help to reference a control using a variable In-Reply-To: <2053880799.5053489.1521691654524@mail.yahoo.com> References: <2053880799.5053489.1521691654524.ref@mail.yahoo.com> <2053880799.5053489.1521691654524@mail.yahoo.com> Message-ID: Yes, you're posting to the correct list. You will find Gambas documentation at http://gambaswiki.org/wiki . >From there, you can go to Components under Language Reference. Then look under Graphical User Interface. You will probably use the docs for gb.qt4 and gb.form (enhanced controls) for most things GUI. -- Lee On 03/22/2018 12:07 AM, David Eaton via User wrote: > I'm new to this mailing list idea - I don't know how they work or if I'm posting into the correct one. > > I am looking for some help in programming with Gambas.? In particular, I have a program that has several label controls.? I need > to be able to set properties on these labels via a variable - similar to this pseudo code: > > dim stringx as string = "" > dim myint as integer = 1 > > myint = somenumber_determined_at_runtime > stringx = "Label" & myint > Stringx.propertiy = somevalue_determined_at_runtime > > I was able to do this in Visual Basic following some samples on the internet. > > Is there a way to do this in Gambas? > > Thank you, and if I have put this in the completely wrong place please let me know. From bugtracker at gambaswiki.org Thu Mar 22 19:10:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 18:10:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- Comment #5 by Beno?t MINISINI: I think the bug has been solved since 3.10. Can you try the development version? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bagonergi at gmail.com Thu Mar 22 19:24:52 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 22 Mar 2018 19:24:52 +0100 Subject: [Gambas-user] Hope I'm doing this correctly - I'm searching for help to reference a control using a variable In-Reply-To: References: <2053880799.5053489.1521691654524.ref@mail.yahoo.com> <2053880799.5053489.1521691654524@mail.yahoo.com> Message-ID: Hi Charlie and Lee, he later wrote me this privately: See [0] and I showed him the use of 'Last' [1] But I also added, in my bad English, that I would no longer answer privately as the mailing lists are useful to everyone, I hope he was not offended. I can also add the use of code like this: Dim c As Control If Object.Is(c, "Label") Then c.Foreground = Color.Red ... Dim c As Control For Each c In FMain.Controls If c.Name Like "Label{2,3,4,5,6,7,8,9,10,11,12,13}" Then c.Foreground = Color.Red Endif Next ... [0] [I don't want to address them as "Label1", etc. I do not know until runtime which of 75 labels that I need to update. I would prefer not to get anywhere near some big case statement based on the value of the integer. So instead of addressing them as Label1, Label2, etc., I need to be able to access them as, for example, Labelx where the "x" is a variable. There would not be a label with the name of "Labelx". This part of a Bingo calling program I wrote if VB and want to convert to Gambas. If you would like to see a snippet of the VB code doing this just let me know. Thanks again.] [1] http://gambaswiki.org/wiki/lang/last Regards Gianluigi 2018-03-22 18:01 GMT+01:00 T Lee Davidson : > Yes, you're posting to the correct list. > > You will find Gambas documentation at http://gambaswiki.org/wiki . > > From there, you can go to Components under Language Reference. Then look > under Graphical User Interface. > > You will probably use the docs for gb.qt4 and gb.form (enhanced controls) > for most things GUI. > > > -- > Lee > > > On 03/22/2018 12:07 AM, David Eaton via User wrote: > > I'm new to this mailing list idea - I don't know how they work or if I'm > posting into the correct one. > > > > I am looking for some help in programming with Gambas. In particular, I > have a program that has several label controls. I need > > to be able to set properties on these labels via a variable - similar to > this pseudo code: > > > > dim stringx as string = "" > > dim myint as integer = 1 > > > > myint = somenumber_determined_at_runtime > > stringx = "Label" & myint > > Stringx.propertiy = somevalue_determined_at_runtime > > > > I was able to do this in Visual Basic following some samples on the > internet. > > > > Is there a way to do this in Gambas? > > > > Thank you, and if I have put this in the completely wrong place please > let me know. > > -------------------------------------------------- > > 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 Mar 22 20:46:10 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 19:46:10 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- Comment #6 by V?ctor PEREZ: I will try it, notice when I have news. V?ctor PEREZ changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Mar 22 22:16:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 21:16:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1263: autocomplete error in right margin In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1263&from=L21haW4- Comment #7 by V?ctor PEREZ: the bug is also in the development version From bugtracker at gambaswiki.org Thu Mar 22 23:04:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 22:04:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1273: does not insert date in development version Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1273&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- does not insert date in development version Type : Bug Priority : Low Gambas version : Master Product : Development Environment Description ----------- Edit ---> advanced ---> insert today's date. does not insert date in development version System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Thu Mar 22 23:06:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 22:06:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1273: does not insert date in development version In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1273&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Mar 22 23:08:01 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 22:08:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1273: does not insert date in development version In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1273&from=L21haW4- V?ctor PEREZ added an attachment: date1.jpg From bugtracker at gambaswiki.org Thu Mar 22 23:09:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 22:09:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1273: does not insert date in development version In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1273&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/b5966b2c0be90b2a8874b55da5b77929a75959ca Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Thu Mar 22 23:38:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 22:38:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- Comment #3 by V?ctor PEREZ: I am very good the activated option deactivated of points of interruption, point by point, but ... I keep thinking that it is useful to activate or deactivate all the points of interruption. From bugtracker at gambaswiki.org Fri Mar 23 00:23:51 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 23:23:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- Comment #4 by Beno?t MINISINI: I don't understand what you meant. From bugtracker at gambaswiki.org Fri Mar 23 00:26:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 22 Mar 2018 23:26:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1274: in consigning, in terminal does not work to paste Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1274&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- in consigning, in terminal does not work to paste Type : Bug Priority : Low Gambas version : Master Product : Development Environment Description ----------- in consigning, in terminal does not work to paste System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Fri Mar 23 12:17:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 23 Mar 2018 11:17:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- Comment #5 by V?ctor PEREZ: add a checkbox to activate or deactivate all breakpoints. From bugtracker at gambaswiki.org Fri Mar 23 13:18:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 23 Mar 2018 12:18:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- Comment #6 by Beno?t MINISINI: OK. You can already select all breakpoints and click on the "Disable" or "Enable" button. From bugtracker at gambaswiki.org Fri Mar 23 14:21:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 23 Mar 2018 13:21:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1275: (break / error) if open project folder is deleted, when trying to access a class Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1275&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- (break / error) if open project folder is deleted, when trying to access a class Type : Bug Priority : Medium Gambas version : Master Product : Development Environment Description ----------- (break / error) if open project folder is deleted, when trying to access a class System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Fri Mar 23 14:22:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 23 Mar 2018 13:22:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1275: (break / error) if open project folder is deleted, when trying to access a class In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1275&from=L21haW4- V?ctor PEREZ added an attachment: break-if-delet-open-proyect.ogv From bugtracker at gambaswiki.org Fri Mar 23 14:47:43 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 23 Mar 2018 13:47:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1275: (break / error) if open project folder is deleted, when trying to access a class In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1275&from=L21haW4- Comment #1 by Beno?t MINISINI: And what do you expected? From bugtracker at gambaswiki.org Fri Mar 23 15:05:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 23 Mar 2018 14:05:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1275: (break / error) if open project folder is deleted, when trying to access a class In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1275&from=L21haW4- Comment #2 by V?ctor PEREZ: that Gambas3 did not break, I suppose. Something like: Message: Project does not exist. then reopen gambas3 From bugtracker at gambaswiki.org Sat Mar 24 10:21:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 24 Mar 2018 09:21:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1276: Webpage: Extra Render for each in the code of the webpage. For each occurence of this string the Main method is called again automatically instead of just one time. This can lead to a lot of unnecessary wasted computing time. From bugtracker at gambaswiki.org Sat Mar 24 10:23:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 24 Mar 2018 09:23:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1276: Webpage: Extra Render for each triggers a request from the web browser. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Sat Mar 24 16:39:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 24 Mar 2018 15:39:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1274: in consigning, in terminal does not work to paste In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1274&from=L21haW4- Comment #1 by Beno?t MINISINI: Sorry, your sentence means nothing... :-/ From bugtracker at gambaswiki.org Sat Mar 24 17:19:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 24 Mar 2018 16:19:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1275: (break / error) if open project folder is deleted, when trying to access a class In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1275&from=L21haW4- Comment #3 by Beno?t MINISINI: With commit https://gitlab.com/gambas/gambas/commit/9ab1d8eadea63c6af3b281fc805896a8b2c0fbc7, you get some repeated error messages instead. But at least the IDE does not crash anymore. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sat Mar 24 18:38:21 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 24 Mar 2018 17:38:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1276: Webpage: Extra Render for each