From dsanroma at gmail.com Thu Nov 1 23:17:37 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Thu, 1 Nov 2018 23:17:37 +0100 Subject: [Gambas-user] Custom icon and desktop file when creating deb package Message-ID: <15dce08e-8bea-6492-2502-c0e2af3bd79e@gmail.com> Hello everyone, Please forgive my "newbieness" but I have not been able to find documentation about how to tell the "Make -> Installation Package" Wizard to use my icon file and my desktop file and not use the ones that it places in the .deb package file. On the project properties, I changed the icon and it shows on the project tree, but still no dice... I apologize if I did not see the info. If it is there somewhere, please let me know... but if it is not, a few hints on how it is done would be greatly appreciated it. TIA, David From g4mba5 at gmail.com Fri Nov 2 00:09:30 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 2 Nov 2018 00:09:30 +0100 Subject: [Gambas-user] Custom icon and desktop file when creating deb package In-Reply-To: <15dce08e-8bea-6492-2502-c0e2af3bd79e@gmail.com> References: <15dce08e-8bea-6492-2502-c0e2af3bd79e@gmail.com> Message-ID: Le 01/11/2018 ? 23:17, David Sanrom? a ?crit?: > Hello everyone, > > > Please forgive my "newbieness" but I have not been able to find > documentation about how to tell the "Make -> Installation Package" > Wizard to use my icon file and my desktop file and not use the ones that > it places in the .deb package file. > > > On the project properties, I changed the icon and it shows on the > project tree, but still no dice... > > > I apologize if I did not see the info. If it is there somewhere, please > let me know... but if it is not, a few hints on how it is done would be > greatly appreciated it. > > > TIA, > > David > Can you provide your project? -- Beno?t Minisini From adamnt42 at gmail.com Fri Nov 2 08:34:09 2018 From: adamnt42 at gmail.com (Me) Date: Fri, 2 Nov 2018 18:04:09 +1030 Subject: [Gambas-user] These new-fangled optional messages... Message-ID: <20181102180409.69dc6846aeb33d244672048a@gmail.com> I've got most of it worked out but what do I specify for the icon parameter? The function prototype says it's a string but what string? e.g. Message.Optional("The horse's **Last Race** date is incorrect.\nForm history may be incomplete!", "OK", "optedout", "???WTF???", True) tia bruce -- adamant42 at gmail.com From adamnt42 at gmail.com Fri Nov 2 09:16:43 2018 From: adamnt42 at gmail.com (Me) Date: Fri, 2 Nov 2018 18:46:43 +1030 Subject: [Gambas-user] Authoring user level application help Message-ID: <20181102184643.91dcae5d6c00dbaa1758024b@gmail.com> (from my helper) >> We have used various methods of authoring user level help systems over the past years. To put it plainly, most >> have not been easy to implement and generally problematic. For the last 2 years we have used the java based >> "helpsetmaker" which has proven to be quite reliable, if not very simplistic in its' capablilities. >> >> The "helpsetmaker" project has been dormant for some time now and could be generously considered to be >> abandoned. The version I have been using is 8? years old and still has significant stablity issues. I have tried >> contacting the author with no results. As a result, this is starting to cost time in excess of what we generally >> allow for help authoring on a project. >> >> I am reluctant to incur the cost of a commercial authoring product. However, I need to say [... a lot of stuff excised...] So, I would like to ask for some community input here. How do you all write "user level" help, and how do you show it? Many many months ago, I did have a very "flakey" authoring system to generate html help files that I (ahem) wrote myself, probably in Gambas 2.verylow, but that is well and truly gone now. Since then I have used some fairly amazing (read "*$%!@* useless) linux applications and utilities to work with our own in-house documentation. The only one that leaps to mind as being a significant outstander was Olivier Cruille's (sp?) markdown tool. Unfortunately, even though it is still available through the farm, I have lost the translations I did and some tweaks I made. Sad. Probably enough said. Any input would be really gratefully received. regards bruce p.s. My "assistant", Fels, and I got married a couple of years ago. So when I receive an "O-FFicial" email like that, I know that I'd better take notice. -- adamant42 at gmail.com From rwe-sse at osnanet.de Fri Nov 2 09:14:36 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 2 Nov 2018 09:14:36 +0100 Subject: [Gambas-user] These new-fangled optional messages... In-Reply-To: <20181102180409.69dc6846aeb33d244672048a@gmail.com> References: <20181102180409.69dc6846aeb33d244672048a@gmail.com> Message-ID: Am 02.11.2018 um 08:34 schrieb Me: > I've got most of it worked out but what do I specify for the icon parameter? > The function prototype says it's a string but what string? > > e.g. > Message.Optional("The horse's **Last Race** date is incorrect.\nForm history may be incomplete!", "OK", "optedout", "???WTF???", True) > > tia > bruce > Maybe a path to the icon picture file? (Just a guess, "icon" sounds like "picture"...) Regards Rolf From adamnt42 at gmail.com Fri Nov 2 09:33:50 2018 From: adamnt42 at gmail.com (Me) Date: Fri, 2 Nov 2018 19:03:50 +1030 Subject: [Gambas-user] These new-fangled optional messages... In-Reply-To: References: <20181102180409.69dc6846aeb33d244672048a@gmail.com> Message-ID: <20181102190350.be83a8842c6f83539bba1ebd@gmail.com> On Fri, 2 Nov 2018 09:14:36 +0100 Rolf-Werner Eilert wrote: > Am 02.11.2018 um 08:34 schrieb Me: > > I've got most of it worked out but what do I specify for the icon parameter? > > The function prototype says it's a string but what string? > > > > e.g. > > Message.Optional("The horse's **Last Race** date is incorrect.\nForm history may be incomplete!", "OK", "optedout", "???WTF???", True) > > > > tia > > bruce > > > > Maybe a path to the icon picture file? (Just a guess, "icon" sounds like > "picture"...) > > Regards > Rolf > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Tried that : "icon:/large/warning" . Nope no good. Oh hang on, I'll try a real path. brb -- Me From bagonergi at gmail.com Fri Nov 2 09:35:31 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 2 Nov 2018 09:35:31 +0100 Subject: [Gambas-user] Authoring user level application help In-Reply-To: <20181102184643.91dcae5d6c00dbaa1758024b@gmail.com> References: <20181102184643.91dcae5d6c00dbaa1758024b@gmail.com> Message-ID: Il giorno ven 2 nov 2018 alle ore 09:17 Me ha scritto: > (from my helper) > > >> We have used various methods of authoring user level help systems over > the past years. To put it plainly, most > >> have not been easy to implement and generally problematic. For the last > 2 years we have used the java based > >> "helpsetmaker" which has proven to be quite reliable, if not very > simplistic in its' capablilities. > >> > >> The "helpsetmaker" project has been dormant for some time now and could > be generously considered to be > >> abandoned. The version I have been using is 8? years old and still has > significant stablity issues. I have tried > >> contacting the author with no results. As a result, this is starting to > cost time in excess of what we generally > >> allow for help authoring on a project. > >> > >> I am reluctant to incur the cost of a commercial authoring product. > However, I need to say > > [... a lot of stuff excised...] > > So, I would like to ask for some community input here. > > How do you all write "user level" help, and > how do you show it? > > Many many months ago, I did have a very "flakey" authoring system to > generate html help files that I (ahem) wrote > myself, probably in Gambas 2.verylow, but that is well and truly gone now. > Since then I have used some fairly > amazing (read "*$%!@* useless) linux applications and utilities to work > with our own in-house documentation. The > only one that leaps to mind as being a significant outstander was Olivier > Cruille's (sp?) markdown tool. Unfortunately, > even though it is still available through the farm, I have lost the > translations I did and some tweaks I made. Sad. > > Probably enough said. Any input would be really gratefully received. > > regards > bruce > > p.s. My "assistant", Fels, and I got married a couple of years ago. So > when I receive an "O-FFicial" email like that, I > know that I'd better take notice. On the farm there is seHelpBuilder (exsample). It is "amateur" code, I do not know if it can help. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Nov 2 11:19:52 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 2 Nov 2018 11:19:52 +0100 Subject: [Gambas-user] These new-fangled optional messages... In-Reply-To: <20181102190350.be83a8842c6f83539bba1ebd@gmail.com> References: <20181102180409.69dc6846aeb33d244672048a@gmail.com> <20181102190350.be83a8842c6f83539bba1ebd@gmail.com> Message-ID: Il giorno ven 2 nov 2018 alle ore 09:34 Me ha scritto: > On Fri, 2 Nov 2018 09:14:36 +0100 > Rolf-Werner Eilert wrote: > > > Am 02.11.2018 um 08:34 schrieb Me: > > > I've got most of it worked out but what do I specify for the icon > parameter? > > > The function prototype says it's a string but what string? > > > > > > e.g. > > > Message.Optional("The horse's **Last Race** date is incorrect.\nForm > history may be incomplete!", "OK", "optedout", "???WTF???", True) > > > > > > tia > > > bruce > > > > > > > Maybe a path to the icon picture file? (Just a guess, "icon" sounds like > > "picture"...) > > > > Regards > > Rolf > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Tried that : "icon:/large/warning" . Nope no good. > Oh hang on, I'll try a real path. > brb > > Message.Optional("This is the message", "OK", "DontShowAgain", > "icon:/medium/linux") > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Nov 2 12:44:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 2 Nov 2018 12:44:43 +0100 Subject: [Gambas-user] These new-fangled optional messages... In-Reply-To: <20181102180409.69dc6846aeb33d244672048a@gmail.com> References: <20181102180409.69dc6846aeb33d244672048a@gmail.com> Message-ID: Le 02/11/2018 ? 08:34, Me a ?crit?: > I've got most of it worked out but what do I specify for the icon parameter? > The function prototype says it's a string but what string? > > e.g. > Message.Optional("The horse's **Last Race** date is incorrect.\nForm history may be incomplete!", "OK", "optedout", "???WTF???", True) > > tia > bruce > It's the name of the icon, without the "icon://" part. For example: "warning", "error", "gambas"... -- Beno?t Minisini From bagonergi at gmail.com Fri Nov 2 13:24:51 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 2 Nov 2018 13:24:51 +0100 Subject: [Gambas-user] These new-fangled optional messages... In-Reply-To: References: <20181102180409.69dc6846aeb33d244672048a@gmail.com> Message-ID: Il giorno ven 2 nov 2018 alle ore 12:45 Beno?t Minisini ha scritto: > Le 02/11/2018 ? 08:34, Me a ?crit : > > I've got most of it worked out but what do I specify for the icon > parameter? > > The function prototype says it's a string but what string? > > > > e.g. > > Message.Optional("The horse's **Last Race** date is incorrect.\nForm > history may be incomplete!", "OK", "optedout", "???WTF???", True) > > > > tia > > bruce > > > > It's the name of the icon, without the "icon://" part. For > example: "warning", "error", "gambas"... > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Here it also works with "icon: ...", see attached. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OptionalMessage-0.0.2.tar.gz Type: application/gzip Size: 11721 bytes Desc: not available URL: From bagonergi at gmail.com Fri Nov 2 14:39:18 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 2 Nov 2018 14:39:18 +0100 Subject: [Gambas-user] These new-fangled optional messages... In-Reply-To: References: <20181102180409.69dc6846aeb33d244672048a@gmail.com> Message-ID: Il giorno ven 2 nov 2018 alle ore 13:24 Gianluigi ha scritto: > > > Il giorno ven 2 nov 2018 alle ore 12:45 Beno?t Minisini > ha scritto: > >> Le 02/11/2018 ? 08:34, Me a ?crit : >> > I've got most of it worked out but what do I specify for the icon >> parameter? >> > The function prototype says it's a string but what string? >> > >> > e.g. >> > Message.Optional("The horse's **Last Race** date is incorrect.\nForm >> history may be incomplete!", "OK", "optedout", "???WTF???", True) >> > >> > tia >> > bruce >> > >> >> It's the name of the icon, without the "icon://" part. For >> example: "warning", "error", "gambas"... >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > Here it also works with "icon: ...", see attached. > > Regards > Gianluigi > Incredible I had tried only with the icons of Gambas, Gnu and Tux the only ones with which it works ;-D. Ok no path, sorry. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.capeleto at abcreseau.com Fri Nov 2 19:18:43 2018 From: bruno.capeleto at abcreseau.com (Bruno CAPELETO) Date: Fri, 2 Nov 2018 19:18:43 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: Dear Gianluigi, I followed your instructions and the compilation went fine, thank you ! For all other users in the forum, I summarize the compilation on Debian Stretch just below. For the website administrator, please update the described procedure on the website : what is written is fine for Debian Jessie, but not for Debian Stretch as claimed ! ================ Compilation on Debian Stretch (9.5.0) ================ Edit /etc/apt/sources.list and add the jessie repository : ... #jessie deb http://deb.debian.org/debian/ jessie main aptitude update aptitude install build-essential g++ automake autoconf libtool libbz2-dev unixodbc-dev libpq-dev postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-2.6-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev libalure-dev pulseaudio-esound-compat libaudiofile-dev libaudiofile1 libesd0-dev default-libmysqlclient-dev wget https://gitlab.com/gambas/gambas/-/archive/3.11.4/gambas-3.11.4.tar.bz2 tar xvfj gambas-3.11.4.tar.bz2 cd gambas-3.11.4 ./reconf-all ./configure -C make make install Le dim. 28 oct. 2018 ? 19:33, Gianluigi a ?crit : > I tried to register a new user and re-captha works well. > You have to try again, paying attention to all the images. > First check that the data entered is accepted (checked in green). > See attached image. > > Regards > Gianluigi > > Il giorno dom 28 ott 2018 alle ore 18:16 Bruno CAPELETO < > bruno.capeleto at abcreseau.com> ha scritto: > >> The registration failed, in fact the captcha function did not work... >> >> Le dim. 28 oct. 2018 ? 16:15, Gianluigi a ?crit : >> >>> Hi Bruno, >>> I've already posted the links. >>> Documents are available only for subscribers. >>> In order to download the documents you have to subscribe (click on >>> "Registrati") to our forum (Gambas-it.org). >>> For your registration, you can to receive help from Google translator... >>> Then if you have any questions you can post it in English also at our >>> place, there are many non-Italian subscribers... >>> >>> Regards >>> Gianluigi >>> >>> Il giorno dom 28 ott 2018 alle ore 15:34 Bruno CAPELETO < >>> bruno.capeleto at abcreseau.com> ha scritto: >>> >>>> Dear Gianluigi, >>>> >>>> Despites my name sounds Italian, I unfortunately do not speak Italian >>>> at all :-( >>>> Could you please provide the link to the document ? >>>> >>>> Bruno >>>> >>>> >>>> Le dim. 28 oct. 2018 09:51, Gianluigi a ?crit : >>>> >>>>> You can download here (you have to subscribe) the procedure in Italian >>>>> for Debian Stretch 9.5: >>>>> http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 >>>>> For different procedure to the Master you can also download this: >>>>> http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> >>>>> Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < >>>>> bruno.capeleto at abcreseau.com> ha scritto: >>>>> >>>>>> Dear users, >>>>>> >>>>>> I am a debian user and I want to report that the procedure for the >>>>>> compilation of gambas is not up to date : it does not work for the latest >>>>>> Debian release (9 "stretch" June 2017). >>>>>> >>>>>> These are the missing package : >>>>>> - libmysqlclient-dev >>>>>> - libsage-dev >>>>>> >>>>>> The compilation under Debian 9 gave : >>>>>> >>>>>> THESE COMPONENTS ARE DISABLED: >>>>>> || - gb.db.postgresql >>>>>> || - gb.jit >>>>>> || - gb.openssl >>>>>> || - gb.qt4.opengl >>>>>> || - gb.qt4.webkit >>>>>> >>>>>> After installation, the gambas IDE does not work and my Gambas >>>>>> software does not work either. >>>>>> >>>>>> Any help would be appreciated, >>>>>> Bruno >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Nov 2 19:49:54 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 2 Nov 2018 19:49:54 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: Hi Bruno, I'm happy to have been useful. :-) Am I wrong or in your explanation you forgot the libraries of jessie (libsage2 and libsage-dev)? Regards Gianluigi Il giorno ven 2 nov 2018 alle ore 19:19 Bruno CAPELETO < bruno.capeleto at abcreseau.com> ha scritto: > Dear Gianluigi, > > I followed your instructions and the compilation went fine, thank you ! > > For all other users in the forum, I summarize the compilation on Debian > Stretch just below. > > For the website administrator, please update the described procedure on > the website : what is written is fine for Debian Jessie, but not for Debian > Stretch as claimed ! > > ================ Compilation on Debian Stretch (9.5.0) ================ > > Edit /etc/apt/sources.list and add the jessie repository : > ... > #jessie > deb http://deb.debian.org/debian/ jessie main > > > aptitude update > > aptitude install build-essential g++ automake autoconf libtool libbz2-dev > unixodbc-dev libpq-dev postgresql-server-dev-9.6 libsqlite0-dev > libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev > libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev > libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev > libpoppler-glib-dev libpoppler-private-dev libasound2-dev libdirectfb-dev > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev > libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev > libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev > libgmime-2.6-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev > libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev > libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev > qtbase5-dev libalure-dev pulseaudio-esound-compat libaudiofile-dev > libaudiofile1 libesd0-dev default-libmysqlclient-dev > > wget > https://gitlab.com/gambas/gambas/-/archive/3.11.4/gambas-3.11.4.tar.bz2 > tar xvfj gambas-3.11.4.tar.bz2 > cd gambas-3.11.4 > > ./reconf-all > ./configure -C > make > make install > > > > Le dim. 28 oct. 2018 ? 19:33, Gianluigi a ?crit : > >> I tried to register a new user and re-captha works well. >> You have to try again, paying attention to all the images. >> First check that the data entered is accepted (checked in green). >> See attached image. >> >> Regards >> Gianluigi >> >> Il giorno dom 28 ott 2018 alle ore 18:16 Bruno CAPELETO < >> bruno.capeleto at abcreseau.com> ha scritto: >> >>> The registration failed, in fact the captcha function did not work... >>> >>> Le dim. 28 oct. 2018 ? 16:15, Gianluigi a ?crit : >>> >>>> Hi Bruno, >>>> I've already posted the links. >>>> Documents are available only for subscribers. >>>> In order to download the documents you have to subscribe (click on >>>> "Registrati") to our forum (Gambas-it.org). >>>> For your registration, you can to receive help from Google translator... >>>> Then if you have any questions you can post it in English also at our >>>> place, there are many non-Italian subscribers... >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno dom 28 ott 2018 alle ore 15:34 Bruno CAPELETO < >>>> bruno.capeleto at abcreseau.com> ha scritto: >>>> >>>>> Dear Gianluigi, >>>>> >>>>> Despites my name sounds Italian, I unfortunately do not speak Italian >>>>> at all :-( >>>>> Could you please provide the link to the document ? >>>>> >>>>> Bruno >>>>> >>>>> >>>>> Le dim. 28 oct. 2018 09:51, Gianluigi a ?crit : >>>>> >>>>>> You can download here (you have to subscribe) the procedure in >>>>>> Italian for Debian Stretch 9.5: >>>>>> http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 >>>>>> For different procedure to the Master you can also download this: >>>>>> http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 >>>>>> >>>>>> Regards >>>>>> Gianluigi >>>>>> >>>>>> >>>>>> Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < >>>>>> bruno.capeleto at abcreseau.com> ha scritto: >>>>>> >>>>>>> Dear users, >>>>>>> >>>>>>> I am a debian user and I want to report that the procedure for the >>>>>>> compilation of gambas is not up to date : it does not work for the latest >>>>>>> Debian release (9 "stretch" June 2017). >>>>>>> >>>>>>> These are the missing package : >>>>>>> - libmysqlclient-dev >>>>>>> - libsage-dev >>>>>>> >>>>>>> The compilation under Debian 9 gave : >>>>>>> >>>>>>> THESE COMPONENTS ARE DISABLED: >>>>>>> || - gb.db.postgresql >>>>>>> || - gb.jit >>>>>>> || - gb.openssl >>>>>>> || - gb.qt4.opengl >>>>>>> || - gb.qt4.webkit >>>>>>> >>>>>>> After installation, the gambas IDE does not work and my Gambas >>>>>>> software does not work either. >>>>>>> >>>>>>> Any help would be appreciated, >>>>>>> Bruno >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Nov 2 20:57:37 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 2 Nov 2018 20:57:37 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: Le 02/11/2018 ? 19:18, Bruno CAPELETO a ?crit?: > Dear Gianluigi, > > I followed your instructions and the compilation went fine, thank you ! > > For all other users in the forum, I summarize the compilation on Debian > Stretch just below. > > For the website administrator, please update the described procedure on > the website : what is written is fine for Debian Jessie, but not for > Debian Stretch as claimed ! > Everybody can modify the wiki as soon as it creates an account. It's not just the website administrator than can do it. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Fri Nov 2 22:22:03 2018 From: adamnt42 at gmail.com (Me) Date: Sat, 3 Nov 2018 07:52:03 +1030 Subject: [Gambas-user] These new-fangled optional messages... In-Reply-To: References: <20181102180409.69dc6846aeb33d244672048a@gmail.com> Message-ID: <20181103075203.1a7c565c93b9775f02d4a52d@gmail.com> On Fri, 2 Nov 2018 12:44:43 +0100 Beno?t Minisini wrote: > Le 02/11/2018 ? 08:34, Me a ?crit?: > > I've got most of it worked out but what do I specify for the icon parameter? > > The function prototype says it's a string but what string? > > > > e.g. > > Message.Optional("The horse's **Last Race** date is incorrect.\nForm history may be incomplete!", "OK", "optedout", "???WTF???", True) > > > > tia > > bruce > > > > It's the name of the icon, without the "icon://" part. For > example: "warning", "error", "gambas"... > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Got it! Thank you. b -- Me From g4mba5 at gmail.com Sat Nov 3 15:34:17 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Nov 2018 15:34:17 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> Le 02/11/2018 ? 19:18, Bruno CAPELETO a ?crit?: > Dear Gianluigi, > > I followed your instructions and the compilation went fine, thank you ! > > For all other users in the forum, I summarize the compilation on Debian > Stretch just below. > > For the website administrator, please update the described procedure on > the website : what is written is fine for Debian Jessie, but not for > Debian Stretch as claimed ! > > ================ Compilation on Debian Stretch (9.5.0) ================ > > Edit /etc/apt/sources.list and add the jessie repository : > ... > #jessie > deb http://deb.debian.org/debian/ jessie main > I don't understand why you have to add the jessie repository to compile on stretch... -- Beno?t Minisini From bagonergi at gmail.com Sat Nov 3 16:01:54 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 3 Nov 2018 16:01:54 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> Message-ID: Il giorno sab 3 nov 2018 alle ore 15:35 Beno?t Minisini ha scritto: > Le 02/11/2018 ? 19:18, Bruno CAPELETO a ?crit : > > Dear Gianluigi, > > > > I followed your instructions and the compilation went fine, thank you ! > > > > For all other users in the forum, I summarize the compilation on Debian > > Stretch just below. > > > > For the website administrator, please update the described procedure on > > the website : what is written is fine for Debian Jessie, but not for > > Debian Stretch as claimed ! > > > > ================ Compilation on Debian Stretch (9.5.0) ================ > > > > Edit /etc/apt/sources.list and add the jessie repository : > > ... > > #jessie > > deb http://deb.debian.org/debian/ jessie main > > > > I don't understand why you have to add the jessie repository to compile > on stretch... > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > In fact, in the instructions written in the pdf files I suggest downloading the libsage2 and libsage-dev libraries into a folder and then installing them with the #(or sudo) dpkg -i * .deb command. The download is done by Jessie here for and64: https://packages.debian.org/jessie/amd64/libsage-dev/download https://packages.debian.org/jessie/amd64/libsage2/download And here for i386: https://packages.debian.org/jessie/i386/libsage-dev/download https://packages.debian.org/jessie/i386/libsage2/download Regards Gianluigi P.S. Initially you could suggest installing sudo, which is more practical and safe for compilations: $ su # apt install sudo # adduser sudo # reboot -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Nov 3 16:10:02 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Nov 2018 16:10:02 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> Message-ID: Le 03/11/2018 ? 16:01, Gianluigi a ?crit?: > > In fact, in the instructions written in the pdf files I suggest > downloading the libsage2 and libsage-dev libraries into a folder and > then installing them with the #(or sudo) dpkg -i * .deb command. > The download is done by Jessie here for and64: > https://packages.debian.org/jessie/amd64/libsage-dev/download > https://packages.debian.org/jessie/amd64/libsage2/download > And here for i386: > https://packages.debian.org/jessie/i386/libsage-dev/download > https://packages.debian.org/jessie/i386/libsage2/download > > Regards > Gianluigi > > P.S. Initially you could suggest installing sudo, which is more > practical and safe for compilations: > $ su > # apt install sudo > # adduser sudo > # reboot > What needs these library? libsage... -- Beno?t Minisini From g4mba5 at gmail.com Sat Nov 3 16:10:47 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Nov 2018 16:10:47 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> Message-ID: <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> Le 03/11/2018 ? 16:10, Beno?t Minisini a ?crit?: > > What needs these library? libsage... > --> this. OK, it's an OpenGL thing. Was it removed in Debian stretch? Why? -- Beno?t Minisini From bagonergi at gmail.com Sat Nov 3 16:40:56 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 3 Nov 2018 16:40:56 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> Message-ID: Il giorno sab 3 nov 2018 alle ore 16:12 Beno?t Minisini ha scritto: > Le 03/11/2018 ? 16:10, Beno?t Minisini a ?crit : > > > > What needs these library? libsage... > > > > --> this. > > OK, it's an OpenGL thing. Was it removed in Debian stretch? Why? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > I use Ubuntu Bionic and these libraries are missing there too. I dont know because :-( Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Nov 3 16:49:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Nov 2018 16:49:59 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> Message-ID: <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> Le 03/11/2018 ? 16:40, Gianluigi a ?crit?: > > > Il giorno sab 3 nov 2018 alle ore 16:12 Beno?t Minisini > > ha scritto: > > Le 03/11/2018 ? 16:10, Beno?t Minisini a ?crit?: > > > > What needs these library? libsage... > > > > --> this. > > OK, it's an OpenGL thing. Was it removed in Debian stretch? Why? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > I use Ubuntu Bionic and these libraries are missing there too. > I dont know because :-( > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > I still don't find which Gambas component needs that library... -- Beno?t Minisini From bagonergi at gmail.com Sat Nov 3 18:06:28 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 3 Nov 2018 18:06:28 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> Message-ID: Il giorno sab 3 nov 2018 alle ore 16:51 Beno?t Minisini ha scritto: > Le 03/11/2018 ? 16:40, Gianluigi a ?crit : > > > > > > Il giorno sab 3 nov 2018 alle ore 16:12 Beno?t Minisini > > > ha scritto: > > > > Le 03/11/2018 ? 16:10, Beno?t Minisini a ?crit : > > > > > > What needs these library? libsage... > > > > > > > --> this. > > > > OK, it's an OpenGL thing. Was it removed in Debian stretch? Why? > > > > -- > > Beno?t Minisini > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > I use Ubuntu Bionic and these libraries are missing there too. > > I dont know because :-( > > > > Regards > > Gianluigi > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > I still don't find which Gambas component needs that library... > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Hi Benoit, I compiled Gambas on Ubuntu 18.10 without the two libraries (libsage2 and libsage-dev) and all the components were compiled. I copied it from here: http://gambaswiki.org/wiki/install/ubuntu#t6 under the heading Tip... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Nov 3 18:37:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Nov 2018 18:37:44 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> Message-ID: Le 03/11/2018 ? 18:06, Gianluigi a ?crit?: > > Hi Benoit, > I compiled Gambas on Ubuntu 18.10 without the two libraries (libsage2 > and libsage-dev) and all the components were compiled. > I copied it from here: > http://gambaswiki.org/wiki/install/ubuntu#t6 > under the heading Tip... > > Regards > Gianluigi > OK, so there are not needed (anymore?), and there is no problem: just remove these libraries from the list of packages to install on Debian & Ubuntu. -- Beno?t Minisini From bruno.capeleto at abcreseau.com Sat Nov 3 19:56:11 2018 From: bruno.capeleto at abcreseau.com (Bruno CAPELETO) Date: Sat, 3 Nov 2018 19:56:11 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> Message-ID: Without these 2 libraries, not all components are available : THESE COMPONENTS ARE DISABLED: || - gb.db.postgresql || - gb.jit || - gb.openssl || - gb.qt4.opengl || - gb.qt4.webkit I needed these libraries, just to be able to launch gambas3. Le sam. 3 nov. 2018 ? 18:38, Beno?t Minisini a ?crit : > Le 03/11/2018 ? 18:06, Gianluigi a ?crit : > > > > Hi Benoit, > > I compiled Gambas on Ubuntu 18.10 without the two libraries (libsage2 > > and libsage-dev) and all the components were compiled. > > I copied it from here: > > http://gambaswiki.org/wiki/install/ubuntu#t6 > > under the heading Tip... > > > > Regards > > Gianluigi > > > > OK, so there are not needed (anymore?), and there is no problem: just > remove these libraries from the list of packages to install on Debian & > Ubuntu. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno.capeleto at abcreseau.com Sat Nov 3 20:04:26 2018 From: bruno.capeleto at abcreseau.com (Bruno CAPELETO) Date: Sat, 3 Nov 2018 20:04:26 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: Message-ID: You are raising a good point. Actually I wrote this procedure and gave it to a friend who compiled from a fresh new install : he just followed the procedure and it worked (without mentionning explicitely libsage2 and libsage-dev). Retrospectively, I do not know if these were dependencies. If not, maybe one does not need to add the jessie repository. Unfortunately I do not have access to the installed system : I'll try to come back with this info. Le ven. 2 nov. 2018 ? 19:51, Gianluigi a ?crit : > Hi Bruno, > I'm happy to have been useful. :-) > Am I wrong or in your explanation you forgot the libraries of jessie > (libsage2 and libsage-dev)? > > Regards > Gianluigi > > Il giorno ven 2 nov 2018 alle ore 19:19 Bruno CAPELETO < > bruno.capeleto at abcreseau.com> ha scritto: > >> Dear Gianluigi, >> >> I followed your instructions and the compilation went fine, thank you ! >> >> For all other users in the forum, I summarize the compilation on Debian >> Stretch just below. >> >> For the website administrator, please update the described procedure on >> the website : what is written is fine for Debian Jessie, but not for Debian >> Stretch as claimed ! >> >> ================ Compilation on Debian Stretch (9.5.0) ================ >> >> Edit /etc/apt/sources.list and add the jessie repository : >> ... >> #jessie >> deb http://deb.debian.org/debian/ jessie main >> >> >> aptitude update >> >> aptitude install build-essential g++ automake autoconf libtool libbz2-dev >> unixodbc-dev libpq-dev postgresql-server-dev-9.6 libsqlite0-dev >> libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev >> libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev >> libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev >> libpoppler-glib-dev libpoppler-private-dev libasound2-dev libdirectfb-dev >> libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev >> libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev >> libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev >> libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev >> libgmime-2.6-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev >> libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev >> libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev >> qtbase5-dev libalure-dev pulseaudio-esound-compat libaudiofile-dev >> libaudiofile1 libesd0-dev default-libmysqlclient-dev >> >> wget >> https://gitlab.com/gambas/gambas/-/archive/3.11.4/gambas-3.11.4.tar.bz2 >> tar xvfj gambas-3.11.4.tar.bz2 >> cd gambas-3.11.4 >> >> ./reconf-all >> ./configure -C >> make >> make install >> >> >> >> Le dim. 28 oct. 2018 ? 19:33, Gianluigi a ?crit : >> >>> I tried to register a new user and re-captha works well. >>> You have to try again, paying attention to all the images. >>> First check that the data entered is accepted (checked in green). >>> See attached image. >>> >>> Regards >>> Gianluigi >>> >>> Il giorno dom 28 ott 2018 alle ore 18:16 Bruno CAPELETO < >>> bruno.capeleto at abcreseau.com> ha scritto: >>> >>>> The registration failed, in fact the captcha function did not work... >>>> >>>> Le dim. 28 oct. 2018 ? 16:15, Gianluigi a ?crit : >>>> >>>>> Hi Bruno, >>>>> I've already posted the links. >>>>> Documents are available only for subscribers. >>>>> In order to download the documents you have to subscribe (click on >>>>> "Registrati") to our forum (Gambas-it.org). >>>>> For your registration, you can to receive help from Google >>>>> translator... >>>>> Then if you have any questions you can post it in English also at our >>>>> place, there are many non-Italian subscribers... >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno dom 28 ott 2018 alle ore 15:34 Bruno CAPELETO < >>>>> bruno.capeleto at abcreseau.com> ha scritto: >>>>> >>>>>> Dear Gianluigi, >>>>>> >>>>>> Despites my name sounds Italian, I unfortunately do not speak Italian >>>>>> at all :-( >>>>>> Could you please provide the link to the document ? >>>>>> >>>>>> Bruno >>>>>> >>>>>> >>>>>> Le dim. 28 oct. 2018 09:51, Gianluigi a ?crit : >>>>>> >>>>>>> You can download here (you have to subscribe) the procedure in >>>>>>> Italian for Debian Stretch 9.5: >>>>>>> http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 >>>>>>> For different procedure to the Master you can also download this: >>>>>>> http://www.gambas-it.org/smf/index.php?topic=6424.msg44058#msg44058 >>>>>>> >>>>>>> Regards >>>>>>> Gianluigi >>>>>>> >>>>>>> >>>>>>> Il giorno dom 28 ott 2018 alle ore 07:35 Bruno CAPELETO < >>>>>>> bruno.capeleto at abcreseau.com> ha scritto: >>>>>>> >>>>>>>> Dear users, >>>>>>>> >>>>>>>> I am a debian user and I want to report that the procedure for the >>>>>>>> compilation of gambas is not up to date : it does not work for the latest >>>>>>>> Debian release (9 "stretch" June 2017). >>>>>>>> >>>>>>>> These are the missing package : >>>>>>>> - libmysqlclient-dev >>>>>>>> - libsage-dev >>>>>>>> >>>>>>>> The compilation under Debian 9 gave : >>>>>>>> >>>>>>>> THESE COMPONENTS ARE DISABLED: >>>>>>>> || - gb.db.postgresql >>>>>>>> || - gb.jit >>>>>>>> || - gb.openssl >>>>>>>> || - gb.qt4.opengl >>>>>>>> || - gb.qt4.webkit >>>>>>>> >>>>>>>> After installation, the gambas IDE does not work and my Gambas >>>>>>>> software does not work either. >>>>>>>> >>>>>>>> Any help would be appreciated, >>>>>>>> Bruno >>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat Nov 3 20:11:16 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 3 Nov 2018 20:11:16 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> Message-ID: <20181103191116.GL1042@highrise.localdomain> On Sat, 03 Nov 2018, Bruno CAPELETO wrote: > Without these 2 libraries, not all components are available : > > THESE COMPONENTS ARE DISABLED: > || - gb.db.postgresql > || - gb.jit > || - gb.openssl > || - gb.qt4.opengl > || - gb.qt4.webkit > > I needed these libraries, just to be able to launch gambas3. > You need gb.qt4.webkit to start the "gambas3" program, which is the Gambas IDE. Note that you can still use a whole bunch of other Gambas programs with fewer dependencies -- but I guess you want the IDE. It baffles me that you say that a MySQL client and an OpenGL(?) package would be needed to compile gb.openssl. And how does any of those make the PostgreSQL driver available? Maybe the packages you listed *pull in* some other core dependencies that all of the above Gambas components rely on. In that case, those packages need to be identified, not some other packages that happen to pull in the needed dependencies. Could you attach the output of the build process, as is advised [1] when reporting compilation problems? It doesn't seem like you provided that anywhere yet. Regards, Tobi [1] http://gambaswiki.org/wiki/install#t11 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sat Nov 3 20:26:22 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 3 Nov 2018 20:26:22 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> Message-ID: Hi Bruno, you're making a mess between the before and after. The libraries for those components are all included in the main command you reported earlier. You managed to compile thanks to those, while the two libsage libraries are useless for the compilation of Gambas. You can safely remove them or leave them without doing damage. Regards Gianluigi Il giorno sab 3 nov 2018 alle ore 19:57 Bruno CAPELETO < bruno.capeleto at abcreseau.com> ha scritto: > Without these 2 libraries, not all components are available : > > THESE COMPONENTS ARE DISABLED: > || - gb.db.postgresql > || - gb.jit > || - gb.openssl > || - gb.qt4.opengl > || - gb.qt4.webkit > > I needed these libraries, just to be able to launch gambas3. > > > Le sam. 3 nov. 2018 ? 18:38, Beno?t Minisini a ?crit : > >> Le 03/11/2018 ? 18:06, Gianluigi a ?crit : >> > >> > Hi Benoit, >> > I compiled Gambas on Ubuntu 18.10 without the two libraries (libsage2 >> > and libsage-dev) and all the components were compiled. >> > I copied it from here: >> > http://gambaswiki.org/wiki/install/ubuntu#t6 >> > under the heading Tip... >> > >> > Regards >> > Gianluigi >> > >> >> OK, so there are not needed (anymore?), and there is no problem: just >> remove these libraries from the list of packages to install on Debian & >> Ubuntu. >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Nov 3 20:35:06 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 3 Nov 2018 20:35:06 +0100 Subject: [Gambas-user] Compilation with Debian 9 failed In-Reply-To: <20181103191116.GL1042@highrise.localdomain> References: <07d1d799-e887-e87d-afc8-0fbf3c2f9d07@gmail.com> <178dfb1a-fa57-6560-421b-181e39d80218@gmail.com> <3487559e-f0e1-adf6-fca0-c6f9ae07cfcd@gmail.com> <20181103191116.GL1042@highrise.localdomain> Message-ID: Il giorno sab 3 nov 2018 alle ore 20:09 Tobias Boege ha scritto: > On Sat, 03 Nov 2018, Bruno CAPELETO wrote: > > Without these 2 libraries, not all components are available : > > > > THESE COMPONENTS ARE DISABLED: > > || - gb.db.postgresql > > || - gb.jit > > || - gb.openssl > > || - gb.qt4.opengl > > || - gb.qt4.webkit > > > > I needed these libraries, just to be able to launch gambas3. > > > > You need gb.qt4.webkit to start the "gambas3" program, which is the > Gambas IDE. Note that you can still use a whole bunch of other Gambas > programs with fewer dependencies -- but I guess you want the IDE. > > It baffles me that you say that a MySQL client and an OpenGL(?) > package would be needed to compile gb.openssl. And how does any > of those make the PostgreSQL driver available? Maybe the packages > you listed *pull in* some other core dependencies that all of the > above Gambas components rely on. In that case, those packages > need to be identified, not some other packages that happen to > pull in the needed dependencies. > > Could you attach the output of the build process, as is advised [1] > when reporting compilation problems? It doesn't seem like you > provided that anywhere yet. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/install#t11 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Hi Tobias, sorry if I intruded, but Bruno believes that the command indicated to him by me is the same as written in the wiki of Debian and that the difference is in libsage libraries. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Nov 4 06:34:48 2018 From: adamnt42 at gmail.com (Me) Date: Sun, 4 Nov 2018 16:04:48 +1030 Subject: [Gambas-user] Authoring user level application help In-Reply-To: References: <20181102184643.91dcae5d6c00dbaa1758024b@gmail.com> Message-ID: <20181104160448.50c170ddc89d4065f1fc1bc9@gmail.com> On Fri, 2 Nov 2018 09:35:31 +0100 Gianluigi wrote: > Il giorno ven 2 nov 2018 alle ore 09:17 Me ha scritto: > (snip) > > On the farm there is seHelpBuilder (exsample). > It is "amateur" code, I do not know if it can help. > > Regards > Gianluigi Thanks for that, I have given it a try and it has possibilities. (It is sort of like what I had written years ago, but I hadn't thought of using an external html editor. In fact, this does give me some good ideas!) Have you tried Olivier's gbdoceditor. That is what I would like to see used - if only I still had my local, translated, enhanced copy from the machine that died. :-( regards b -- adamant42 at gmail.com From bagonergi at gmail.com Sun Nov 4 09:45:12 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 4 Nov 2018 09:45:12 +0100 Subject: [Gambas-user] Authoring user level application help In-Reply-To: <20181104160448.50c170ddc89d4065f1fc1bc9@gmail.com> References: <20181102184643.91dcae5d6c00dbaa1758024b@gmail.com> <20181104160448.50c170ddc89d4065f1fc1bc9@gmail.com> Message-ID: Il giorno dom 4 nov 2018 alle ore 06:35 Me ha scritto: > On Fri, 2 Nov 2018 09:35:31 +0100 > Gianluigi wrote: > > > Il giorno ven 2 nov 2018 alle ore 09:17 Me ha > scritto: > > (snip) > > > > On the farm there is seHelpBuilder (exsample). > > It is "amateur" code, I do not know if it can help. > > > > Regards > > Gianluigi > > Thanks for that, I have given it a try and it has possibilities. (It is > sort of like what I had written years > ago, but I hadn't thought of using an external html editor. In fact, this > does give me some good ideas!) > > Have you tried Olivier's gbdoceditor. That is what I would like to see > used - if only I still had my local, > translated, enhanced copy from the machine that died. :-( > > regards > b > -- > adamant42 at gmail.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > I believe that a guide should maintain a constant aspect, even if consistent with the preferences of the writer. Therefore, rather than thinking about using an external html editor, I would change the help.css file to Data> files and continue using LibreOffice Writer. It seems to me the most productive solution. Regards Gianluigi P.S. If you have needs not considered by seHelpBuilder, maybe I can add them... -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsanroma at gmail.com Tue Nov 6 15:52:23 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Tue, 6 Nov 2018 15:52:23 +0100 Subject: [Gambas-user] Linux Mint - Project Localization Message-ID: <9df88e1a-e787-c955-957b-705473136927@gmail.com> Hello everyone, I am practicing some stuff in Gambas and I cannot make localization work. It does nothing. A line like: GridView1.Columns[DEVICE_COL].Text = ("Device") Does not translate at all... and of course I added a translation for it in the "Project translation" dialog. ;) I read the documentation and I searched the mailing list and I cannot see what I am doing wrong. I am running Mint 18.3 and I fully installed both English(US) and the Spanish languages, on top of following the translation instructions, of course. I even checked if the translation get copied to temp and it does $ tree /tmp/gambas.1000/ /tmp/gambas.1000/ ??? 2906 ??? ??? tr ??????? ??? es_ES.UTF-8 ??????????? ??? LC_MESSAGES ??????????????? ??? gb.mo TIA, David Here is my System Information that Gambas gives: [System] Gambas=3.11.4 OperatingSystem=Linux Kernel=4.15.0-38-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=es_ES.UTF-8 Memory=32040M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.6.7 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-FlAT2wpUSp,guid=2dd2a1fda6faea7776fbc7155be1a5b1 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=es_ES GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4092 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=es_ES.UTF-8 LANGUAGE=es_ES:es LC_ADDRESS=es_ES.UTF-8 LC_IDENTIFICATION=es_ES.UTF-8 LC_MEASUREMENT=es_ES.UTF-8 LC_MONETARY=es_ES.UTF-8 LC_NAME=es_ES.UTF-8 LC_NUMERIC=es_ES.UTF-8 LC_PAPER=es_ES.UTF-8 LC_TELEPHONE=es_ES.UTF-8 LC_TIME=es_ES.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:/.dotnet/tools PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk ROOT_LANG=es_ES.UTF-8 ROOT_USES_LANG=yes SESSION_MANAGER=local/:@/tmp/.ICE-unix/1400,unix/:/tmp/.ICE-unix/1400 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1460 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=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From g4mba5 at gmail.com Tue Nov 6 16:14:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 6 Nov 2018 16:14:48 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: <9df88e1a-e787-c955-957b-705473136927@gmail.com> References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> Message-ID: <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> Le 06/11/2018 ? 15:52, David Sanrom? a ?crit?: > Hello everyone, > > > I am practicing some stuff in Gambas and I cannot make localization > work. It does nothing. A line like: > > > GridView1.Columns[DEVICE_COL].Text = ("Device") > > > Does not translate at all... and of course I added a translation for it > in the "Project translation" dialog. ;) > > > I read the documentation and I searched the mailing list and I cannot > see what I am doing wrong. > > I am running Mint 18.3 and I fully installed both English(US) and the > Spanish languages, on top of following the translation instructions, of > course. > > I even checked if the translation get copied to temp and it does > > $ tree /tmp/gambas.1000/ > /tmp/gambas.1000/ > ??? 2906 > ??? ??? tr > ??????? ??? es_ES.UTF-8 > ??????????? ??? LC_MESSAGES > ??????????????? ??? gb.mo > > > TIA, > > David > > > > Here is my System Information that Gambas gives: > > [System] > Gambas=3.11.4 > OperatingSystem=Linux > Kernel=4.15.0-38-generic > Architecture=x86_64 > Distribution=Linux Mint 18.3 Sylvia > Desktop=CINNAMON > Theme=Gtk > Language=es_ES.UTF-8 > Memory=32040M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.803.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CINNAMON_VERSION=3.6.7 > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-FlAT2wpUSp,guid=2dd2a1fda6faea7776fbc7155be1a5b1 > > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=es_ES > GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=4092 > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=es_ES.UTF-8 > LANGUAGE=es_ES:es > LC_ADDRESS=es_ES.UTF-8 > LC_IDENTIFICATION=es_ES.UTF-8 > LC_MEASUREMENT=es_ES.UTF-8 > LC_MONETARY=es_ES.UTF-8 > LC_NAME=es_ES.UTF-8 > LC_NUMERIC=es_ES.UTF-8 > LC_PAPER=es_ES.UTF-8 > LC_TELEPHONE=es_ES.UTF-8 > LC_TIME=es_ES.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:/.dotnet/tools > > PWD= > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_QPA_PLATFORMTHEME=qgnomeplatform > QT_STYLE_OVERRIDE=gtk > ROOT_LANG=es_ES.UTF-8 > ROOT_USES_LANG=yes > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1400,unix/:/tmp/.ICE-unix/1400 > > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1460 > 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=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/:/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Is the IDE translated? -- Beno?t Minisini From dsanroma at gmail.com Tue Nov 6 16:21:44 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Tue, 6 Nov 2018 16:21:44 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> Message-ID: No... the IDE is not translated.... > Is the IDE translated? > From g4mba5 at gmail.com Tue Nov 6 16:24:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 6 Nov 2018 16:24:40 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> Message-ID: <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> Le 06/11/2018 ? 16:21, David Sanrom? a ?crit?: > > No... the IDE is not translated.... > > >> Is the IDE translated? >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Are you sure that you correctly installed the translated language support on your system? If the interpreter cannot load the translation at startup for any reason, it displays a warning message on the command-line. Do you see it? -- Beno?t Minisini From dsanroma at gmail.com Tue Nov 6 16:34:16 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Tue, 6 Nov 2018 16:34:16 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> Message-ID: El 6/11/18 a las 16:24, Beno?t Minisini escribi?: > Le 06/11/2018 ? 16:21, David Sanrom? a ?crit?: >> >> No... the IDE is not translated.... >> >> >>> Is the IDE translated? >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > Are you sure that you correctly installed the translated language > support on your system? > > If the interpreter cannot load the translation at startup for any > reason, it displays a warning message on the command-line. Do you see it? > Neither the gambas3 executable nor my compiled app show any errors when started: [dsanroma at mint2:~/Documentos/Gambas/preserve_home] $ gambas3 Nothing gets displayed on the terminal I started it from. If you allow me comment something from "another dimension" in a "parallel universe", I must say that parts of the IDE get translated when I run (partially) the make package wizard. If I run the wizard up to the point of selecting Mint distribution and then I cancel... Then if I run the wizard again it is in Spanish. Furthermore, at this point if I open another project in a "new window", then second IDE is in Spanish. I just found this out right now.... strange... ;) From g4mba5 at gmail.com Tue Nov 6 16:46:56 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 6 Nov 2018 16:46:56 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> Message-ID: <727a03bf-8efe-ca6a-3ff3-509a1fb828dc@gmail.com> Le 06/11/2018 ? 16:34, David Sanrom? a ?crit?: > > > El 6/11/18 a las 16:24, Beno?t Minisini escribi?: >> Le 06/11/2018 ? 16:21, David Sanrom? a ?crit?: >>> >>> No... the IDE is not translated.... >>> >>> >>>> Is the IDE translated? >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> Are you sure that you correctly installed the translated language >> support on your system? >> >> If the interpreter cannot load the translation at startup for any >> reason, it displays a warning message on the command-line. Do you see it? >> > > Neither the gambas3 executable nor my compiled app show any errors when > started: > > [dsanroma at mint2:~/Documentos/Gambas/preserve_home] > $ gambas3 > > Nothing gets displayed on the terminal I started it from. > > > If you allow me comment something from "another dimension" in a > "parallel universe", I must say that parts of the IDE get translated > when I run (partially) the make package wizard. > > > If I run the wizard up to the point of selecting Mint distribution and > then I cancel... Then if I run the wizard again it is in Spanish. > > > Furthermore, at this point if I open another project in a "new window", > then second IDE is in Spanish. > > > I just found this out right now.... strange... ;) > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Very unexpectedly strange... I have no explanation at the moment. The translation code loads the gettext translation files through the glibc. Either it fails or succeeds, and there is no reason that the load would succeed, and you won't get all the translations (except of course for the parts that are not yet translated), and no reason why it should work better after a second run. -- Beno?t Minisini From dsanroma at gmail.com Tue Nov 6 16:52:12 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Tue, 6 Nov 2018 16:52:12 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: <727a03bf-8efe-ca6a-3ff3-509a1fb828dc@gmail.com> References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> <727a03bf-8efe-ca6a-3ff3-509a1fb828dc@gmail.com> Message-ID: El 6/11/18 a las 16:46, Beno?t Minisini escribi?: > Le 06/11/2018 ? 16:34, David Sanrom? a ?crit?: >> >> >> El 6/11/18 a las 16:24, Beno?t Minisini escribi?: >>> Le 06/11/2018 ? 16:21, David Sanrom? a ?crit?: >>>> >>>> No... the IDE is not translated.... >>>> >>>> >>>>> Is the IDE translated? >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> Are you sure that you correctly installed the translated language >>> support on your system? >>> >>> If the interpreter cannot load the translation at startup for any >>> reason, it displays a warning message on the command-line. Do you >>> see it? >>> >> >> Neither the gambas3 executable nor my compiled app show any errors >> when started: >> >> [dsanroma at mint2:~/Documentos/Gambas/preserve_home] >> $ gambas3 >> >> Nothing gets displayed on the terminal I started it from. >> >> >> If you allow me comment something from "another dimension" in a >> "parallel universe", I must say that parts of the IDE get translated >> when I run (partially) the make package wizard. >> >> >> If I run the wizard up to the point of selecting Mint distribution >> and then I cancel... Then if I run the wizard again it is in Spanish. >> >> >> Furthermore, at this point if I open another project in a "new >> window", then second IDE is in Spanish. >> >> >> I just found this out right now.... strange... ;) >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Very unexpectedly strange... I have no explanation at the moment. The > translation code loads the gettext translation files through the > glibc. Either it fails or succeeds, and there is no reason that the > load would succeed, and you won't get all the translations (except of > course for the parts that are not yet translated), and no reason why > it should work better after a second run. > I can replicate the strange behavior... and translation works.... 1.- I start Gambas IDE which it shows up in English. 2.- I run the app and it does NOT translate the one message I set up. 3.- I just run the "Make Installation package" wizard only to the second screen. Then I cancel. 4.- I press F5 again and the translation works in my project. I have replicated this behavior 3 times in a row. Just FYI, David From dsanroma at gmail.com Tue Nov 6 17:07:55 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Tue, 6 Nov 2018 17:07:55 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> <727a03bf-8efe-ca6a-3ff3-509a1fb828dc@gmail.com> Message-ID: <6da9fb8d-2ebe-c2ae-3c4b-c154e5a6e716@gmail.com> El 6/11/18 a las 16:52, David Sanrom? escribi?: > > El 6/11/18 a las 16:46, Beno?t Minisini escribi?: >> Le 06/11/2018 ? 16:34, David Sanrom? a ?crit?: >>> >>> >>> El 6/11/18 a las 16:24, Beno?t Minisini escribi?: >>>> Le 06/11/2018 ? 16:21, David Sanrom? a ?crit?: >>>>> >>>>> No... the IDE is not translated.... >>>>> >>>>> >>>>>> Is the IDE translated? >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> Are you sure that you correctly installed the translated language >>>> support on your system? >>>> >>>> If the interpreter cannot load the translation at startup for any >>>> reason, it displays a warning message on the command-line. Do you >>>> see it? >>>> >>> >>> Neither the gambas3 executable nor my compiled app show any errors >>> when started: >>> >>> [dsanroma at mint2:~/Documentos/Gambas/preserve_home] >>> $ gambas3 >>> >>> Nothing gets displayed on the terminal I started it from. >>> >>> >>> If you allow me comment something from "another dimension" in a >>> "parallel universe", I must say that parts of the IDE get translated >>> when I run (partially) the make package wizard. >>> >>> >>> If I run the wizard up to the point of selecting Mint distribution >>> and then I cancel... Then if I run the wizard again it is in Spanish. >>> >>> >>> Furthermore, at this point if I open another project in a "new >>> window", then second IDE is in Spanish. >>> >>> >>> I just found this out right now.... strange... ;) >>> >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >> >> Very unexpectedly strange... I have no explanation at the moment. The >> translation code loads the gettext translation files through the >> glibc. Either it fails or succeeds, and there is no reason that the >> load would succeed, and you won't get all the translations (except of >> course for the parts that are not yet translated), and no reason why >> it should work better after a second run. >> > > I can replicate the strange behavior... and translation works.... > > > 1.- I start Gambas IDE which it shows up in English. > > 2.- I run the app and it does NOT translate the one message I set up. > > 3.- I just run the "Make Installation package" wizard only to the > second screen. Then I cancel. > > 4.- I press F5 again and the translation works in my project. > > > I have replicated this behavior 3 times in a row. > > > Just FYI, > > David > > I think I found a work-around... I used a start-up class with the following: Static Public Sub Main() ??? System.Language = System.Language ??? FMain.ShowModal End It seems that setting the Language to itself solves the problem.... at this point my application translates just fine in both the IDE and running my itself. Just FYI, David PS: I still cannot get the IDE in Spanish at the 1st start-up. ;) From g4mba5 at gmail.com Tue Nov 6 17:14:08 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 6 Nov 2018 17:14:08 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: <6da9fb8d-2ebe-c2ae-3c4b-c154e5a6e716@gmail.com> References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> <727a03bf-8efe-ca6a-3ff3-509a1fb828dc@gmail.com> <6da9fb8d-2ebe-c2ae-3c4b-c154e5a6e716@gmail.com> Message-ID: <42ab6863-a99a-96a6-bc9d-914c97f015db@gmail.com> Le 06/11/2018 ? 17:07, David Sanrom? a ?crit?: > I think I found a work-around... I used a start-up class with the > following: > > > Static Public Sub Main() > > ??? System.Language = System.Language > > ??? FMain.ShowModal > > End > > > It seems that setting the Language to itself solves the problem.... at > this point my application translates just fine in both the IDE and > running my itself. > > > Just FYI, > > David > > PS: I still cannot get the IDE in Spanish at the 1st start-up. ;) > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Can you send me your full system information got from the corresponding IDE menu? -- Beno?t Minisini From g4mba5 at gmail.com Tue Nov 6 17:46:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 6 Nov 2018 17:46:44 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> <727a03bf-8efe-ca6a-3ff3-509a1fb828dc@gmail.com> <6da9fb8d-2ebe-c2ae-3c4b-c154e5a6e716@gmail.com> <42ab6863-a99a-96a6-bc9d-914c97f015db@gmail.com> Message-ID: <42a6b457-3c2a-9dc6-2ac6-d8f18398af79@gmail.com> Le 06/11/2018 ? 17:29, David Sanrom? a ?crit?: > > Hello again, I think I found something.... > > For some reason: > > $ echo $LANGUAGE > es_ES:es???????????????? <----- Strange format to me, but I don't know > much about this Environment Variables. > > > $ echo $LANG > > es_ES.UTF-8????????? <---- Looks ok to me > > if I run: > > $ LANGUAGE=$LANG gambas3 > > > The IDE comes up in Spanish just fine... ;) > > > Just FYI, > > David > > > OK, I see: the LANGUAGE environment variable is automatically fixed by the interpreter, but only when the language is set explicitly (what you done when writing "System.Language = System.Language"). I will make the interpreter do the same fix at startup too. P.S. Please answer on the mailing-list. -- Beno?t Minisini From dsanroma at gmail.com Tue Nov 6 17:58:24 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Tue, 6 Nov 2018 17:58:24 +0100 Subject: [Gambas-user] Linux Mint - Project Localization In-Reply-To: <42a6b457-3c2a-9dc6-2ac6-d8f18398af79@gmail.com> References: <9df88e1a-e787-c955-957b-705473136927@gmail.com> <41264c33-1177-b96d-5892-dfb451f98f38@gmail.com> <6fec753d-b79c-6343-747d-b89b317b013a@gmail.com> <727a03bf-8efe-ca6a-3ff3-509a1fb828dc@gmail.com> <6da9fb8d-2ebe-c2ae-3c4b-c154e5a6e716@gmail.com> <42ab6863-a99a-96a6-bc9d-914c97f015db@gmail.com> <42a6b457-3c2a-9dc6-2ac6-d8f18398af79@gmail.com> Message-ID: <42b816bf-f5e3-d63f-ab48-a7a54e77bb68@gmail.com> El 6/11/18 a las 17:46, Beno?t Minisini escribi?: > Le 06/11/2018 ? 17:29, David Sanrom? a ?crit?: >> >> Hello again, I think I found something.... >> >> For some reason: >> >> $ echo $LANGUAGE >> es_ES:es???????????????? <----- Strange format to me, but I don't >> know much about this Environment Variables. >> >> >> $ echo $LANG >> >> es_ES.UTF-8????????? <---- Looks ok to me >> >> if I run: >> >> $ LANGUAGE=$LANG gambas3 >> >> >> The IDE comes up in Spanish just fine... ;) >> >> >> Just FYI, >> >> David >> >> >> > > OK, I see: the LANGUAGE environment variable is automatically fixed by > the interpreter, but only when the language is set explicitly (what > you done when writing "System.Language = System.Language"). > > I will make the interpreter do the same fix at startup too. > > P.S. Please answer on the mailing-list. > Great news ... Given all this information, I modified the .desktop file with the Exec line Exec=env LANGUAGE=es_ES.UTF-8 gambas3 and now the IDE comes up in Spanish.... which is fine by now... Looking forward to the new version ;) Thank you so much for your help, David From rwe-sse at osnanet.de Mon Nov 12 17:55:52 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 12 Nov 2018 17:55:52 +0100 Subject: [Gambas-user] Where is the scripter? Message-ID: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> Now I am on Ubuntu Mate. I installed Gambas the way you described, i.e. via your repos, everything runs fine, but the scripter is missing. It should be /usr/bin/env gbs3, or /usr/bin/gbs3? There is gba, gbi, gbr, gbx... but no gbs3. Where has it gone? :) Thanks for any help! Rolf From stevjensen at aol.com Tue Nov 13 01:10:11 2018 From: stevjensen at aol.com (Steve) Date: Mon, 12 Nov 2018 19:10:11 -0500 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) Message-ID: I turned the pigipod_if2.c function set into a shared library that Gambas3 found acceptable for use with Extern statement. In general the functions work fine. The connected hardware is accessed and properly manipulated. However one of the functions needs a callback. When the callback is triggered a segmentation fault occurs. Generally this means to me that the address being passed is invalid and an attempt was made to go outside user space. The gambas documentation says it should work. Is there something special I need to do? tia Code below Library "/home/pi/Desktop/PigpioLib/libpigpiod_if2" Extern callback(aPi As Integer, user_gpio As Integer, int_edge As Integer, func As Pointer) As Integer Public sub main_load iGpio_CB_Left = callback(iPi, 23, 0, Callback_Left) End Public sub callback_left(igpio as integer, istate as integer, itick as integer) ... End [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.14.50-v7+ Architecture=armDistribution=debian 9.4 Desktop=LXDE Theme=Qt5CTProxy Language=en_US.UTF-8 Memory=927M [Libraries] Cairo=libcairo.so.2.11400.8 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.15 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1004.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 GTK+3=libgtk-3.so.0.2200.11 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.64.0.0 QT5=libQt5Core.so.5.7.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=LXDE- DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=lightdm-xsession GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 HOME= INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10 INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100 INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25 INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0 INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0 INFINALITY_FT_BRIGHTNESS=0 INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0 INFINALITY_FT_CONTRAST=0 INFINALITY_FT_FILTER_PARAMS=11 22 38 22 11 INFINALITY_FT_FRINGE_FILTER_STRENGTH=0 INFINALITY_FT_GAMMA_CORRECTION=0 100 INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0 INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0 INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0 INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25 INFINALITY_FT_STEM_FITTING_STRENGTH=25 INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40 INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true INFINALITY_FT_USE_VARIOUS_TWEAKS=true INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=10 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 LOGNAME= PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games PWD= QT_QPA_PLATFORMTHEME=qt5ct SAL_USE_VCLPLUGIN=gtk SHELL=/bin/bash SSH_AGENT_PID=614 SSH_AUTH_SOCK=/tmp/ssh-oBISTq0a0BrD/agent.489 TEXTDOMAIN=Linux-PAM TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/usr/local/share:/usr/share/ras-ui-overrides:/usr/share:/usr/share/gdm:/var/lib/menu-xdg XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/ XDG_MENU_PREFIX=lxde-- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=lightdm-xsession XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 _LXSESSION_PID=489 From jussi.lahtinen at gmail.com Tue Nov 13 02:45:41 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 13 Nov 2018 03:45:41 +0200 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) In-Reply-To: References: Message-ID: What are the declarations in C? Jussi On Tue, Nov 13, 2018 at 2:11 AM Steve via User wrote: > I turned the pigipod_if2.c function set into a shared library that > Gambas3 found acceptable for use with Extern statement. > > In general the functions work fine. The connected hardware is accessed > and properly manipulated. > > However one of the functions needs a callback. When the callback is > triggered a segmentation fault occurs. Generally this means to me that > the address being passed is invalid and an attempt was made to go > outside user space. > > The gambas documentation says it should work. Is there something special > I need to do? > > tia > > Code below > > Library "/home/pi/Desktop/PigpioLib/libpigpiod_if2" > > Extern callback(aPi As Integer, user_gpio As Integer, int_edge As > Integer, func As Pointer) As Integer > > Public sub main_load > > iGpio_CB_Left = callback(iPi, 23, 0, Callback_Left) > End > > Public sub callback_left(igpio as integer, istate as integer, itick as > integer) > > ... > > End > > [System] > Gambas=3.9.1 > OperatingSystem=Linux > Kernel=4.14.50-v7+ > Architecture=armDistribution=debian 9.4 > Desktop=LXDE > Theme=Qt5CTProxy > Language=en_US.UTF-8 > Memory=927M > > [Libraries] > Cairo=libcairo.so.2.11400.8 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.15 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.1004.0 > GTK+2=libgtk-x11-2.0.so.0.2400.31 > GTK+3=libgtk-3.so.0.2200.11 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.64.0.0 > QT5=libQt5Core.so.5.7.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=LXDE- > DISPLAY=:0.0 > GB_GUI=gb.qt5 > GDMSESSION=lightdm-xsession > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > HOME= > INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10 > INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true > INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100 > INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25 > INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0 > INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0 > INFINALITY_FT_BRIGHTNESS=0 > INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0 > INFINALITY_FT_CONTRAST=0 > INFINALITY_FT_FILTER_PARAMS=11 22 38 22 11 > INFINALITY_FT_FRINGE_FILTER_STRENGTH=0 > INFINALITY_FT_GAMMA_CORRECTION=0 100 > INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0 > INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0 > INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0 > INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25 > INFINALITY_FT_STEM_FITTING_STRENGTH=25 > INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40 > INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true > INFINALITY_FT_USE_VARIOUS_TWEAKS=true > INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=10 > LANG=en_US.UTF-8 > LANGUAGE=en_US.UTF-8 > LC_ALL=en_US.UTF-8 > LOGNAME= > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games > PWD= > QT_QPA_PLATFORMTHEME=qt5ct > SAL_USE_VCLPLUGIN=gtk > SHELL=/bin/bash > SSH_AGENT_PID=614 > SSH_AUTH_SOCK=/tmp/ssh-oBISTq0a0BrD/agent.489 > TEXTDOMAIN=Linux-PAM > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg > XDG_CONFIG_HOME=/.config > XDG_CURRENT_DESKTOP=LXDE > > XDG_DATA_DIRS=/usr/local/share:/usr/share/ras-ui-overrides:/usr/share:/usr/share/gdm:/var/lib/menu-xdg > XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/ > XDG_MENU_PREFIX=lxde-- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=lightdm-xsession > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > _LXSESSION_PID=489 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Nov 13 02:49:03 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 13 Nov 2018 03:49:03 +0200 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) In-Reply-To: References: Message-ID: Wait, your callback function is not function! Jussi On Tue, Nov 13, 2018 at 2:11 AM Steve via User wrote: > I turned the pigipod_if2.c function set into a shared library that > Gambas3 found acceptable for use with Extern statement. > > In general the functions work fine. The connected hardware is accessed > and properly manipulated. > > However one of the functions needs a callback. When the callback is > triggered a segmentation fault occurs. Generally this means to me that > the address being passed is invalid and an attempt was made to go > outside user space. > > The gambas documentation says it should work. Is there something special > I need to do? > > tia > > Code below > > Library "/home/pi/Desktop/PigpioLib/libpigpiod_if2" > > Extern callback(aPi As Integer, user_gpio As Integer, int_edge As > Integer, func As Pointer) As Integer > > Public sub main_load > > iGpio_CB_Left = callback(iPi, 23, 0, Callback_Left) > End > > Public sub callback_left(igpio as integer, istate as integer, itick as > integer) > > ... > > End > > [System] > Gambas=3.9.1 > OperatingSystem=Linux > Kernel=4.14.50-v7+ > Architecture=armDistribution=debian 9.4 > Desktop=LXDE > Theme=Qt5CTProxy > Language=en_US.UTF-8 > Memory=927M > > [Libraries] > Cairo=libcairo.so.2.11400.8 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.15 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.1004.0 > GTK+2=libgtk-x11-2.0.so.0.2400.31 > GTK+3=libgtk-3.so.0.2200.11 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.64.0.0 > QT5=libQt5Core.so.5.7.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=LXDE- > DISPLAY=:0.0 > GB_GUI=gb.qt5 > GDMSESSION=lightdm-xsession > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > HOME= > INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10 > INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true > INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100 > INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25 > INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0 > INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0 > INFINALITY_FT_BRIGHTNESS=0 > INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0 > INFINALITY_FT_CONTRAST=0 > INFINALITY_FT_FILTER_PARAMS=11 22 38 22 11 > INFINALITY_FT_FRINGE_FILTER_STRENGTH=0 > INFINALITY_FT_GAMMA_CORRECTION=0 100 > INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0 > INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0 > INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0 > INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25 > INFINALITY_FT_STEM_FITTING_STRENGTH=25 > INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40 > INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true > INFINALITY_FT_USE_VARIOUS_TWEAKS=true > INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=10 > LANG=en_US.UTF-8 > LANGUAGE=en_US.UTF-8 > LC_ALL=en_US.UTF-8 > LOGNAME= > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games > PWD= > QT_QPA_PLATFORMTHEME=qt5ct > SAL_USE_VCLPLUGIN=gtk > SHELL=/bin/bash > SSH_AGENT_PID=614 > SSH_AUTH_SOCK=/tmp/ssh-oBISTq0a0BrD/agent.489 > TEXTDOMAIN=Linux-PAM > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg > XDG_CONFIG_HOME=/.config > XDG_CURRENT_DESKTOP=LXDE > > XDG_DATA_DIRS=/usr/local/share:/usr/share/ras-ui-overrides:/usr/share:/usr/share/gdm:/var/lib/menu-xdg > XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/ > XDG_MENU_PREFIX=lxde-- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=lightdm-xsession > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > _LXSESSION_PID=489 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Nov 13 04:14:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 13 Nov 2018 04:14:40 +0100 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) In-Reply-To: References: Message-ID: <83de62dc-e7c6-4c36-856b-4f706572d9a7@gmail.com> Le 13/11/2018 ? 01:10, Steve via User a ?crit?: > I turned the pigipod_if2.c function set into a shared library that > Gambas3 found acceptable for use with Extern statement. > > In general the functions work fine. The connected hardware is accessed > and properly manipulated. > > However one of the functions needs a callback. When the callback is > triggered a segmentation fault occurs. Generally this means to me that > the address being passed is invalid and an attempt was made to go > outside user space. > > The gambas documentation says it should work. Is there something special > I need to do? > > tia > > Code below > Can you provide your full project, and the header files of the library? Otherwise we cannot help. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Tue Nov 13 11:35:01 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 13 Nov 2018 11:35:01 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> Message-ID: Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > Now I am on Ubuntu Mate. I installed Gambas the way you described, i.e. > via your repos, everything runs fine, but the scripter is missing. > > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? > > There is gba, gbi, gbr, gbx... but no gbs3. > > Where has it gone? :) > > Thanks for any help! > > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Nobody knows it? I just looked it up on my older system, there is /usr/bin/gbs.gambas3 and a link "gbs3" to it. So, is it just an additional program to be installed separately? I couldn't find anything in the Software Farm. Well, if nobody knows, I will try to just copy the thing from the old system, but there might be side-effects... Regards Rolf From genbraga1 at gmail.com Tue Nov 13 11:44:32 2018 From: genbraga1 at gmail.com (gen braga) Date: Tue, 13 Nov 2018 08:44:32 -0200 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> Message-ID: Did you try apt-get install gambas3-script? Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > > Now I am on Ubuntu Mate. I installed Gambas the way you described, i.e. > > via your repos, everything runs fine, but the scripter is missing. > > > > It should be /usr/bin/env gbs3, or /usr/bin/gbs3? > > > > There is gba, gbi, gbr, gbx... but no gbs3. > > > > Where has it gone? :) > > > > Thanks for any help! > > > > Rolf > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > Nobody knows it? I just looked it up on my older system, there is > > /usr/bin/gbs.gambas3 and a link "gbs3" to it. > > So, is it just an additional program to be installed separately? I > couldn't find anything in the Software Farm. > > Well, if nobody knows, I will try to just copy the thing from the old > system, but there might be side-effects... > > Regards > Rolf > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Tue Nov 13 11:59:22 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 13 Nov 2018 11:59:22 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> Message-ID: No, but now I will (later this afternoon) Thanks for the hint! Rolf Am 13.11.2018 um 11:44 schrieb gen braga: > Did you try apt-get install gambas3-script? > > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert escreveu: > > Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > > Now I am on Ubuntu Mate. I installed Gambas the way you > described, i.e. > > via your repos, everything runs fine, but the scripter is missing. > > > > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? > > > > There is gba, gbi, gbr, gbx... but no gbs3. > > > > Where has it gone? :) > > > > Thanks for any help! > > > > Rolf > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > Nobody knows it? I just looked it up on my older system, there is > > /usr/bin/gbs.gambas3 and a link "gbs3" to it. > > So, is it just an additional program to be installed separately? I > couldn't find anything in the Software Farm. > > Well, if nobody knows, I will try to just copy the thing from the old > system, but there might be side-effects... > > Regards > Rolf > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From rwe-sse at osnanet.de Tue Nov 13 17:59:46 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 13 Nov 2018 17:59:46 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> Message-ID: <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> Now I tried it, but it said something like "it is in the list, but the package isn't there". So I tried to simply copy the old version binary and link from the older server, and it runs for now. Regards Rolf Am 13.11.2018 um 11:44 schrieb gen braga: > Did you try apt-get install gambas3-script? > > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert escreveu: > > Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > > Now I am on Ubuntu Mate. I installed Gambas the way you > described, i.e. > > via your repos, everything runs fine, but the scripter is missing. > > > > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? > > > > There is gba, gbi, gbr, gbx... but no gbs3. > > > > Where has it gone? :) > > > > Thanks for any help! > > > > Rolf > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > Nobody knows it? I just looked it up on my older system, there is > > /usr/bin/gbs.gambas3 and a link "gbs3" to it. > > So, is it just an additional program to be installed separately? I > couldn't find anything in the Software Farm. > > Well, if nobody knows, I will try to just copy the thing from the old > system, but there might be side-effects... > > Regards > Rolf > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From genbraga1 at gmail.com Tue Nov 13 18:30:44 2018 From: genbraga1 at gmail.com (gen braga) Date: Tue, 13 Nov 2018 15:30:44 -0200 Subject: [Gambas-user] Where is the scripter? In-Reply-To: <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> Message-ID: Could you paste here the output error? Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert Now I tried it, but it said something like "it is in the list, but the > package isn't there". > > So I tried to simply copy the old version binary and link from the older > server, and it runs for now. > > Regards > Rolf > > > Am 13.11.2018 um 11:44 schrieb gen braga: > > Did you try apt-get install gambas3-script? > > > > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > escreveu: > > > > Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > > > Now I am on Ubuntu Mate. I installed Gambas the way you > > described, i.e. > > > via your repos, everything runs fine, but the scripter is missing. > > > > > > It should be /usr/bin/env gbs3, or /usr/bin/gbs3? > > > > > > There is gba, gbi, gbr, gbx... but no gbs3. > > > > > > Where has it gone? :) > > > > > > Thanks for any help! > > > > > > Rolf > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > > > > > > > > > Nobody knows it? I just looked it up on my older system, there is > > > > /usr/bin/gbs.gambas3 and a link "gbs3" to it. > > > > So, is it just an additional program to be installed separately? I > > couldn't find anything in the Software Farm. > > > > Well, if nobody knows, I will try to just copy the thing from the old > > system, but there might be side-effects... > > > > Regards > > Rolf > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Nov 14 09:03:41 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 14 Nov 2018 09:03:41 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> Message-ID: Sure, but it's in German. And I have to wait for the afternoon to switch on the new server. Regards Rolf Am 13.11.2018 um 18:30 schrieb gen braga: > Could you paste here the output error? > > Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert escreveu: > > Now I tried it, but it said something like "it is in the list, but the > package isn't there". > > So I tried to simply copy the old version binary and link from the > older > server, and it runs for now. > > Regards > Rolf > > > Am 13.11.2018 um 11:44 schrieb gen braga: > > Did you try apt-get install gambas3-script? > > > > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > > > > escreveu: > > > >? ? ?Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > >? ? ? > Now I am on Ubuntu Mate. I installed Gambas the way you > >? ? ?described, i.e. > >? ? ? > via your repos, everything runs fine, but the scripter is > missing. > >? ? ? > > >? ? ? > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? > >? ? ? > > >? ? ? > There is gba, gbi, gbr, gbx... but no gbs3. > >? ? ? > > >? ? ? > Where has it gone? :) > >? ? ? > > >? ? ? > Thanks for any help! > >? ? ? > > >? ? ? > Rolf > >? ? ? > > >? ? ? > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? > > >? ? ? > > > > >? ? ?Nobody knows it? I just looked it up on my older system, there is > > > >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" to it. > > > >? ? ?So, is it just an additional program to be installed > separately? I > >? ? ?couldn't find anything in the Software Farm. > > > >? ? ?Well, if nobody knows, I will try to just copy the thing from > the old > >? ? ?system, but there might be side-effects... > > > >? ? ?Regards > >? ? ?Rolf > > > > > >? ? ?----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From hans at gambas-buch.de Wed Nov 14 09:38:44 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 14 Nov 2018 09:38:44 +0100 Subject: [Gambas-user] Library and File Message-ID: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> Hello. How do I access a mylibhelp.txt help file - which I have a library myLib.gambas - from my project with the ProjectXY that included this library? I want to access a mylibhelp.txt file from a ProjectXY project, which is located in the myLib.gambas library. The library is integrated into the project ProjectXY. Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Nov 14 10:00:31 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 14 Nov 2018 10:00:31 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> Message-ID: <20181114090031.GB10428@highrise.localdomain> On Wed, 14 Nov 2018, Hans Lehmann wrote: > Hello. > > How do I access a mylibhelp.txt help file - which I have a library > myLib.gambas - from my project with the ProjectXY that included this > library? > I want to access a mylibhelp.txt file from a ProjectXY project, which is > located in the myLib.gambas library. The library is integrated into the > project ProjectXY. > There was a comment about that recently [1]. I have not paid attention to whether this was implemented already or not. What you ask is not directly possible without the new syntax > "./gb.xxx/abcd" --> 'abcd' in the 'gb.xxx' component if it is actually loaded. proposed in that email. The latest state of affairs I'm aware of is that you can use "./file" or "file" to access a file inside the current project or component and "../file" to access a file inside the currently running project *from* code running in a component; see [2]. What you can do, which is guaranteed to work, is *ask* the component to give you that help file instead of trying to snitch it. Add a Help.class to the component, which executes File.Load("mylibhelp.txt") and returns the loaded string. Since File.Load() is executed inside component code now, it has access to the help file located inside the component directory. Regards, Tobi [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065319.html [2] http://gambaswiki.org/wiki/cat/path -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Wed Nov 14 18:30:23 2018 From: kicking177 at gmail.com (KKing) Date: Wed, 14 Nov 2018 17:30:23 +0000 Subject: [Gambas-user] More colours in gb.ncurses Message-ID: If I go to setup a colour pair in gb.ncurses the color statement only has about 8 colours available. Is it possible to have more, I'm used to old QuickBasic and PowerBasic having more colours, in particular looking for an orange and a brighter (higher intensity) white. What is purpose of the Color.Set command, and any example on how to use? K. From kicking177 at gmail.com Wed Nov 14 19:33:27 2018 From: kicking177 at gmail.com (KKing) Date: Wed, 14 Nov 2018 18:33:27 +0000 Subject: [Gambas-user] functional equivalent to inkey$ in gb.ncurses? Message-ID: In some old code I have roughly below, which I'd like to replicate in gb.ncurses but the Window.Read waits until a there is a keystroke, is there an alternative? << Label1: ??? v$ = inkey$ ??? IF v$ = "" THEN ??? ??? ' code to update an on screen clock and short a heartbeat ??? ELSE ??? ??? ' code to deal with the input character ??? END IF ??? GOTO Label1 >> From rwe-sse at osnanet.de Wed Nov 14 20:02:12 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 14 Nov 2018 20:02:12 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> Message-ID: <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> Here you are: # apt-get install gambas3-script Paketlisten werden gelesen... Fertig Abh?ngigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Paket gambas3-script ist nicht verf?gbar, wird aber von einem anderen Paket referenziert. Das kann hei?en, dass das Paket fehlt, dass es abgel?st wurde oder nur aus einer anderen Quelle verf?gbar ist. E: F?r Paket ?gambas3-script? existiert kein Installationskandidat. Am 13.11.2018 um 18:30 schrieb gen braga: > Could you paste here the output error? > > Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert escreveu: > > Now I tried it, but it said something like "it is in the list, but the > package isn't there". > > So I tried to simply copy the old version binary and link from the > older > server, and it runs for now. > > Regards > Rolf > > > Am 13.11.2018 um 11:44 schrieb gen braga: > > Did you try apt-get install gambas3-script? > > > > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > > > > escreveu: > > > >? ? ?Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > >? ? ? > Now I am on Ubuntu Mate. I installed Gambas the way you > >? ? ?described, i.e. > >? ? ? > via your repos, everything runs fine, but the scripter is > missing. > >? ? ? > > >? ? ? > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? > >? ? ? > > >? ? ? > There is gba, gbi, gbr, gbx... but no gbs3. > >? ? ? > > >? ? ? > Where has it gone? :) > >? ? ? > > >? ? ? > Thanks for any help! > >? ? ? > > >? ? ? > Rolf > >? ? ? > > >? ? ? > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? > > >? ? ? > > > > >? ? ?Nobody knows it? I just looked it up on my older system, there is > > > >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" to it. > > > >? ? ?So, is it just an additional program to be installed > separately? I > >? ? ?couldn't find anything in the Software Farm. > > > >? ? ?Well, if nobody knows, I will try to just copy the thing from > the old > >? ? ?system, but there might be side-effects... > > > >? ? ?Regards > >? ? ?Rolf > > > > > >? ? ?----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From t.lee.davidson at gmail.com Wed Nov 14 20:04:34 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 14 Nov 2018 14:04:34 -0500 Subject: [Gambas-user] functional equivalent to inkey$ in gb.ncurses? In-Reply-To: References: Message-ID: <752e2836-5a39-5c57-8f38-5d46434e1a49@gmail.com> Perhaps the Window Read event would serve your purpose. ___ Lee On 11/14/18 1:33 PM, KKing wrote: > In some old code I have roughly below, which I'd like to replicate in gb.ncurses but the Window.Read waits until a there is a > keystroke, is there an alternative? > > << > Label1: > ??? v$ = inkey$ > ??? IF v$ = "" THEN > ??? ??? ' code to update an on screen clock and short a heartbeat > ??? ELSE > ??? ??? ' code to deal with the input character > ??? END IF > ??? GOTO Label1 >>> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From t.lee.davidson at gmail.com Wed Nov 14 20:06:50 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 14 Nov 2018 14:06:50 -0500 Subject: [Gambas-user] Where is the scripter? In-Reply-To: <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> Message-ID: And for those who may not know how to use an online translator: # apt-get install gambas3-script Package lists are read ... Finished Dependency tree is built up. Status information is read in ... Finished Package gambas3-script is not available, but is made by another package Referenced. This may mean that the package is missing, that it is superseded Or is only available from another source. E: There is no installation candidate for package? gambas3-script ?. ___ Lee On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > Here you are: > > # apt-get install gambas3-script > Paketlisten werden gelesen... Fertig > Abh?ngigkeitsbaum wird aufgebaut. > Statusinformationen werden eingelesen.... Fertig > Paket gambas3-script ist nicht verf?gbar, wird aber von einem anderen Paket > referenziert. Das kann hei?en, dass das Paket fehlt, dass es abgel?st > wurde oder nur aus einer anderen Quelle verf?gbar ist. > > E: F?r Paket ?gambas3-script? existiert kein Installationskandidat. > > > Am 13.11.2018 um 18:30 schrieb gen braga: >> Could you paste here the output error? >> >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert escreveu: >> >> ??? Now I tried it, but it said something like "it is in the list, but the >> ??? package isn't there". >> >> ??? So I tried to simply copy the old version binary and link from the >> ??? older >> ??? server, and it runs for now. >> >> ??? Regards >> ??? Rolf >> >> >> ??? Am 13.11.2018 um 11:44 schrieb gen braga: >> ???? > Did you try apt-get install gambas3-script? >> ???? > >> ???? > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert >> ??? >> ???? > > escreveu: >> ???? > >> ???? >? ? ?Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: >> ???? >? ? ? > Now I am on Ubuntu Mate. I installed Gambas the way you >> ???? >? ? ?described, i.e. >> ???? >? ? ? > via your repos, everything runs fine, but the scripter is >> ??? missing. >> ???? >? ? ? > >> ???? >? ? ? > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? >> ???? >? ? ? > >> ???? >? ? ? > There is gba, gbi, gbr, gbx... but no gbs3. >> ???? >? ? ? > >> ???? >? ? ? > Where has it gone? :) >> ???? >? ? ? > >> ???? >? ? ? > Thanks for any help! >> ???? >? ? ? > >> ???? >? ? ? > Rolf >> ???? >? ? ? > >> ???? >? ? ? > ----[ Gambas mailing-list is hosted by >> ???? > https://www.hostsharing.net ]---- >> ???? >? ? ? > >> ???? >? ? ? > >> ???? > >> ???? >? ? ?Nobody knows it? I just looked it up on my older system, there is >> ???? > >> ???? >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" to it. >> ???? > >> ???? >? ? ?So, is it just an additional program to be installed >> ??? separately? I >> ???? >? ? ?couldn't find anything in the Software Farm. >> ???? > >> ???? >? ? ?Well, if nobody knows, I will try to just copy the thing from >> ??? the old >> ???? >? ? ?system, but there might be side-effects... >> ???? > >> ???? >? ? ?Regards >> ???? >? ? ?Rolf >> ???? > >> ???? > >> ???? >? ? ?----[ Gambas mailing-list is hosted by >> ??? https://www.hostsharing.net ]---- >> ???? > >> ???? > >> ???? > >> ???? > >> ???? > ----[ Gambas mailing-list is hosted by >> ??? https://www.hostsharing.net ]---- >> ???? > >> >> >> ??? ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From t.lee.davidson at gmail.com Wed Nov 14 20:13:16 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 14 Nov 2018 14:13:16 -0500 Subject: [Gambas-user] More colours in gb.ncurses In-Reply-To: References: Message-ID: It appears as though you may be able to define your own colors with Color.Set(). ___ Lee On 11/14/18 12:30 PM, KKing wrote: > If I go to setup a colour pair in gb.ncurses the color statement only has about 8 colours available. > > Is it possible to have more, I'm used to old QuickBasic and PowerBasic having more colours, in particular looking for an orange > and a brighter (higher intensity) white. > > What is purpose of the Color.Set command, and any example on how to use? > > K. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From rwe-sse at osnanet.de Wed Nov 14 20:16:06 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 14 Nov 2018 20:16:06 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> Message-ID: <81ddd10d-42b6-1adb-3c02-8c79281eb32d@osnanet.de> Thanks sooo much Lee :))) Am 14.11.2018 um 20:06 schrieb T Lee Davidson: > And for those who may not know how to use an online translator: > > # apt-get install gambas3-script > Package lists are read ... Finished > Dependency tree is built up. > Status information is read in ... Finished > Package gambas3-script is not available, but is made by another package > Referenced. This may mean that the package is missing, that it is superseded > Or is only available from another source. > > E: There is no installation candidate for package? gambas3-script ?. > > > ___ > Lee > > > On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: >> Here you are: >> >> # apt-get install gambas3-script >> Paketlisten werden gelesen... Fertig >> Abh?ngigkeitsbaum wird aufgebaut. >> Statusinformationen werden eingelesen.... Fertig >> Paket gambas3-script ist nicht verf?gbar, wird aber von einem anderen Paket >> referenziert. Das kann hei?en, dass das Paket fehlt, dass es abgel?st >> wurde oder nur aus einer anderen Quelle verf?gbar ist. >> >> E: F?r Paket ?gambas3-script? existiert kein Installationskandidat. >> >> >> Am 13.11.2018 um 18:30 schrieb gen braga: >>> Could you paste here the output error? >>> >>> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert escreveu: >>> >>> ??? Now I tried it, but it said something like "it is in the list, but the >>> ??? package isn't there". >>> >>> ??? So I tried to simply copy the old version binary and link from the >>> ??? older >>> ??? server, and it runs for now. >>> >>> ??? Regards >>> ??? Rolf >>> >>> >>> ??? Am 13.11.2018 um 11:44 schrieb gen braga: >>> ???? > Did you try apt-get install gambas3-script? >>> ???? > >>> ???? > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert >>> ??? >>> ???? > > escreveu: >>> ???? > >>> ???? >? ? ?Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: >>> ???? >? ? ? > Now I am on Ubuntu Mate. I installed Gambas the way you >>> ???? >? ? ?described, i.e. >>> ???? >? ? ? > via your repos, everything runs fine, but the scripter is >>> ??? missing. >>> ???? >? ? ? > >>> ???? >? ? ? > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? >>> ???? >? ? ? > >>> ???? >? ? ? > There is gba, gbi, gbr, gbx... but no gbs3. >>> ???? >? ? ? > >>> ???? >? ? ? > Where has it gone? :) >>> ???? >? ? ? > >>> ???? >? ? ? > Thanks for any help! >>> ???? >? ? ? > >>> ???? >? ? ? > Rolf >>> ???? >? ? ? > >>> ???? >? ? ? > ----[ Gambas mailing-list is hosted by >>> ???? > https://www.hostsharing.net ]---- >>> ???? >? ? ? > >>> ???? >? ? ? > >>> ???? > >>> ???? >? ? ?Nobody knows it? I just looked it up on my older system, there is >>> ???? > >>> ???? >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" to it. >>> ???? > >>> ???? >? ? ?So, is it just an additional program to be installed >>> ??? separately? I >>> ???? >? ? ?couldn't find anything in the Software Farm. >>> ???? > >>> ???? >? ? ?Well, if nobody knows, I will try to just copy the thing from >>> ??? the old >>> ???? >? ? ?system, but there might be side-effects... >>> ???? > >>> ???? >? ? ?Regards >>> ???? >? ? ?Rolf >>> ???? > >>> ???? > >>> ???? >? ? ?----[ Gambas mailing-list is hosted by >>> ??? https://www.hostsharing.net ]---- >>> ???? > >>> ???? > >>> ???? > >>> ???? > >>> ???? > ----[ Gambas mailing-list is hosted by >>> ??? https://www.hostsharing.net ]---- >>> ???? > >>> >>> >>> ??? ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From genbraga1 at gmail.com Wed Nov 14 20:16:51 2018 From: genbraga1 at gmail.com (gen braga) Date: Wed, 14 Nov 2018 17:16:51 -0200 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> Message-ID: Paste your /etc/apt/sources.list Em qua, 14 de nov de 2018 17:07, T Lee Davidson And for those who may not know how to use an online translator: > > # apt-get install gambas3-script > Package lists are read ... Finished > Dependency tree is built up. > Status information is read in ... Finished > Package gambas3-script is not available, but is made by another package > Referenced. This may mean that the package is missing, that it is > superseded > Or is only available from another source. > > E: There is no installation candidate for package? gambas3-script ?. > > > ___ > Lee > > > On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > > Here you are: > > > > # apt-get install gambas3-script > > Paketlisten werden gelesen... Fertig > > Abh?ngigkeitsbaum wird aufgebaut. > > Statusinformationen werden eingelesen.... Fertig > > Paket gambas3-script ist nicht verf?gbar, wird aber von einem anderen > Paket > > referenziert. Das kann hei?en, dass das Paket fehlt, dass es abgel?st > > wurde oder nur aus einer anderen Quelle verf?gbar ist. > > > > E: F?r Paket ?gambas3-script? existiert kein Installationskandidat. > > > > > > Am 13.11.2018 um 18:30 schrieb gen braga: > >> Could you paste here the output error? > >> > >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert escreveu: > >> > >> Now I tried it, but it said something like "it is in the list, but > the > >> package isn't there". > >> > >> So I tried to simply copy the old version binary and link from the > >> older > >> server, and it runs for now. > >> > >> Regards > >> Rolf > >> > >> > >> Am 13.11.2018 um 11:44 schrieb gen braga: > >> > Did you try apt-get install gambas3-script? > >> > > >> > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > >> > >> > > > escreveu: > >> > > >> > Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > >> > > Now I am on Ubuntu Mate. I installed Gambas the way you > >> > described, i.e. > >> > > via your repos, everything runs fine, but the scripter is > >> missing. > >> > > > >> > > It should be /usr/bin/env gbs3, or /usr/bin/gbs3? > >> > > > >> > > There is gba, gbi, gbr, gbx... but no gbs3. > >> > > > >> > > Where has it gone? :) > >> > > > >> > > Thanks for any help! > >> > > > >> > > Rolf > >> > > > >> > > ----[ Gambas mailing-list is hosted by > >> > https://www.hostsharing.net ]---- > >> > > > >> > > > >> > > >> > Nobody knows it? I just looked it up on my older system, > there is > >> > > >> > /usr/bin/gbs.gambas3 and a link "gbs3" to it. > >> > > >> > So, is it just an additional program to be installed > >> separately? I > >> > couldn't find anything in the Software Farm. > >> > > >> > Well, if nobody knows, I will try to just copy the thing from > >> the old > >> > system, but there might be side-effects... > >> > > >> > Regards > >> > Rolf > >> > > >> > > >> > ----[ Gambas mailing-list is hosted by > >> https://www.hostsharing.net ]---- > >> > > >> > > >> > > >> > > >> > ----[ Gambas mailing-list is hosted by > >> https://www.hostsharing.net ]---- > >> > > >> > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > >> > >> > >> > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > >> > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Nov 14 20:25:31 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 14 Nov 2018 20:25:31 +0100 Subject: [Gambas-user] functional equivalent to inkey$ in gb.ncurses? In-Reply-To: <752e2836-5a39-5c57-8f38-5d46434e1a49@gmail.com> References: <752e2836-5a39-5c57-8f38-5d46434e1a49@gmail.com> Message-ID: <20181114192531.GD10428@highrise.localdomain> On Wed, 14 Nov 2018, T Lee Davidson wrote: > On 11/14/18 1:33 PM, KKing wrote: > > In some old code I have roughly below, which I'd like to replicate in gb.ncurses but the Window.Read waits until a there is a > > keystroke, is there an alternative? > > > > << > > Label1: > > ??? v$ = inkey$ > > ??? IF v$ = "" THEN > > ??? ??? ' code to update an on screen clock and short a heartbeat > > ??? ELSE > > ??? ??? ' code to deal with the input character > > ??? END IF > > ??? GOTO Label1 > >>> > > Perhaps the Window Read event would serve your purpose. Yes, that would be better. Gambas supports event-driven programming and gb.ncurses tries to give you that to a degree. You can have a Window_Read event handler to deal with input and a Timer to redraw a clock and let the event loop handle dispatching of your code. Alternatively, the Window.Read() method has a TimeOut parameter. If I saw correctly what this "inkey$" is supposed to do (you didn't tell), namely not block and return an empty string if the input queue is empty, then set that TimeOut to zero. But beware that Window.Read returns a keycode Integer, not a string. If returned integer will be zero if the timeout expired without something arriving in the input queue. This is different from returning an empty string, as inkey$ would do. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Wed Nov 14 20:51:11 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 14 Nov 2018 20:51:11 +0100 Subject: [Gambas-user] More colours in gb.ncurses In-Reply-To: References: Message-ID: <20181114195111.GE10428@highrise.localdomain> On Wed, 14 Nov 2018, KKing wrote: > If I go to setup a colour pair in gb.ncurses the color statement only has > about 8 colours available. > > Is it possible to have more, I'm used to old QuickBasic and PowerBasic > having more colours, in particular looking for an orange and a brighter > (higher intensity) white. > Some knowledge of ncurses is needed to use gb.ncurses. You get 16 colors by combining one of the eight color pairs with the boldness attribute: Window.Pen = Color.Yellow Window.Print("This is brownish\n\r") Window.Print("This is actual yellow\n\r", -1, -1, Attr.Bold) High-intensity white is similarly "white + bold". There are terminals which support more colors, like 256 or true color, but that is not supported by gb.ncurses. > What is purpose of the Color.Set command, and any example on how to use? > Yes, this allows you to remap a color ID to some other color given by its RGB triple. You could make Color.Black mean neon green -- I suppose. The catch is that your terminal has to support that and I have never used one which does. (gb.)ncurses gives you Color.CanChange as an indicator of whether your terminal allows you to change the definition of a color. You should check it before doing Color.Set()s. You should also check `man init_color` (or comparable resources) for a general discussion of colors in ncurses. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Wed Nov 14 21:33:54 2018 From: kicking177 at gmail.com (KKing) Date: Wed, 14 Nov 2018 20:33:54 +0000 Subject: [Gambas-user] More colours in gb.ncurses Message-ID: Tobi, many thanks, that helps a bit and I will have to read up on ncurses. re Window.Pen, I can see that now, though I'm trying to make the appearance of an input field. I tried .Paper, but that is the whole screen, whereas I just want the area behind the character. curiously as well when I tried Window.Paper = Color.Yellow the background changed to Blue. another odd thing (to me) was when I have no attribute I have Black on White, when I use ATTR.BOLD it comes out Grey on White. (I'm trying to make the background "brighter" not change the pen colour as such. re the set command, is below correct? ? Color.Set(Color.Cyan, 255, 192, 203)???? ' Pink RGB? 255-192-203 ? iColPairTest = Pair[Color.Black, Color.Cyan] when i used iColPairTest it still came out as Cyan last one. when I use Window.Locate() it obscures the character that was there, which I want to still be visible, is there some way to do that (remember I'm have a light colour as a background and text as black)? K. From taboege at gmail.com Wed Nov 14 23:26:58 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 14 Nov 2018 23:26:58 +0100 Subject: [Gambas-user] More colours in gb.ncurses In-Reply-To: References: Message-ID: <20181114222658.GF10428@highrise.localdomain> On Wed, 14 Nov 2018, KKing wrote: > Tobi, > > many thanks, that helps a bit and I will have to read up on ncurses. > > re Window.Pen, I can see that now, though I'm trying to make the appearance > of an input field. > I tried .Paper, but that is the whole screen, whereas I just want the area > behind the character. > Window.Paper is the background of the whole *Window*, so that behaviour you got makes sense, yes? You can change the attributes of individual characters on screen by using the Window class like an array: Window[10,5].Background = Color.Cyan ' row 10, column 5 You can also print certain text with specified attributes and color; see the optional arguments to Window.Print(). But you say you want an input area. In this case you should create a new window in the space where the input area is supposed to be. The attached project allocates a one-line window at the bottom of the screen and lets its foreground to brown. It also implements very minimal line editing (i.e. the backspace key). > curiously as well when I tried Window.Paper = Color.Yellow the background > changed to Blue. > This was actually a bug that I just fixed in 1b66fb3373. > another odd thing (to me) was when I have no attribute I have Black on > White, when I use ATTR.BOLD it comes out Grey on White. > (I'm trying to make the background "brighter" not change the pen colour as > such. > This is correct: Black + Bold = Light-black = Grey. Welcome to the wondrous world of terminal colors :-) The boldness operates only on foreground, no way to make the background lighter, sorry (AFAIK). > re the set command, is below correct? > ? Color.Set(Color.Cyan, 255, 192, 203)???? ' Pink RGB? 255-192-203 > ? iColPairTest = Pair[Color.Black, Color.Cyan] > > when i used iColPairTest it still came out as Cyan > Does your terminal support color redefinitions, i.e. is Color.CanChange True? If not, no wonder that it didn't work. > last one. when I use Window.Locate() it obscures the character that was > there, which I want to still be visible, is there some way to do that > (remember I'm have a light colour as a background and text as black)? > You mean your terminal displays a cursor block, maybe blinking, that overshadows the character? You can get rid of that altogether by setting Screen.Cursor = Cursor.Hidden [ If you're asking why Screen.Cursor is not a Boolean and what the third state of Cursor could be besides Hidden and not-Hidden aka Visible, it's "VeryVisible" -- but, as so many things, this might or might not have a visible effect, depending on your terminal. ] Usually though, the character under the cursor should be displayed in reverse-video, so it should not be invisible. Don't know if you meant that by "obscured". Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Wed Nov 14 23:32:57 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 14 Nov 2018 23:32:57 +0100 Subject: [Gambas-user] More colours in gb.ncurses In-Reply-To: <20181114222658.GF10428@highrise.localdomain> References: <20181114222658.GF10428@highrise.localdomain> Message-ID: <20181114223257.GG10428@highrise.localdomain> On Wed, 14 Nov 2018, Tobias Boege wrote: > The attached project [...] Hrm. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: nc-inputbox-0.0.1.tar.gz Type: application/gzip Size: 11826 bytes Desc: not available URL: From chrisml at deganius.de Thu Nov 15 00:02:35 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 15 Nov 2018 00:02:35 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <20181114090031.GB10428@highrise.localdomain> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> Message-ID: Hi Tobi, Am 14.11.18 um 10:00 schrieb Tobias Boege: > [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065319.html YES! .../ would be really ugly. Soo ... namespaces would be the answer to the problems addressed by this mail. The files in the libs (and code also) cold savely be adressed by something (as an example) like vendorname/version/./directory/file or vendorname/../directory/file for the latest version (if vendorname was done right) I think, libraries together with namespaces could gain a great potential to boost the usage of Gambas. With them people could share code freely without the pain of conflicting names. Languages like Java, Python, PHP show that with namespaces the production of shared code literally explodes. Together with the importance and the potential of the language itself. In Gambas I would like to, but cannot share my own code with others because I never know whether my own code breaks things in other environments. I am not able to use foreign code without copy/paste it into my own (and do some rework to make it compatible). If the foreign code evolves, I cannot benefit from that easily without copy/paste/rework ... thats really ugly compared to sth like PHP composer where I just do "./composer update" to get the updated lib via Git in the background. As we have vendorname for libs already, why not use it as namespace? But the concept should be well designed, because once on the road it would be hard to stop. 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 Thu Nov 15 00:18:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 15 Nov 2018 00:18:43 +0100 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> Message-ID: <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> Le 15/11/2018 ? 00:02, Christof Thalhofer a ?crit?: > Hi Tobi, > > Am 14.11.18 um 10:00 schrieb Tobias Boege: >> [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065319.html > > YES! .../ would be really ugly. Soo ... > > namespaces would be the answer to the problems addressed by this mail. > > The files in the libs (and code also) cold savely be adressed by > something (as an example) like > > vendorname/version/./directory/file > > or > > vendorname/../directory/file > > for the latest version > > (if vendorname was done right) > > I think, libraries together with namespaces could gain a great potential > to boost the usage of Gambas. With them people could share code freely > without the pain of conflicting names. > > Languages like Java, Python, PHP show that with namespaces the > production of shared code literally explodes. Together with the > importance and the potential of the language itself. > > In Gambas I would like to, but cannot share my own code with others > because I never know whether my own code breaks things in other > environments. > > I am not able to use foreign code without copy/paste it into my own (and > do some rework to make it compatible). If the foreign code evolves, I > cannot benefit from that easily without copy/paste/rework ... thats > really ugly compared to sth like PHP composer where I just do > > "./composer update" > > to get the updated lib via Git in the background. > > As we have vendorname for libs already, why not use it as namespace? > > But the concept should be well designed, because once on the road it > would be hard to stop. > > Alles Gute > > Christof Thalhofer > Can you elaborate with a precise example? Each library already has its own namespace. Only the exported classes share the same namespace, and if two libraries export the same class, then that usually means they want to do the same thing and cannot be used simultaneously. Regards, -- Beno?t Minisini From taboege at gmail.com Thu Nov 15 00:42:18 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 15 Nov 2018 00:42:18 +0100 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> Message-ID: <20181114234218.GH10428@highrise.localdomain> On Thu, 15 Nov 2018, Christof Thalhofer wrote: > Hi Tobi, > > Am 14.11.18 um 10:00 schrieb Tobias Boege: > > [1] https://lists.gambas-basic.org/pipermail/user/2018-August/065319.html > > YES! .../ would be really ugly. Soo ... > > namespaces would be the answer to the problems addressed by this mail. > I wholeheartedly support the namespace request. This topic came up when I talked about this with Hans in private as well. The attentive reader will have noticed that my Help.class idea does not work as soon as you have more than a single library from which you want to get help. In that case you have to modify the class (or method, because exporting a class that was already exported from another component extends the old one) names for getting help depending on the component name that you want to get help from, so instead of a hypothetical Help.Get() in MyLib, you need to write Help.GetForMyLib1() in MyLib1 and Help.GetForMyLib2() in Lib2, which is effectively rolling your own, non-standard namespacing. I'm not saying that the brokenness of my simplistic suggestion to Hans' problem makes namespaces mandatory. It can be fixed by providing access to other archives' files, but to me that feels more like a patch, when namespaces are a proper solution. I also want to say that I can imagine the special syntaxes to access other archives' files to be a proper solution for some tasks, like serving static content from (future) components which are entangled with gb.web.form, for example. [ Disclaimer: Below is me daydreaming a bit, at half past midnight. ] But in turn, I can also imagine that this functionality can be implemented when namespaces exist, if you inject a virtual File.Load() function into every component namespace, which is able to access files inside the component, so if you load MyLib1, you can MyLib1::File.Load("help.txt") to get a file from MyLib1's archive. In the end, I guess what I want to say is: I wholeheartedly support the namespace request. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Thu Nov 15 01:02:01 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 15 Nov 2018 01:02:01 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> Message-ID: <20181115000201.GI10428@highrise.localdomain> On Thu, 15 Nov 2018, Beno?t Minisini wrote: > Can you elaborate with a precise example? > > Each library already has its own namespace. > > Only the exported classes share the same namespace, and if two libraries > export the same class, then that usually means they want to do the same > thing and cannot be used simultaneously. > For me, the main point, I think, is to be able to make classes available without exporting them, and then being able to address and use them unambiguously. In the topic of this thread, one could provide a Help.class (rather, Help.module if you think about it) in all libraries that care to expose their help file to the main program. Since "Help" might be a common symbol name to export, the developer might choose not to export to avoid overwriting someone else's Help or becoming a Help that is being overwritten by someone else. In that case, the class should still be available from some prefix: MyLib1::Help.Get() ' the Help.module from MyLib1.gambas (Or any other kind of prefix, like vendor names as Christof suggested.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Thu Nov 15 01:41:08 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 15 Nov 2018 01:41:08 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <20181115000201.GI10428@highrise.localdomain> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> Message-ID: <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> Le 15/11/2018 ? 01:02, Tobias Boege a ?crit?: > On Thu, 15 Nov 2018, Beno?t Minisini wrote: >> Can you elaborate with a precise example? >> >> Each library already has its own namespace. >> >> Only the exported classes share the same namespace, and if two libraries >> export the same class, then that usually means they want to do the same >> thing and cannot be used simultaneously. >> > > For me, the main point, I think, is to be able to make classes available > without exporting them, and then being able to address and use them > unambiguously. In the topic of this thread, one could provide a Help.class > (rather, Help.module if you think about it) in all libraries that care > to expose their help file to the main program. Since "Help" might be a > common symbol name to export, the developer might choose not to export > to avoid overwriting someone else's Help or becoming a Help that is being > overwritten by someone else. > > In that case, the class should still be available from some prefix: > > MyLib1::Help.Get() ' the Help.module from MyLib1.gambas > > (Or any other kind of prefix, like vendor names as Christof suggested.) > > Regards, > Tobi > What you could have done is defining a unique parent exported class named "Help", with "CREATE STATIC" and create an non-exported class inheriting "Help" in each library (maybe keeping the "Help" name, i.e. reimplement it), then returning a singleton of that class to the caller. So for me that case is not a strong argument for allowing free access to the library namespace from the outside. Or having one name space for each library export. I don't know exactly what you suggest. -- Beno?t Minisini From g4mba5 at gmail.com Thu Nov 15 02:00:15 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 15 Nov 2018 02:00:15 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> Message-ID: <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Le 15/11/2018 ? 01:41, Beno?t Minisini a ?crit?: > > What you could have done is defining a unique parent exported class > named "Help", with "CREATE STATIC" and create an non-exported class > inheriting "Help" in each library (maybe keeping the "Help" name, i.e. > reimplement it), then returning a singleton of that class to the caller. > > So for me that case is not a strong argument for allowing free access to > the library namespace from the outside. Or having one name space for > each library export. I don't know exactly what you suggest. > Sorry it's late for me too, so I didn't see what your problem was exactly. Actually it's not a problem with namespace at all. It's the lack of "library metadata returned by code". At the moment, all metadata needed by Gambas are stored as files in library/component archives, so it's not big deal to extract them. But if you want to return some metadata from a method in a library-independant way, you can't. Your method must be in an exported class, and the exported class name must be predictable. You tell me that you should be able to use the same name, making the difference by prefixing it with the component name (which you call "namespace"), avoiding to have a different class in each library. But the real solution may be that one: assuming that an exported class having the "same" name (not really the same, but marshalled in an unique way) is a class reserved for metadata (the "ME" at the library/component level). Anyway, I don't want a mechanisme that allows to access non-exported classes inside components/libraries. They are not exported. They are private! -- Beno?t Minisini From taboege at gmail.com Thu Nov 15 19:54:15 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 15 Nov 2018 19:54:15 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: <20181115185415.GA1183@highrise.localdomain> On Thu, 15 Nov 2018, Beno?t Minisini wrote: > Le 15/11/2018 ? 01:41, Beno?t Minisini a ?crit?: > > > > What you could have done is defining a unique parent exported class > > named "Help", with "CREATE STATIC" and create an non-exported class > > inheriting "Help" in each library (maybe keeping the "Help" name, i.e. > > reimplement it), then returning a singleton of that class to the caller. > > > > So for me that case is not a strong argument for allowing free access to > > the library namespace from the outside. Or having one name space for > > each library export. I don't know exactly what you suggest. > > > > Sorry it's late for me too, so I didn't see what your problem was exactly. > Apparently it was *very* late for me yesterday. I didn't explain as clearly as I would have liked to. > Actually it's not a problem with namespace at all. > > It's the lack of "library metadata returned by code". > > At the moment, all metadata needed by Gambas are stored as files in > library/component archives, so it's not big deal to extract them. > > But if you want to return some metadata from a method in a > library-independant way, you can't. Your method must be in an exported > class, and the exported class name must be predictable. > > You tell me that you should be able to use the same name, making the > difference by prefixing it with the component name (which you call > "namespace"), avoiding to have a different class in each library. > > But the real solution may be that one: assuming that an exported class > having the "same" name (not really the same, but marshalled in an unique > way) is a class reserved for metadata (the "ME" at the library/component > level). > I didn't mean to hijack Christof's request for namespaces and my example with the Help class wasn't meant as a representative of the whole issue. I don't know if your "metadata" was focused just on getting help from a library. If it wasn't, I didn't get what it was supposed to mean. In general, this is not about getting specific metadata from a library, but about the library providing classes to the user without polluting the global symbol table and risking naming conflicts. [ Though I agree that a Me for libraries sounds intriguing, *especially* to get stuff like help comments programmatically. ] I don't know why I don't see people writing and sharing Gambas libraries. Maybe I don't look around enough (I certainly don't), or maybe there are not enough Gambas programmers. My observation is that languages with a flourishing "ecosystem", as they call it, have namespaces and a package manager with automatic dependency resolution. If a programming community wants to have user libraries that depend on user libraries that depend on user libraries (which might very well pass as a sign of a healthy language), I would expect there to be name clashes when every one of them always exports all the symbols that any of its users might want into a single table. Conversely, the fear of producing such a mess might prevent people from sharing and reusing code. That's what I read into Christof's statement, anyway. Imagine you write a project using gb.web. It exports a class by the name of "Request". I'm sure people can come up with applications where they might want to load another library where having the class name "Request" also makes total sense (maybe they are bridging between CGI and some other software where Request doesn't unambiguously mean CGI request), but merging both classes by inheritance breaks both classes. Should the developer of the user library have in mind that his library might be used together with gb.web and rename his class? Well, gb.web.feed does that by prefixing all classes with an "Rss" -- primitive namespacing. > Anyway, I don't want a mechanisme that allows to access non-exported classes > inside components/libraries. They are not exported. They are private! > Yes, and they should stay private. Looking at my favourite language *with* namespaces, they have an additional distinction for privateness (I know you don't like additional complexity in GamBAS, but here goes:) By default symbols are /private/, like non-Export symbols in Gambas today, they can be /shared/ in which case they are accessible from the namespace they belong to via a namespace::symbol syntax, and they can be /exported/ into the importer's namespace, which is roughly the effect that Export has in Gambas today, except that in Gambas it goes straight into the global symbol table because there are no intermediate namespaces. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Thu Nov 15 23:06:08 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 15 Nov 2018 23:06:08 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: Hello Beno?t, Am 15.11.18 um 02:00 schrieb Beno?t Minisini: > Sorry it's late for me too, so I didn't see what your problem was exactly. Sorry, for me also, currently I have to do a lot of things in my firm. What I meant was namespaces as known from Java, PHP, Perl, Python, C# and other languages. Just an example: In PHP I can use different libraries of other vendors and it does not matter if classes in them have the same names as in my code. In PHP I can use libs from different vendors even when classes in them share the same names. I can write sth like Use \vendor1\Mail as Vendor1Mail Use \vendor2\Mail as Vendor2Mail And then I can use the methods in these classes independently from each other in the same procedure: Vendor1Mail->SendMail($to, $from, $subject, $body) Vendor2Mail->SendMail($subject, $body, $to, $from, $do_encryption) Both classes of different libraries provided by different vendors (vendor1 and vendor2) are called "Mail". They both have a method "SendMail", which does different things, with a different method signature. But I can use both in one procedure, and it does not disturb my code nor does my code disturb code in these libs. Even if I have an own class Mail with a method called "SendMail" I could call it in the same procedure like so: Mail->SendMail($my, $own, $another, $signature) Because "Mail" is a class in the current namespace which is different from "vendor1" or "vendor2". My Class Mail would not been overwritten by the other classes called "Mail" in other libraries nor would mine overwrite other classes. ------------------------------------------------------------------------ Currently I cannot use Gambas libs from other people because there is a high potential for naming collisions. If Gambas had namespaces then: I could give my library with my special sort of Mail.Sendmail to the public and other people could use it as Christofs.Mail.Sendmail but it would not inherit or overwrite their own existing class Mail. And so we all could share code very easily without any naming collisions. This would lead to a "creative explosion" like it happened in other languages earlier. 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 Nov 16 00:02:41 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 16 Nov 2018 00:02:41 +0100 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: OK, let me try to summarize, condense and simplify all that... :-) What you'd like to have is apparently the following: "Export NameSpace" will not export a class to the default global symbol table, but to a specific global symbol table identified by "NameSpace". "NameSpace:Class" will be a new syntax for the class "Class" exported into the global symbol table "NameSpace". The ":" is a good candidate for that syntax, as it does not conflict with the label declaration syntax, which is an identifier always ending with ":". We can imagine a project default namespace, so that you don't have to write "Export NameSpace" in all your classes, but just "Export". "Export Default" will always export to the default global symbol table. All that will slow down the class name resolution, but it is done once by class reference in a class, so it should not be a big deal. Of course all that is just a suggestion, and will not be done in the next version. Regards, -- Beno?t Minisini From chrisml at deganius.de Fri Nov 16 08:19:57 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 16 Nov 2018 08:19:57 +0100 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: Am 16.11.18 um 00:02 schrieb Beno?t Minisini: > OK, let me try to summarize, condense and simplify all that... :-) :-) Great! Thank you! > What you'd like to have is apparently the following: > > "Export NameSpace" will not export a class to the default global symbol > table, but to a specific global symbol table identified by "NameSpace". Yes, something like that, but later on ... > "NameSpace:Class" will be a new syntax for the class "Class" exported > into the global symbol table "NameSpace". The ":" is a good candidate > for that syntax, as it does not conflict with the label declaration > syntax, which is an identifier always ending with ":". Yes, something like that. I know that the decision for identifiers for namespaces in other languages caused a lot of discussions, if ":" works in Gambas easily: Great! > We can imagine a project default namespace, so that you don't have to > write "Export NameSpace" in all your classes, but just "Export". Ok, I think the vendor name in a library is a good candidate for defining the namespace so that all exported classes are available from outside as vendorname:classname We would have to think about whether namespaces should offer the possibility to be organized in hierarchical ways, like filesystems. So for example that later sth like vendorname:db:Orm vendorname:mail:Send could be possible. But also later on ... > "Export Default" will always export to the default global symbol table. Dangerous! I think this should be forbidden in future or at minimum deprecated. It gives the author of a library the ability to destroy foreign code by accident. Am I wrong? > All that will slow down the class name resolution, but it is done once > by class reference in a class, so it should not be a big deal. > > Of course all that is just a suggestion, and will not be done in the > next version. Yes sure, but I think there are two things which could bring Gambas to a higher, more professional level: Testing and namespaces. Maybe this is Gambas 4? Now here is "later on": I had a discussion in a large German community with an expert who has a lot more experience with computer language design than I. He gave me some advices (in German, thanks to deepl.com I am able to cite it in English here): ------------------------------------------------------------------------ You have to set things up in such a way that you can find out at any time what was involved and for what reasons. Baselines: 1. Namespaces are based on domain names. This is the easiest way to avoid name conflicts right from the start. Alternatively you can build your own registry, but this is legally mined territory because of trademark rights and sovereign names (what should the registry do if someone wants to have the namespace "UTF-8"?) 2. Possibility to declare module dependencies. One can orientate oneself on the dependencies of existing systems, e.g. the package administrations of the Linux distros (yum, pkg, dpkg etc.) and Maven. 3. Default policy: Once a module has been released, it must never be changed again. Also no bug fixes - the old version is still needed for any future bug diagnosis. If a new version has to be released, the publisher makes a new version number, which becomes part of the module name. I'm not sure if the Maven policy of allowing you to change the "SNAPSHOT" is good; at the moment I tend to re-version every single compilation and have a policy about which versions will be taken out of circulation under which circumstances. Since the namespace is global, there is more to it than just a little syntax. Translated with www.DeepL.com/Translator ------------------------------------------------------------------------ 1) Is not possible in Gambas because vendor name cannot contain a dot. 2) Since libraries are currently organized in a way that involves names together with version numbers the basics for that are done IMO. 2) and 3) cover a global organization structure and release strategy like one can find realized in https://packagist.org/ for PHP or https://www.cpan.org/ for Perl. 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 adamnt42 at gmail.com Fri Nov 16 09:37:26 2018 From: adamnt42 at gmail.com (Bruce) Date: Fri, 16 Nov 2018 19:07:26 +1030 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: I just hope that these proposed changes will not destroy neither the current nor the proposed pathing mechanism for libraries etc. To explain, we rely heavily on accessing metadata in a "higher" level library from a "lower" one. This, I beleive is exactly the opposite of what is being proposed. To be specific, we use a four level persistence mechanism that hopefully can be explained as a dependency chain as follows, where "higher" is to the left and "lower" to the right. Application --> BOL --> DAL --> PDL BOL is a "business object layer", it knows all about the objects that an application needs to use in a specific domain. DAL is a "data abstraction layer", it knows all about converting persisted data into object state values and vice versa. It also knows how to abstract some pretty complex mappings between object heirarchies and the underlying data model. It provides CRUD mechanisms to the BOL. PDL is a set of "physical data layer" libraries that are switched depending on what persistence mechanism is used. I.e. there is a postgres PDL, a SQLite PDL and an XML PDL. Each of which knows how to store and retrieve persisted data of that ilk. There is possibly a fifth level, just to be complete, below the PDL which is the Gambas components that let us read/write to an actual persistence mechanism. Now as I said, the lower level libraries in the dependency chain depend on metadata that is stored in the higher level libraries. For example the BOL has metadata that maps object properties to conceptual storage data models. If you like, it acts as a sort of entity relational model. The DAL layer needs to access that mapping model so it can implement the ER conversions. It also needs to know from the "Application" layer which specific persistence mechanism to be used and the specific instance of that mechanism. (This way, the application can specify that the data to be used is say in a postgresql database called xyzzy on a particular server or conversely in a postgresql database called plugh on a particular server or for that matter in holes in cheese stored on the moon. However, it has no idea of how the persistence occurs. It just knows that it wants to CRUD a certain object's state). So the DAL plugs in the PDL library it needs for "this particular application" and "that particular BOL". That way we can use two or more BOLs in the same application. Given that it can produce a map between the ERM and a physical data model. AND THAT metadata needs to be made available to the PDL. So each layer needs to access metadata in the next or highest level layer and occasionally in its' own layer. A lot of that metadata is static so we use files stored in each layers archive. The . .. (and ...) mechanisms have worked for us for going on ten years or so. Now I believe this the complete opposite of what Tobi has been talking about here. In his case, he needs "downward" disambiguation (if there is such a word) from a higher level in the dependency chain. In other words from ONE at the higher level to MANY as we go down. What I am talking about is completely the opposite i.e. from one of the MANYs, depending on the instance, to the definitely only ONE of the ones. Sorry to intrude. b From g4mba5 at gmail.com Fri Nov 16 11:34:38 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 16 Nov 2018 11:34:38 +0100 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: <242a40f0-70aa-ca74-ed07-9a2e2fe69452@gmail.com> Le 16/11/2018 ? 08:19, Christof Thalhofer a ?crit?: >> "NameSpace:Class" will be a new syntax for the class "Class" exported >> into the global symbol table "NameSpace". The ":" is a good candidate >> for that syntax, as it does not conflict with the label declaration >> syntax, which is an identifier always ending with ":". > > Yes, something like that. I know that the decision for identifiers for > namespaces in other languages caused a lot of discussions, if ":" works > in Gambas easily: Great! > >> We can imagine a project default namespace, so that you don't have to >> write "Export NameSpace" in all your classes, but just "Export". > > Ok, I think the vendor name in a library is a good candidate for > defining the namespace so that all exported classes are available from > outside as > > vendorname:classname Not really. The vendor is the vendor. The namespace is an arbitrary identifier that may have nothing to do with the vendor. > >> "Export Default" will always export to the default global symbol table. > > Dangerous! > > I think this should be forbidden in future or at minimum deprecated. It > gives the author of a library the ability to destroy foreign code by > accident. > > Am I wrong? Yes. A library will always have the ability to destroy everything, having a global symbol table or not. I won't remove the global symbol table. It will break the old code, and more important, it's the heart of the many Gambas feature and simplicity. > I had a discussion in a large German community with an expert who has a > lot more experience with computer language design than I. He gave me > some advices (in German, thanks to deepl.com I am able to cite it in > English here): > > ------------------------------------------------------------------------ > > You have to set things up in such a way that you can find out at any > time what was involved and for what reasons. > > Baselines: > > 1. Namespaces are based on domain names. This is the easiest way to > avoid name conflicts right from the start. Alternatively you can build > your own registry, but this is legally mined territory because of > trademark rights and sovereign names (what should the registry do if > someone wants to have the namespace "UTF-8"?) The language won't force anything about namespaces and possible conflicts. It's up to another mechanism, if a mechanisme is actually really needed. For example, if you can see with each library all the namespace it exports to, conflicts can easily be detected. We can even imagine the possibility of renaming the namespaces used by a library. > > 2. Possibility to declare module dependencies. One can orientate oneself > on the dependencies of existing systems, e.g. the package > administrations of the Linux distros (yum, pkg, dpkg etc.) and Maven. How is that different from the current dependency mechanism? > > 3. Default policy: Once a module has been released, it must never be > changed again. Also no bug fixes - the old version is still needed for > any future bug diagnosis. If a new version has to be released, the > publisher makes a new version number, which becomes part of the module > name. I'm not sure if the Maven policy of allowing you to change the > "SNAPSHOT" is good; at the moment I tend to re-version every single > compilation and have a policy about which versions will be taken out of > circulation under which circumstances. > > Since the namespace is global, there is more to it than just a little > syntax. I don't see how a language could enforce that. > > Translated with www.DeepL.com/Translator > ------------------------------------------------------------------------ > > 1) Is not possible in Gambas because vendor name cannot contain a dot. > > 2) Since libraries are currently organized in a way that involves names > together with version numbers the basics for that are done IMO. > > 2) and 3) cover a global organization structure and release strategy > like one can find realized in https://packagist.org/ for PHP or > https://www.cpan.org/ for Perl. > > Alles Gute > > Christof Thalhofer > -- Beno?t Minisini From g4mba5 at gmail.com Fri Nov 16 11:36:39 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 16 Nov 2018 11:36:39 +0100 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: Le 16/11/2018 ? 09:37, Bruce a ?crit?: > I just hope that these proposed changes will not destroy neither the > current nor the proposed pathing mechanism for libraries etc. > > To explain, we rely heavily on accessing metadata in a "higher" level > library from a "lower" one. This, I beleive is exactly the opposite of > what is being proposed. > > [...] I won't say that I understand all your mail. :-) I just can say that namespaces are not related to how libraries are searched and found. For me, it's just a way to name classes differently outside of a library from inside. -- Beno?t Minisini From gambas.fr at gmail.com Fri Nov 16 11:42:56 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 16 Nov 2018 11:42:56 +0100 Subject: [Gambas-user] Library and File In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: Le ven. 16 nov. 2018 09:38, Bruce a ?crit : > I just hope that these proposed changes will not destroy neither the > current nor the proposed pathing mechanism for libraries etc. > > To explain, we rely heavily on accessing metadata in a "higher" level > library from a "lower" one. This, I beleive is exactly the opposite of > what is being proposed. > > To be specific, we use a four level persistence mechanism that hopefully > can be explained as a dependency chain as follows, where "higher" is to > the left and "lower" to the right. > > Application --> BOL --> DAL --> PDL > > BOL is a "business object layer", it knows all about the objects that an > application needs to use in a specific domain. > DAL is a "data abstraction layer", it knows all about converting > persisted data into object state values and vice versa. It also knows > how to abstract some pretty complex mappings between object heirarchies > and the underlying data model. It provides CRUD mechanisms to the BOL. > PDL is a set of "physical data layer" libraries that are switched > depending on what persistence mechanism is used. I.e. there is a > postgres PDL, a SQLite PDL and an XML PDL. Each of which knows how to > store and retrieve persisted data of that ilk. > > There is possibly a fifth level, just to be complete, below the PDL > which is the Gambas components that let us read/write to an actual > persistence mechanism. > > Now as I said, the lower level libraries in the dependency chain depend > on metadata that is stored in the higher level libraries. For example > the BOL has metadata that maps object properties to conceptual storage > data models. If you like, it acts as a sort of entity relational model. > The DAL layer needs to access that mapping model so it can implement the > ER conversions. It also needs to know from the "Application" layer which > specific persistence mechanism to be used and the specific instance of > that mechanism. (This way, the application can specify that the data to > be used is say in a postgresql database called xyzzy on a particular > server or conversely in a postgresql database called plugh on a > particular server or for that matter in holes in cheese stored on the > moon. However, it has no idea of how the persistence occurs. It just > knows that it wants to CRUD a certain object's state). > > So the DAL plugs in the PDL library it needs for "this particular > application" and "that particular BOL". That way we can use two or more > BOLs in the same application. Given that it can produce a map between > the ERM and a physical data model. AND THAT metadata needs to be made > available to the PDL. > > So each layer needs to access metadata in the next or highest level > layer and occasionally in its' own layer. A lot of that metadata is > static so we use files stored in each layers archive. The . .. (and ...) > mechanisms have worked for us for going on ten years or so. > > Now I believe this the complete opposite of what Tobi has been talking > about here. In his case, he needs "downward" disambiguation (if there is > such a word) from a higher level in the dependency chain. In other words > from ONE at the higher level to MANY as we go down. What I am talking > about is completely the opposite i.e. from one of the MANYs, depending > on the instance, to the definitely only ONE of the ones. > > Sorry to intrude. > b > Sorry but I don't really understand the problem between your impressive work and the namespace idea. In your case you can use a specific space for all your class or use again the global namespacing which is a bad idea because it will be reserved to the gambas official libs.. Yes I'm a vinegrower ... so I've maybe missed something (too many alcohol in air in my distillery) ? Regards, Fabien Bodard > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Nov 17 11:15:36 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 17 Nov 2018 11:15:36 +0100 Subject: [Gambas-user] Library and File In-Reply-To: <242a40f0-70aa-ca74-ed07-9a2e2fe69452@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <242a40f0-70aa-ca74-ed07-9a2e2fe69452@gmail.com> Message-ID: Hi, Am 16.11.18 um 11:34 schrieb Beno?t Minisini: >> Ok, I think the vendor name in a library is a good candidate for >> defining the namespace so that all exported classes are available from >> outside as >> >> vendorname:classname > > Not really. The vendor is the vendor. The namespace is an arbitrary > identifier that may have nothing to do with the vendor. But in the current Gambas design in parts the vendor string plays a similar role like namespaces do in other languages. It plays a important role in the game "how libraries are found" and "how libraries of different namespaces are separated from each other" In PHP (this is a language I know a little) foreign libraries are searched in the (PHP-) projects path under the directory "vendor". For example: christof at tof-x230 ~/programming/web/xyz.com/php ?master? ? find -maxdepth 2 | grep vendor ./vendor ./vendor/phpunit ./vendor/symfony ./vendor/react ./vendor/pear ./vendor/pear-pear.php.net ./vendor/phpdocumentor ./vendor/zendframework ./vendor/webmozart ./vendor/michelf ./vendor/illuminate ... If you look at Java there is a similar organization. But there it is organized by domainnames. Namespaces are used to separate things (files, classes) from each other not only in code but also in other organization units like filesystems. And afterwards in the community. So ... as you decided to separate libraries in /usr/lib/gambas3/ by vendorname I immediately thought of namespaces. >> Am I wrong? > > Yes. A library will always have the ability to destroy everything, > having a global symbol table or not. Yes I was wrong. >> I had a discussion in a large German community with an expert who has a >> lot more experience with computer language design than I. He gave me >> some advices (in German, thanks to deepl.com I am able to cite it in >> English here): >> >> ------------------------------------------------------------------------ >> >> You have to set things up in such a way that you can find out at any >> time what was involved and for what reasons. >> >> Baselines: >> >> 1. Namespaces are based on domain names. This is the easiest way to >> avoid name conflicts right from the start. Alternatively you can build >> your own registry, but this is legally mined territory because of >> trademark rights and sovereign names (what should the registry do if >> someone wants to have the namespace "UTF-8"?) > > The language won't force anything about namespaces and possible > conflicts. It's up to another mechanism, if a mechanisme is actually > really needed. Yes thats right. But: If a vendor name like "gambas.net" isn't allowed (as it is now in the IDE at minimum) there is no way to organize namespaces similar to domainnames later. > For example, if you can see with each library all the namespace it > exports to, conflicts can easily be detected. Yes, locally, but not global. The expert I talked with had a more global view on namespaces. Also a political. As with namespaces libs potentially are "in the wild" later, someone could stand up and say "Stop! This is my name! Don't use it or pay for it!". Bad if the lib is important. This cannot happen with domainnames. He gave us the advice to think about that before we implement namespaces. > We can even imagine the > possibility of renaming the namespaces used by a library. Yes sure. Namespaces and even classes could be renamed (locally, in the language). PHP does this like so: use LongNamespaceString\LongerClassNameString as SmallName >> 2. Possibility to declare module dependencies. One can orientate oneself >> on the dependencies of existing systems, e.g. the package >> administrations of the Linux distros (yum, pkg, dpkg etc.) and Maven. > > How is that different from the current dependency mechanism? I think not. I think the current mechanism is sufficient (I wrote that at the end of my last mail). I must admit that I constantly work with a lot of libraries but I do not really understand whats going on under the hood. I did not read the code. >> 3. Default policy: Once a module has been released, it must never be >> changed again. Also no bug fixes - the old version is still needed for >> any future bug diagnosis. If a new version has to be released, the >> publisher makes a new version number, which becomes part of the module >> name. I'm not sure if the Maven policy of allowing you to change the >> "SNAPSHOT" is good; at the moment I tend to re-version every single >> compilation and have a policy about which versions will be taken out of >> circulation under which circumstances. >> >> Since the namespace is global, there is more to it than just a little >> syntax. > > I don't see how a language could enforce that. Why not with sha2 hashes? With namespaces we all can share code much more easily because we have no name clashes any more. So we can build mechanisms to deploy common available libs and to integrate them in the own project. So there must be a way to ensure that namespace/lib/version defintely is an atom. A component could do this for example. Imagine a "Export Lib" button which packs a library together with a sha2 hash over the whole project. And a "Import Lib" Button on the other side which verifies that the lib is clean (unchanged) and install it or update the predecessor. 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 hans at gambas-buch.de Sat Nov 17 13:49:07 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sat, 17 Nov 2018 13:49:07 +0100 Subject: [Gambas-user] Install a self-developed component In-Reply-To: References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> Message-ID: <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> Hello, there, I installed Gambas 3.11.3 from the original sources. Unfortunately it is no longer possible to install a self-developed component. It is no problem to create an installation package. The problem occurs when I install the deb file. I get the error message: /Error: Dependency cannot be fulfilled: gambas3-runtime (>=3.11)/. What now - what to do? Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sat Nov 17 16:52:55 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 17 Nov 2018 10:52:55 -0500 Subject: [Gambas-user] Install a self-developed component In-Reply-To: <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> Message-ID: <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> Hans, Do you mean that you *compiled and* installed Gambas from the source files at GitLab (https://gitlab.com/gambas/gambas)? If so, that version should be 3.11.90. To what sources are you referring? If you compiled Gambas, is it possible that there is an earlier version (<3.11) still on the system? ___ Lee On 11/17/18 7:49 AM, Hans Lehmann wrote: > Hello, > > there, I installed Gambas 3.11.3 from the original sources. Unfortunately it is no longer possible to install a self-developed > component. It is no problem to create an installation package. The problem occurs when I install the deb file. I get the error > message: /Error: Dependency cannot be fulfilled: gambas3-runtime (>=3.11)/. What now - what to do? > > Yours sincerely > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From Karl.Reinl at Fen-Net.de Sat Nov 17 17:36:30 2018 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Sat, 17 Nov 2018 17:36:30 +0100 Subject: [Gambas-user] ScrollView problems since it was rewritten in Gambas Message-ID: <1542472590.7821.67.camel@Scenic.local> Salut Beno?t, when I designed on a ScrollView before ( Gambas <= 3.11.90 12c0ebda4 (master)) and asked Object.Type(item.Parent) I got "ScrollView". Now the same with : Gambas > 3.11.90 12c0ebda4 (master) Object.Type(item.Parent) I get "Panel", Object.Type(item.Parent.Parent) I get "DrawingArea", Object.Type(item.Parent.Parent.Parent) finally gives "ScrollView" But my Parent has to be found with Object.Type(item.Parent) like before, no? -- Amicalement Charlie From g4mba5 at gmail.com Sat Nov 17 17:53:19 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 17 Nov 2018 17:53:19 +0100 Subject: [Gambas-user] ScrollView problems since it was rewritten in Gambas In-Reply-To: <1542472590.7821.67.camel@Scenic.local> References: <1542472590.7821.67.camel@Scenic.local> Message-ID: Le 17/11/2018 ? 17:36, Charlie Reinl a ?crit?: > Salut Beno?t, > > when I designed on a ScrollView before ( Gambas <= 3.11.90 12c0ebda4 (master)) > and asked Object.Type(item.Parent) I got "ScrollView". > > Now the same with : Gambas > 3.11.90 12c0ebda4 (master) > Object.Type(item.Parent) I get "Panel", > Object.Type(item.Parent.Parent) I get "DrawingArea", > Object.Type(item.Parent.Parent.Parent) finally gives "ScrollView" > > But my Parent has to be found with Object.Type(item.Parent) like > before, no? > It's normal, as soon as a container is rewritten in Gambas. You see the internal structure. Why is it a problem for you? -- Beno?t Minisini From karl.reinl at fen-net.de Sat Nov 17 18:29:03 2018 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 17 Nov 2018 18:29:03 +0100 Subject: [Gambas-user] ScrollView problems since it was rewritten in Gambas In-Reply-To: References: <1542472590.7821.67.camel@Scenic.local> Message-ID: <1542475743.22512.14.camel@Scenic.local> Am Samstag, den 17.11.2018, 17:53 +0100 schrieb Beno?t Minisini: > Le 17/11/2018 ? 17:36, Charlie Reinl a ?crit : > > Salut Beno?t, > > > > when I designed on a ScrollView before ( Gambas <= 3.11.90 12c0ebda4 (master)) > > and asked Object.Type(item.Parent) I got "ScrollView". > > > > Now the same with : Gambas > 3.11.90 12c0ebda4 (master) > > Object.Type(item.Parent) I get "Panel", > > Object.Type(item.Parent.Parent) I get "DrawingArea", > > Object.Type(item.Parent.Parent.Parent) finally gives "ScrollView" > > > > But my Parent has to be found with Object.Type(item.Parent) like > > before, no? > > > > It's normal, as soon as a container is rewritten in Gambas. You see the > internal structure. > > Why is it a problem for you? > yes, my project loops through my forms elements and queries theirs properties, here a locked state, but Panel and DrawingArea don't have my locked property, nor my GET method. And for me Parent means Parent and not their home where they life, and looking in the rooms to find them. -- Amicalement Charlie From bagonergi at gmail.com Sun Nov 18 10:15:57 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 18 Nov 2018 10:15:57 +0100 Subject: [Gambas-user] I look for a dragging of GridView scrollbar more linear Message-ID: It's been more than four days that I try to make the dragging of GridView scrollbar more linear, but I have not succeeded. I try to explain what I would like to get: I need to load millions of records into the grid and so far so good, I load the grid with 50000 records step by step with SELECT LIMIT and with the help of a vector. If I scroll the grid with the mouse wheel or with the arrow keys on the scrollbar, everything good working. Unfortunately, the scroll bar slider every time I reload the 50000 new records jumps up preventing proper dragging with the mouse. I tried to form the complete grid, but I can not load it with the step by step (I always get 'out of bound' error). I enclose a demonstration project that, when opening it, create a SQLite database in User.Home &/ Application.Name and loads a table (user) with 600000 records, you need to be patient when you first open it. Any help is appreciated Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestDBspeedy-0.0.1.tar.gz Type: application/gzip Size: 15515 bytes Desc: not available URL: From hans at gambas-buch.de Sun Nov 18 11:29:28 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 18 Nov 2018 11:29:28 +0100 Subject: [Gambas-user] Install a self-developed component In-Reply-To: <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> Message-ID: <9258bee3-3c69-8958-7999-c5bf68dba93d@gambas-buch.de> Am 17.11.18 um 16:52 schrieb T Lee Davidson: > Hans, > > Do you mean that you*compiled and* installed Gambas from the source files at GitLab (https://gitlab.com/gambas/gambas)? Yes. > If so, that version should be 3.11.90. To what sources are you referring? It's correkt. > If you compiled Gambas, is it possible that there is an earlier version (<3.11) still on the system? No. Hello Lee, I'll try to tie up a package myself. But I will gladly accept that. I can't find another way! Yours sincerely Hans From charlie at cogier.com Sun Nov 18 17:49:45 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 18 Nov 2018 16:49:45 +0000 Subject: [Gambas-user] SelectedText Message-ID: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> Hi, Can you tell me if there is a bug here. Run the attached program, select some text, right click and select "Display". The "Display" text is not what is selected. If 'qt4' of 'qt5' is used it works as expected but not with 'gtk2' or 'gtk3' Thanks, Charlie [System] Gambas=3.11.4 OperatingSystem=Linux Kernel=4.15.0-39-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=CINNAMON Theme=Gtk Language=en_GB.UTF-8 Memory=7848M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.73.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.5 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.8.9 CLUTTER_PAINT=continuous-redraw DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=en_GB GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=en_GB.UTF-8 LANGUAGE=en_GB LC_ADDRESS=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PAPERSIZE=a4 PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1195,unix/:/tmp/.ICE-unix/1195 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1260 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- A non-text attachment was scrubbed... Name: SelectedText-0.0.1.tar.gz Type: application/gzip Size: 11826 bytes Desc: not available URL: From clhamilto at gmail.com Mon Nov 19 03:51:38 2018 From: clhamilto at gmail.com (Curtis Hamilton) Date: Sun, 18 Nov 2018 21:51:38 -0500 Subject: [Gambas-user] Gambas3 Will No Startup Message-ID: Building Gambas Version 3.11.90 on FreeBSD/PowerPC64. After build and install I get the main window and popup error below: This application has raised an unexpected error and must abort. [6] Type mismatch: wanted Picture, got String instead. CCoolButton._new.32 From stevjensen at aol.com Mon Nov 19 05:04:01 2018 From: stevjensen at aol.com (Steve) Date: Sun, 18 Nov 2018 23:04:01 -0500 Subject: [Gambas-user] open named pipe never returns In-Reply-To: <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> Message-ID: <61b33415-3c9f-99bc-e71b-d33d661c716f@aol.com> The statement hfile = open pipe "/tmp/mypipe01" for watch? (or for read) never returns (acts like deadlock). It does actually create the pipe. Does gambas use fopen internally for access?? I get the same behavior in C if fopen is used instead of open. There is a restriction: *Restriction:* If fopen() is used to open named pipes in a multi-threaded environment, a deadlock will occur. This deadlock is caused by a named pipe waiting for the other end of the pipe to be opened, while still holding the fopen() multi-thread mutex. To prevent this deadlock, use open() to open the named pipe, instead of fopen(). -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Mon Nov 19 10:20:57 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 19 Nov 2018 10:20:57 +0100 Subject: [Gambas-user] open named pipe never returns In-Reply-To: <61b33415-3c9f-99bc-e71b-d33d661c716f@aol.com> References: <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> <61b33415-3c9f-99bc-e71b-d33d661c716f@aol.com> Message-ID: <20181119092057.GA895@highrise.localdomain> On Sun, 18 Nov 2018, Steve via User wrote: > The statement > > hfile = open pipe "/tmp/mypipe01" for watch? (or for read) never returns > (acts like deadlock). > > It does actually create the pipe. > > Does gambas use fopen internally for access?? I get the same behavior in C > if fopen is used instead of open. > > There is a restriction: > > *Restriction:* If fopen() is used to open named pipes in a multi-threaded > environment, a deadlock will occur. This deadlock is caused by a named pipe > waiting for the other end of the pipe to be opened, while still holding the > fopen() multi-thread mutex. To prevent this deadlock, use open() to open the > named pipe, instead of fopen(). > That is not the reason as Gambas is not multi-threaded, but the reason is inside that text you quoted. Opening a named pipe blocks the process until the pipe is opened for writing from somewhere else. A blocking operation is very different from a deadlock. Your program can advance, but it depends on the mercy (or your instruction) of another process to open the other end of the pipe. This is the relevant excerpt from the Gambas documentation: However, a pipe has to be open at both ends simultaneously, before you can proceed to do any input or output operations on it. Opening a pipe for reading normally blocks until some other process opens the same pipe for writing. It is actually an excerpt of the mkfifo(3) man page, so this is completely normal behaviour. Internally, Gambas uses mkfifo() followed by a normal open() to create a pipe Stream object, to answer your actual question, and not what I think your question should have been :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Mon Nov 19 10:48:21 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 19 Nov 2018 10:48:21 +0100 Subject: [Gambas-user] I look for a dragging of GridView scrollbar more linear In-Reply-To: References: Message-ID: Il giorno dom 18 nov 2018 alle ore 10:15 Gianluigi ha scritto: > It's been more than four days that I try to make the dragging of GridView > scrollbar more linear, but I have not succeeded. > I try to explain what I would like to get: > I need to load millions of records into the grid and so far so good, I > load the grid with 50000 records step by step with SELECT LIMIT and with > the help of a vector. > If I scroll the grid with the mouse wheel or with the arrow keys on the > scrollbar, everything good working. > Unfortunately, the scroll bar slider every time I reload the 50000 new > records jumps up preventing proper dragging with the mouse. > I tried to form the complete grid, but I can not load it with the step by > step (I always get 'out of bound' error). > > I enclose a demonstration project that, when opening it, create a SQLite > database in User.Home &/ Application.Name and loads a table (user) with > 600000 records, you need to be patient when you first open it. > Any help is appreciated > > Regards > Gianluigi > I have an idea, it is likely that _Data event uses "LIMIT" within it. In this case the problem is the vector. Now I am engaged in another job but as soon as I have time I will verify. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Nov 19 12:56:34 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 19 Nov 2018 12:56:34 +0100 Subject: [Gambas-user] ScrollView problems since it was rewritten in Gambas In-Reply-To: <1542475743.22512.14.camel@Scenic.local> References: <1542472590.7821.67.camel@Scenic.local> <1542475743.22512.14.camel@Scenic.local> Message-ID: The both are logical... In the real life a qt component don't show it's internal... In Gambas yes ... but how to get the widget root ? In my mind if I put something in a container .parent must return the global container ... not it's structure. If I put myObject in a MyContainer ... MyObject.Parent is a MyContainer ... no ? Maybe it need two property to manage this case ... A way to get the class container (MyContainer) and a way to get the true container (panel) Le sam. 17 nov. 2018 ? 18:30, Karl Reinl a ?crit : > Am Samstag, den 17.11.2018, 17:53 +0100 schrieb Beno?t Minisini: > > Le 17/11/2018 ? 17:36, Charlie Reinl a ?crit : > > > Salut Beno?t, > > > > > > when I designed on a ScrollView before ( Gambas <= 3.11.90 12c0ebda4 > (master)) > > > and asked Object.Type(item.Parent) I got "ScrollView". > > > > > > Now the same with : Gambas > 3.11.90 12c0ebda4 (master) > > > Object.Type(item.Parent) I get "Panel", > > > Object.Type(item.Parent.Parent) I get "DrawingArea", > > > Object.Type(item.Parent.Parent.Parent) finally gives "ScrollView" > > > > > > But my Parent has to be found with Object.Type(item.Parent) like > > > before, no? > > > > > > > It's normal, as soon as a container is rewritten in Gambas. You see the > > internal structure. > > > > Why is it a problem for you? > > > > yes, my project loops through my forms elements and queries theirs > properties, here a locked state, but Panel and DrawingArea don't have > my locked property, nor my GET method. > > And for me Parent means Parent and not their home where they life, and > looking in the rooms to find them. > > -- > Amicalement > Charlie > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Nov 19 15:14:10 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 19 Nov 2018 09:14:10 -0500 Subject: [Gambas-user] SelectedText In-Reply-To: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> References: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> Message-ID: <1880d4db-e518-d3c8-8873-f64bd3beda89@gmail.com> On 11/18/18 11:49 AM, Charlie Ogier wrote: > Hi, > > Can you tell me if there is a bug here. Run the attached program, select some text, right click and select "Display". > > The "Display" text is not what is selected. If 'qt4' of 'qt5' is used it works as expected but not with 'gtk2' or 'gtk3' > > Thanks, > > Charlie > > [System] > Gambas=3.11.4 > OperatingSystem=Linux > Kernel=4.15.0-39-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=CINNAMON > Theme=Gtk > Language=en_GB.UTF-8 > Memory=7848M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2200.30 > OpenGL=libGL.so.1.0.0 > Poppler=libpoppler.so.73.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.9.5 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CINNAMON_VERSION=3.8.9 > CLUTTER_PAINT=continuous-redraw > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=en_GB > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=en_GB.UTF-8 > LANGUAGE=en_GB > LC_ADDRESS=en_GB.UTF-8 > LC_IDENTIFICATION=en_GB.UTF-8 > LC_MEASUREMENT=en_GB.UTF-8 > LC_MONETARY=en_GB.UTF-8 > LC_NAME=en_GB.UTF-8 > LC_NUMERIC=en_GB.UTF-8 > LC_PAPER=en_GB.UTF-8 > LC_TELEPHONE=en_GB.UTF-8 > LC_TIME=en_GB.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PAPERSIZE=a4 > PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1195,unix/:/tmp/.ICE-unix/1195 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1260 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > It works as expected here with both GTK2 and GTK3. ___ Lee [System] Gambas=3.11.90 6303762ff (master) OperatingSystem=Linux Kernel=4.4.159-73-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.7 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-txC0OFCdZ3,guid=3f6002637ea2a0c7794764635bf2b8ca 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-zpTCy0/S.gpg-agent:2396: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/2458,unix/:/tmp/.ICE-unix/2458 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=2395 SSH_ASKPASS=/usr/lib/ssh/ksshaskpass SSH_AUTH_SOCK=/tmp/ssh-P4cXC1EF4hrJ/agent.2288 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=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes _=/usr/bin/kwrapper5 From stevjensen at aol.com Mon Nov 19 17:05:06 2018 From: stevjensen at aol.com (Steve) Date: Mon, 19 Nov 2018 11:05:06 -0500 Subject: [Gambas-user] Fwd: Re: open named pipe never returns In-Reply-To: <0f0c7600-5044-dc2e-658e-e1b2d142c264@aol.com> References: <0f0c7600-5044-dc2e-658e-e1b2d142c264@aol.com> Message-ID: <1bf4e0d4-375f-21ec-c39e-7ec3b5eab37e@aol.com> Yes it works according to? your documentation. The problem is "for watch" This says to me that you should be able to open the pipe and continue processing, ie->nonblock. Subsequently when data is available to read the (event? or function) "read_file" should be triggered. On 11/19/2018 2:16 AM, Hans Lehmann wrote: > Hello Steve. > > Look here > 'https://www.gambas-buch.de/doku.php?id=k6:k6.2:k6.2.2:start' for text > - only in german - and for a project. > > Greetings > > Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From stevjensen at aol.com Mon Nov 19 17:05:44 2018 From: stevjensen at aol.com (Steve) Date: Mon, 19 Nov 2018 11:05:44 -0500 Subject: [Gambas-user] open named pipe never returns In-Reply-To: <9cfe3683-370e-88c9-71ae-ab72cd3be155@aol.com> References: <9cfe3683-370e-88c9-71ae-ab72cd3be155@aol.com> Message-ID: <103b6350-8dff-6e63-65f3-53e1ce8e75e5@aol.com> -------- Forwarded Message -------- Subject: Re: [Gambas-user] open named pipe never returns Date: Mon, 19 Nov 2018 10:33:42 -0500 From: Steve To: Tobias Boege Ok. The question is: How do I randomly communicate back to gambas with data? Perhaps more accurately: How do I raise an event in gambas from C library code. From an extern C function I can callback to gambas while the function is being called from gambas. When this same external C function gets a signal it crashes with a segmentation fault(11) when attempting to call the same gambas function again and from the same thread the initial successful call was made from. Note: This works quite nicely in VB6? with the caveat that you can not do anything to the code while the callback trigger is active. It still executes regardless of if the IDE is in run or stop mode. On 11/19/2018 4:20 AM, Tobias Boege wrote: > On Sun, 18 Nov 2018, Steve via User wrote: >> The statement >> >> hfile = open pipe "/tmp/mypipe01" for watch? (or for read) never returns >> (acts like deadlock). >> >> It does actually create the pipe. >> >> Does gambas use fopen internally for access?? I get the same behavior in C >> if fopen is used instead of open. >> >> There is a restriction: >> >> *Restriction:* If fopen() is used to open named pipes in a multi-threaded >> environment, a deadlock will occur. This deadlock is caused by a named pipe >> waiting for the other end of the pipe to be opened, while still holding the >> fopen() multi-thread mutex. To prevent this deadlock, use open() to open the >> named pipe, instead of fopen(). >> > That is not the reason as Gambas is not multi-threaded, but the reason is > inside that text you quoted. Opening a named pipe blocks the process until > the pipe is opened for writing from somewhere else. A blocking operation > is very different from a deadlock. Your program can advance, but it depends > on the mercy (or your instruction) of another process to open the other > end of the pipe. > > This is the relevant excerpt from the Gambas documentation: > > However, a pipe has to be open at both ends simultaneously, > before you can proceed to do any input or output operations > on it. Opening a pipe for reading normally blocks until some > other process opens the same pipe for writing. > > It is actually an excerpt of the mkfifo(3) man page, so this is completely > normal behaviour. Internally, Gambas uses mkfifo() followed by a normal > open() to create a pipe Stream object, to answer your actual question, > and not what I think your question should have been :-) > > Regards, > Tobi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Mon Nov 19 18:47:12 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 19 Nov 2018 18:47:12 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> Message-ID: Am 14.11.2018 um 20:16 schrieb gen braga: > Paste your??/etc/apt/sources.list > > > > > Em qua, 14 de nov de 2018 17:07, T Lee Davidson > escreveu: > > And for those who may not know how to use an online translator: > > # apt-get install gambas3-script > Package lists are read ... Finished > Dependency tree is built up. > Status information is read in ... Finished > Package gambas3-script is not available, but is made by another package > Referenced. This may mean that the package is missing, that it is > superseded > Or is only available from another source. > > E: There is no installation candidate for package? gambas3-script ?. > > > ___ > Lee > > > On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > > Here you are: > > > > # apt-get install gambas3-script > > Paketlisten werden gelesen... Fertig > > Abh?ngigkeitsbaum wird aufgebaut. > > Statusinformationen werden eingelesen.... Fertig > > Paket gambas3-script ist nicht verf?gbar, wird aber von einem > anderen Paket > > referenziert. Das kann hei?en, dass das Paket fehlt, dass es abgel?st > > wurde oder nur aus einer anderen Quelle verf?gbar ist. > > > > E: F?r Paket ?gambas3-script? existiert kein Installationskandidat. > > > > > > Am 13.11.2018 um 18:30 schrieb gen braga: > >> Could you paste here the output error? > >> > >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert > > > escreveu: > >> > >> ??? Now I tried it, but it said something like "it is in the > list, but the > >> ??? package isn't there". > >> > >> ??? So I tried to simply copy the old version binary and link > from the > >> ??? older > >> ??? server, and it runs for now. > >> > >> ??? Regards > >> ??? Rolf > >> > >> > >> ??? Am 13.11.2018 um 11:44 schrieb gen braga: > >> ???? > Did you try apt-get install gambas3-script? > >> ???? > > >> ???? > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > >> ??? > > > >> ???? > > >> escreveu: > >> ???? > > >> ???? >? ? ?Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > >> ???? >? ? ? > Now I am on Ubuntu Mate. I installed Gambas the > way you > >> ???? >? ? ?described, i.e. > >> ???? >? ? ? > via your repos, everything runs fine, but the > scripter is > >> ??? missing. > >> ???? >? ? ? > > >> ???? >? ? ? > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? > >> ???? >? ? ? > > >> ???? >? ? ? > There is gba, gbi, gbr, gbx... but no gbs3. > >> ???? >? ? ? > > >> ???? >? ? ? > Where has it gone? :) > >> ???? >? ? ? > > >> ???? >? ? ? > Thanks for any help! > >> ???? >? ? ? > > >> ???? >? ? ? > Rolf > >> ???? >? ? ? > > >> ???? >? ? ? > ----[ Gambas mailing-list is hosted by > >> ???? > https://www.hostsharing.net ]---- > >> ???? >? ? ? > > >> ???? >? ? ? > > >> ???? > > >> ???? >? ? ?Nobody knows it? I just looked it up on my older > system, there is > >> ???? > > >> ???? >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" to it. > >> ???? > > >> ???? >? ? ?So, is it just an additional program to be installed > >> ??? separately? I > >> ???? >? ? ?couldn't find anything in the Software Farm. > >> ???? > > >> ???? >? ? ?Well, if nobody knows, I will try to just copy the > thing from > >> ??? the old > >> ???? >? ? ?system, but there might be side-effects... > >> ???? > > >> ???? >? ? ?Regards > >> ???? >? ? ?Rolf > >> ???? > > >> ???? > > >> ???? >? ? ?----[ Gambas mailing-list is hosted by > >> https://www.hostsharing.net ]---- > >> ???? > > >> ???? > > >> ???? > > >> ???? > > >> ???? > ----[ Gambas mailing-list is hosted by > >> https://www.hostsharing.net ]---- > >> ???? > > >> > >> > >> ??? ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > >> > >> > >> > >> > >> ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > >> > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From rwe-sse at osnanet.de Mon Nov 19 18:49:20 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 19 Nov 2018 18:49:20 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> Message-ID: <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> Sorry, didn't see your answer. Am 14.11.2018 um 20:16 schrieb gen braga: > Paste your??/etc/apt/sources.list > > Here you are, hope you can see where the problem is: # deb cdrom:[Ubuntu-MATE 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main multiverse restricted universe # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://de.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates main restricted # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://de.archive.ubuntu.com/ubuntu/ bionic universe # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://de.archive.ubuntu.com/ubuntu/ bionic multiverse # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://de.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner deb http://security.ubuntu.com/ubuntu bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted deb http://security.ubuntu.com/ubuntu bionic-security universe # deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://security.ubuntu.com/ubuntu bionic-security multiverse # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse > > > Em qua, 14 de nov de 2018 17:07, T Lee Davidson > escreveu: > > And for those who may not know how to use an online translator: > > # apt-get install gambas3-script > Package lists are read ... Finished > Dependency tree is built up. > Status information is read in ... Finished > Package gambas3-script is not available, but is made by another package > Referenced. This may mean that the package is missing, that it is > superseded > Or is only available from another source. > > E: There is no installation candidate for package? gambas3-script ?. > > > ___ > Lee > > > On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > > Here you are: > > > > # apt-get install gambas3-script > > Paketlisten werden gelesen... Fertig > > Abh?ngigkeitsbaum wird aufgebaut. > > Statusinformationen werden eingelesen.... Fertig > > Paket gambas3-script ist nicht verf?gbar, wird aber von einem > anderen Paket > > referenziert. Das kann hei?en, dass das Paket fehlt, dass es abgel?st > > wurde oder nur aus einer anderen Quelle verf?gbar ist. > > > > E: F?r Paket ?gambas3-script? existiert kein Installationskandidat. > > > > > > Am 13.11.2018 um 18:30 schrieb gen braga: > >> Could you paste here the output error? > >> > >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert > > > escreveu: > >> > >> ??? Now I tried it, but it said something like "it is in the > list, but the > >> ??? package isn't there". > >> > >> ??? So I tried to simply copy the old version binary and link > from the > >> ??? older > >> ??? server, and it runs for now. > >> > >> ??? Regards > >> ??? Rolf > >> > >> > >> ??? Am 13.11.2018 um 11:44 schrieb gen braga: > >> ???? > Did you try apt-get install gambas3-script? > >> ???? > > >> ???? > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > >> ??? > > > >> ???? > > >> escreveu: > >> ???? > > >> ???? >? ? ?Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > >> ???? >? ? ? > Now I am on Ubuntu Mate. I installed Gambas the > way you > >> ???? >? ? ?described, i.e. > >> ???? >? ? ? > via your repos, everything runs fine, but the > scripter is > >> ??? missing. > >> ???? >? ? ? > > >> ???? >? ? ? > It should be? /usr/bin/env gbs3, or /usr/bin/gbs3? > >> ???? >? ? ? > > >> ???? >? ? ? > There is gba, gbi, gbr, gbx... but no gbs3. > >> ???? >? ? ? > > >> ???? >? ? ? > Where has it gone? :) > >> ???? >? ? ? > > >> ???? >? ? ? > Thanks for any help! > >> ???? >? ? ? > > >> ???? >? ? ? > Rolf > >> ???? >? ? ? > > >> ???? >? ? ? > ----[ Gambas mailing-list is hosted by > >> ???? > https://www.hostsharing.net ]---- > >> ???? >? ? ? > > >> ???? >? ? ? > > >> ???? > > >> ???? >? ? ?Nobody knows it? I just looked it up on my older > system, there is > >> ???? > > >> ???? >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" to it. > >> ???? > > >> ???? >? ? ?So, is it just an additional program to be installed > >> ??? separately? I > >> ???? >? ? ?couldn't find anything in the Software Farm. > >> ???? > > >> ???? >? ? ?Well, if nobody knows, I will try to just copy the > thing from > >> ??? the old > >> ???? >? ? ?system, but there might be side-effects... > >> ???? > > >> ???? >? ? ?Regards > >> ???? >? ? ?Rolf > >> ???? > > >> ???? > > >> ???? >? ? ?----[ Gambas mailing-list is hosted by > >> https://www.hostsharing.net ]---- > >> ???? > > >> ???? > > >> ???? > > >> ???? > > >> ???? > ----[ Gambas mailing-list is hosted by > >> https://www.hostsharing.net ]---- > >> ???? > > >> > >> > >> ??? ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > >> > >> > >> > >> > >> ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > >> > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From charlie at cogier.com Mon Nov 19 18:33:24 2018 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 19 Nov 2018 17:33:24 +0000 Subject: [Gambas-user] SelectedText In-Reply-To: <1880d4db-e518-d3c8-8873-f64bd3beda89@gmail.com> References: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> <1880d4db-e518-d3c8-8873-f64bd3beda89@gmail.com> Message-ID: <8442e91d-686b-41ad-8e9c-44789639c284@cogier.com> Thanks for the reply Lee. I have created a video to show the problem which you can see here. On 19/11/2018 14:14, T Lee Davidson wrote: > On 11/18/18 11:49 AM, Charlie Ogier wrote: >> Hi, >> >> Can you tell me if there is a bug here. Run the attached program, select some text, right click and select "Display". >> >> The "Display" text is not what is selected. If 'qt4' of 'qt5' is used it works as expected but not with 'gtk2' or 'gtk3' >> >> Thanks, >> >> Charlie >> >> [System] >> Gambas=3.11.4 >> OperatingSystem=Linux >> Kernel=4.15.0-39-generic >> Architecture=x86_64 >> Distribution=Linux Mint 19 Tara >> Desktop=CINNAMON >> Theme=Gtk >> Language=en_GB.UTF-8 >> Memory=7848M >> >> [Libraries] >> Cairo=libcairo.so.2.11510.0 >> Curl=libcurl.so.4.5.0 >> DBus=libdbus-1.so.3.19.4 >> GStreamer=libgstreamer-1.0.so.0.1401.0 >> GTK+2=libgtk-x11-2.0.so.0.2400.32 >> GTK+3=libgtk-3.so.0.2200.30 >> OpenGL=libGL.so.1.0.0 >> Poppler=libpoppler.so.73.0.0 >> QT4=libQtCore.so.4.8.7 >> QT5=libQt5Core.so.5.9.5 >> SDL=libSDL-1.2.so.0.11.4 >> SQLite=libsqlite3.so.0.8.6 >> >> [Environment] >> CINNAMON_VERSION=3.8.9 >> CLUTTER_PAINT=continuous-redraw >> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path >> DESKTOP_SESSION=cinnamon >> DISPLAY=:0 >> GB_GUI=gb.qt4 >> GDMSESSION=cinnamon >> GDM_LANG=en_GB >> GJS_DEBUG_OUTPUT=stderr >> GJS_DEBUG_TOPICS=JS ERROR;JS LOG >> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 >> GTK_MODULES=gail:atk-bridge >> GTK_OVERLAY_SCROLLING=1 >> HOME= >> LANG=en_GB.UTF-8 >> LANGUAGE=en_GB >> LC_ADDRESS=en_GB.UTF-8 >> LC_IDENTIFICATION=en_GB.UTF-8 >> LC_MEASUREMENT=en_GB.UTF-8 >> LC_MONETARY=en_GB.UTF-8 >> LC_NAME=en_GB.UTF-8 >> LC_NUMERIC=en_GB.UTF-8 >> LC_PAPER=en_GB.UTF-8 >> LC_TELEPHONE=en_GB.UTF-8 >> LC_TIME=en_GB.UTF-8 >> LOGNAME= >> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path >> PAPERSIZE=a4 >> PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >> PWD= >> QT_ACCESSIBILITY=1 >> QT_QPA_PLATFORMTHEME=qt5ct >> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1195,unix/:/tmp/.ICE-unix/1195 >> SHELL=/bin/bash >> SHLVL=0 >> SSH_AGENT_PID=1260 >> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> TZ=:/etc/localtime >> USER= >> XAUTHORITY=/.Xauthority >> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg >> XDG_CURRENT_DESKTOP=X-Cinnamon >> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share >> >> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >> XDG_SESSION_DESKTOP=cinnamon >> XDG_SESSION_ID=c1 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > It works as expected here with both GTK2 and GTK3. > > > ___ > Lee > > > [System] > Gambas=3.11.90 6303762ff (master) > OperatingSystem=Linux > Kernel=4.4.159-73-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.7 > 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-txC0OFCdZ3,guid=3f6002637ea2a0c7794764635bf2b8ca > 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-zpTCy0/S.gpg-agent:2396: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/2458,unix/:/tmp/.ICE-unix/2458 > SHELL=/bin/bash > SHLVL=1 > SSH_AGENT_PID=2395 > SSH_ASKPASS=/usr/lib/ssh/ksshaskpass > SSH_AUTH_SOCK=/tmp/ssh-P4cXC1EF4hrJ/agent.2288 > 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=2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB > XMODIFIERS=@im=local > XNLSPATH=/usr/share/X11/nls > XSESSION_IS_UP=yes > _=/usr/bin/kwrapper5 > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Nov 19 18:57:23 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Nov 2018 18:57:23 +0100 Subject: [Gambas-user] open named pipe never returns In-Reply-To: <20181119092057.GA895@highrise.localdomain> References: <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> <61b33415-3c9f-99bc-e71b-d33d661c716f@aol.com> <20181119092057.GA895@highrise.localdomain> Message-ID: <7a16695e-23d1-7ddf-e368-21ade6a57545@gmail.com> Le 19/11/2018 ? 10:20, Tobias Boege a ?crit?: > On Sun, 18 Nov 2018, Steve via User wrote: >> The statement >> >> hfile = open pipe "/tmp/mypipe01" for watch? (or for read) never returns >> (acts like deadlock). >> >> It does actually create the pipe. >> > > [...] > > It is actually an excerpt of the mkfifo(3) man page, so this is completely > normal behaviour. Internally, Gambas uses mkfifo() followed by a normal > open() to create a pipe Stream object, to answer your actual question, > and not what I think your question should have been :-) > > Regards, > Tobi > Maybe the pipe should be automatically switched to non-blocking mode when the WATCH keyword is used? It seems to make sense... -- Beno?t Minisini From stevjensen at aol.com Mon Nov 19 19:12:00 2018 From: stevjensen at aol.com (Steve) Date: Mon, 19 Nov 2018 13:12:00 -0500 Subject: [Gambas-user] open named pipe never returns In-Reply-To: <7a16695e-23d1-7ddf-e368-21ade6a57545@gmail.com> References: <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> <61b33415-3c9f-99bc-e71b-d33d661c716f@aol.com> <20181119092057.GA895@highrise.localdomain> <7a16695e-23d1-7ddf-e368-21ade6a57545@gmail.com> Message-ID: It is what the documentation seems to say. Is there a non automatic way of setting non-blocking mode? On 11/19/2018 12:57 PM, Beno?t Minisini wrote: > > Maybe the pipe should be automatically switched to non-blocking mode > when the WATCH keyword is used? It seems to make sense... > From genbraga1 at gmail.com Mon Nov 19 19:16:50 2018 From: genbraga1 at gmail.com (gen braga) Date: Mon, 19 Nov 2018 16:16:50 -0200 Subject: [Gambas-user] Where is the scripter? In-Reply-To: <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> Message-ID: Seems you're using your distro's official repo and maybe its somewhat broken. You could try Gambas's repo as below http://gambaswiki.org/wiki/install/ubuntu#t2 Not sure If it's the best path but I do this way and everything is ok. Em seg, 19 de nov de 2018 15:50, Rolf-Werner Eilert Sorry, didn't see your answer. > > Am 14.11.2018 um 20:16 schrieb gen braga: > > Paste your /etc/apt/sources.list > > > > > > > > Here you are, hope you can see where the problem is: > > # deb cdrom:[Ubuntu-MATE 18.04.1 LTS _Bionic Beaver_ - Release amd64 > (20180725)]/ bionic main multiverse restricted universe > > # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to > # newer versions of the distribution. > deb http://de.archive.ubuntu.com/ubuntu/ bionic main restricted > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main restricted > > ## Major bug fix updates produced after the final release of the > ## distribution. > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates main restricted > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates main > restricted > > ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu > ## team. Also, please note that software in universe WILL NOT receive any > ## review or updates from the Ubuntu security team. > deb http://de.archive.ubuntu.com/ubuntu/ bionic universe > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe > > ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu > ## team, and may not be under a free licence. Please satisfy yourself as to > ## your rights to use the software. Also, please note that software in > ## multiverse WILL NOT receive any review or updates from the Ubuntu > ## security team. > deb http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse > > ## N.B. software from this repository may not have been tested as > ## extensively as that contained in the main release, although it includes > ## newer versions of some applications which may provide useful features. > ## Also, please note that software in backports WILL NOT receive any review > ## or updates from the Ubuntu security team. > deb http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > restricted universe multiverse > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > restricted universe multiverse > > ## Uncomment the following two lines to add software from Canonical's > ## 'partner' repository. > ## This software is not part of Ubuntu, but is offered by Canonical and the > ## respective vendors as a service to Ubuntu users. > # deb http://archive.canonical.com/ubuntu bionic partner > # deb-src http://archive.canonical.com/ubuntu bionic partner > > deb http://security.ubuntu.com/ubuntu bionic-security main restricted > # deb-src http://security.ubuntu.com/ubuntu bionic-security main > restricted > deb http://security.ubuntu.com/ubuntu bionic-security universe > # deb-src http://security.ubuntu.com/ubuntu bionic-security universe > deb http://security.ubuntu.com/ubuntu bionic-security multiverse > # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse > > > > > > > > > > > > Em qua, 14 de nov de 2018 17:07, T Lee Davidson > > escreveu: > > > > And for those who may not know how to use an online translator: > > > > # apt-get install gambas3-script > > Package lists are read ... Finished > > Dependency tree is built up. > > Status information is read in ... Finished > > Package gambas3-script is not available, but is made by another > package > > Referenced. This may mean that the package is missing, that it is > > superseded > > Or is only available from another source. > > > > E: There is no installation candidate for package? gambas3-script ?. > > > > > > ___ > > Lee > > > > > > On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > > > Here you are: > > > > > > # apt-get install gambas3-script > > > Paketlisten werden gelesen... Fertig > > > Abh?ngigkeitsbaum wird aufgebaut. > > > Statusinformationen werden eingelesen.... Fertig > > > Paket gambas3-script ist nicht verf?gbar, wird aber von einem > > anderen Paket > > > referenziert. Das kann hei?en, dass das Paket fehlt, dass es > abgel?st > > > wurde oder nur aus einer anderen Quelle verf?gbar ist. > > > > > > E: F?r Paket ?gambas3-script? existiert kein > Installationskandidat. > > > > > > > > > Am 13.11.2018 um 18:30 schrieb gen braga: > > >> Could you paste here the output error? > > >> > > >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert > > > > > escreveu: > > >> > > >> Now I tried it, but it said something like "it is in the > > list, but the > > >> package isn't there". > > >> > > >> So I tried to simply copy the old version binary and link > > from the > > >> older > > >> server, and it runs for now. > > >> > > >> Regards > > >> Rolf > > >> > > >> > > >> Am 13.11.2018 um 11:44 schrieb gen braga: > > >> > Did you try apt-get install gambas3-script? > > >> > > > >> > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > > >> > > > > > >> > > > >> escreveu: > > >> > > > >> > Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > > >> > > Now I am on Ubuntu Mate. I installed Gambas the > > way you > > >> > described, i.e. > > >> > > via your repos, everything runs fine, but the > > scripter is > > >> missing. > > >> > > > > >> > > It should be /usr/bin/env gbs3, or /usr/bin/gbs3? > > >> > > > > >> > > There is gba, gbi, gbr, gbx... but no gbs3. > > >> > > > > >> > > Where has it gone? :) > > >> > > > > >> > > Thanks for any help! > > >> > > > > >> > > Rolf > > >> > > > > >> > > ----[ Gambas mailing-list is hosted by > > >> > https://www.hostsharing.net ]---- > > >> > > > > >> > > > > >> > > > >> > Nobody knows it? I just looked it up on my older > > system, there is > > >> > > > >> > /usr/bin/gbs.gambas3 and a link "gbs3" to it. > > >> > > > >> > So, is it just an additional program to be installed > > >> separately? I > > >> > couldn't find anything in the Software Farm. > > >> > > > >> > Well, if nobody knows, I will try to just copy the > > thing from > > >> the old > > >> > system, but there might be side-effects... > > >> > > > >> > Regards > > >> > Rolf > > >> > > > >> > > > >> > ----[ Gambas mailing-list is hosted by > > >> https://www.hostsharing.net ]---- > > >> > > > >> > > > >> > > > >> > > > >> > ----[ Gambas mailing-list is hosted by > > >> https://www.hostsharing.net ]---- > > >> > > > >> > > >> > > >> ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > >> > > >> > > >> > > >> > > >> ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > >> > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stevjensen at aol.com Mon Nov 19 19:30:52 2018 From: stevjensen at aol.com (Steve) Date: Mon, 19 Nov 2018 13:30:52 -0500 Subject: [Gambas-user] open named pipe never returns In-Reply-To: <9ed29942-51e4-a22b-9d6b-661e08cd7e72@gmail.com> References: <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> <9963d937-b41d-1062-4464-421d56a3890c@gmail.com> <61b33415-3c9f-99bc-e71b-d33d661c716f@aol.com> <20181119092057.GA895@highrise.localdomain> <7a16695e-23d1-7ddf-e368-21ade6a57545@gmail.com> <9ed29942-51e4-a22b-9d6b-661e08cd7e72@gmail.com> Message-ID: <82df88e7-0c06-0fe4-fda2-2e1a6d2effb9@aol.com> Yes I agree. I don't want to use a pipe I want to issue a callback. Unfortunately when the callback is issued as the result of a signal it does not work. Yes, a callback does work if I issue it in the called function. On 11/19/2018 1:20 PM, Beno?t Minisini wrote: > Le 19/11/2018 ? 19:12, Steve a ?crit?: >> It is what the documentation seems to say. >> >> Is there a non automatic way of setting non-blocking mode? >> >> > > Actually I prefer that Gambas has exactly the same behaviour as the > system call. > > fifo are not supposed to be used in the same thread, it does not > really make sense. > > Regards, > From stevjensen at aol.com Mon Nov 19 19:53:43 2018 From: stevjensen at aol.com (Steve) Date: Mon, 19 Nov 2018 13:53:43 -0500 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) In-Reply-To: References: <83de62dc-e7c6-4c36-856b-4f706572d9a7@gmail.com> <5d33607a-7cf1-7995-3671-0c1b092a2a3b@aol.com> <1acbe26c-e27e-4c15-a4aa-2e86c0d6113c@gmail.com> <2314e868-34fe-db44-229c-e256e98d1140@aol.com> <78be1d85-84e0-4035-4143-b9b33dff64f0@aol.com> <7b36e5da-c84b-2b91-ca28-612a799a250b@gmail.com> <57280483-0ace-b0b2-af7e-0cea2a8750a6@aol.com> <821dfeaf-9957-edcc-7f84-e58227a655bd@gmail.com> <025a9aab-3e66-f07f-5fe9-15a6f65a08bf@aol.com> Message-ID: <556b4b93-bc60-f5ad-5bb3-2f297fc83b47@aol.com> The basic principal with qsort is to call back for sorting information while gambas is in the qsort call. I have no problem with doing the equivalent code from the c module in question. This c module sets up a signal. When the signal is received it executes the callback code in the c module. I used stdout to display the called addresses and data during the signal initiated callbaak which are the same as before. Nothing got corrupted in the c execution and the thread id is the same. The problem here seems to be that gambas is in its event loop at the point when the signal occurs rather than executing something in the c module. On 11/19/2018 1:22 PM, Beno?t Minisini wrote: > Le 14/11/2018 ? 02:14, Steve a ?crit?: >> Some info. >> >> Address where Gambas thinks the function callback_left resides. >> >> Basic address: 76FA3008 >> >> The Address and values received by the C code instantiating the call >> to callback_left. >> >> At CB init Addr 76fa3008, pi 0, gpio 23, edge 0 >> >> The Address and values in use by the C code just before making the >> call to callback_left. >> >> At TimeOut Addr 76fa3008, pi 0, gpio 23, lvl 2, tick 741000663 >> >> All the above match expectations. >> Some possibilities: >> ??The address Gambas is handing out is some sort of offset from a >> base pointer. Perhaps object addr + func addr? >> The way Gambas pops values off the stack is different from the way C >> pushes them on the stack or for that matter the way gambas pushes >> stuff on the stack when calling an extern function. >> > > Gambas is a C program, it pops values off the stack exactly the same > way than any other C program or library made in C. > > Can you try to implement the example of the documentation? I.e. make > use of qsort() with a callback written in Gambas? If you don't see > what I mean, I will send you a little program. > > That way we will see if the problem may be in the interpreter or in > your library. > > Regards, > From g4mba5 at gmail.com Mon Nov 19 20:15:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Nov 2018 20:15:43 +0100 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) In-Reply-To: <556b4b93-bc60-f5ad-5bb3-2f297fc83b47@aol.com> References: <83de62dc-e7c6-4c36-856b-4f706572d9a7@gmail.com> <5d33607a-7cf1-7995-3671-0c1b092a2a3b@aol.com> <1acbe26c-e27e-4c15-a4aa-2e86c0d6113c@gmail.com> <2314e868-34fe-db44-229c-e256e98d1140@aol.com> <78be1d85-84e0-4035-4143-b9b33dff64f0@aol.com> <7b36e5da-c84b-2b91-ca28-612a799a250b@gmail.com> <57280483-0ace-b0b2-af7e-0cea2a8750a6@aol.com> <821dfeaf-9957-edcc-7f84-e58227a655bd@gmail.com> <025a9aab-3e66-f07f-5fe9-15a6f65a08bf@aol.com> <556b4b93-bc60-f5ad-5bb3-2f297fc83b47@aol.com> Message-ID: Le 19/11/2018 ? 19:53, Steve a ?crit?: > The basic principal with qsort is to call back for sorting information > while gambas is in the qsort call. > > I have no problem with doing the equivalent code from the c module in > question. > > This c module sets up a signal. When the signal is received it executes > the callback code in the c module. > > I used stdout to display the called addresses and data during the signal > initiated callbaak which are the same as before. Nothing got corrupted > in the c execution and the thread id is the same. > > The problem here seems to be that gambas is in its event loop at the > point when the signal occurs rather than executing something in the c > module. > Ah ok, I didn't get it! I didn't see any signal code in the library you sent me, maybe I missed it. Of course you cannot run the interpreter from a signal handler, directly or indirectly. You should even run almost nothing from a signal handler. Same thing for a thread. Components written in C or C++ get an API from the interpreter that allow them to deal with these sorts of things. But in a library, it's more difficult. You have to use the pipe system call to create two pipe file descriptors. The first one will be used by the signal handler to write something (normally a single byte). The second one will be used to read that byte to know that something happened in the signal handler. The trick is to pass the second file descriptor to the main Gambas code so that it can watch it, using the hidden syntax: hFile = Open "." & CStr(thePipeFileDescriptor) For Read Watch As "SignalHandler" Then each time your signal handler writes to the pipe, you will get a Read event in the Gambas code with something to read on the pipe. If you want to send a lot of data, you have to create a buffer for that, don't use the pipe. Regards, -- Beno?t Minisini From stevjensen at aol.com Mon Nov 19 20:41:03 2018 From: stevjensen at aol.com (Steve) Date: Mon, 19 Nov 2018 14:41:03 -0500 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) In-Reply-To: <08531eb7-2ee3-a8f9-187d-b4776853b7d5@gmail.com> References: <83de62dc-e7c6-4c36-856b-4f706572d9a7@gmail.com> <5d33607a-7cf1-7995-3671-0c1b092a2a3b@aol.com> <1acbe26c-e27e-4c15-a4aa-2e86c0d6113c@gmail.com> <2314e868-34fe-db44-229c-e256e98d1140@aol.com> <78be1d85-84e0-4035-4143-b9b33dff64f0@aol.com> <7b36e5da-c84b-2b91-ca28-612a799a250b@gmail.com> <57280483-0ace-b0b2-af7e-0cea2a8750a6@aol.com> <821dfeaf-9957-edcc-7f84-e58227a655bd@gmail.com> <025a9aab-3e66-f07f-5fe9-15a6f65a08bf@aol.com> <08531eb7-2ee3-a8f9-187d-b4776853b7d5@gmail.com> Message-ID: <8dc7f8f0-3b9f-72c3-f028-7c415eff5381@aol.com> I can do a callback all i want while in the c code called by gambas. Once the c code exits back to gambas and gambas returns to its event loop? then the callback fails. Only qsort I can find on this Pi is qsort.tar.gz. I'm guessing that this means qsort is not currently installed on this system. However, since gambas would be in the qsort function at the time of its callback (and not back in the gambas event loop) the code would be equivalent to the code I wrote which does indeed work. Do you have an example of a function that does a callback after the initiating callback completes. On 11/19/2018 1:29 PM, Beno?t Minisini wrote: > >> Gambas is a C program, it pops values off the stack exactly the same >> way than any other C program or library made in C. >> >> Can you try to implement the example of the documentation? I.e. make >> use of qsort() with a callback written in Gambas? If you don't see >> what I mean, I will send you a little program. >> >> That way we will see if the problem may be in the interpreter or in >> your library. >> >> Regards, >> > > From stevjensen at aol.com Mon Nov 19 21:31:21 2018 From: stevjensen at aol.com (Steve) Date: Mon, 19 Nov 2018 15:31:21 -0500 Subject: [Gambas-user] pigpio c library callback gives segmentation fault (11) In-Reply-To: <1cf52066-e904-75ef-3286-3279b986b89e@gmail.com> References: <83de62dc-e7c6-4c36-856b-4f706572d9a7@gmail.com> <5d33607a-7cf1-7995-3671-0c1b092a2a3b@aol.com> <1acbe26c-e27e-4c15-a4aa-2e86c0d6113c@gmail.com> <2314e868-34fe-db44-229c-e256e98d1140@aol.com> <78be1d85-84e0-4035-4143-b9b33dff64f0@aol.com> <7b36e5da-c84b-2b91-ca28-612a799a250b@gmail.com> <57280483-0ace-b0b2-af7e-0cea2a8750a6@aol.com> <821dfeaf-9957-edcc-7f84-e58227a655bd@gmail.com> <025a9aab-3e66-f07f-5fe9-15a6f65a08bf@aol.com> <556b4b93-bc60-f5ad-5bb3-2f297fc83b47@aol.com> <1cf52066-e904-75ef-3286-3279b986b89e@gmail.com> Message-ID: I was trying something like this.? The rest of what you said was what had I surmised was going on. I used 'open pipe "name" for watch'? this blocks and nothing else in gambas code happens? until a msg is received. Looking at this I see 'thePipeFileDescriptor' as being the pipe name. Does the '.' imply anything other than it being in the current directory? You don't seem to be referring to something like 'FILE'. I'll give it a try. The c code in question is Pigpio (a gpio handler something like wiringpi). The 'signal" in question comes from a daemon that this code communicates with. Unlike wiringpi, Pigipo has a pin level shift actuated interupt and does not use poling. In this case the pulse is very short compared to the repetition rate and capturing it via polling is not doable. I've done X11 years ago on Unix systems. Not a fun process. On 11/19/2018 2:14 PM, Beno?t Minisini wrote: > > hFile = Open "." & CStr(thePipeFileDescriptor) For Read Watch As > "SignalHandler" > > > Regards, > From g4mba5 at gmail.com Mon Nov 19 22:09:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Nov 2018 22:09:12 +0100 Subject: [Gambas-user] ScrollView problems since it was rewritten in Gambas In-Reply-To: References: <1542472590.7821.67.camel@Scenic.local> <1542475743.22512.14.camel@Scenic.local> Message-ID: Le 19/11/2018 ? 12:56, Fabien Bodard a ?crit?: > The both are logical... In the real life a qt component don't show it's > internal... In Gambas yes ... but how to get the widget root ? > > In my mind if I put something in a container .parent must return the > global container ... not it's structure. > If I put myObject in a MyContainer ... MyObject.Parent is a MyContainer > ... no ? > > Maybe it need two property to manage this case ... A way to get the > class container (MyContainer) and a way to get the true container (panel) > I know that a container is used as the official container of a control made in Gambas. So I can make the Parent property returns the expected container (the control made in Gambas) and not the real one. I will try it, but it may break things : everything that browse the control hierarchy from bottom to top. Or I can make an option in the UserContainer class that makes the Parent property return the UserContainer control instead of the inner container used by the implementation. I will try it too. -- Beno?t Minisini From g4mba5 at gmail.com Mon Nov 19 23:24:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Nov 2018 23:24:11 +0100 Subject: [Gambas-user] ScrollView problems since it was rewritten in Gambas In-Reply-To: References: <1542472590.7821.67.camel@Scenic.local> <1542475743.22512.14.camel@Scenic.local> Message-ID: Le 19/11/2018 ? 22:09, Beno?t Minisini a ?crit?: > Le 19/11/2018 ? 12:56, Fabien Bodard a ?crit?: >> The both are logical... In the real life a qt component don't show >> it's internal... In Gambas yes ... but how to get the widget root ? >> >> In my mind if I put something in a container .parent must return the >> global container ... not it's structure. >> If I put myObject in a MyContainer ... MyObject.Parent is a >> MyContainer ... no ? >> >> Maybe it need two property to manage this case ... A way to get the >> class container (MyContainer) and a way to get the true container (panel) >> > > I know that a container is used as the official container of a control > made in Gambas. > > So I can make the Parent property returns the expected container (the > control made in Gambas) and not the real one. > > I will try it, but it may break things : everything that browse the > control hierarchy from bottom to top. > > Or I can make an option in the UserContainer class that makes the Parent > property return the UserContainer control instead of the inner container > used by the implementation. > > I will try it too. > Done in commit https://gitlab.com/gambas/gambas/commit/44a3f5f664f3aa5c202fd25c51c7d25608cc48e0. Now Control.Parent ignore the inner containers of controls made in Gambas. Let's see if something breaks... -- Beno?t Minisini From genbraga1 at gmail.com Mon Nov 19 23:26:59 2018 From: genbraga1 at gmail.com (gen braga) Date: Mon, 19 Nov 2018 20:26:59 -0200 Subject: [Gambas-user] Pipe behavior after closed Message-ID: Should the named pipe be destroyed after being closed in both ends? In my project, I open it for write in one end and can read It on the other end but, even after explicitly closing and nulling the instance, It is not deleted on the filesystem. Is this behavior expected? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Nov 19 23:32:56 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Nov 2018 23:32:56 +0100 Subject: [Gambas-user] Pipe behavior after closed In-Reply-To: References: Message-ID: <17d65698-c38b-5235-6891-4bba2427ba93@gmail.com> Le 19/11/2018 ? 23:26, gen braga a ?crit?: > Should the named pipe be destroyed after being closed in both ends? > > In my project, I open it for write in one end and can read It on the > other end but, even after explicitly closing and nulling the instance, > It is not deleted on the filesystem. > > Is this behavior expected? > Yes. -- Beno?t Minisini From bagonergi at gmail.com Tue Nov 20 01:08:28 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 20 Nov 2018 01:08:28 +0100 Subject: [Gambas-user] I look for a dragging of GridView scrollbar more linear In-Reply-To: References: Message-ID: Il giorno lun 19 nov 2018 alle ore 10:48 Gianluigi ha scritto: > > > Il giorno dom 18 nov 2018 alle ore 10:15 Gianluigi > ha scritto: > >> It's been more than four days that I try to make the dragging of GridView >> scrollbar more linear, but I have not succeeded. >> I try to explain what I would like to get: >> I need to load millions of records into the grid and so far so good, I >> load the grid with 50000 records step by step with SELECT LIMIT and with >> the help of a vector. >> If I scroll the grid with the mouse wheel or with the arrow keys on the >> scrollbar, everything good working. >> Unfortunately, the scroll bar slider every time I reload the 50000 new >> records jumps up preventing proper dragging with the mouse. >> I tried to form the complete grid, but I can not load it with the step by >> step (I always get 'out of bound' error). >> >> I enclose a demonstration project that, when opening it, create a >> SQLite database in User.Home &/ Application.Name and loads a table (user) >> with 600000 records, you need to be patient when you first open it. >> Any help is appreciated >> >> Regards >> Gianluigi >> > > I have an idea, it is likely that _Data event uses "LIMIT" within it. > In this case the problem is the vector. > Now I am engaged in another job but as soon as I have time I will verify. > > Regards > Gianluigi > In fact the GridView Data event does all the work and it is not necessary to split the records with LIMIT. I published an example on the Farm (DBSpeedyTest). I read on the wiki [0] this: GridView1.Data.text = Str($res[GridView1.Columns[column].text]) which I think is wrong, if you agree I would change it with: GridView1.Data.Text = $res[Str(Column)] I would like a reply. Regards Gianluigi [0] http://gambaswiki.org/wiki/howto/databasesqlite -------------- next part -------------- An HTML attachment was scrubbed... URL: From clhamilto at gmail.com Tue Nov 20 04:26:39 2018 From: clhamilto at gmail.com (Curtis Hamilton) Date: Mon, 19 Nov 2018 22:26:39 -0500 Subject: [Gambas-user] Gambas3 Will No Startup In-Reply-To: References: Message-ID: <3bfcc802-e33a-376b-c274-c80c47454620@gmail.com> Anyone know how to fix this? gbx3: warning: CPU is big endian CCoolButton._new.32: #6: Type mismatch: wanted Picture, got String instead CCoolButton._new.32 FWelcome.Form_Open.68 FMain.Welcome.100 Project.Main.410 On 11/18/18 21:51, Curtis Hamilton wrote: > Building Gambas Version 3.11.90 on FreeBSD/PowerPC64. After build and > install I get the main window and popup error below: > > This application has raised an unexpected > error and must abort. > > [6] Type mismatch: wanted Picture, got String instead. > CCoolButton._new.32 > > From g4mba5 at gmail.com Tue Nov 20 06:55:41 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 20 Nov 2018 06:55:41 +0100 Subject: [Gambas-user] Gambas3 Will No Startup In-Reply-To: <3bfcc802-e33a-376b-c274-c80c47454620@gmail.com> References: <3bfcc802-e33a-376b-c274-c80c47454620@gmail.com> Message-ID: <5adfec85-f0e2-d86f-777c-6221e055d8f4@gmail.com> Le 20/11/2018 ? 04:26, Curtis Hamilton a ?crit?: > Anyone know how to fix this? > > gbx3: warning: CPU is big endian > CCoolButton._new.32: #6: Type mismatch: wanted Picture, got String instead > CCoolButton._new.32 FWelcome.Form_Open.68 FMain.Welcome.100 > Project.Main.410 > > > On 11/18/18 21:51, Curtis Hamilton wrote: >> Building Gambas Version 3.11.90 on FreeBSD/PowerPC64.? After build and >> install I get the main window and popup error below: >> >> This application has raised an unexpected >> error and must abort. >> >> [6] Type mismatch: wanted Picture, got String instead. >> CCoolButton._new.32 >> >> If you can grant me an ssh access to your machine, and install gdb, I may be able to start debugging Gambas on PowerPC. Regards, -- Beno?t Minisini From gambas.fr at gmail.com Tue Nov 20 08:10:17 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 20 Nov 2018 08:10:17 +0100 Subject: [Gambas-user] ScrollView problems since it was rewritten in Gambas In-Reply-To: References: <1542472590.7821.67.camel@Scenic.local> <1542475743.22512.14.camel@Scenic.local> Message-ID: Let's see ... It's more rational this way for me Le lun. 19 nov. 2018 ? 23:25, Beno?t Minisini a ?crit : > Le 19/11/2018 ? 22:09, Beno?t Minisini a ?crit : > > Le 19/11/2018 ? 12:56, Fabien Bodard a ?crit : > >> The both are logical... In the real life a qt component don't show > >> it's internal... In Gambas yes ... but how to get the widget root ? > >> > >> In my mind if I put something in a container .parent must return the > >> global container ... not it's structure. > >> If I put myObject in a MyContainer ... MyObject.Parent is a > >> MyContainer ... no ? > >> > >> Maybe it need two property to manage this case ... A way to get the > >> class container (MyContainer) and a way to get the true container > (panel) > >> > > > > I know that a container is used as the official container of a control > > made in Gambas. > > > > So I can make the Parent property returns the expected container (the > > control made in Gambas) and not the real one. > > > > I will try it, but it may break things : everything that browse the > > control hierarchy from bottom to top. > > > > Or I can make an option in the UserContainer class that makes the Parent > > property return the UserContainer control instead of the inner container > > used by the implementation. > > > > I will try it too. > > > > Done in commit > > https://gitlab.com/gambas/gambas/commit/44a3f5f664f3aa5c202fd25c51c7d25608cc48e0 > . > > Now Control.Parent ignore the inner containers of controls made in Gambas. > > Let's see if something breaks... > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Tue Nov 20 08:21:19 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 20 Nov 2018 08:21:19 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> Message-ID: But this is exactly what I did, as two of you guys pointed me to it in an earlier thread. I did not "add-apt-repository ppa:gambas-team/gambas3" before sending you the sources.list, but I did before installing gambas, so I think it was from the right repo. How can I check for it? And in case it failed, what would I do to correct that? Regards Rolf Am 19.11.2018 um 19:16 schrieb gen braga: > Seems you're using your distro's official repo and maybe its somewhat > broken. > > You could try Gambas's repo as below > > http://gambaswiki.org/wiki/install/ubuntu#t2 > > Not sure If it's the best path but I do this way and everything is ok. > > Em seg, 19 de nov de 2018 15:50, Rolf-Werner Eilert escreveu: > > Sorry, didn't see your answer. > > Am 14.11.2018 um 20:16 schrieb gen braga: > > Paste your??/etc/apt/sources.list > > > > > > > > Here you are, hope you can see where the problem is: > > # deb cdrom:[Ubuntu-MATE 18.04.1 LTS _Bionic Beaver_ - Release amd64 > (20180725)]/ bionic main multiverse restricted universe > > # See http://help.ubuntu.com/community/UpgradeNotes for how to > upgrade to > # newer versions of the distribution. > deb http://de.archive.ubuntu.com/ubuntu/ bionic main restricted > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main restricted > > ## Major bug fix updates produced after the final release of the > ## distribution. > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates main restricted > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates main > restricted > > ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the > Ubuntu > ## team. Also, please note that software in universe WILL NOT > receive any > ## review or updates from the Ubuntu security team. > deb http://de.archive.ubuntu.com/ubuntu/ bionic universe > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe > > ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the > Ubuntu > ## team, and may not be under a free licence. Please satisfy > yourself as to > ## your rights to use the software. Also, please note that software in > ## multiverse WILL NOT receive any review or updates from the Ubuntu > ## security team. > deb http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse > > ## N.B. software from this repository may not have been tested as > ## extensively as that contained in the main release, although it > includes > ## newer versions of some applications which may provide useful > features. > ## Also, please note that software in backports WILL NOT receive any > review > ## or updates from the Ubuntu security team. > deb http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > restricted universe multiverse > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > restricted universe multiverse > > ## Uncomment the following two lines to add software from Canonical's > ## 'partner' repository. > ## This software is not part of Ubuntu, but is offered by Canonical > and the > ## respective vendors as a service to Ubuntu users. > # deb http://archive.canonical.com/ubuntu bionic partner > # deb-src http://archive.canonical.com/ubuntu bionic partner > > deb http://security.ubuntu.com/ubuntu bionic-security main restricted > # deb-src http://security.ubuntu.com/ubuntu bionic-security main > restricted > deb http://security.ubuntu.com/ubuntu bionic-security universe > # deb-src http://security.ubuntu.com/ubuntu bionic-security universe > deb http://security.ubuntu.com/ubuntu bionic-security multiverse > # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse > > > > > > > > > > > > Em qua, 14 de nov de 2018 17:07, T Lee Davidson > > > > > escreveu: > > > >? ? ?And for those who may not know how to use an online translator: > > > >? ? ?# apt-get install gambas3-script > >? ? ?Package lists are read ... Finished > >? ? ?Dependency tree is built up. > >? ? ?Status information is read in ... Finished > >? ? ?Package gambas3-script is not available, but is made by > another package > >? ? ?Referenced. This may mean that the package is missing, that it is > >? ? ?superseded > >? ? ?Or is only available from another source. > > > >? ? ?E: There is no installation candidate for package? > gambas3-script ?. > > > > > >? ? ?___ > >? ? ?Lee > > > > > >? ? ?On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > >? ? ? > Here you are: > >? ? ? > > >? ? ? > # apt-get install gambas3-script > >? ? ? > Paketlisten werden gelesen... Fertig > >? ? ? > Abh?ngigkeitsbaum wird aufgebaut. > >? ? ? > Statusinformationen werden eingelesen.... Fertig > >? ? ? > Paket gambas3-script ist nicht verf?gbar, wird aber von einem > >? ? ?anderen Paket > >? ? ? > referenziert. Das kann hei?en, dass das Paket fehlt, dass > es abgel?st > >? ? ? > wurde oder nur aus einer anderen Quelle verf?gbar ist. > >? ? ? > > >? ? ? > E: F?r Paket ?gambas3-script? existiert kein > Installationskandidat. > >? ? ? > > >? ? ? > > >? ? ? > Am 13.11.2018 um 18:30 schrieb gen braga: > >? ? ? >> Could you paste here the output error? > >? ? ? >> > >? ? ? >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert > >? ? ? > > > >? ? ? > >> escreveu: > >? ? ? >> > >? ? ? >> ??? Now I tried it, but it said something like "it is in the > >? ? ?list, but the > >? ? ? >> ??? package isn't there". > >? ? ? >> > >? ? ? >> ??? So I tried to simply copy the old version binary and link > >? ? ?from the > >? ? ? >> ??? older > >? ? ? >> ??? server, and it runs for now. > >? ? ? >> > >? ? ? >> ??? Regards > >? ? ? >> ??? Rolf > >? ? ? >> > >? ? ? >> > >? ? ? >> ??? Am 13.11.2018 um 11:44 schrieb gen braga: > >? ? ? >> ???? > Did you try apt-get install gambas3-script? > >? ? ? >> ???? > > >? ? ? >> ???? > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > >? ? ? >> ??? > > > >? ? ? > >> > >? ? ? >> ???? > > > >? ? ? > >>> escreveu: > >? ? ? >> ???? > > >? ? ? >> ???? >? ? ?Am 12.11.2018 um 17:55 schrieb Rolf-Werner Eilert: > >? ? ? >> ???? >? ? ? > Now I am on Ubuntu Mate. I installed Gambas the > >? ? ?way you > >? ? ? >> ???? >? ? ?described, i.e. > >? ? ? >> ???? >? ? ? > via your repos, everything runs fine, but the > >? ? ?scripter is > >? ? ? >> ??? missing. > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? >? ? ? > It should be? /usr/bin/env gbs3, or > /usr/bin/gbs3? > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? >? ? ? > There is gba, gbi, gbr, gbx... but no gbs3. > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? >? ? ? > Where has it gone? :) > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? >? ? ? > Thanks for any help! > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? >? ? ? > Rolf > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? >? ? ? > ----[ Gambas mailing-list is hosted by > >? ? ? >> ???? > https://www.hostsharing.net ]---- > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? >? ? ? > > >? ? ? >> ???? > > >? ? ? >> ???? >? ? ?Nobody knows it? I just looked it up on my older > >? ? ?system, there is > >? ? ? >> ???? > > >? ? ? >> ???? >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" to it. > >? ? ? >> ???? > > >? ? ? >> ???? >? ? ?So, is it just an additional program to be > installed > >? ? ? >> ??? separately? I > >? ? ? >> ???? >? ? ?couldn't find anything in the Software Farm. > >? ? ? >> ???? > > >? ? ? >> ???? >? ? ?Well, if nobody knows, I will try to just copy the > >? ? ?thing from > >? ? ? >> ??? the old > >? ? ? >> ???? >? ? ?system, but there might be side-effects... > >? ? ? >> ???? > > >? ? ? >> ???? >? ? ?Regards > >? ? ? >> ???? >? ? ?Rolf > >? ? ? >> ???? > > >? ? ? >> ???? > > >? ? ? >> ???? >? ? ?----[ Gambas mailing-list is hosted by > >? ? ? >> https://www.hostsharing.net ]---- > >? ? ? >> ???? > > >? ? ? >> ???? > > >? ? ? >> ???? > > >? ? ? >> ???? > > >? ? ? >> ???? > ----[ Gambas mailing-list is hosted by > >? ? ? >> https://www.hostsharing.net ]---- > >? ? ? >> ???? > > >? ? ? >> > >? ? ? >> > >? ? ? >> ??? ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? >> > >? ? ? >> > >? ? ? >> > >? ? ? >> > >? ? ? >> ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? >> > >? ? ? > > >? ? ? > > >? ? ? > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > > >? ? ?----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From genbraga1 at gmail.com Tue Nov 20 11:49:15 2018 From: genbraga1 at gmail.com (gen braga) Date: Tue, 20 Nov 2018 08:49:15 -0200 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> Message-ID: Rolf, my mistake. actually the repo is located in */etc/apt/sources.list.d/* where should be a file called *gambas-team-ubuntu-gambas3-bionic.list* or something like that. When you look inside it, should read like *deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic main# deb-src http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic main* but I think yours is correct, as you said you followed the link on Wiki. if everything is ok, a simple *sudo apt-get update* *sudo apt-get install gambas3-scripter* would do the job, installing any dependency and the package as well. Humn.. seems I made another mistake here... I told you previously to *sudo apt-get install gambas3-script * instead of *sudo apt-get install gambas3-scriptER *(without uppercase, of course) I checked the repo and all files are Ok, and i just installed it again. If dont, try downloading it directly from http://ppa.launchpad.net/gambas-team/gambas3/ubuntu/pool/main/g/gambas3/gambas3-scripter_3.11.4+git6006.c199130+build1.4250560.5.93b81c7~ubuntu18.04.1_all.deb and install manually. Cheers. Em ter, 20 de nov de 2018 ?s 05:22, Rolf-Werner Eilert escreveu: > But this is exactly what I did, as two of you guys pointed me to it in > an earlier thread. > > I did not "add-apt-repository ppa:gambas-team/gambas3" before sending > you the sources.list, but I did before installing gambas, so I think it > was from the right repo. > > How can I check for it? And in case it failed, what would I do to > correct that? > > Regards > Rolf > > > > Am 19.11.2018 um 19:16 schrieb gen braga: > > Seems you're using your distro's official repo and maybe its somewhat > > broken. > > > > You could try Gambas's repo as below > > > > http://gambaswiki.org/wiki/install/ubuntu#t2 > > > > Not sure If it's the best path but I do this way and everything is ok. > > > > Em seg, 19 de nov de 2018 15:50, Rolf-Werner Eilert > escreveu: > > > > Sorry, didn't see your answer. > > > > Am 14.11.2018 um 20:16 schrieb gen braga: > > > Paste your /etc/apt/sources.list > > > > > > > > > > > > > > Here you are, hope you can see where the problem is: > > > > # deb cdrom:[Ubuntu-MATE 18.04.1 LTS _Bionic Beaver_ - Release amd64 > > (20180725)]/ bionic main multiverse restricted universe > > > > # See http://help.ubuntu.com/community/UpgradeNotes for how to > > upgrade to > > # newer versions of the distribution. > > deb http://de.archive.ubuntu.com/ubuntu/ bionic main restricted > > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main > restricted > > > > ## Major bug fix updates produced after the final release of the > > ## distribution. > > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates main > restricted > > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates main > > restricted > > > > ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the > > Ubuntu > > ## team. Also, please note that software in universe WILL NOT > > receive any > > ## review or updates from the Ubuntu security team. > > deb http://de.archive.ubuntu.com/ubuntu/ bionic universe > > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe > > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe > > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > universe > > > > ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the > > Ubuntu > > ## team, and may not be under a free licence. Please satisfy > > yourself as to > > ## your rights to use the software. Also, please note that software > in > > ## multiverse WILL NOT receive any review or updates from the Ubuntu > > ## security team. > > deb http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > > deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse > > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > multiverse > > > > ## N.B. software from this repository may not have been tested as > > ## extensively as that contained in the main release, although it > > includes > > ## newer versions of some applications which may provide useful > > features. > > ## Also, please note that software in backports WILL NOT receive any > > review > > ## or updates from the Ubuntu security team. > > deb http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > > restricted universe multiverse > > # deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > > restricted universe multiverse > > > > ## Uncomment the following two lines to add software from Canonical's > > ## 'partner' repository. > > ## This software is not part of Ubuntu, but is offered by Canonical > > and the > > ## respective vendors as a service to Ubuntu users. > > # deb http://archive.canonical.com/ubuntu bionic partner > > # deb-src http://archive.canonical.com/ubuntu bionic partner > > > > deb http://security.ubuntu.com/ubuntu bionic-security main > restricted > > # deb-src http://security.ubuntu.com/ubuntu bionic-security main > > restricted > > deb http://security.ubuntu.com/ubuntu bionic-security universe > > # deb-src http://security.ubuntu.com/ubuntu bionic-security universe > > deb http://security.ubuntu.com/ubuntu bionic-security multiverse > > # deb-src http://security.ubuntu.com/ubuntu bionic-security > multiverse > > > > > > > > > > > > > > > > > > > > > Em qua, 14 de nov de 2018 17:07, T Lee Davidson > > > > > > > > escreveu: > > > > > > And for those who may not know how to use an online > translator: > > > > > > # apt-get install gambas3-script > > > Package lists are read ... Finished > > > Dependency tree is built up. > > > Status information is read in ... Finished > > > Package gambas3-script is not available, but is made by > > another package > > > Referenced. This may mean that the package is missing, that > it is > > > superseded > > > Or is only available from another source. > > > > > > E: There is no installation candidate for package? > > gambas3-script ?. > > > > > > > > > ___ > > > Lee > > > > > > > > > On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > > > > Here you are: > > > > > > > > # apt-get install gambas3-script > > > > Paketlisten werden gelesen... Fertig > > > > Abh?ngigkeitsbaum wird aufgebaut. > > > > Statusinformationen werden eingelesen.... Fertig > > > > Paket gambas3-script ist nicht verf?gbar, wird aber von > einem > > > anderen Paket > > > > referenziert. Das kann hei?en, dass das Paket fehlt, dass > > es abgel?st > > > > wurde oder nur aus einer anderen Quelle verf?gbar ist. > > > > > > > > E: F?r Paket ?gambas3-script? existiert kein > > Installationskandidat. > > > > > > > > > > > > Am 13.11.2018 um 18:30 schrieb gen braga: > > > >> Could you paste here the output error? > > > >> > > > >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert > > > > > > > > > > > >> escreveu: > > > >> > > > >> Now I tried it, but it said something like "it is in > the > > > list, but the > > > >> package isn't there". > > > >> > > > >> So I tried to simply copy the old version binary and > link > > > from the > > > >> older > > > >> server, and it runs for now. > > > >> > > > >> Regards > > > >> Rolf > > > >> > > > >> > > > >> Am 13.11.2018 um 11:44 schrieb gen braga: > > > >> > Did you try apt-get install gambas3-script? > > > >> > > > > >> > Em ter, 13 de nov de 2018 08:36, Rolf-Werner Eilert > > > >> > > > > > > > > >> > > > >> > > > > > > > > > >>> escreveu: > > > >> > > > > >> > Am 12.11.2018 um 17:55 schrieb Rolf-Werner > Eilert: > > > >> > > Now I am on Ubuntu Mate. I installed Gambas > the > > > way you > > > >> > described, i.e. > > > >> > > via your repos, everything runs fine, but > the > > > scripter is > > > >> missing. > > > >> > > > > > >> > > It should be /usr/bin/env gbs3, or > > /usr/bin/gbs3? > > > >> > > > > > >> > > There is gba, gbi, gbr, gbx... but no gbs3. > > > >> > > > > > >> > > Where has it gone? :) > > > >> > > > > > >> > > Thanks for any help! > > > >> > > > > > >> > > Rolf > > > >> > > > > > >> > > ----[ Gambas mailing-list is hosted by > > > >> > https://www.hostsharing.net ]---- > > > >> > > > > > >> > > > > > >> > > > > >> > Nobody knows it? I just looked it up on my > older > > > system, there is > > > >> > > > > >> > /usr/bin/gbs.gambas3 and a link "gbs3" to it. > > > >> > > > > >> > So, is it just an additional program to be > > installed > > > >> separately? I > > > >> > couldn't find anything in the Software Farm. > > > >> > > > > >> > Well, if nobody knows, I will try to just copy > the > > > thing from > > > >> the old > > > >> > system, but there might be side-effects... > > > >> > > > > >> > Regards > > > >> > Rolf > > > >> > > > > >> > > > > >> > ----[ Gambas mailing-list is hosted by > > > >> https://www.hostsharing.net ]---- > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > ----[ Gambas mailing-list is hosted by > > > >> https://www.hostsharing.net ]---- > > > >> > > > > >> > > > >> > > > >> ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net ]---- > > > >> > > > >> > > > >> > > > >> > > > >> ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net ]---- > > > >> > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Tue Nov 20 11:59:42 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 20 Nov 2018 11:59:42 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> Message-ID: <97e4d726-7c91-61f9-1d16-356833c9e013@osnanet.de> Oops! That will be the reason :) > //*sudo apt-get install gambas3-scriptER* //(without uppercase, of course)// I will try as soon as possible! Regards Rolf > // > > I checked? the repo and all files are Ok, and i just installed it again. > > If dont, try downloading it directly from > > http://ppa.launchpad.net/gambas-team/gambas3/ubuntu/pool/main/g/gambas3/gambas3-scripter_3.11.4+git6006.c199130+build1.4250560.5.93b81c7~ubuntu18.04.1_all.deb > > and install manually. > > Cheers. > > Em ter, 20 de nov de 2018 ?s 05:22, Rolf-Werner Eilert > > escreveu: > > But this is exactly what I did, as two of you guys pointed me to it in > an earlier thread. > > I did not "add-apt-repository ppa:gambas-team/gambas3" before sending > you the sources.list, but I did before installing gambas, so I think it > was from the right repo. > > How can I check for it? And in case it failed, what would I do to > correct that? > > Regards > Rolf > > > > Am 19.11.2018 um 19:16 schrieb gen braga: > > Seems you're using your distro's official repo and maybe its > somewhat > > broken. > > > > You could try Gambas's repo as below > > > > http://gambaswiki.org/wiki/install/ubuntu#t2 > > > > Not sure If it's the best path but I do this way and everything > is ok. > > > > Em seg, 19 de nov de 2018 15:50, Rolf-Werner Eilert > > > > escreveu: > > > >? ? ?Sorry, didn't see your answer. > > > >? ? ?Am 14.11.2018 um 20:16 schrieb gen braga: > >? ? ? > Paste your??/etc/apt/sources.list > >? ? ? > > >? ? ? > > > > > > > > >? ? ?Here you are, hope you can see where the problem is: > > > >? ? ?# deb cdrom:[Ubuntu-MATE 18.04.1 LTS _Bionic Beaver_ - > Release amd64 > >? ? ?(20180725)]/ bionic main multiverse restricted universe > > > >? ? ?# See http://help.ubuntu.com/community/UpgradeNotes for how to > >? ? ?upgrade to > >? ? ?# newer versions of the distribution. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic main restricted > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main > restricted > > > >? ? ?## Major bug fix updates produced after the final release of the > >? ? ?## distribution. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates main > restricted > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > main > >? ? ?restricted > > > >? ? ?## N.B. software from this repository is ENTIRELY UNSUPPORTED > by the > >? ? ?Ubuntu > >? ? ?## team. Also, please note that software in universe WILL NOT > >? ? ?receive any > >? ? ?## review or updates from the Ubuntu security team. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic universe > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > universe > > > >? ? ?## N.B. software from this repository is ENTIRELY UNSUPPORTED > by the > >? ? ?Ubuntu > >? ? ?## team, and may not be under a free licence. Please satisfy > >? ? ?yourself as to > >? ? ?## your rights to use the software. Also, please note that > software in > >? ? ?## multiverse WILL NOT receive any review or updates from the > Ubuntu > >? ? ?## security team. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates > multiverse > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > multiverse > > > >? ? ?## N.B. software from this repository may not have been tested as > >? ? ?## extensively as that contained in the main release, although it > >? ? ?includes > >? ? ?## newer versions of some applications which may provide useful > >? ? ?features. > >? ? ?## Also, please note that software in backports WILL NOT > receive any > >? ? ?review > >? ? ?## or updates from the Ubuntu security team. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > >? ? ?restricted universe multiverse > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ > bionic-backports main > >? ? ?restricted universe multiverse > > > >? ? ?## Uncomment the following two lines to add software from > Canonical's > >? ? ?## 'partner' repository. > >? ? ?## This software is not part of Ubuntu, but is offered by > Canonical > >? ? ?and the > >? ? ?## respective vendors as a service to Ubuntu users. > >? ? ?# deb http://archive.canonical.com/ubuntu bionic partner > >? ? ?# deb-src http://archive.canonical.com/ubuntu bionic partner > > > >? ? ?deb http://security.ubuntu.com/ubuntu bionic-security main > restricted > >? ? ?# deb-src http://security.ubuntu.com/ubuntu bionic-security main > >? ? ?restricted > >? ? ?deb http://security.ubuntu.com/ubuntu bionic-security universe > >? ? ?# deb-src http://security.ubuntu.com/ubuntu bionic-security > universe > >? ? ?deb http://security.ubuntu.com/ubuntu bionic-security multiverse > >? ? ?# deb-src http://security.ubuntu.com/ubuntu bionic-security > multiverse > > > > > > > > > > > > > >? ? ? > > >? ? ? > > >? ? ? > Em qua, 14 de nov de 2018 17:07, T Lee Davidson > >? ? ? > > > >? ? ? >> > >? ? ?escreveu: > >? ? ? > > >? ? ? >? ? ?And for those who may not know how to use an online > translator: > >? ? ? > > >? ? ? >? ? ?# apt-get install gambas3-script > >? ? ? >? ? ?Package lists are read ... Finished > >? ? ? >? ? ?Dependency tree is built up. > >? ? ? >? ? ?Status information is read in ... Finished > >? ? ? >? ? ?Package gambas3-script is not available, but is made by > >? ? ?another package > >? ? ? >? ? ?Referenced. This may mean that the package is missing, > that it is > >? ? ? >? ? ?superseded > >? ? ? >? ? ?Or is only available from another source. > >? ? ? > > >? ? ? >? ? ?E: There is no installation candidate for package? > >? ? ?gambas3-script ?. > >? ? ? > > >? ? ? > > >? ? ? >? ? ?___ > >? ? ? >? ? ?Lee > >? ? ? > > >? ? ? > > >? ? ? >? ? ?On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > >? ? ? >? ? ? > Here you are: > >? ? ? >? ? ? > > >? ? ? >? ? ? > # apt-get install gambas3-script > >? ? ? >? ? ? > Paketlisten werden gelesen... Fertig > >? ? ? >? ? ? > Abh?ngigkeitsbaum wird aufgebaut. > >? ? ? >? ? ? > Statusinformationen werden eingelesen.... Fertig > >? ? ? >? ? ? > Paket gambas3-script ist nicht verf?gbar, wird aber > von einem > >? ? ? >? ? ?anderen Paket > >? ? ? >? ? ? > referenziert. Das kann hei?en, dass das Paket > fehlt, dass > >? ? ?es abgel?st > >? ? ? >? ? ? > wurde oder nur aus einer anderen Quelle verf?gbar ist. > >? ? ? >? ? ? > > >? ? ? >? ? ? > E: F?r Paket ?gambas3-script? existiert kein > >? ? ?Installationskandidat. > >? ? ? >? ? ? > > >? ? ? >? ? ? > > >? ? ? >? ? ? > Am 13.11.2018 um 18:30 schrieb gen braga: > >? ? ? >? ? ? >> Could you paste here the output error? > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert > >? ? ? >? ? ? > > > >? ? ? > >> > >? ? ? >? ? ? > > > >? ? ? > >>> escreveu: > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? Now I tried it, but it said something like "it > is in the > >? ? ? >? ? ?list, but the > >? ? ? >? ? ? >> ??? package isn't there". > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? So I tried to simply copy the old version > binary and link > >? ? ? >? ? ?from the > >? ? ? >? ? ? >> ??? older > >? ? ? >? ? ? >> ??? server, and it runs for now. > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? Regards > >? ? ? >? ? ? >> ??? Rolf > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? Am 13.11.2018 um 11:44 schrieb gen braga: > >? ? ? >? ? ? >> ???? > Did you try apt-get install gambas3-script? > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > Em ter, 13 de nov de 2018 08:36, > Rolf-Werner Eilert > >? ? ? >? ? ? >> ??? > > >? ? ? > >> > >? ? ? >? ? ? > > > >? ? ? > >>> > >? ? ? >? ? ? >> ???? > > >? ? ?> > > >? ? ?>> > >? ? ? >? ? ? > > > >? ? ? > >>>> escreveu: > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Am 12.11.2018 um 17:55 schrieb > Rolf-Werner Eilert: > >? ? ? >? ? ? >> ???? >? ? ? > Now I am on Ubuntu Mate. I installed > Gambas the > >? ? ? >? ? ?way you > >? ? ? >? ? ? >> ???? >? ? ?described, i.e. > >? ? ? >? ? ? >> ???? >? ? ? > via your repos, everything runs > fine, but the > >? ? ? >? ? ?scripter is > >? ? ? >? ? ? >> ??? missing. > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > It should be? /usr/bin/env gbs3, or > >? ? ?/usr/bin/gbs3? > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > There is gba, gbi, gbr, gbx... but > no gbs3. > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > Where has it gone? :) > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > Thanks for any help! > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > Rolf > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > ----[ Gambas mailing-list is hosted by > >? ? ? >? ? ? >> ???? > https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Nobody knows it? I just looked it up on > my older > >? ? ? >? ? ?system, there is > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" > to it. > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?So, is it just an additional program to be > >? ? ?installed > >? ? ? >? ? ? >> ??? separately? I > >? ? ? >? ? ? >> ???? >? ? ?couldn't find anything in the Software > Farm. > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Well, if nobody knows, I will try to > just copy the > >? ? ? >? ? ?thing from > >? ? ? >? ? ? >> ??? the old > >? ? ? >? ? ? >> ???? >? ? ?system, but there might be side-effects... > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Regards > >? ? ? >? ? ? >> ???? >? ? ?Rolf > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?----[ Gambas mailing-list is hosted by > >? ? ? >? ? ? >> https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > ----[ Gambas mailing-list is hosted by > >? ? ? >? ? ? >> https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? ----[ Gambas mailing-list is hosted by > >? ? ? > https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ----[ Gambas mailing-list is hosted by > >? ? ? > https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> > >? ? ? >? ? ? > > >? ? ? >? ? ? > > >? ? ? >? ? ? > ----[ Gambas mailing-list is hosted by > >? ? ? > https://www.hostsharing.net ]---- > >? ? ? > > >? ? ? >? ? ?----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? > > >? ? ? > > >? ? ? > > >? ? ? > > >? ? ? > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? > > > > > > >? ? ?----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From rwe-sse at osnanet.de Tue Nov 20 12:45:40 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 20 Nov 2018 12:45:40 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> Message-ID: <0f9cff4a-cb02-5b8c-0da3-9480295f1598@osnanet.de> Another question: Why is the scripter not in the usual package but has to be installed separately? It is such a powerful tool, isn't it a shame that it is not directly available together with the rest of the Gambas parts? Regards Rolf Am 20.11.2018 um 11:49 schrieb gen braga: > Rolf, my mistake. > > actually the repo is located in > > //etc/apt/sources.list.d// > > where should be a file called > > /gambas-team-ubuntu-gambas3-bionic.list/ > > or something like that. When you look inside it, should read like > > /deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic main > # deb-src http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic main > / > > but I think yours is correct, as you said you followed the link on Wiki. > > if everything is ok, a simple > > */sudo apt-get update/* > */sudo apt-get install gambas3-scripter/* > > would do the job, installing any dependency and the package as well. > > Humn.. seems I made another mistake here... I told you previously to > > /*sudo apt-get install gambas3-script * > / > / > / > instead of // > // > // > // > //*sudo apt-get install gambas3-scriptER* //(without uppercase, of course)// > // > > I checked? the repo and all files are Ok, and i just installed it again. > > If dont, try downloading it directly from > > http://ppa.launchpad.net/gambas-team/gambas3/ubuntu/pool/main/g/gambas3/gambas3-scripter_3.11.4+git6006.c199130+build1.4250560.5.93b81c7~ubuntu18.04.1_all.deb > > and install manually. > > Cheers. > > Em ter, 20 de nov de 2018 ?s 05:22, Rolf-Werner Eilert > > escreveu: > > But this is exactly what I did, as two of you guys pointed me to it in > an earlier thread. > > I did not "add-apt-repository ppa:gambas-team/gambas3" before sending > you the sources.list, but I did before installing gambas, so I think it > was from the right repo. > > How can I check for it? And in case it failed, what would I do to > correct that? > > Regards > Rolf > > > > Am 19.11.2018 um 19:16 schrieb gen braga: > > Seems you're using your distro's official repo and maybe its > somewhat > > broken. > > > > You could try Gambas's repo as below > > > > http://gambaswiki.org/wiki/install/ubuntu#t2 > > > > Not sure If it's the best path but I do this way and everything > is ok. > > > > Em seg, 19 de nov de 2018 15:50, Rolf-Werner Eilert > > > > escreveu: > > > >? ? ?Sorry, didn't see your answer. > > > >? ? ?Am 14.11.2018 um 20:16 schrieb gen braga: > >? ? ? > Paste your??/etc/apt/sources.list > >? ? ? > > >? ? ? > > > > > > > > >? ? ?Here you are, hope you can see where the problem is: > > > >? ? ?# deb cdrom:[Ubuntu-MATE 18.04.1 LTS _Bionic Beaver_ - > Release amd64 > >? ? ?(20180725)]/ bionic main multiverse restricted universe > > > >? ? ?# See http://help.ubuntu.com/community/UpgradeNotes for how to > >? ? ?upgrade to > >? ? ?# newer versions of the distribution. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic main restricted > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main > restricted > > > >? ? ?## Major bug fix updates produced after the final release of the > >? ? ?## distribution. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates main > restricted > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > main > >? ? ?restricted > > > >? ? ?## N.B. software from this repository is ENTIRELY UNSUPPORTED > by the > >? ? ?Ubuntu > >? ? ?## team. Also, please note that software in universe WILL NOT > >? ? ?receive any > >? ? ?## review or updates from the Ubuntu security team. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic universe > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > universe > > > >? ? ?## N.B. software from this repository is ENTIRELY UNSUPPORTED > by the > >? ? ?Ubuntu > >? ? ?## team, and may not be under a free licence. Please satisfy > >? ? ?yourself as to > >? ? ?## your rights to use the software. Also, please note that > software in > >? ? ?## multiverse WILL NOT receive any review or updates from the > Ubuntu > >? ? ?## security team. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates > multiverse > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates > multiverse > > > >? ? ?## N.B. software from this repository may not have been tested as > >? ? ?## extensively as that contained in the main release, although it > >? ? ?includes > >? ? ?## newer versions of some applications which may provide useful > >? ? ?features. > >? ? ?## Also, please note that software in backports WILL NOT > receive any > >? ? ?review > >? ? ?## or updates from the Ubuntu security team. > >? ? ?deb http://de.archive.ubuntu.com/ubuntu/ bionic-backports main > >? ? ?restricted universe multiverse > >? ? ?# deb-src http://de.archive.ubuntu.com/ubuntu/ > bionic-backports main > >? ? ?restricted universe multiverse > > > >? ? ?## Uncomment the following two lines to add software from > Canonical's > >? ? ?## 'partner' repository. > >? ? ?## This software is not part of Ubuntu, but is offered by > Canonical > >? ? ?and the > >? ? ?## respective vendors as a service to Ubuntu users. > >? ? ?# deb http://archive.canonical.com/ubuntu bionic partner > >? ? ?# deb-src http://archive.canonical.com/ubuntu bionic partner > > > >? ? ?deb http://security.ubuntu.com/ubuntu bionic-security main > restricted > >? ? ?# deb-src http://security.ubuntu.com/ubuntu bionic-security main > >? ? ?restricted > >? ? ?deb http://security.ubuntu.com/ubuntu bionic-security universe > >? ? ?# deb-src http://security.ubuntu.com/ubuntu bionic-security > universe > >? ? ?deb http://security.ubuntu.com/ubuntu bionic-security multiverse > >? ? ?# deb-src http://security.ubuntu.com/ubuntu bionic-security > multiverse > > > > > > > > > > > > > >? ? ? > > >? ? ? > > >? ? ? > Em qua, 14 de nov de 2018 17:07, T Lee Davidson > >? ? ? > > > >? ? ? >> > >? ? ?escreveu: > >? ? ? > > >? ? ? >? ? ?And for those who may not know how to use an online > translator: > >? ? ? > > >? ? ? >? ? ?# apt-get install gambas3-script > >? ? ? >? ? ?Package lists are read ... Finished > >? ? ? >? ? ?Dependency tree is built up. > >? ? ? >? ? ?Status information is read in ... Finished > >? ? ? >? ? ?Package gambas3-script is not available, but is made by > >? ? ?another package > >? ? ? >? ? ?Referenced. This may mean that the package is missing, > that it is > >? ? ? >? ? ?superseded > >? ? ? >? ? ?Or is only available from another source. > >? ? ? > > >? ? ? >? ? ?E: There is no installation candidate for package? > >? ? ?gambas3-script ?. > >? ? ? > > >? ? ? > > >? ? ? >? ? ?___ > >? ? ? >? ? ?Lee > >? ? ? > > >? ? ? > > >? ? ? >? ? ?On 11/14/18 2:02 PM, Rolf-Werner Eilert wrote: > >? ? ? >? ? ? > Here you are: > >? ? ? >? ? ? > > >? ? ? >? ? ? > # apt-get install gambas3-script > >? ? ? >? ? ? > Paketlisten werden gelesen... Fertig > >? ? ? >? ? ? > Abh?ngigkeitsbaum wird aufgebaut. > >? ? ? >? ? ? > Statusinformationen werden eingelesen.... Fertig > >? ? ? >? ? ? > Paket gambas3-script ist nicht verf?gbar, wird aber > von einem > >? ? ? >? ? ?anderen Paket > >? ? ? >? ? ? > referenziert. Das kann hei?en, dass das Paket > fehlt, dass > >? ? ?es abgel?st > >? ? ? >? ? ? > wurde oder nur aus einer anderen Quelle verf?gbar ist. > >? ? ? >? ? ? > > >? ? ? >? ? ? > E: F?r Paket ?gambas3-script? existiert kein > >? ? ?Installationskandidat. > >? ? ? >? ? ? > > >? ? ? >? ? ? > > >? ? ? >? ? ? > Am 13.11.2018 um 18:30 schrieb gen braga: > >? ? ? >? ? ? >> Could you paste here the output error? > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> Em ter, 13 de nov de 2018 15:00, Rolf-Werner Eilert > >? ? ? >? ? ? > > > >? ? ? > >> > >? ? ? >? ? ? > > > >? ? ? > >>> escreveu: > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? Now I tried it, but it said something like "it > is in the > >? ? ? >? ? ?list, but the > >? ? ? >? ? ? >> ??? package isn't there". > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? So I tried to simply copy the old version > binary and link > >? ? ? >? ? ?from the > >? ? ? >? ? ? >> ??? older > >? ? ? >? ? ? >> ??? server, and it runs for now. > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? Regards > >? ? ? >? ? ? >> ??? Rolf > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? Am 13.11.2018 um 11:44 schrieb gen braga: > >? ? ? >? ? ? >> ???? > Did you try apt-get install gambas3-script? > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > Em ter, 13 de nov de 2018 08:36, > Rolf-Werner Eilert > >? ? ? >? ? ? >> ??? > > >? ? ? > >> > >? ? ? >? ? ? > > > >? ? ? > >>> > >? ? ? >? ? ? >> ???? > > >? ? ?> > > >? ? ?>> > >? ? ? >? ? ? > > > >? ? ? > >>>> escreveu: > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Am 12.11.2018 um 17:55 schrieb > Rolf-Werner Eilert: > >? ? ? >? ? ? >> ???? >? ? ? > Now I am on Ubuntu Mate. I installed > Gambas the > >? ? ? >? ? ?way you > >? ? ? >? ? ? >> ???? >? ? ?described, i.e. > >? ? ? >? ? ? >> ???? >? ? ? > via your repos, everything runs > fine, but the > >? ? ? >? ? ?scripter is > >? ? ? >? ? ? >> ??? missing. > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > It should be? /usr/bin/env gbs3, or > >? ? ?/usr/bin/gbs3? > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > There is gba, gbi, gbr, gbx... but > no gbs3. > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > Where has it gone? :) > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > Thanks for any help! > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > Rolf > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > ----[ Gambas mailing-list is hosted by > >? ? ? >? ? ? >> ???? > https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? >? ? ? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Nobody knows it? I just looked it up on > my older > >? ? ? >? ? ?system, there is > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?/usr/bin/gbs.gambas3 and a link "gbs3" > to it. > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?So, is it just an additional program to be > >? ? ?installed > >? ? ? >? ? ? >> ??? separately? I > >? ? ? >? ? ? >> ???? >? ? ?couldn't find anything in the Software > Farm. > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Well, if nobody knows, I will try to > just copy the > >? ? ? >? ? ?thing from > >? ? ? >? ? ? >> ??? the old > >? ? ? >? ? ? >> ???? >? ? ?system, but there might be side-effects... > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?Regards > >? ? ? >? ? ? >> ???? >? ? ?Rolf > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? >? ? ?----[ Gambas mailing-list is hosted by > >? ? ? >? ? ? >> https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> ???? > ----[ Gambas mailing-list is hosted by > >? ? ? >? ? ? >> https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> ???? > > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ??? ----[ Gambas mailing-list is hosted by > >? ? ? > https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> > >? ? ? >? ? ? >> ----[ Gambas mailing-list is hosted by > >? ? ? > https://www.hostsharing.net ]---- > >? ? ? >? ? ? >> > >? ? ? >? ? ? > > >? ? ? >? ? ? > > >? ? ? >? ? ? > ----[ Gambas mailing-list is hosted by > >? ? ? > https://www.hostsharing.net ]---- > >? ? ? > > >? ? ? >? ? ?----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? > > >? ? ? > > >? ? ? > > >? ? ? > > >? ? ? > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > >? ? ? > > > > > > >? ? ?----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From bagonergi at gmail.com Tue Nov 20 12:59:21 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 20 Nov 2018 12:59:21 +0100 Subject: [Gambas-user] SelectedText In-Reply-To: <8442e91d-686b-41ad-8e9c-44789639c284@cogier.com> References: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> <1880d4db-e518-d3c8-8873-f64bd3beda89@gmail.com> <8442e91d-686b-41ad-8e9c-44789639c284@cogier.com> Message-ID: Hi Charlie, me too works well with Ubuntu Bionic. If the problem persists you could try installing the canberra library: $ sudo apt install libcanberra-gtk-module Regards Gianluigi Il giorno lun 19 nov 2018 alle ore 18:55 Charlie Ogier ha scritto: > Thanks for the reply Lee. I have created a video to show the problem which > you can see here. > > > On 19/11/2018 14:14, T Lee Davidson wrote: > > On 11/18/18 11:49 AM, Charlie Ogier wrote: > > Hi, > > Can you tell me if there is a bug here. Run the attached program, select some text, right click and select "Display". > > The "Display" text is not what is selected. If 'qt4' of 'qt5' is used it works as expected but not with 'gtk2' or 'gtk3' > > Thanks, > > Charlie > > [System] > Gambas=3.11.4 > OperatingSystem=Linux > Kernel=4.15.0-39-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=CINNAMON > Theme=Gtk > Language=en_GB.UTF-8 > Memory=7848M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2200.30 > OpenGL=libGL.so.1.0.0 > Poppler=libpoppler.so.73.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.9.5 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CINNAMON_VERSION=3.8.9 > CLUTTER_PAINT=continuous-redraw > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=en_GB > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=en_GB.UTF-8 > LANGUAGE=en_GB > LC_ADDRESS=en_GB.UTF-8 > LC_IDENTIFICATION=en_GB.UTF-8 > LC_MEASUREMENT=en_GB.UTF-8 > LC_MONETARY=en_GB.UTF-8 > LC_NAME=en_GB.UTF-8 > LC_NUMERIC=en_GB.UTF-8 > LC_PAPER=en_GB.UTF-8 > LC_TELEPHONE=en_GB.UTF-8 > LC_TIME=en_GB.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PAPERSIZE=a4 > PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1195,unix/:/tmp/.ICE-unix/1195 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1260 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > It works as expected here with both GTK2 and GTK3. > > > ___ > Lee > > > [System] > Gambas=3.11.90 6303762ff (master) > OperatingSystem=Linux > Kernel=4.4.159-73-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.7 > 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-txC0OFCdZ3,guid=3f6002637ea2a0c7794764635bf2b8ca > 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-zpTCy0/S.gpg-agent:2396: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/2458,unix/:/tmp/.ICE-unix/2458 > SHELL=/bin/bash > SHLVL=1 > SSH_AGENT_PID=2395 > SSH_ASKPASS=/usr/lib/ssh/ksshaskpass > SSH_AUTH_SOCK=/tmp/ssh-P4cXC1EF4hrJ/agent.2288 > 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=2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB > XMODIFIERS=@im=local > XNLSPATH=/usr/share/X11/nls > XSESSION_IS_UP=yes > _=/usr/bin/kwrapper5 > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Nov 20 13:11:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 20 Nov 2018 13:11:48 +0100 Subject: [Gambas-user] Where is the scripter? In-Reply-To: <0f9cff4a-cb02-5b8c-0da3-9480295f1598@osnanet.de> References: <3a1759f4-e2e8-4834-fbd7-472ddf3ea6f5@osnanet.de> <72dcb28a-66a6-1d18-02da-14fc61c86600@osnanet.de> <05e67d41-b4fb-6c57-c3c4-f5b35b1c8b14@osnanet.de> <5f22f7bc-257d-8bff-5426-8f81aee58409@osnanet.de> <0f9cff4a-cb02-5b8c-0da3-9480295f1598@osnanet.de> Message-ID: <99418048-0635-13fb-8f8c-d47de8a70fd9@gmail.com> Le 20/11/2018 ? 12:45, Rolf-Werner Eilert a ?crit?: > Another question: Why is the scripter not in the usual package but has > to be installed separately? > > It is such a powerful tool, isn't it a shame that it is not directly > available together with the rest of the Gambas parts? > > Regards > Rolf > Because it depends on the gambas3-dev(el) package, which is not mandatory to run Gambas programs. -- Beno?t Minisini From hans at gambas-buch.de Tue Nov 20 13:35:48 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 20 Nov 2018 13:35:48 +0100 Subject: [Gambas-user] Path specification In-Reply-To: <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: Am 19.08.18 um 16:51 schrieb Beno?t Minisini: > "./gb.xxx/abcd" --> 'abcd' in the 'gb.xxx' component if it is actually > loaded. > > I'm still looking for better syntaxes that are compatible with the old > ones described in the wiki: > > - The problem with './gb.xxx/abcd' is that you can't access a 'gb.xxx' > directory in your project without using the 'gb.xxx' syntax directly. > ***** > > - The problem with '.../abcd' is its ugliness. > > - And so on... > > Regards, > > -- > Beno?t Minisini Hello, I don't understand the sentence in the line ***. In a project P I load a component C, in whose project directory the file h.txt is located. The line *** indicates that you can access the file h.txt in P. Unfortunately I don't succeed! What now - what to do? With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Nov 20 14:07:51 2018 From: adamnt42 at gmail.com (Bruce) Date: Tue, 20 Nov 2018 23:37:51 +1030 Subject: [Gambas-user] Path specification In-Reply-To: References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: <8be611ee-33e1-6255-e5e0-3cdb3a13897b@gmail.com> Well, I wasn't going to, but I will. Relative pathing, as it is now, gives you access to the immediate executable archive or the ultimate parent archive. It works up the dependency chain. So "./somewhere/something.txt" in an application level archive gives you runtime access to a file in the archive for the application itself. If the application is "A" then the application, at runtime, access a file in its own archive ("A.gambas") in a subdirectory "somewhere" called "something.txt". Naturally, this will be read only access. Now this means that inside the "A" project, i.e. the source project, not the archive, there will be a subdirectory called "somewhere" where "something.txt" is located. A library or (a written in gambas) component can do the same thing. After all they are just gambas exxecutable archives. They can access files inside their own archive by using the "./" relative path. They can also do one other thing, they can refer to a file in the top level archive, i.e. the running application by using the "../" relative path. This is what I mean by "up the dependency chain". But this does not in any way convey an ability, nor any abillity, to interrogate something DOWN that chain. Although we are talking about a dependency chain and not an inheritance hierarchy, to me a similar principal to inheritance "encapsulation" applies here. If you want to make some static data in a library available further up in the dependency chain then you have to construct a method within that library that exposes such data to user projects. > I don't understand the sentence in the line ***. In a project P I load a > component C, in whose project directory the file h.txt is located. The > line *** indicates that you can access the file h.txt in P. So, no. What Beno?t was referring to here is something completely different to what I think you are trying to do. best regards b On 11/20/18 11:05 PM, Hans Lehmann wrote: > Am 19.08.18 um 16:51 schrieb Beno?t Minisini: >> "./gb.xxx/abcd" --> 'abcd' in the 'gb.xxx' component if it is actually >> loaded. >> >> I'm still looking for better syntaxes that are compatible with the old >> ones described in the wiki: >> >> - The problem with './gb.xxx/abcd' is that you can't access a 'gb.xxx' >> directory in your project without using the 'gb.xxx' syntax directly. >> ***** >> >> - The problem with '.../abcd' is its ugliness. >> >> - And so on... >> >> Regards, >> >> -- >> Beno?t Minisini > > Hello, > I don't understand the sentence in the line ***. In a project P I load a > component C, in whose project directory the file h.txt is located. The > line *** indicates that you can access the file h.txt in P. > Unfortunately I don't succeed! What now - what to do? > > With kind regards > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From adamnt42 at gmail.com Tue Nov 20 14:25:01 2018 From: adamnt42 at gmail.com (Bruce) Date: Tue, 20 Nov 2018 23:55:01 +1030 Subject: [Gambas-user] Path specification In-Reply-To: <8be611ee-33e1-6255-e5e0-3cdb3a13897b@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <8be611ee-33e1-6255-e5e0-3cdb3a13897b@gmail.com> Message-ID: <2c32ec85-f0c2-5687-c379-787127d97a1a@gmail.com> > Hello, > I don't understand the sentence in the line ***. In a project P I load a > component C, in whose project directory the file h.txt is located. The > line *** indicates that you can access the file h.txt in P. > Unfortunately I don't succeed! What now - what to do? So, given the previous I just wrote. I you want "P" to be able to see the content of "C"s h.txt, then : Write a class or module in "C", say "MyData" that exposes that content, as say "MyText". So then "P" will be able to see (in a read only manner) "C"s MyData.MyText property (or public variable). It all actually makes sense if you think about it. b From g4mba5 at gmail.com Tue Nov 20 14:33:41 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 20 Nov 2018 14:33:41 +0100 Subject: [Gambas-user] Path specification In-Reply-To: <8be611ee-33e1-6255-e5e0-3cdb3a13897b@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <8be611ee-33e1-6255-e5e0-3cdb3a13897b@gmail.com> Message-ID: Le 20/11/2018 ? 14:07, Bruce a ?crit?: > Well, I wasn't going to, but I will. > > Relative pathing, as it is now, gives you access to the immediate > executable archive or the ultimate parent archive. It works up the > dependency chain. > > [...] The current syntax of relative paths is : '../' ==> access to a file located in the calling component, i.e. the component of the first method in the stack backtrace that is not in the same component than the current one ; the top-level component being the current project. '.../' ==> access to a file located in the current project. './/' ==> access to a file located in the specified component, provided that, of course, the component has been loaded. Otherwise, './' or just '' ==> access to a file located in the current component. I hope it's more clear now. The './/' syntax may change before the 3.12 release. Maybe for something like '.[]/', or '../', or something else. Regards, -- Beno?t Minisini From hans at gambas-buch.de Tue Nov 20 14:34:55 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 20 Nov 2018 14:34:55 +0100 Subject: [Gambas-user] Path specification In-Reply-To: <8be611ee-33e1-6255-e5e0-3cdb3a13897b@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> <8be611ee-33e1-6255-e5e0-3cdb3a13897b@gmail.com> Message-ID: <84cfe8bd-a5f9-ca4d-4b88-c00ef5913cf9@gambas-buch.de> Am 20.11.18 um 14:07 schrieb Bruce: > They can also do one other thing, they can refer to a file in the top > level archive, i.e. the running application by using the "../" > relative path. I understood the first few paragraphs. Thank you for the explanations. My question is for the note: "They can also do one other thing, they can refer to a file in the top level archive, i.e. the running application by using the "../" relative path." Does this mean that I can access a file in the current project from a loaded component/library? A code snippet would be very helpful - if time permits. Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Nov 20 16:50:16 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 20 Nov 2018 10:50:16 -0500 Subject: [Gambas-user] SelectedText In-Reply-To: References: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> <1880d4db-e518-d3c8-8873-f64bd3beda89@gmail.com> <8442e91d-686b-41ad-8e9c-44789639c284@cogier.com> Message-ID: Isn't the canberra library for event sounds? I don't see how that would relate. I think the issue may be related to the error notice given in the console that the 'owner-change' signal is invalid for the GtkClipboard instance. (Why would the owner change? Why would the signal be invalid?) Charlie, could you try setting the clipboard to "ignore selection" or similar (the signal error pops up immediately when you start dragging to highlight), or try a different clipboard? I installed and tried gclipper, and still got no error. ___ Lee P.S. Your GTK libs: GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 Mine: GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.31 GTK+3=/usr/lib64/libgtk-3.so.0.2000.10 On 11/20/18 6:59 AM, Gianluigi wrote: > Hi Charlie, > me too works well with Ubuntu Bionic. > If the problem persists you could try installing the canberra library: > $ sudo apt install libcanberra-gtk-module > > Regards > Gianluigi > > Il giorno lun 19 nov 2018 alle ore 18:55 Charlie Ogier > ha scritto: > > Thanks for the reply Lee. I have created a video to show the problem which you can see here. > > > > On 19/11/2018 14:14, T Lee Davidson wrote: >> On 11/18/18 11:49 AM, Charlie Ogier wrote: >>> Hi, >>> >>> Can you tell me if there is a bug here. Run the attached program, select some text, right click and select "Display". >>> >>> The "Display" text is not what is selected. If 'qt4' of 'qt5' is used it works as expected but not with 'gtk2' or 'gtk3' >>> >>> Thanks, >>> >>> Charlie >>> >>> [System] >>> Gambas=3.11.4 >>> OperatingSystem=Linux >>> Kernel=4.15.0-39-generic >>> Architecture=x86_64 >>> Distribution=Linux Mint 19 Tara >>> Desktop=CINNAMON >>> Theme=Gtk >>> Language=en_GB.UTF-8 >>> Memory=7848M >>> >>> [Libraries] >>> Cairo=libcairo.so.2.11510.0 >>> Curl=libcurl.so.4.5.0 >>> DBus=libdbus-1.so.3.19.4 >>> GStreamer=libgstreamer-1.0.so.0.1401.0 >>> GTK+2=libgtk-x11-2.0.so.0.2400.32 >>> GTK+3=libgtk-3.so.0.2200.30 >>> OpenGL=libGL.so.1.0.0 >>> Poppler=libpoppler.so.73.0.0 >>> QT4=libQtCore.so.4.8.7 >>> QT5=libQt5Core.so.5.9.5 >>> SDL=libSDL-1.2.so.0.11.4 >>> SQLite=libsqlite3.so.0.8.6 >>> >>> [Environment] >>> CINNAMON_VERSION=3.8.9 >>> CLUTTER_PAINT=continuous-redraw >>> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >>> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path >>> DESKTOP_SESSION=cinnamon >>> DISPLAY=:0 >>> GB_GUI=gb.qt4 >>> GDMSESSION=cinnamon >>> GDM_LANG=en_GB >>> GJS_DEBUG_OUTPUT=stderr >>> GJS_DEBUG_TOPICS=JS ERROR;JS LOG >>> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >>> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 >>> GTK_MODULES=gail:atk-bridge >>> GTK_OVERLAY_SCROLLING=1 >>> HOME= >>> LANG=en_GB.UTF-8 >>> LANGUAGE=en_GB >>> LC_ADDRESS=en_GB.UTF-8 >>> LC_IDENTIFICATION=en_GB.UTF-8 >>> LC_MEASUREMENT=en_GB.UTF-8 >>> LC_MONETARY=en_GB.UTF-8 >>> LC_NAME=en_GB.UTF-8 >>> LC_NUMERIC=en_GB.UTF-8 >>> LC_PAPER=en_GB.UTF-8 >>> LC_TELEPHONE=en_GB.UTF-8 >>> LC_TIME=en_GB.UTF-8 >>> LOGNAME= >>> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path >>> PAPERSIZE=a4 >>> PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >>> PWD= >>> QT_ACCESSIBILITY=1 >>> QT_QPA_PLATFORMTHEME=qt5ct >>> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1195,unix/:/tmp/.ICE-unix/1195 >>> SHELL=/bin/bash >>> SHLVL=0 >>> SSH_AGENT_PID=1260 >>> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >>> TZ=:/etc/localtime >>> USER= >>> XAUTHORITY=/.Xauthority >>> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg >>> XDG_CURRENT_DESKTOP=X-Cinnamon >>> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share >>> >>> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >>> XDG_RUNTIME_DIR=/run/user/1000 >>> XDG_SEAT=seat0 >>> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >>> XDG_SESSION_DESKTOP=cinnamon >>> XDG_SESSION_ID=c1 >>> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >>> XDG_SESSION_TYPE=x11 >>> XDG_VTNR=7 >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> It works as expected here with both GTK2 and GTK3. >> >> >> ___ >> Lee >> >> >> [System] >> Gambas=3.11.90 6303762ff (master) >> OperatingSystem=Linux >> Kernel=4.4.159-73-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.7 >> 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-txC0OFCdZ3,guid=3f6002637ea2a0c7794764635bf2b8ca >> 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-zpTCy0/S.gpg-agent:2396: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/2458,unix/:/tmp/.ICE-unix/2458 >> SHELL=/bin/bash >> SHLVL=1 >> SSH_AGENT_PID=2395 >> SSH_ASKPASS=/usr/lib/ssh/ksshaskpass >> SSH_AUTH_SOCK=/tmp/ssh-P4cXC1EF4hrJ/agent.2288 >> 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=2 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB >> XMODIFIERS=@im=local >> XNLSPATH=/usr/share/X11/nls >> XSESSION_IS_UP=yes >> _=/usr/bin/kwrapper5 >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From t.lee.davidson at gmail.com Tue Nov 20 17:32:23 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 20 Nov 2018 11:32:23 -0500 Subject: [Gambas-user] Path specification In-Reply-To: <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> References: <0e582d26-ca6c-d4ce-a30d-71802115b266@gambas-buch.de> <20180819094712.GC869@highrise.localdomain> <20180819115802.GE869@highrise.localdomain> <6e29baee-f013-d1ad-05bd-479f4c710459@gmail.com> Message-ID: On 8/19/18 10:51 AM, Beno?t Minisini wrote: > I'm still looking for better syntaxes that are compatible with the old ones?described?in?the?wiki: The only description I find of the syntaxes for relative paths is at http://gambaswiki.org/wiki/cat/path : "If you need to access a file located in the main project from a component, it is possible! You must start your relative path by the ../ sequence." > > -?The?problem?with?'.../abcd'?is?its?ugliness. What about using some arbitrary symbol such as "!" or "^" (eg. '^/abcd')? ___ Lee From bagonergi at gmail.com Tue Nov 20 18:08:42 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 20 Nov 2018 18:08:42 +0100 Subject: [Gambas-user] SelectedText In-Reply-To: References: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> <1880d4db-e518-d3c8-8873-f64bd3beda89@gmail.com> <8442e91d-686b-41ad-8e9c-44789639c284@cogier.com> Message-ID: Yes, I know what canberra is used for [0]. I have the same GTK libraries as Charlie and I know that canberra is useful to Gambas and I also know that PPA not install it. Installing it can not hurt, even if it will not help in this case. Regards Gianluigi [0] https://packages.ubuntu.com/search?keywords=libcanberra-gtk-module&searchon=names&suite=bionic§ion=all Il giorno mar 20 nov 2018 alle ore 16:51 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > Isn't the canberra library for event sounds? I don't see how that would > relate. > > I think the issue may be related to the error notice given in the console > that the 'owner-change' signal is invalid for the > GtkClipboard instance. (Why would the owner change? Why would the signal > be invalid?) > > Charlie, could you try setting the clipboard to "ignore selection" or > similar (the signal error pops up immediately when you > start dragging to highlight), or try a different clipboard? I installed > and tried gclipper, and still got no error. > > > ___ > Lee > > P.S. > Your GTK libs: > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2200.30 > > Mine: > GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.31 > GTK+3=/usr/lib64/libgtk-3.so.0.2000.10 > > > > On 11/20/18 6:59 AM, Gianluigi wrote: > > Hi Charlie, > > me too works well with Ubuntu Bionic. > > If the problem persists you could try installing the canberra library: > > $ sudo apt install libcanberra-gtk-module > > > > Regards > > Gianluigi > > > > Il giorno lun 19 nov 2018 alle ore 18:55 Charlie Ogier < > charlie at cogier.com > ha scritto: > > > > Thanks for the reply Lee. I have created a video to show the problem > which you can see here. > > > > > > > > On 19/11/2018 14:14, T Lee Davidson wrote: > >> On 11/18/18 11:49 AM, Charlie Ogier wrote: > >>> Hi, > >>> > >>> Can you tell me if there is a bug here. Run the attached program, > select some text, right click and select "Display". > >>> > >>> The "Display" text is not what is selected. If 'qt4' of 'qt5' is > used it works as expected but not with 'gtk2' or 'gtk3' > >>> > >>> Thanks, > >>> > >>> Charlie > >>> > >>> [System] > >>> Gambas=3.11.4 > >>> OperatingSystem=Linux > >>> Kernel=4.15.0-39-generic > >>> Architecture=x86_64 > >>> Distribution=Linux Mint 19 Tara > >>> Desktop=CINNAMON > >>> Theme=Gtk > >>> Language=en_GB.UTF-8 > >>> Memory=7848M > >>> > >>> [Libraries] > >>> Cairo=libcairo.so.2.11510.0 > >>> Curl=libcurl.so.4.5.0 > >>> DBus=libdbus-1.so.3.19.4 > >>> GStreamer=libgstreamer-1.0.so.0.1401.0 > >>> GTK+2=libgtk-x11-2.0.so.0.2400.32 > >>> GTK+3=libgtk-3.so.0.2200.30 > >>> OpenGL=libGL.so.1.0.0 > >>> Poppler=libpoppler.so.73.0.0 > >>> QT4=libQtCore.so.4.8.7 > >>> QT5=libQt5Core.so.5.9.5 > >>> SDL=libSDL-1.2.so.0.11.4 > >>> SQLite=libsqlite3.so.0.8.6 > >>> > >>> [Environment] > >>> CINNAMON_VERSION=3.8.9 > >>> CLUTTER_PAINT=continuous-redraw > >>> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > >>> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > >>> DESKTOP_SESSION=cinnamon > >>> DISPLAY=:0 > >>> GB_GUI=gb.qt4 > >>> GDMSESSION=cinnamon > >>> GDM_LANG=en_GB > >>> GJS_DEBUG_OUTPUT=stderr > >>> GJS_DEBUG_TOPICS=JS ERROR;JS LOG > >>> GNOME_DESKTOP_SESSION_ID=this-is-deprecated > >>> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > >>> GTK_MODULES=gail:atk-bridge > >>> GTK_OVERLAY_SCROLLING=1 > >>> HOME= > >>> LANG=en_GB.UTF-8 > >>> LANGUAGE=en_GB > >>> LC_ADDRESS=en_GB.UTF-8 > >>> LC_IDENTIFICATION=en_GB.UTF-8 > >>> LC_MEASUREMENT=en_GB.UTF-8 > >>> LC_MONETARY=en_GB.UTF-8 > >>> LC_NAME=en_GB.UTF-8 > >>> LC_NUMERIC=en_GB.UTF-8 > >>> LC_PAPER=en_GB.UTF-8 > >>> LC_TELEPHONE=en_GB.UTF-8 > >>> LC_TIME=en_GB.UTF-8 > >>> LOGNAME= > >>> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > >>> PAPERSIZE=a4 > >>> > PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > >>> PWD= > >>> QT_ACCESSIBILITY=1 > >>> QT_QPA_PLATFORMTHEME=qt5ct > >>> > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1195,unix/:/tmp/.ICE-unix/1195 > >>> SHELL=/bin/bash > >>> SHLVL=0 > >>> SSH_AGENT_PID=1260 > >>> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > >>> TZ=:/etc/localtime > >>> USER= > >>> XAUTHORITY=/.Xauthority > >>> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > >>> XDG_CURRENT_DESKTOP=X-Cinnamon > >>> > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > >>> > >>> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > >>> XDG_RUNTIME_DIR=/run/user/1000 > >>> XDG_SEAT=seat0 > >>> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > >>> XDG_SESSION_DESKTOP=cinnamon > >>> XDG_SESSION_ID=c1 > >>> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > >>> XDG_SESSION_TYPE=x11 > >>> XDG_VTNR=7 > >>> > >>> > >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > >>> > >> It works as expected here with both GTK2 and GTK3. > >> > >> > >> ___ > >> Lee > >> > >> > >> [System] > >> Gambas=3.11.90 6303762ff (master) > >> OperatingSystem=Linux > >> Kernel=4.4.159-73-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.7 > >> 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-txC0OFCdZ3,guid=3f6002637ea2a0c7794764635bf2b8ca > >> 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-zpTCy0/S.gpg-agent:2396: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/2458,unix/:/tmp/.ICE-unix/2458 > >> SHELL=/bin/bash > >> SHLVL=1 > >> SSH_AGENT_PID=2395 > >> SSH_ASKPASS=/usr/lib/ssh/ksshaskpass > >> SSH_AUTH_SOCK=/tmp/ssh-P4cXC1EF4hrJ/agent.2288 > >> 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=2 > >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 > >> XDG_SESSION_TYPE=x11 > >> XDG_VTNR=7 > >> XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB > >> XMODIFIERS=@im=local > >> XNLSPATH=/usr/share/X11/nls > >> XSESSION_IS_UP=yes > >> _=/usr/bin/kwrapper5 > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Tue Nov 20 17:49:19 2018 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 20 Nov 2018 16:49:19 +0000 Subject: [Gambas-user] SelectedText In-Reply-To: References: <61e68b8d-cb2f-fba3-34f7-3dd427a6022a@cogier.com> <1880d4db-e518-d3c8-8873-f64bd3beda89@gmail.com> <8442e91d-686b-41ad-8e9c-44789639c284@cogier.com> Message-ID: <70765418-05f6-4991-3b15-1a129f181588@cogier.com> Hi Guys, Thanks for the input. I tried the program on my laptop which has the same OS and it performed fine even though the GTK 'owner-changed' message still appeared. Looks like my main box needs a 'Nuke and pave'! Charlie On 20/11/2018 11:59, Gianluigi wrote: > Hi Charlie, > me too works well with Ubuntu Bionic. > If the problem persists you could try installing the canberra library: > $ sudo apt install libcanberra-gtk-module > > Regards > Gianluigi > > Il giorno lun 19 nov 2018 alle ore 18:55 Charlie Ogier > > ha scritto: > > Thanks for the reply Lee. I have created a video to show the > problem which you can see here. > > > > On 19/11/2018 14:14, T Lee Davidson wrote: >> On 11/18/18 11:49 AM, Charlie Ogier wrote: >>> Hi, >>> >>> Can you tell me if there is a bug here. Run the attached program, select some text, right click and select "Display". >>> >>> The "Display" text is not what is selected. If 'qt4' of 'qt5' is used it works as expected but not with 'gtk2' or 'gtk3' >>> >>> Thanks, >>> >>> Charlie >>> >>> [System] >>> Gambas=3.11.4 >>> OperatingSystem=Linux >>> Kernel=4.15.0-39-generic >>> Architecture=x86_64 >>> Distribution=Linux Mint 19 Tara >>> Desktop=CINNAMON >>> Theme=Gtk >>> Language=en_GB.UTF-8 >>> Memory=7848M >>> >>> [Libraries] >>> Cairo=libcairo.so.2.11510.0 >>> Curl=libcurl.so.4.5.0 >>> DBus=libdbus-1.so.3.19.4 >>> GStreamer=libgstreamer-1.0.so.0.1401.0 >>> GTK+2=libgtk-x11-2.0.so.0.2400.32 >>> GTK+3=libgtk-3.so.0.2200.30 >>> OpenGL=libGL.so.1.0.0 >>> Poppler=libpoppler.so.73.0.0 >>> QT4=libQtCore.so.4.8.7 >>> QT5=libQt5Core.so.5.9.5 >>> SDL=libSDL-1.2.so.0.11.4 >>> SQLite=libsqlite3.so.0.8.6 >>> >>> [Environment] >>> CINNAMON_VERSION=3.8.9 >>> CLUTTER_PAINT=continuous-redraw >>> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >>> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path >>> DESKTOP_SESSION=cinnamon >>> DISPLAY=:0 >>> GB_GUI=gb.qt4 >>> GDMSESSION=cinnamon >>> GDM_LANG=en_GB >>> GJS_DEBUG_OUTPUT=stderr >>> GJS_DEBUG_TOPICS=JS ERROR;JS LOG >>> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >>> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 >>> GTK_MODULES=gail:atk-bridge >>> GTK_OVERLAY_SCROLLING=1 >>> HOME= >>> LANG=en_GB.UTF-8 >>> LANGUAGE=en_GB >>> LC_ADDRESS=en_GB.UTF-8 >>> LC_IDENTIFICATION=en_GB.UTF-8 >>> LC_MEASUREMENT=en_GB.UTF-8 >>> LC_MONETARY=en_GB.UTF-8 >>> LC_NAME=en_GB.UTF-8 >>> LC_NUMERIC=en_GB.UTF-8 >>> LC_PAPER=en_GB.UTF-8 >>> LC_TELEPHONE=en_GB.UTF-8 >>> LC_TIME=en_GB.UTF-8 >>> LOGNAME= >>> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path >>> PAPERSIZE=a4 >>> PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >>> PWD= >>> QT_ACCESSIBILITY=1 >>> QT_QPA_PLATFORMTHEME=qt5ct >>> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1195,unix/:/tmp/.ICE-unix/1195 >>> SHELL=/bin/bash >>> SHLVL=0 >>> SSH_AGENT_PID=1260 >>> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >>> TZ=:/etc/localtime >>> USER= >>> XAUTHORITY=/.Xauthority >>> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg >>> XDG_CURRENT_DESKTOP=X-Cinnamon >>> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share >>> >>> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >>> XDG_RUNTIME_DIR=/run/user/1000 >>> XDG_SEAT=seat0 >>> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >>> XDG_SESSION_DESKTOP=cinnamon >>> XDG_SESSION_ID=c1 >>> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >>> XDG_SESSION_TYPE=x11 >>> XDG_VTNR=7 >>> >>> >>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- >>> >> It works as expected here with both GTK2 and GTK3. >> >> >> ___ >> Lee >> >> >> [System] >> Gambas=3.11.90 6303762ff (master) >> OperatingSystem=Linux >> Kernel=4.4.159-73-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.7 >> 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-txC0OFCdZ3,guid=3f6002637ea2a0c7794764635bf2b8ca >> 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-zpTCy0/S.gpg-agent:2396: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/2458,unix/:/tmp/.ICE-unix/2458 >> SHELL=/bin/bash >> SHLVL=1 >> SSH_AGENT_PID=2395 >> SSH_ASKPASS=/usr/lib/ssh/ksshaskpass >> SSH_AUTH_SOCK=/tmp/ssh-P4cXC1EF4hrJ/agent.2288 >> 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=2 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB >> XMODIFIERS=@im=local >> XNLSPATH=/usr/share/X11/nls >> XSESSION_IS_UP=yes >> _=/usr/bin/kwrapper5 >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Nov 21 09:54:55 2018 From: adamnt42 at gmail.com (Bruce) Date: Wed, 21 Nov 2018 19:24:55 +1030 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) Message-ID: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> This has been bothering me for some years. It's fairly simple. We have a set of status codes that we use across many applications. They are numeric (integer) and have a code (the number), a mnemonic (short string) and an "explanation" (i.e. a user interpret-able string that describes the status "in full". Here, there and everywhere within an application we need to set the status code of something. Fairly plainly some method returns an integer value that reflects the current status. Bing bong. But, in order to do that we have to know from memory, when maintaining the code for that some method, that "if this happens, then return 617" or whatever. This is a pain. So, I'm trying to come up with some way that I could make a module in a library that would let us access the status codes EITHER by the code or by the mnemonic. I can neither get this clear in my mind conceptually nor implementation-wise. (EXAMPLE) Let's say we have an Ice Cream Parlor POS application that is loosely connected to the inventory "system". If a situation occurs where there is no chocolate ice cream in stock then, when the POS operator presses key 4617 (a chocolate ice cream) then it would display "Chocolate Ice Creams are out of stock today, offer another flavor". So, code 1329 = that explanation, but when I'm coding I'd like to specify the status as "NO_CHOC" rather than go search through a bunch of design documents and other stuff to find the right status code to use. I hope that makes sense, it's the simplest explanation I can think of. By the way, in reality we have around 1600 specific status codes in our systems. So I am really hoping that someone has a good idea here. tia Bruce From adamnt42 at gmail.com Wed Nov 21 10:39:22 2018 From: adamnt42 at gmail.com (Bruce) Date: Wed, 21 Nov 2018 20:09:22 +1030 Subject: [Gambas-user] Install a self-developed component In-Reply-To: <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> Message-ID: <6ebd3677-476f-61eb-4216-b877a946362b@gmail.com> You can cheat a bit and install using the "rpm -i --no-deps" method, but BE WARNED it can break your install database. (I think debian uses rpm's doesn't it?) hth Bruce On 11/17/18 11:19 PM, Hans Lehmann wrote: > Hello, > > there, I installed Gambas 3.11.3 from the original sources. > Unfortunately it is no longer possible to install a self-developed > component. It is no problem to create an installation package. The > problem occurs when I install the deb file. I get the error message: > /Error: Dependency cannot be fulfilled: gambas3-runtime (>=3.11)/. What > now - what to do? > > Yours sincerely > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From chrisml at deganius.de Wed Nov 21 11:10:45 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 21 Nov 2018 11:10:45 +0100 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> Message-ID: <348db5ed-736f-71cd-1187-f54cba60014c@deganius.de> Am 21.11.18 um 09:54 schrieb Bruce: > (EXAMPLE) Let's say we have an Ice Cream Parlor POS application that is > loosely connected to the inventory "system". If a situation occurs where > there is no chocolate ice cream in stock then, when the POS operator > presses key 4617 (a chocolate ice cream) then it would display > "Chocolate Ice Creams are out of stock today, offer another flavor". So, > code 1329 = that explanation, but when I'm coding I'd like to specify > the status as "NO_CHOC" rather than go search through a bunch of design > documents and other stuff to find the right status code to use. I hope > that makes sense, it's the simplest explanation I can think of. By the > way, in reality we have around 1600 specific status codes in our > systems. So I am really hoping that someone has a good idea here. Does the example describe a real situation? I mean, if the status represents the (non-)existence of a product in stock it is another thing as if the status represents the state of the code at runtime. The first I would never handle by hardcoded status codes because once you invent a new product the software would have to be rewritten. That would be crazy in case of icecream. If the state of the software at runtime should be represented there are many possible solutions. For instance I could think about a combination of a bitmap together with integer constants. A bitmap is like that 0000101000101 ... and can easily been stored in a string. With constants you can set named positions in the bitmap, for example in a module named State: Public Constant MachineRunnning as Integer = 1 Public Constant OperatorFired as Integer = 2 ... Public Constant MachineIsDirty as Integer = 5 Public Constant OperatorDead as Integer = 6 In the Bitmap up there MachineIsDirty is set true and the operator lives ;-) By writing code you now are able to write sth like: State.Set(State.MachineIsDirty) or bMachineDirty = State.Get(State.MachineIsDirty) As long as State.Set and State.Get translate the boolean value to bit-position and vice versa. If you are interested, I dig the code for that (set and get values out of bitmaps) out of my libs. 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 adamnt42 at gmail.com Wed Nov 21 12:17:02 2018 From: adamnt42 at gmail.com (Bruce) Date: Wed, 21 Nov 2018 21:47:02 +1030 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <348db5ed-736f-71cd-1187-f54cba60014c@deganius.de> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> <348db5ed-736f-71cd-1187-f54cba60014c@deganius.de> Message-ID: <96d78cfe-5641-8b41-651c-c06939141de5@gmail.com> On 11/21/18 8:40 PM, Christof Thalhofer wrote: > Am 21.11.18 um 09:54 schrieb Bruce: > >> (EXAMPLE) Let's say we have an Ice Cream Parlor POS application that is >> loosely connected to the inventory "system". If a situation occurs where >> there is no chocolate ice cream in stock then, when the POS operator >> presses key 4617 (a chocolate ice cream) then it would display >> "Chocolate Ice Creams are out of stock today, offer another flavor". So, >> code 1329 = that explanation, but when I'm coding I'd like to specify >> the status as "NO_CHOC" rather than go search through a bunch of design >> documents and other stuff to find the right status code to use. I hope >> that makes sense, it's the simplest explanation I can think of. By the >> way, in reality we have around 1600 specific status codes in our >> systems. So I am really hoping that someone has a good idea here. > > Does the example describe a real situation? I mean, if the status > represents the (non-)existence of a product in stock it is another thing > as if the status represents the state of the code at runtime. > Of course not, I just thought that people were sick of hearing about horse auctions. > The first I would never handle by hardcoded status codes because once > you invent a new product the software would have to be rewritten. That > would be crazy in case of icecream. And yes you are totally correct, the "explanations" have Subst parameters in them. So the "real" error mnemonic would be "NO_FLAVOUR" and the "POS" system would present the explanation "&1 Ice Creams are out of stock...", suitably adorned. > > If the state of the software at runtime should be represented there are > many possible solutions. For instance I could think about a combination > of a bitmap together with integer constants. > > A bitmap is like that > > 0000101000101 ... > > and can easily been stored in a string. > > With constants you can set named positions in the bitmap, for example in > a module named State: > > Public Constant MachineRunnning as Integer = 1 > Public Constant OperatorFired as Integer = 2 > ... > Public Constant MachineIsDirty as Integer = 5 > Public Constant OperatorDead as Integer = 6 > > In the Bitmap up there MachineIsDirty is set true and the operator lives ;-) > > By writing code you now are able to write sth like: > > State.Set(State.MachineIsDirty) > > or > > bMachineDirty = State.Get(State.MachineIsDirty) > > As long as State.Set and State.Get translate the boolean value to > bit-position and vice versa. > > If you are interested, I dig the code for that (set and get values out > of bitmaps) out of my libs. > I like your general idea here. In fact, though, it's sort of how we are doing this currently. A real, real example is this. We have an application that lets horse trainers submit a horse for an auction. There are about 20 gazillion rules and regulations about the animal concerned, which we need to check in that application and several others before the horse is acceptable as as lot in that auction. So we have a component that does all the necessary checking with the relevant authorities. If everything goes OK then the component can send back a result code of 400 ("Probity checks satisfied, proceed with submission"). Otherwise, it may send back a code of, say 463 ("This horse is registered with &1 as being deceased! Best of luck with trying to sell it") where &1 is replaced with the relevant authority name. The mnemonic in that case :-) might be "REG_HORSE_DEAD". Which is is hell of a lot easier to remember than 462, oops I meant 463, when maintaining the component code. If you get my drift. > > > Alles Gute > > Christof Thalhofer > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > And yes, the "products" change all the time. In this case they are the regulations that apply to validating an auctionable lot. And yes, the *(%%&(^( authorities always pick the busiest time of the year to implement the rule changes! @#^%*#^*# !!!! Sigh. I suppose I could just go back to two status codes: "OK" and "Computer says 'No'" but I don't think I'll get away with that. :-( regards b From chrisml at deganius.de Wed Nov 21 13:40:14 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 21 Nov 2018 13:40:14 +0100 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <96d78cfe-5641-8b41-651c-c06939141de5@gmail.com> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> <348db5ed-736f-71cd-1187-f54cba60014c@deganius.de> <96d78cfe-5641-8b41-651c-c06939141de5@gmail.com> Message-ID: <0d75d015-1b04-11af-db07-b76d6c2e1dfa@deganius.de> Am 21.11.18 um 12:17 schrieb Bruce: > I like your general idea here. In fact, though, it's sort of how we are > doing this currently. Ok. > A real, real example is this. We have an application that lets horse > trainers submit a horse for an auction. There are about 20 gazillion > rules and regulations about the animal concerned, which we need to check > in that application and several others before the horse is acceptable as > as lot in that auction. So we have a component that does all the > necessary checking with the relevant authorities. If everything goes OK > then the component can send back a result code of 400 ("Probity checks > satisfied, proceed with submission"). Otherwise, it may send back a code > of, say 463 ("This horse is registered with &1 as being deceased! Best > of luck with trying to sell it") where &1 is replaced with the relevant > authority name. The mnemonic in that case :-) might be "REG_HORSE_DEAD". > Which is is hell of a lot easier to remember than 462, oops I meant 463, > when maintaining the component code. If you get my drift. Ok. Now the other way round: At start of your program you can iterate through the constants in modul "State" from my last mail and dig out the names of the constants. Dim Symbols As String[] Dim sSymbol as String Dim cStates As New Collection Dim sKey as String Dim vValue as Variant Dim stateclass As Class stateclass = Object.Class(State) Symbols = stateclass.Symbols For Each sSymbol In Symbols If stateclass[sSymbol].Kind = Class.Constant Then sKey = sSymbol vValue = stateclass[sSymbol].Value cStates.Add(sKey, vValue) Endif Next (not tested!) Now you have all the names of the constants together with their bit position in the collection cStates (store it as global Variable in State) and can iterate through it if you want to print the key "REG_HORSE_DEAD" for value 463. All this is quite ugly but it works. Its ugly because it mixes functionality with data. But it is necessary if you want to have the codes at your fingertips in the editor while programming. Now you can write If State.Get(State.REG_HORSE_DEAD) = True then Print State.cStates[State.REG_HORSE_DEAD].Key Endif (also not tested!) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Wed Nov 21 14:24:58 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 21 Nov 2018 08:24:58 -0500 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> Message-ID: <47712b66-6db9-3f1c-a52f-a7ffacfdc378@gmail.com> Perhaps I am misunderstanding your example. Because the first thought that came to me seems so simple that I imagine you have already considered and discarded it as a solution. There must be a reason you cannot use a SQLite DB with distinct indexes on the integer code and on the mnemonic. ___ Lee On 11/21/18 3:54 AM, Bruce wrote: > This has been bothering me for some years. > > It's fairly simple. We have a set of status codes that we use across many applications. They are numeric (integer) and have a > code (the number), a mnemonic (short string) and an "explanation" (i.e. a user interpret-able string that describes the status > "in full". > > Here, there and everywhere within an application we need to set the status code of something. Fairly plainly some method returns > an integer value that reflects the current status. Bing bong. But, in order to do that we have to know from memory, when > maintaining the code for that some method, that "if this happens, then return 617" or whatever. This is a pain. > > So, I'm trying to come up with some way that I could make a module in a library that would let us access the status codes EITHER > by the code or by the mnemonic.? I can neither get this clear in my mind conceptually nor implementation-wise. > > (EXAMPLE) Let's say we have an Ice Cream Parlor POS application that is loosely connected to the inventory "system". If a > situation occurs where there is no chocolate ice cream in stock then, when the POS operator presses key 4617 (a chocolate ice > cream) then it would display "Chocolate Ice Creams are out of stock today, offer another flavor". So, code 1329 = that > explanation, but when I'm coding I'd like to specify the status as "NO_CHOC" rather than go search through a bunch of design > documents and other stuff to find the right status code to use.? I hope that makes sense, it's the simplest explanation I can > think of. By the way, in reality we have around 1600 specific status codes in our systems. So I am really hoping that someone > has a good idea here. > > tia > Bruce > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From bagonergi at gmail.com Wed Nov 21 15:44:11 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 21 Nov 2018 15:44:11 +0100 Subject: [Gambas-user] ProgressBar mistake Message-ID: Why do I get an error? I attach two tests, one simulates this simple necessity and works (ConceptualTest): Show the FMain, then ask to the user for a number. Pass the number to a module that processes it. View to the user the processing time using a ProgressBar in an independent window. The other puts it into practice and does not work (BadProcessbarTest). Note: If the ProgressBar is in the FMain, practice test also well working. What am I doing wrong? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ConceptualTest-0.0.1.tar.gz Type: application/gzip Size: 12086 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BadProgressbarTest-0.0.1.tar.gz Type: application/gzip Size: 20428 bytes Desc: not available URL: From charlie at cogier.com Wed Nov 21 17:22:48 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 21 Nov 2018 16:22:48 +0000 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> Message-ID: Hi Bruce, Here is an idea. I let you decide if it's 'good'. The code in the attached file is:- /Public Sub Form_Open()// //Dim sList As String[] = Split(File.Load("../codes"), gb.newline)// // //Print sList[4617]// //Print Split(sList[1329], "`")[0]// //Print sList.Find("*NO_CHOC*", gb.Like)// //Print sList[sList.Find("*NO_CHOC*", gb.Like)]// // //End// / Produces: - /A chocolate ice cream// //Chocolate Ice Creams are out of stock today, offer another flavor// //1329// //Chocolate Ice Creams are out of stock today, offer another flavor` NO_CHOC/ Charlie On 21/11/2018 08:54, Bruce wrote: > This has been bothering me for some years. > > It's fairly simple. We have a set of status codes that we use across > many applications. They are numeric (integer) and have a code (the > number), a mnemonic (short string) and an "explanation" (i.e. a user > interpret-able string that describes the status "in full". > > Here, there and everywhere within an application we need to set the > status code of something. Fairly plainly some method returns an > integer value that reflects the current status. Bing bong. But, in > order to do that we have to know from memory, when maintaining the > code for that some method, that "if this happens, then return 617" or > whatever. This is a pain. > > So, I'm trying to come up with some way that I could make a module in > a library that would let us access the status codes EITHER by the code > or by the mnemonic.? I can neither get this clear in my mind > conceptually nor implementation-wise. > > (EXAMPLE) Let's say we have an Ice Cream Parlor POS application that > is loosely connected to the inventory "system". If a situation occurs > where there is no chocolate ice cream in stock then, when the POS > operator presses key 4617 (a chocolate ice cream) then it would > display "Chocolate Ice Creams are out of stock today, offer another > flavor". So, code 1329 = that explanation, but when I'm coding I'd > like to specify the status as "NO_CHOC" rather than go search through > a bunch of design documents and other stuff to find the right status > code to use.? I hope that makes sense, it's the simplest explanation I > can think of. By the way, in reality we have around 1600 specific > status codes in our systems. So I am really hoping that someone has a > good idea here. > > tia > Bruce > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GUITest.tar.gz Type: application/gzip Size: 13539 bytes Desc: not available URL: From charlie at cogier.com Wed Nov 21 17:36:10 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 21 Nov 2018 16:36:10 +0000 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: Message-ID: Hi Gianluigi, It seems OK to me. See HERE . Charlie On 21/11/2018 14:44, Gianluigi wrote: > Why do I get an error? > I attach two tests, one simulates this simple necessity and works > (ConceptualTest): > Show the FMain, then ask to the user for a number. > Pass the number to a module that processes it. > View to the user the processing time using a ProgressBar in an > independent window. > The other puts it into practice and does not work (BadProcessbarTest). > Note: If the ProgressBar is in the FMain, practice test also well working. > > What am I doing wrong? > > Regards > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From stevjensen at aol.com Wed Nov 21 19:04:49 2018 From: stevjensen at aol.com (Steve) Date: Wed, 21 Nov 2018 13:04:49 -0500 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <96d78cfe-5641-8b41-651c-c06939141de5@gmail.com> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> <348db5ed-736f-71cd-1187-f54cba60014c@deganius.de> <96d78cfe-5641-8b41-651c-c06939141de5@gmail.com> Message-ID: On 11/21/2018 6:17 AM, Bruce wrote: > > A real, real example is this. We have an application that lets horse > trainers submit a horse for an auction.? There are about 20 gazillion > rules and regulations about the animal concerned, which we need to > check in that application and several others before the horse is > acceptable as as lot in that auction.? So we have a component that > does all the necessary checking with the relevant authorities. If > everything goes OK then the component can send back a result code of > 400 ("Probity checks satisfied, proceed with submission"). Otherwise, > it may send back a code of, say 463 ("This horse is registered with &1 > as being deceased! Best of luck with trying to sell it") where &1 is > replaced with the relevant authority name. The mnemonic in that case > :-) might be "REG_HORSE_DEAD". Which is is hell of a lot easier to > remember than 462, oops I meant 463, when maintaining the component > code. If you get my drift. > > > And yes, the "products" change all the time. In this case they are the > regulations that apply to validating an auctionable lot.? And yes, the > *(%%&(^( authorities always pick the busiest time of the year to > implement the rule changes! @#^%*#^*# !!!! > > If I understand this correctly I might investigate doing this as a database application. Don't know the gambas database application capabilities or for that matter how flexible it is with runtime screen object creation but... An approximation of a? possible database (not even remotely meant to be a final solution) might look like Parent = Agency* (name, contact info, remote submission info) ??? ??? dependent child agency rule = (rule#, rule_text, entry_datatype, entry_allowable_values*, remote submission format string, edit status*, eff_date, exp_date)) ??? ??? dependent child rule>allowable_values (drop down box, range test) ??????? dependent child rule>edit_status (error#, error_text) You could, at runtime, build an input form (either for all agencies or individual) with appropriate entry fields Do local edits. (Horse age < 0.? Sale of potential horse not allowed). Submit to remote agency/s and display responses Essentially all your logic ends up in the database and none in your program code. Not a simple implementation by any means but once done only the database needs to be updated as agencies send new regulations. Your pgm would only need to be updated for new edit types. Yes, this would be a major departure from what you appear to be doing now. Its also possible to do mix and match pgm and db logic, say just the error codes. Enjoy. From bagonergi at gmail.com Wed Nov 21 19:36:57 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 21 Nov 2018 19:36:57 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: Message-ID: Hi Charlie, thank you very much for the movie :-D Unfortunately I receive this error: <> is not responding. You can choose to wait ..., "Forced Exit", "Wait" and the program freezes, I can only act on the Stop button. See attached picture Regards Gianluigi P.S. ConceptualTest, with Sleep also works? Il giorno mer 21 nov 2018 alle ore 18:43 Charlie Ogier ha scritto: > Hi Gianluigi, > > It seems OK to me. See HERE . > > Charlie > > On 21/11/2018 14:44, Gianluigi wrote: > > Why do I get an error? > I attach two tests, one simulates this simple necessity and works > (ConceptualTest): > Show the FMain, then ask to the user for a number. > Pass the number to a module that processes it. > View to the user the processing time using a ProgressBar in an independent > window. > The other puts it into practice and does not work (BadProcessbarTest). > Note: If the ProgressBar is in the FMain, practice test also well working. > > What am I doing wrong? > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testbar.png Type: image/png Size: 20955 bytes Desc: not available URL: From genbraga1 at gmail.com Wed Nov 21 20:12:04 2018 From: genbraga1 at gmail.com (gen braga) Date: Wed, 21 Nov 2018 17:12:04 -0200 Subject: [Gambas-user] Install a self-developed component In-Reply-To: <6ebd3677-476f-61eb-4216-b877a946362b@gmail.com> References: <9d2b13af-5c2d-8e26-3616-1b259aa163d4@gambas-buch.de> <20181114090031.GB10428@highrise.localdomain> <7b03d818-f2e4-5ed5-e137-78471273aaac@gmail.com> <20181115000201.GI10428@highrise.localdomain> <3bc96ba7-1c2f-156e-3432-2fea0aa8391a@gmail.com> <706144b8-99be-dd96-dbb6-d404bcbb0d3f@gmail.com> <9ee6fe0b-96ad-010f-7d29-75a37614226b@gambas-buch.de> <6ebd3677-476f-61eb-4216-b877a946362b@gmail.com> Message-ID: Humnnn, no. Debian and alike uses dpkg, but im sure there's an equivalent parameter. About the dependency, If my memory isnt that bad, there's a file in the component folder (which i dont remember, If course) where you manually set the required gambas version, before you make the .deb Check that, maybe It helps. Im not right on my workstation now, i'll check asap. Regards Em qua, 21 de nov de 2018 07:40, Bruce You can cheat a bit and install using the "rpm -i --no-deps" method, but > BE WARNED it can break your install database. (I think debian uses rpm's > doesn't it?) > > hth > Bruce > > On 11/17/18 11:19 PM, Hans Lehmann wrote: > > Hello, > > > > there, I installed Gambas 3.11.3 from the original sources. > > Unfortunately it is no longer possible to install a self-developed > > component. It is no problem to create an installation package. The > > problem occurs when I install the deb file. I get the error message: > > /Error: Dependency cannot be fulfilled: gambas3-runtime (>=3.11)/. What > > now - what to do? > > > > Yours sincerely > > > > Hans > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Nov 21 22:34:27 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 21 Nov 2018 16:34:27 -0500 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: Message-ID: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> It works okay here as well. (Except, unrelated, the FProgress form doesn't get closed and so the application does not exit nicely.) ___ Lee On 11/21/18 11:36 AM, Charlie Ogier wrote: > Hi Gianluigi, > > It seems OK to me. See HERE . > > Charlie > > On 21/11/2018 14:44, Gianluigi wrote: >> Why do I get an error? >> I attach two tests, one simulates this simple necessity and works (ConceptualTest): >> Show the FMain, then ask to the user for a number. >> Pass the number to a module that processes it. >> View to the user the processing time using a ProgressBar in an independent window. >> The other puts it into practice and does not work (BadProcessbarTest). >> Note: If the ProgressBar is in the FMain, practice test also well working. >> >> What am I doing wrong? >> >> Regards >> Gianluigi >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From bagonergi at gmail.com Wed Nov 21 23:23:49 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 21 Nov 2018 23:23:49 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: Hi Charlie and Lee, I thank you again for the test and I apologize for forgetting FProgress.Close at the end of the loop. The app freeze was the fault of this, even if Gnome continues to display the warning window but disappears at the end of the loop and the database is created. Same behavior also with Ubuntu 18.10. With Xubuntu it works well with both the stable and the master With Debian Stretch it does not start and tells me that it does not know the Spring class in FRecords. .-( Regards and good night Gianluigi Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > It works okay here as well. (Except, unrelated, the FProgress form doesn't > get closed and so the application does not exit nicely.) > > > ___ > Lee > > > On 11/21/18 11:36 AM, Charlie Ogier wrote: > > Hi Gianluigi, > > > > It seems OK to me. See HERE >. > > > > Charlie > > > > On 21/11/2018 14:44, Gianluigi wrote: > >> Why do I get an error? > >> I attach two tests, one simulates this simple necessity and works > (ConceptualTest): > >> Show the FMain, then ask to the user for a number. > >> Pass the number to a module that processes it. > >> View to the user the processing time using a ProgressBar in an > independent window. > >> The other puts it into practice and does not work (BadProcessbarTest). > >> Note: If the ProgressBar is in the FMain, practice test also well > working. > >> > >> What am I doing wrong? > >> > >> Regards > >> Gianluigi > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Nov 22 01:56:04 2018 From: adamnt42 at gmail.com (Bruce) Date: Thu, 22 Nov 2018 11:26:04 +1030 Subject: [Gambas-user] Fwd: Re: Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: References: Message-ID: <4eccbb3a-4063-827d-ce94-57488996222e@gmail.com> -------- Forwarded Message -------- Subject: Re: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) Date: Thu, 22 Nov 2018 09:04:25 +1030 From: Bruce To: Steve Thanks to all for the input. As usual I have not been very clear. My real problem is that with so many status conditions (1600+) we have difficulty while maintaining our code base i.e. within the IDE, with: - code errors due to incorrect statuses - the probability of "duplicate" status codes. So I suppose what I am looking for is some way to "look up" the statuses while editing the code. Sort of a "dynamic" add-in to the IDE I suppose. But with all the ideas you all have given me, I think what I'll do is build a stand alone utility program that will provide "a centralised "status" management subsystem that would let us manage the status of the parsing and persistence of RA data (as a start). The subsystem would ease development of the parsers etc by making the known statuses available somehow within (or close to) the Gambas IDE. It will also provide a means to transport the exact status between parser classes as a simple (integer) code and allow the parser UI to show the status as a human understandable string." (from my notes on the design of the beast. regards Bruce On 11/22/18 4:34 AM, Steve wrote: > On 11/21/2018 6:17 AM, Bruce wrote: >> >> A real, real example is this. We have an application that lets horse >> trainers submit a horse for an auction.? There are about 20 gazillion >> rules and regulations about the animal concerned, which we need to >> check in that application and several others before the horse is >> acceptable as as lot in that auction.? So we have a component that >> does all the necessary checking with the relevant authorities. If >> everything goes OK then the component can send back a result code of >> 400 ("Probity checks satisfied, proceed with submission"). Otherwise, >> it may send back a code of, say 463 ("This horse is registered with &1 >> as being deceased! Best of luck with trying to sell it") where &1 is >> replaced with the relevant authority name. The mnemonic in that case >> :-) might be "REG_HORSE_DEAD". Which is is hell of a lot easier to >> remember than 462, oops I meant 463, when maintaining the component >> code. If you get my drift. >> >> >> And yes, the "products" change all the time. In this case they are the >> regulations that apply to validating an auctionable lot.? And yes, the >> *(%%&(^( authorities always pick the busiest time of the year to >> implement the rule changes! @#^%*#^*# !!!! >> >> > If I understand this correctly I might investigate doing this as a > database application. > Don't know the gambas database application capabilities or for that > matter how flexible it is with runtime screen object creation > but... > > An approximation of a? possible database (not even remotely meant to be > a final solution) might look like > Parent = Agency* (name, contact info, remote submission info) > ??? ??? dependent child agency rule = (rule#, rule_text, > entry_datatype, entry_allowable_values*, remote submission format > string, edit status*, eff_date, exp_date)) > ??? ??? dependent child rule>allowable_values (drop down box, range test) > ??????? dependent child rule>edit_status (error#, error_text) > > You could, at runtime, build an input form (either for all agencies or > individual) with appropriate entry fields > Do local edits. (Horse age < 0.? Sale of potential horse not allowed). > Submit to remote agency/s and display responses > > Essentially all your logic ends up in the database and none in your > program code. > Not a simple implementation by any means but once done only the database > needs to be updated as agencies send new regulations. > Your pgm would only need to be updated for new edit types. > Yes, this would be a major departure from what you appear to be doing now. > Its also possible to do mix and match pgm and db logic, say just the > error codes. > > Enjoy. > > > From adamnt42 at gmail.com Thu Nov 22 02:02:27 2018 From: adamnt42 at gmail.com (Bruce) Date: Thu, 22 Nov 2018 11:32:27 +1030 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> Message-ID: <7d7d0624-360b-d391-2f7f-ddaf4783ddf1@gmail.com> SOLVED! Well, at least at a prototype level anyway. Took about 2 hours to build. I used a bit if all your suggestions guys, so thanks again. b From d4t4full at gmail.com Thu Nov 22 02:24:54 2018 From: d4t4full at gmail.com (First Last) Date: Wed, 21 Nov 2018 22:24:54 -0300 Subject: [Gambas-user] Not a Gambas, but a C++ question: GTKMM, Video and... Threads! Message-ID: I want to apologize because this is for a C++ project, not a Gambas one. I'm really clueless at the moment, and I know there are people in this list that knows an awful lot, so I'm trying to pick someone's brains. Once upon a time, I got myself a coupla pan-tilt IPCameras. Nothing fancy really. Zero Linux support, they offer Mac and Win drivers, apps, and maybe even chocolate. But not for Linux. Contacted the manufacturer, they sent me a nice NDA -which I signed- and afterwards an SDK with Linux, Mac and Win dev libs, but just Mac and Win examples. The SDK has an absolute lack of Linux examples, as expected. Also, as I am a mere mortal and not a multibillion corporation, the maker will give me exactly zero support. Because of the NDA I cannot go to details, but let's say I successfully connected to one of the cams (the other, an older model, makes the SDK segfault). I can connect and authenticate to the cam, and I can spawn a video retrieval thread from the main app, which seems to work. All of this, again, in C++ and GTKMM. The worker thread retrieves video frame by frame in a buffer, along with camera events. So far so good, it works. Problem 1: Cannot figure how to dump these frames to a GTKMM window, control, or surface (the Win example uses Direct3D, not applicable here). Can anyone point me in the right direction? Problem 2: I will have to cross the thread boundary to do this. Again, not a clue. Help? The SDK is 32bit only. My main machine is 64bit. I am using VSCode in a 32bit VM to develop, but I would really like to have a Gambas version eventually, like in a lib so anyone else can use it. Also, the Win example in a 32bit Win VM does not show video, but it does work in the real hardware. So, I want to make sure that when I don't see anything is not because of the VM, but because something went wrong. Problem 3: Is there any way to make Gambas work as a 32bit, both in the IDE and the interpreter, in a 64bit machine? Problem 4: If it is at all possible to have a solution for Problem 3 above: How do I solve the threading issue in Gambas? Thanks, you may now continue talking BASIC. zxMarce. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Nov 22 03:45:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Nov 2018 03:45:05 +0100 Subject: [Gambas-user] Not a Gambas, but a C++ question: GTKMM, Video and... Threads! In-Reply-To: References: Message-ID: <8eab08a4-12f4-f186-54f9-9274b15faef5@gmail.com> Le 22/11/2018 ? 02:24, First Last a ?crit?: > I want to apologize because this is for a C++ project, not a Gambas one. > I'm really clueless at the moment, and I know there are people in this > list that knows an awful lot, so I'm trying to pick someone's brains. > > Once upon a time, I got myself a coupla pan-tilt IPCameras. Nothing > fancy really. > Zero Linux support, they offer Mac and Win drivers, apps, and maybe even > chocolate. But not for Linux. > > Contacted the manufacturer, they sent me a nice NDA -which I signed- and > afterwards an SDK with Linux, Mac and Win dev libs, but just Mac and Win > examples. > The SDK has an absolute lack of Linux examples, as expected. Also, as I > am a mere mortal and not a multibillion corporation, the maker will give > me exactly zero support. > > Because of the NDA I cannot go to details, but let's say I successfully > connected to one of the cams (the other, an older model, makes the SDK > segfault). > I can connect and authenticate to the cam, and I can spawn a video > retrieval thread from the main app, which seems to work. All of this, > again, in C++ and GTKMM. > The worker thread retrieves video frame by frame in a buffer, along with > camera events. So far so good, it works. > > Problem 1: Cannot figure how to dump these frames to a GTKMM window, > control, or surface (the Win example uses Direct3D, not applicable > here). Can anyone point me in the right direction? > Problem 2: I will have to cross the thread boundary to do this. Again, > not a clue. Help? You can create a pipe in the main thread with the pipe() system call. Then the worker thread will write the frame to the pipe, and the main thread will read the frames from it. That way, your main thread will just have to call select() on the pipe to get the data when it is available. > > The SDK is 32bit only. My main machine is 64bit. I am using VSCode in a > 32bit VM to develop, but I would really like to have a Gambas version > eventually, like in a lib so anyone else can use it. Also, the Win > example in a 32bit Win VM does not show video, but it does work in the > real hardware. So, I want to make sure that when I don't see anything is > not because of the VM, but because something went wrong. > > Problem 3: Is there any way to make Gambas work as a 32bit, both in the > IDE and the interpreter, in a 64bit machine? > Problem 4: If it is at all possible to have a solution for Problem 3 > above: How do I solve the threading issue in Gambas? > > Thanks, you may now continue talking BASIC. > zxMarce. > Then I suggest you make a 32-bits executable that just implements the worker thread, and that writes the frame data to a named pipe. Then another 64-bits process will run this 32 bits executable, tell him which named pipe to use, and will be able to get the data from this pipe. That way, the main process can be written in any language, and can do what it wants with the frames. The only problem you will have is converting the camera frame data format into an image that can be displayed by your graphical toolkit. But maybe your SDK already handles that? Note: afaik pipes are the fastest and easiest way to exchange data between processes or threads on Linux. Shared memory may be faster (for big amount of data), but requires additional synchronization primitives, so it is harder to use correctly. Regards, -- Beno?t Minisini From d4t4full at gmail.com Thu Nov 22 11:52:48 2018 From: d4t4full at gmail.com (ML) Date: Thu, 22 Nov 2018 07:52:48 -0300 Subject: [Gambas-user] Not a Gambas, but a C++ question: GTKMM, Video and... Threads! In-Reply-To: <8eab08a4-12f4-f186-54f9-9274b15faef5@gmail.com> References: <8eab08a4-12f4-f186-54f9-9274b15faef5@gmail.com> Message-ID: <780a3508-36a9-79fa-193e-deef395629aa@gmail.com> On 21/11/18 23:45, Beno?t Minisini wrote: > Le 22/11/2018 ? 02:24, First Last a ?crit?: >> I want to apologize because this is for a C++ project, not a Gambas one. >> I'm really clueless at the moment, and I know there are people in >> this list that knows an awful lot, so I'm trying to pick someone's >> brains. >> Once upon a time, I got myself a coupla pan-tilt IPCameras. Nothing >> fancy really. >> Zero Linux support, they offer Mac and Win drivers, apps, and maybe >> even chocolate. But not for Linux. >> Contacted the manufacturer, they sent me a nice NDA -which I signed- >> and afterwards an SDK with Linux, Mac and Win dev libs, but just Mac >> and Win examples. >> The SDK has an absolute lack of Linux examples, as expected. Also, as >> I am a mere mortal and not a multibillion corporation, the maker will >> give me exactly zero support. >> Because of the NDA I cannot go to details, but let's say I >> successfully connected to one of the cams (the other, an older model, >> makes the SDK segfault). >> I can connect and authenticate to the cam, and I can spawn a video >> retrieval thread from the main app, which seems to work. All of this, >> again, in C++ and GTKMM. >> The worker thread retrieves video frame by frame in a buffer, along >> with camera events. So far so good, it works. >> Problem 1: Cannot figure how to dump these frames to a GTKMM window, >> control, or surface (the Win example uses Direct3D, not applicable >> here). Can anyone point me in the right direction? >> Problem 2: I will have to cross the thread boundary to do this. >> Again, not a clue. Help? > You can create a pipe in the main thread with the pipe() system call. > Then the worker thread will write the frame to the pipe, and the main > thread will read the frames from it. > That way, your main thread will just have to call select() on the pipe > to get the data when it is available. Ok, back to the drawing board. And to the pipe() man pages. Never thought of them pipes. Big thanks! >> The SDK is 32bit only. My main machine is 64bit. I am using VSCode in >> a 32bit VM to develop, but I would really like to have a Gambas >> version eventually, like in a lib so anyone else can use it. Also, >> the Win example in a 32bit Win VM does not show video, but it does >> work in the real hardware. So, I want to make sure that when I don't >> see anything is not because of the VM, but because something went wrong. >> Problem 3: Is there any way to make Gambas work as a 32bit, both in >> the IDE and the interpreter, in a 64bit machine? >> Problem 4: If it is at all possible to have a solution for Problem 3 >> above: How do I solve the threading issue in Gambas? >> Thanks, you may now continue talking BASIC. >> zxMarce. > Then I suggest you make a 32-bits executable that just implements the > worker thread, and that writes the frame data to a named pipe. > Then another 64-bits process will run this 32 bits executable, tell > him which named pipe to use, and will be able to get the data from > this pipe. > That way, the main process can be written in any language, and can do > what it wants with the frames. > The only problem you will have is converting the camera frame data > format into an image that can be displayed by your graphical toolkit. > But maybe your SDK already handles that? I will deal with video frame conversion when I have something to put the frame data on. For the time being the SDK API has some video format constants defined; the Win example uses its own named constant of YUYV422 as format, but Google does not have a clue what that might be. Closest match is YUV422 and maybe I can use that as real format definition: The SDK -being chinese- has several obvious typos in definitions, so maybe this is one of the less obvious for the untrained eye. > Note: afaik pipes are the fastest and easiest way to exchange data > between processes or threads on Linux. Shared memory may be faster > (for big amount of data), but requires additional synchronization > primitives, so it is harder to use correctly. > Regards, Okeydokey. So this reeks the smelly smell of needing a 32bit "daemon/helper" of sorts that manages comms, buffers, etc, used by a bit app that shows the reality in glorious Technicolor to the world. Great! See? I was sure someone would come to the rescue! Thanks again, Beno?t. zxMarce. From gambas.fr at gmail.com Thu Nov 22 11:54:04 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 22 Nov 2018 11:54:04 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: I think the spring class ??? is not related Le mer. 21 nov. 2018 ? 23:25, Gianluigi a ?crit : > Hi Charlie and Lee, > I thank you again for the test and I apologize for forgetting > FProgress.Close at the end of the loop. > The app freeze was the fault of this, even if Gnome continues to display > the warning window but disappears at the end of the loop and the database > is created. > Same behavior also with Ubuntu 18.10. > With Xubuntu it works well with both the stable and the master > With Debian Stretch it does not start and tells me that it does not know > the Spring class in FRecords. .-( > > Regards and good night > Gianluigi > > Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < > t.lee.davidson at gmail.com> ha scritto: > >> It works okay here as well. (Except, unrelated, the FProgress form >> doesn't get closed and so the application does not exit nicely.) >> >> >> ___ >> Lee >> >> >> On 11/21/18 11:36 AM, Charlie Ogier wrote: >> > Hi Gianluigi, >> > >> > It seems OK to me. See HERE < >> http://www.cogier.com/video/ProcessBar.webm>. >> > >> > Charlie >> > >> > On 21/11/2018 14:44, Gianluigi wrote: >> >> Why do I get an error? >> >> I attach two tests, one simulates this simple necessity and works >> (ConceptualTest): >> >> Show the FMain, then ask to the user for a number. >> >> Pass the number to a module that processes it. >> >> View to the user the processing time using a ProgressBar in an >> independent window. >> >> The other puts it into practice and does not work (BadProcessbarTest). >> >> Note: If the ProgressBar is in the FMain, practice test also well >> working. >> >> >> >> What am I doing wrong? >> >> >> >> Regards >> >> Gianluigi >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > >> > >> > >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Nov 22 13:18:57 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 22 Nov 2018 13:18:57 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: Hi Fabien, I do not know what to say, it could be caused by the fact that Debian is on a virtual machine (see attached image). However I did a test on Debian (desktop Gnome) and I also get them the same malfunction. Summary; running the attached project (ProgrssbarError), and leaving 100 by default, both on Ubuntu Gnome and on Debian Gnome, about halfway through the progressbar I get a warning window that closes at the end of the loop. NOTE: If you act on the window (see attached image) you get the system lock (Ctrl+Alt+F2 to restart :-(). Regards Gianluigi Il giorno gio 22 nov 2018 alle ore 11:55 Fabien Bodard ha scritto: > I think the spring class ??? is not related > > Le mer. 21 nov. 2018 ? 23:25, Gianluigi a ?crit : > >> Hi Charlie and Lee, >> I thank you again for the test and I apologize for forgetting >> FProgress.Close at the end of the loop. >> The app freeze was the fault of this, even if Gnome continues to display >> the warning window but disappears at the end of the loop and the database >> is created. >> Same behavior also with Ubuntu 18.10. >> With Xubuntu it works well with both the stable and the master >> With Debian Stretch it does not start and tells me that it does not know >> the Spring class in FRecords. .-( >> >> Regards and good night >> Gianluigi >> >> Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < >> t.lee.davidson at gmail.com> ha scritto: >> >>> It works okay here as well. (Except, unrelated, the FProgress form >>> doesn't get closed and so the application does not exit nicely.) >>> >>> >>> ___ >>> Lee >>> >>> >>> On 11/21/18 11:36 AM, Charlie Ogier wrote: >>> > Hi Gianluigi, >>> > >>> > It seems OK to me. See HERE < >>> http://www.cogier.com/video/ProcessBar.webm>. >>> > >>> > Charlie >>> > >>> > On 21/11/2018 14:44, Gianluigi wrote: >>> >> Why do I get an error? >>> >> I attach two tests, one simulates this simple necessity and works >>> (ConceptualTest): >>> >> Show the FMain, then ask to the user for a number. >>> >> Pass the number to a module that processes it. >>> >> View to the user the processing time using a ProgressBar in an >>> independent window. >>> >> The other puts it into practice and does not work (BadProcessbarTest). >>> >> Note: If the ProgressBar is in the FMain, practice test also well >>> working. >>> >> >>> >> What am I doing wrong? >>> >> >>> >> Regards >>> >> Gianluigi >>> >> >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> > >>> > >>> > >>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> > >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ProgressbarError-0.0.1.tar.gz Type: application/gzip Size: 12044 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: progressbar.png Type: image/png Size: 19402 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: spring.png Type: image/png Size: 32761 bytes Desc: not available URL: From bagonergi at gmail.com Thu Nov 22 15:45:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 22 Nov 2018 15:45:05 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: I have to apologize, my age in my defense, I had forgotten that on Debian I had installed (for the wiki) version 3.9.0. Now I have installed the master and I get the usual errors (see attached images). I await some other feedback from those who have the Gnome desktop, before communicating to bugtraker. Regards Gianluigi Il giorno gio 22 nov 2018 alle ore 13:18 Gianluigi ha scritto: > Hi Fabien, > I do not know what to say, it could be caused by the fact that Debian is > on a virtual machine (see attached image). > However I did a test on Debian (desktop Gnome) and I also get them the > same malfunction. > Summary; running the attached project (ProgrssbarError), and leaving 100 > by default, both on Ubuntu Gnome and on Debian Gnome, about halfway through > the progressbar I get a warning window that closes at the end of the loop. > NOTE: If you act on the window (see attached image) you get the system > lock (Ctrl+Alt+F2 to restart :-(). > > Regards > Gianluigi > > Il giorno gio 22 nov 2018 alle ore 11:55 Fabien Bodard < > gambas.fr at gmail.com> ha scritto: > >> I think the spring class ??? is not related >> >> Le mer. 21 nov. 2018 ? 23:25, Gianluigi a ?crit : >> >>> Hi Charlie and Lee, >>> I thank you again for the test and I apologize for forgetting >>> FProgress.Close at the end of the loop. >>> The app freeze was the fault of this, even if Gnome continues to display >>> the warning window but disappears at the end of the loop and the database >>> is created. >>> Same behavior also with Ubuntu 18.10. >>> With Xubuntu it works well with both the stable and the master >>> With Debian Stretch it does not start and tells me that it does not know >>> the Spring class in FRecords. .-( >>> >>> Regards and good night >>> Gianluigi >>> >>> Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < >>> t.lee.davidson at gmail.com> ha scritto: >>> >>>> It works okay here as well. (Except, unrelated, the FProgress form >>>> doesn't get closed and so the application does not exit nicely.) >>>> >>>> >>>> ___ >>>> Lee >>>> >>>> >>>> On 11/21/18 11:36 AM, Charlie Ogier wrote: >>>> > Hi Gianluigi, >>>> > >>>> > It seems OK to me. See HERE < >>>> http://www.cogier.com/video/ProcessBar.webm>. >>>> > >>>> > Charlie >>>> > >>>> > On 21/11/2018 14:44, Gianluigi wrote: >>>> >> Why do I get an error? >>>> >> I attach two tests, one simulates this simple necessity and works >>>> (ConceptualTest): >>>> >> Show the FMain, then ask to the user for a number. >>>> >> Pass the number to a module that processes it. >>>> >> View to the user the processing time using a ProgressBar in an >>>> independent window. >>>> >> The other puts it into practice and does not work >>>> (BadProcessbarTest). >>>> >> Note: If the ProgressBar is in the FMain, practice test also well >>>> working. >>>> >> >>>> >> What am I doing wrong? >>>> >> >>>> >> Regards >>>> >> Gianluigi >>>> >> >>>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> > >>>> > >>>> > >>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> > >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> -- >> Fabien Bodard >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bad.png Type: image/png Size: 16999 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error.png Type: image/png Size: 16591 bytes Desc: not available URL: From gambas.fr at gmail.com Thu Nov 22 16:02:00 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 22 Nov 2018 16:02:00 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: is there something that try to close the bar window before the end ? It look like you have trying to close it during the process. Le jeu. 22 nov. 2018 ? 15:46, Gianluigi a ?crit : > I have to apologize, my age in my defense, I had forgotten that on Debian > I had installed (for the wiki) version 3.9.0. > Now I have installed the master and I get the usual errors (see attached > images). > I await some other feedback from those who have the Gnome desktop, before > communicating to bugtraker. > > Regards > Gianluigi > > Il giorno gio 22 nov 2018 alle ore 13:18 Gianluigi > ha scritto: > >> Hi Fabien, >> I do not know what to say, it could be caused by the fact that Debian is >> on a virtual machine (see attached image). >> However I did a test on Debian (desktop Gnome) and I also get them the >> same malfunction. >> Summary; running the attached project (ProgrssbarError), and leaving 100 >> by default, both on Ubuntu Gnome and on Debian Gnome, about halfway through >> the progressbar I get a warning window that closes at the end of the loop. >> NOTE: If you act on the window (see attached image) you get the system >> lock (Ctrl+Alt+F2 to restart :-(). >> >> Regards >> Gianluigi >> >> Il giorno gio 22 nov 2018 alle ore 11:55 Fabien Bodard < >> gambas.fr at gmail.com> ha scritto: >> >>> I think the spring class ??? is not related >>> >>> Le mer. 21 nov. 2018 ? 23:25, Gianluigi a ?crit : >>> >>>> Hi Charlie and Lee, >>>> I thank you again for the test and I apologize for forgetting >>>> FProgress.Close at the end of the loop. >>>> The app freeze was the fault of this, even if Gnome continues to >>>> display the warning window but disappears at the end of the loop and the >>>> database is created. >>>> Same behavior also with Ubuntu 18.10. >>>> With Xubuntu it works well with both the stable and the master >>>> With Debian Stretch it does not start and tells me that it does not >>>> know the Spring class in FRecords. .-( >>>> >>>> Regards and good night >>>> Gianluigi >>>> >>>> Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < >>>> t.lee.davidson at gmail.com> ha scritto: >>>> >>>>> It works okay here as well. (Except, unrelated, the FProgress form >>>>> doesn't get closed and so the application does not exit nicely.) >>>>> >>>>> >>>>> ___ >>>>> Lee >>>>> >>>>> >>>>> On 11/21/18 11:36 AM, Charlie Ogier wrote: >>>>> > Hi Gianluigi, >>>>> > >>>>> > It seems OK to me. See HERE < >>>>> http://www.cogier.com/video/ProcessBar.webm>. >>>>> > >>>>> > Charlie >>>>> > >>>>> > On 21/11/2018 14:44, Gianluigi wrote: >>>>> >> Why do I get an error? >>>>> >> I attach two tests, one simulates this simple necessity and works >>>>> (ConceptualTest): >>>>> >> Show the FMain, then ask to the user for a number. >>>>> >> Pass the number to a module that processes it. >>>>> >> View to the user the processing time using a ProgressBar in an >>>>> independent window. >>>>> >> The other puts it into practice and does not work >>>>> (BadProcessbarTest). >>>>> >> Note: If the ProgressBar is in the FMain, practice test also well >>>>> working. >>>>> >> >>>>> >> What am I doing wrong? >>>>> >> >>>>> >> Regards >>>>> >> Gianluigi >>>>> >> >>>>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> > >>>>> > >>>>> > >>>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> > >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Nov 22 16:04:21 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 22 Nov 2018 16:04:21 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: Public Sub GoBar() ProgressBar1.Value += 0.01 ProgressBar1.Refresh Wait 0.1 End try to add a wait here Le jeu. 22 nov. 2018 ? 16:02, Fabien Bodard a ?crit : > is there something that try to close the bar window before the end ? It > look like you have trying to close it during the process. > > > > Le jeu. 22 nov. 2018 ? 15:46, Gianluigi a ?crit : > >> I have to apologize, my age in my defense, I had forgotten that on >> Debian I had installed (for the wiki) version 3.9.0. >> Now I have installed the master and I get the usual errors (see attached >> images). >> I await some other feedback from those who have the Gnome desktop, before >> communicating to bugtraker. >> >> Regards >> Gianluigi >> >> Il giorno gio 22 nov 2018 alle ore 13:18 Gianluigi >> ha scritto: >> >>> Hi Fabien, >>> I do not know what to say, it could be caused by the fact that Debian is >>> on a virtual machine (see attached image). >>> However I did a test on Debian (desktop Gnome) and I also get them the >>> same malfunction. >>> Summary; running the attached project (ProgrssbarError), and leaving 100 >>> by default, both on Ubuntu Gnome and on Debian Gnome, about halfway through >>> the progressbar I get a warning window that closes at the end of the loop. >>> NOTE: If you act on the window (see attached image) you get the system >>> lock (Ctrl+Alt+F2 to restart :-(). >>> >>> Regards >>> Gianluigi >>> >>> Il giorno gio 22 nov 2018 alle ore 11:55 Fabien Bodard < >>> gambas.fr at gmail.com> ha scritto: >>> >>>> I think the spring class ??? is not related >>>> >>>> Le mer. 21 nov. 2018 ? 23:25, Gianluigi a ?crit : >>>> >>>>> Hi Charlie and Lee, >>>>> I thank you again for the test and I apologize for forgetting >>>>> FProgress.Close at the end of the loop. >>>>> The app freeze was the fault of this, even if Gnome continues to >>>>> display the warning window but disappears at the end of the loop and the >>>>> database is created. >>>>> Same behavior also with Ubuntu 18.10. >>>>> With Xubuntu it works well with both the stable and the master >>>>> With Debian Stretch it does not start and tells me that it does not >>>>> know the Spring class in FRecords. .-( >>>>> >>>>> Regards and good night >>>>> Gianluigi >>>>> >>>>> Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < >>>>> t.lee.davidson at gmail.com> ha scritto: >>>>> >>>>>> It works okay here as well. (Except, unrelated, the FProgress form >>>>>> doesn't get closed and so the application does not exit nicely.) >>>>>> >>>>>> >>>>>> ___ >>>>>> Lee >>>>>> >>>>>> >>>>>> On 11/21/18 11:36 AM, Charlie Ogier wrote: >>>>>> > Hi Gianluigi, >>>>>> > >>>>>> > It seems OK to me. See HERE < >>>>>> http://www.cogier.com/video/ProcessBar.webm>. >>>>>> > >>>>>> > Charlie >>>>>> > >>>>>> > On 21/11/2018 14:44, Gianluigi wrote: >>>>>> >> Why do I get an error? >>>>>> >> I attach two tests, one simulates this simple necessity and works >>>>>> (ConceptualTest): >>>>>> >> Show the FMain, then ask to the user for a number. >>>>>> >> Pass the number to a module that processes it. >>>>>> >> View to the user the processing time using a ProgressBar in an >>>>>> independent window. >>>>>> >> The other puts it into practice and does not work >>>>>> (BadProcessbarTest). >>>>>> >> Note: If the ProgressBar is in the FMain, practice test also well >>>>>> working. >>>>>> >> >>>>>> >> What am I doing wrong? >>>>>> >> >>>>>> >> Regards >>>>>> >> Gianluigi >>>>>> >> >>>>>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> > >>>>>> > >>>>>> > >>>>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> > >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>>> -- >>>> Fabien Bodard >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Nov 22 19:01:46 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 22 Nov 2018 19:01:46 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: Hi Fabien, your trick works, "WAIT 0.01" is enough: Public Sub GoBar() ProgressBar1.Value += 0.01 ProgressBar1.Refresh Wait 0.01 End But it should be considered that if I had programmed with another desktop I would not have noticed and would have distributed a lame program. Regards Gianluigi Il giorno gio 22 nov 2018 alle ore 16:05 Fabien Bodard ha scritto: > Public Sub GoBar() > ProgressBar1.Value += 0.01 > ProgressBar1.Refresh > Wait 0.1 > End > > try to add a wait here > > Le jeu. 22 nov. 2018 ? 16:02, Fabien Bodard a > ?crit : > >> is there something that try to close the bar window before the end ? It >> look like you have trying to close it during the process. >> >> >> >> Le jeu. 22 nov. 2018 ? 15:46, Gianluigi a ?crit : >> >>> I have to apologize, my age in my defense, I had forgotten that on >>> Debian I had installed (for the wiki) version 3.9.0. >>> Now I have installed the master and I get the usual errors (see attached >>> images). >>> I await some other feedback from those who have the Gnome desktop, >>> before communicating to bugtraker. >>> >>> Regards >>> Gianluigi >>> >>> Il giorno gio 22 nov 2018 alle ore 13:18 Gianluigi >>> ha scritto: >>> >>>> Hi Fabien, >>>> I do not know what to say, it could be caused by the fact that Debian >>>> is on a virtual machine (see attached image). >>>> However I did a test on Debian (desktop Gnome) and I also get them the >>>> same malfunction. >>>> Summary; running the attached project (ProgrssbarError), and leaving >>>> 100 by default, both on Ubuntu Gnome and on Debian Gnome, about halfway >>>> through the progressbar I get a warning window that closes at the end of >>>> the loop. >>>> NOTE: If you act on the window (see attached image) you get the system >>>> lock (Ctrl+Alt+F2 to restart :-(). >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno gio 22 nov 2018 alle ore 11:55 Fabien Bodard < >>>> gambas.fr at gmail.com> ha scritto: >>>> >>>>> I think the spring class ??? is not related >>>>> >>>>> Le mer. 21 nov. 2018 ? 23:25, Gianluigi a >>>>> ?crit : >>>>> >>>>>> Hi Charlie and Lee, >>>>>> I thank you again for the test and I apologize for forgetting >>>>>> FProgress.Close at the end of the loop. >>>>>> The app freeze was the fault of this, even if Gnome continues to >>>>>> display the warning window but disappears at the end of the loop and the >>>>>> database is created. >>>>>> Same behavior also with Ubuntu 18.10. >>>>>> With Xubuntu it works well with both the stable and the master >>>>>> With Debian Stretch it does not start and tells me that it does not >>>>>> know the Spring class in FRecords. .-( >>>>>> >>>>>> Regards and good night >>>>>> Gianluigi >>>>>> >>>>>> Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < >>>>>> t.lee.davidson at gmail.com> ha scritto: >>>>>> >>>>>>> It works okay here as well. (Except, unrelated, the FProgress form >>>>>>> doesn't get closed and so the application does not exit nicely.) >>>>>>> >>>>>>> >>>>>>> ___ >>>>>>> Lee >>>>>>> >>>>>>> >>>>>>> On 11/21/18 11:36 AM, Charlie Ogier wrote: >>>>>>> > Hi Gianluigi, >>>>>>> > >>>>>>> > It seems OK to me. See HERE < >>>>>>> http://www.cogier.com/video/ProcessBar.webm>. >>>>>>> > >>>>>>> > Charlie >>>>>>> > >>>>>>> > On 21/11/2018 14:44, Gianluigi wrote: >>>>>>> >> Why do I get an error? >>>>>>> >> I attach two tests, one simulates this simple necessity and works >>>>>>> (ConceptualTest): >>>>>>> >> Show the FMain, then ask to the user for a number. >>>>>>> >> Pass the number to a module that processes it. >>>>>>> >> View to the user the processing time using a ProgressBar in an >>>>>>> independent window. >>>>>>> >> The other puts it into practice and does not work >>>>>>> (BadProcessbarTest). >>>>>>> >> Note: If the ProgressBar is in the FMain, practice test also well >>>>>>> working. >>>>>>> >> >>>>>>> >> What am I doing wrong? >>>>>>> >> >>>>>>> >> Regards >>>>>>> >> Gianluigi >>>>>>> >> >>>>>>> >> ----[ Gambas mailing-list is hosted by >>>>>>> https://www.hostsharing.net ]---- >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> > >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> >>>>> -- >>>>> Fabien Bodard >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> -- >> Fabien Bodard >> > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Nov 22 19:09:16 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 22 Nov 2018 19:09:16 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: What do you think should be reported in the Bugtraker? Il giorno gio 22 nov 2018 alle ore 19:01 Gianluigi ha scritto: > Hi Fabien, > your trick works, "WAIT 0.01" is enough: > > Public Sub GoBar() > > ProgressBar1.Value += 0.01 > ProgressBar1.Refresh > Wait 0.01 > > End > > But it should be considered that if I had programmed with another desktop > I would not have noticed and would have distributed a lame program. > > Regards > Gianluigi > > Il giorno gio 22 nov 2018 alle ore 16:05 Fabien Bodard < > gambas.fr at gmail.com> ha scritto: > >> Public Sub GoBar() >> ProgressBar1.Value += 0.01 >> ProgressBar1.Refresh >> Wait 0.1 >> End >> >> try to add a wait here >> >> Le jeu. 22 nov. 2018 ? 16:02, Fabien Bodard a >> ?crit : >> >>> is there something that try to close the bar window before the end ? It >>> look like you have trying to close it during the process. >>> >>> >>> >>> Le jeu. 22 nov. 2018 ? 15:46, Gianluigi a ?crit : >>> >>>> I have to apologize, my age in my defense, I had forgotten that on >>>> Debian I had installed (for the wiki) version 3.9.0. >>>> Now I have installed the master and I get the usual errors (see >>>> attached images). >>>> I await some other feedback from those who have the Gnome desktop, >>>> before communicating to bugtraker. >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno gio 22 nov 2018 alle ore 13:18 Gianluigi >>>> ha scritto: >>>> >>>>> Hi Fabien, >>>>> I do not know what to say, it could be caused by the fact that Debian >>>>> is on a virtual machine (see attached image). >>>>> However I did a test on Debian (desktop Gnome) and I also get them the >>>>> same malfunction. >>>>> Summary; running the attached project (ProgrssbarError), and leaving >>>>> 100 by default, both on Ubuntu Gnome and on Debian Gnome, about halfway >>>>> through the progressbar I get a warning window that closes at the end of >>>>> the loop. >>>>> NOTE: If you act on the window (see attached image) you get the system >>>>> lock (Ctrl+Alt+F2 to restart :-(). >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno gio 22 nov 2018 alle ore 11:55 Fabien Bodard < >>>>> gambas.fr at gmail.com> ha scritto: >>>>> >>>>>> I think the spring class ??? is not related >>>>>> >>>>>> Le mer. 21 nov. 2018 ? 23:25, Gianluigi a >>>>>> ?crit : >>>>>> >>>>>>> Hi Charlie and Lee, >>>>>>> I thank you again for the test and I apologize for forgetting >>>>>>> FProgress.Close at the end of the loop. >>>>>>> The app freeze was the fault of this, even if Gnome continues to >>>>>>> display the warning window but disappears at the end of the loop and the >>>>>>> database is created. >>>>>>> Same behavior also with Ubuntu 18.10. >>>>>>> With Xubuntu it works well with both the stable and the master >>>>>>> With Debian Stretch it does not start and tells me that it does not >>>>>>> know the Spring class in FRecords. .-( >>>>>>> >>>>>>> Regards and good night >>>>>>> Gianluigi >>>>>>> >>>>>>> Il giorno mer 21 nov 2018 alle ore 22:35 T Lee Davidson < >>>>>>> t.lee.davidson at gmail.com> ha scritto: >>>>>>> >>>>>>>> It works okay here as well. (Except, unrelated, the FProgress form >>>>>>>> doesn't get closed and so the application does not exit nicely.) >>>>>>>> >>>>>>>> >>>>>>>> ___ >>>>>>>> Lee >>>>>>>> >>>>>>>> >>>>>>>> On 11/21/18 11:36 AM, Charlie Ogier wrote: >>>>>>>> > Hi Gianluigi, >>>>>>>> > >>>>>>>> > It seems OK to me. See HERE < >>>>>>>> http://www.cogier.com/video/ProcessBar.webm>. >>>>>>>> > >>>>>>>> > Charlie >>>>>>>> > >>>>>>>> > On 21/11/2018 14:44, Gianluigi wrote: >>>>>>>> >> Why do I get an error? >>>>>>>> >> I attach two tests, one simulates this simple necessity and >>>>>>>> works (ConceptualTest): >>>>>>>> >> Show the FMain, then ask to the user for a number. >>>>>>>> >> Pass the number to a module that processes it. >>>>>>>> >> View to the user the processing time using a ProgressBar in an >>>>>>>> independent window. >>>>>>>> >> The other puts it into practice and does not work >>>>>>>> (BadProcessbarTest). >>>>>>>> >> Note: If the ProgressBar is in the FMain, practice test also >>>>>>>> well working. >>>>>>>> >> >>>>>>>> >> What am I doing wrong? >>>>>>>> >> >>>>>>>> >> Regards >>>>>>>> >> Gianluigi >>>>>>>> >> >>>>>>>> >> ----[ Gambas mailing-list is hosted by >>>>>>>> https://www.hostsharing.net ]---- >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > ----[ Gambas mailing-list is hosted by >>>>>>>> https://www.hostsharing.net ]---- >>>>>>>> > >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Fabien Bodard >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> -- >>> Fabien Bodard >>> >> >> >> -- >> Fabien Bodard >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Nov 22 19:20:47 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Nov 2018 19:20:47 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> Message-ID: <3e15ef89-e5a4-1b6f-f28f-9224f055440c@gmail.com> Le 22/11/2018 ? 19:09, Gianluigi a ?crit?: > What do you think should be reported in the Bugtraker? > All your mails are full of html links to the "signl.online" tracker. Please stop that, fix your mail client, or send only plain text mails! Regards, -- Beno?t Minisini From bagonergi at gmail.com Thu Nov 22 19:55:29 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 22 Nov 2018 19:55:29 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: <3e15ef89-e5a4-1b6f-f28f-9224f055440c@gmail.com> References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> <3e15ef89-e5a4-1b6f-f28f-9224f055440c@gmail.com> Message-ID: Il giorno gio 22 nov 2018 alle ore 19:21 Beno?t Minisini ha scritto: > Le 22/11/2018 ? 19:09, Gianluigi a ?crit : > > What do you think should be reported in the Bugtraker? > > > > All your mails are full of html links to the "signl.online" tracker. > > Please stop that, fix your mail client, or send only plain text mails! > > Regards, > > -- > Beno?t Minisini > > I don't understand what you mean, I tried to see in the configurations but I do not see anything strange. I have not seen how you can set gmail in text-only mode (no html). With "signl.online tracker" do you mean this? : "---- [Gambas mailing list is hosted by https://www.hostsharing.net] ----" Because I receive them from you too, should I delete them? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Nov 22 22:30:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Nov 2018 22:30:55 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> <3e15ef89-e5a4-1b6f-f28f-9224f055440c@gmail.com> Message-ID: <1d5ea3dd-c5f1-f4a5-d5bb-b49fe6834437@gmail.com> Le 22/11/2018 ? 19:55, Gianluigi a ?crit?: > > I don't understand what you mean, I tried to see in the configurations > but I do not see anything strange. > I have not seen how you can set gmail in text-only mode (no html). > With "signl.online tracker" do you mean this? : > "---- [Gambas mailing list is hosted by https://www.hostsharing.net] ----" > > Because I receive them from you too, should I delete them? > > Regards > Gianluigi > Sorry, it's not you, it's Fabien Bodard that introduces these tracker hidden links in its answers (6th mail from the beginning of the thread)! -- Beno?t Minisini From chrisml at deganius.de Fri Nov 23 07:39:09 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 23 Nov 2018 07:39:09 +0100 Subject: [Gambas-user] Weird, yet again. Two way access to a collection. (not really a gambas issue) In-Reply-To: <7d7d0624-360b-d391-2f7f-ddaf4783ddf1@gmail.com> References: <1809fe63-7ebf-92a6-1d17-7c67f11e1983@gmail.com> <7d7d0624-360b-d391-2f7f-ddaf4783ddf1@gmail.com> Message-ID: Am 22.11.18 um 02:02 schrieb Bruce: > SOLVED! > > Well, at least at a prototype level anyway. Took about 2 hours to build. > > I used a bit if all your suggestions guys, so thanks again. And what does your solution do now? Just for interest ... 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 gambas.fr at gmail.com Fri Nov 23 08:15:35 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 23 Nov 2018 08:15:35 +0100 Subject: [Gambas-user] ProgressBar mistake In-Reply-To: <1d5ea3dd-c5f1-f4a5-d5bb-b49fe6834437@gmail.com> References: <7fa0c528-a923-5adf-7c76-11f3b411a78b@gmail.com> <3e15ef89-e5a4-1b6f-f28f-9224f055440c@gmail.com> <1d5ea3dd-c5f1-f4a5-d5bb-b49fe6834437@gmail.com> Message-ID: Le jeu. 22 nov. 2018 ? 22:31, Beno?t Minisini a ?crit : > Le 22/11/2018 ? 19:55, Gianluigi a ?crit : > > > > I don't understand what you mean, I tried to see in the configurations > > but I do not see anything strange. > > I have not seen how you can set gmail in text-only mode (no html). > > With "signl.online tracker" do you mean this? : > > "---- [Gambas mailing list is hosted by https://www.hostsharing.net] > ----" > > > > Because I receive them from you too, should I delete them? > > > > Regards > > Gianluigi > > > > Sorry, it's not you, it's Fabien Bodard that introduces these tracker > hidden links in its answers (6th mail from the beginning of the thread)! > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > I apologize ... it's my misstake ... it was to try compensate the unability of the gmail interface to manage the mail receipt info. But i've understand theire way to do that quite late... Sorry again. It seem that the only good way for me will be to use a hard mail software like kmail or thunderbird. -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From Karl.Reinl at Fen-Net.de Sat Nov 24 18:45:39 2018 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Sat, 24 Nov 2018 18:45:39 +0100 Subject: [Gambas-user] compiling gambas3 commits Message-ID: <1543081539.22710.12.camel@Scenic.local> Salut , since the any commits I get this, but every things Ok on my gambas3. Compiling gambas3... OK Installing gambas3... Compiling gbs3... OK Installing gbs3... Installing the scripter... Registering Gambas script mimetype... Registering Gambas server page mimetype... Installing the Gambas appdata file... /usr/bin/install: das Verzeichnis ?/usr/share/metainfo? kann nicht angelegt werden: Die Datei existiert bereits make[2]: *** [install-exec-local] Fehler 1 make[2]: Verzeichnis ?/home//src/gambas/3/gambas-git30/app? wird verlassen make[1]: *** [install-am] Fehler 2 make[1]: Verzeichnis ?/home//src/gambas/3/gambas-git30/app? wird verlassen make: *** [install-recursive] Fehler 1 any hints ? -- Amicalement Charlie From g4mba5 at gmail.com Sat Nov 24 18:57:04 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 24 Nov 2018 18:57:04 +0100 Subject: [Gambas-user] compiling gambas3 commits In-Reply-To: <1543081539.22710.12.camel@Scenic.local> References: <1543081539.22710.12.camel@Scenic.local> Message-ID: Le 24/11/2018 ? 18:45, Charlie Reinl a ?crit?: > Salut , > > since the any commits I get this, but every things Ok on my gambas3. > > Compiling gambas3... > OK > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > Installing the scripter... > Registering Gambas script mimetype... > Registering Gambas server page mimetype... > Installing the Gambas appdata file... > /usr/bin/install: das Verzeichnis ?/usr/share/metainfo? kann nicht > angelegt werden: Die Datei existiert bereits > make[2]: *** [install-exec-local] Fehler 1 > make[2]: Verzeichnis ?/home//src/gambas/3/gambas-git30/app? wird > verlassen > make[1]: *** [install-am] Fehler 2 > make[1]: Verzeichnis ?/home//src/gambas/3/gambas-git30/app? wird > verlassen > make: *** [install-recursive] Fehler 1 > > any hints ? > What does it say in english? $ LANG=C sudo make install -- Beno?t Minisini From adamnt42 at gmail.com Sun Nov 25 05:19:51 2018 From: adamnt42 at gmail.com (Bruce) Date: Sun, 25 Nov 2018 14:49:51 +1030 Subject: [Gambas-user] "Proxy" for any class Message-ID: <5a55a696-0925-34f2-7fb2-9c75750eb2df@gmail.com> Is there a way for any normal class to declare a "Proxy" for itself like UI classes can? I have a heirachical set of classes, each of which has an event "UIMessage" the intent of which is to pass status messages back up the chain. At the moment I have to re-raise events from lower level classes as this levels own "UIMessage". This is based on the wiki statement "When a control has a proxy, it will duplicate all mouse and keyboard events of the proxy for itself. I.e., if the proxy raises a KeyPress event, then the control will raise it too." tia Bruce From bagonergi at gmail.com Sun Nov 25 10:23:26 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 25 Nov 2018 10:23:26 +0100 Subject: [Gambas-user] A question about GridView_Data Message-ID: Having a module that contains all the queries to the database, what is the most correct way to pass the result to the window containing _Data? - Through a global public variable - Through a private global variable instanced by a public function - Through a property or? The execution times of the three modes seem similar. Thanks for the attention. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsanroma at gmail.com Sun Nov 25 11:03:18 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Sun, 25 Nov 2018 11:03:18 +0100 Subject: [Gambas-user] GridView RichText extra space character. Message-ID: <08ad8cb7-f224-e0b8-17b3-55b9b4498548@gmail.com> Hello everyone, I have noticed a strange behavior when I tried to use the GridView's RichText property. When I place two tags with color definition next to each other, an extra space shows up from nowhere. Let me show you my test: ??????? GridView1[0, 0].RichText = "HelloWorld" ??? ??? ??? HelloWorld?? ---- Perfect! ??????? GridView1[1, 0].RichText = "HelloWorld" ??? ??? ??? HelloWord??? --- Hello in white color: Perfect! ??????? GridView1[2, 0].RichText = "HelloWorld" ??? ??? ??? Hello World?? --- Colors great, but extra space between the 2 words. Not perfect? :( I was wondering where that extra space comes from. Is it a Gambas thing or a QT thing? Is there a way for that space not to show up ? TIA, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Sun Nov 25 13:43:27 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 25 Nov 2018 12:43:27 +0000 Subject: [Gambas-user] GridView RichText extra space character. In-Reply-To: <08ad8cb7-f224-e0b8-17b3-55b9b4498548@gmail.com> References: <08ad8cb7-f224-e0b8-17b3-55b9b4498548@gmail.com> Message-ID: <8f6e9883-2d7b-b06c-72aa-0ec26da1056e@cogier.com> Hi David, My test shows that this works correctly with QT4 & QT5 but not with GTK2 or GTK3. Click to view example using QT5 Charlie On 25/11/2018 10:03, David Sanrom? wrote: > Hello everyone, > > > I have noticed a strange behavior when I tried to use the GridView's > RichText property. When I place two tags with color definition > next to each other, an extra space shows up from nowhere. Let me show > you my test: > > > ??????? GridView1[0, 0].RichText = "HelloWorld" > > ??? ??? ??? HelloWorld?? ---- Perfect! > > ??????? GridView1[1, 0].RichText = " color='white'>HelloWorld" > > ??? ??? ??? HelloWord??? --- Hello in white color: Perfect! > > ??????? GridView1[2, 0].RichText = " color='white'>HelloWorld" > > ??? ??? ??? Hello World?? --- Colors great, but extra space between > the 2 words. Not perfect? :( > > > I was wondering where that extra space comes from. Is it a Gambas > thing or a QT thing? Is there a way for that space not to show up ? > > > TIA, > > David > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsanroma at gmail.com Sun Nov 25 16:02:44 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Sun, 25 Nov 2018 16:02:44 +0100 Subject: [Gambas-user] GridView RichText extra space character. In-Reply-To: <8f6e9883-2d7b-b06c-72aa-0ec26da1056e@cogier.com> References: <08ad8cb7-f224-e0b8-17b3-55b9b4498548@gmail.com> <8f6e9883-2d7b-b06c-72aa-0ec26da1056e@cogier.com> Message-ID: <25409e17-b7e0-7344-3dc3-b701f1d7cdc1@gmail.com> Hello, Thanks for the heads up... I never tried "forcing" one library over the other.? ;) In the Project Properties | Environment I tried setting the variable GB_GUI to gb.qt4 and things worked like Charlie mentioned., like one would expect ;) Thanks a bunch... My next question would be, is there any advantages or disadvantages to set the variable to gb.qt4 or gb.qt5 or any GTK setting to work with Gambas ? Do I miss anything by always setting the GB_GUI to gb.qt4 or gb.qt5 ? Which one is better for Gambas gb.qt4 or gb.qt5 ? TIA, David El 25/11/18 a las 13:43, Charlie Ogier escribi?: > Hi David, > > My test shows that this works correctly with QT4 & QT5 but not with > GTK2 or GTK3. > > Click to view example using QT5 > > > Charlie > > On 25/11/2018 10:03, David Sanrom? wrote: > >> Hello everyone, >> >> >> I have noticed a strange behavior when I tried to use the GridView's >> RichText property. When I place two tags with color definition >> next to each other, an extra space shows up from nowhere. Let me show >> you my test: >> >> >> ??????? GridView1[0, 0].RichText = "HelloWorld" >> >> ??? ??? ??? HelloWorld?? ---- Perfect! >> >> ??????? GridView1[1, 0].RichText = "> color='white'>HelloWorld" >> >> ??? ??? ??? HelloWord??? --- Hello in white color: Perfect! >> >> ??????? GridView1[2, 0].RichText = "> color='white'>HelloWorld" >> >> ??? ??? ??? Hello World?? --- Colors great, but extra space between >> the 2 words. Not perfect :( >> >> >> I was wondering where that extra space comes from. Is it a Gambas >> thing or a QT thing? Is there a way for that space not to show up ? >> >> >> TIA, >> >> David >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Nov 25 18:36:10 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 25 Nov 2018 18:36:10 +0100 Subject: [Gambas-user] GridView RichText extra space character. In-Reply-To: <8f6e9883-2d7b-b06c-72aa-0ec26da1056e@cogier.com> References: <08ad8cb7-f224-e0b8-17b3-55b9b4498548@gmail.com> <8f6e9883-2d7b-b06c-72aa-0ec26da1056e@cogier.com> Message-ID: <30897e7d-67a8-c459-35ab-26e5e10a4401@gmail.com> Le 25/11/2018 ? 13:43, Charlie Ogier a ?crit?: > Hi David, > > My test shows that this works correctly with QT4 & QT5 but not with GTK2 > or GTK3. > > Click to view example using QT5 > > > Charlie > So this a bug in gb.gtk/gb.gtk3. I will try to fix it. -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Nov 26 01:57:54 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 26 Nov 2018 02:57:54 +0200 Subject: [Gambas-user] JIT bug Message-ID: There seems to be false "no return value" error raised. See the attachment. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.13.tar.gz Type: application/gzip Size: 27253 bytes Desc: not available URL: From rwe-sse at osnanet.de Mon Nov 26 11:46:12 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 26 Nov 2018 11:46:12 +0100 Subject: [Gambas-user] Program to use different group rights Message-ID: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> When a program needs to read from a file which could actually only be read if member of a special group, how would this be achieved? I found that in order to read from /etc/shadow, a program needs to be member of the group "shadow". But when I start a password management program (in GUI) as an ordinary user, this program will be member of my own group only. So how would such a program be able to read my hash from /etc/shadow to verify if I type the right old password first? The new password could be sent to passwd to form and save a new hash, but how to read the old one first? Maybe someone here knows how this is achieved. Regards Rolf From g4mba5 at gmail.com Mon Nov 26 11:55:18 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 26 Nov 2018 11:55:18 +0100 Subject: [Gambas-user] JIT bug In-Reply-To: References: Message-ID: Le 26/11/2018 ? 01:57, Jussi Lahtinen a ?crit?: > There seems to be false "no return value" error raised. > See the attachment. > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Fixed. -- Beno?t Minisini From g4mba5 at gmail.com Mon Nov 26 12:10:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 26 Nov 2018 12:10:34 +0100 Subject: [Gambas-user] GridView RichText extra space character. In-Reply-To: <30897e7d-67a8-c459-35ab-26e5e10a4401@gmail.com> References: <08ad8cb7-f224-e0b8-17b3-55b9b4498548@gmail.com> <8f6e9883-2d7b-b06c-72aa-0ec26da1056e@cogier.com> <30897e7d-67a8-c459-35ab-26e5e10a4401@gmail.com> Message-ID: <26383a18-c19e-4e27-3bb7-e837da73f63e@gmail.com> Le 25/11/2018 ? 18:36, Beno?t Minisini a ?crit?: > Le 25/11/2018 ? 13:43, Charlie Ogier a ?crit?: >> Hi David, >> >> My test shows that this works correctly with QT4 & QT5 but not with >> GTK2 or GTK3. >> >> Click to view example using QT5 >> >> >> Charlie >> > > So this a bug in gb.gtk/gb.gtk3. I will try to fix it. > Fixed! -- Beno?t Minisini From adamnt42 at gmail.com Mon Nov 26 12:12:38 2018 From: adamnt42 at gmail.com (Bruce) Date: Mon, 26 Nov 2018 21:42:38 +1030 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> Message-ID: <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> Well, the first thing to note is that /etc/shadow should contain one way encrypted information only. So I don't see how you could possibly see anything relevant in it? Sure, if you cat that file (as a root user) you will see some (possibly) ASCII strings that represent the passwords - but you can't "un-decrypt" them. AFAIK. As regards your second para, the "shadow" group (AFAICR) is very protected. No user, or especially an executable program "should" be able to get access. The only way I know is for the executable to obtain priviledge access via a runtime login as a "root" level user. Re para 3: From memory, (bad at the best of times), there are at least a few system calls that let you: - compare an encrypted passkey to the relevant value to the ... - currently (kernel level) known value for that passkey. - here's the rub, I can't remember whether that is actually obtained from a read of the shadow file or whether it's something in ring 0 memory? So bascically, trying to use /etc/shadow passkey authentication in user space is a no-no. AFAICR! I don't know exactly what your end goal is but I don't think you're on the right track. B On 11/26/18 9:16 PM, Rolf-Werner Eilert wrote: > When a program needs to read from a file which could actually only be > read if member of a special group, how would this be achieved? > > I found that in order to read from /etc/shadow, a program needs to be > member of the group "shadow". But when I start a password management > program (in GUI) as an ordinary user, this program will be member of my > own group only. > > So how would such a program be able to read my hash from /etc/shadow to > verify if I type the right old password first? The new password could be > sent to passwd to form and save a new hash, but how to read the old one > first? > > Maybe someone here knows how this is achieved. > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From rwe-sse at osnanet.de Mon Nov 26 12:52:09 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 26 Nov 2018 12:52:09 +0100 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> Message-ID: Maybe there is some kind of system call. You are right, no one can really make any sense of this hash, but there must be some chance to get at least some verification like "when the user types this password, is it correct?". Is there a commandline program (which could be called from within a shell) to do that? Regards Rolf Am 26.11.2018 um 12:12 schrieb Bruce: > Well, the first thing to note is that /etc/shadow should contain one way > encrypted information only. So I don't see how you could possibly see > anything relevant in it? > > Sure, if you cat that file (as a root user) you will see some (possibly) > ASCII strings that represent the passwords - but you can't "un-decrypt" > them. AFAIK. > > As regards your second para, the "shadow" group (AFAICR) is very > protected. No user, or especially an executable program "should" be able > to get access. The only way I know is for the executable to obtain > priviledge access via a runtime login as? a "root" level user. > > Re para 3: From memory, (bad at the best of times), there are at least a > few system calls that let you: > - compare an encrypted passkey to the relevant value to the ... > - currently (kernel level) known value for that passkey. > - here's the rub, I can't remember whether that is actually obtained > from a read of the shadow file or whether it's something in ring 0 memory? > > So bascically, trying to use /etc/shadow passkey authentication in user > space is a no-no. > > AFAICR! > > I don't know exactly what your end goal is but I don't think you're on > the right track. > > B > > On 11/26/18 9:16 PM, Rolf-Werner Eilert wrote: >> When a program needs to read from a file which could actually only be >> read if member of a special group, how would this be achieved? >> >> I found that in order to read from /etc/shadow, a program needs to be >> member of the group "shadow". But when I start a password management >> program (in GUI) as an ordinary user, this program will be member of >> my own group only. >> >> So how would such a program be able to read my hash from /etc/shadow >> to verify if I type the right old password first? The new password >> could be sent to passwd to form and save a new hash, but how to read >> the old one first? >> >> Maybe someone here knows how this is achieved. >> >> Regards >> Rolf >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From adamnt42 at gmail.com Mon Nov 26 12:59:07 2018 From: adamnt42 at gmail.com (Bruce) Date: Mon, 26 Nov 2018 22:29:07 +1030 Subject: [Gambas-user] Program to use different group rights In-Reply-To: References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> Message-ID: Try here for a start. https://en.wikipedia.org/wiki/Linux_PAM (It is sooooo long since I have tried to cope with this stuff - about the last days of Gambas 1.) Best of luck. B On 11/26/18 10:22 PM, Rolf-Werner Eilert wrote: > Maybe there is some kind of system call. > > You are right, no one can really make any sense of this hash, but there > must be some chance to get at least some verification like "when the > user types this password, is it correct?". > > Is there a commandline program (which could be called from within a > shell) to do that? > > Regards > Rolf > > > Am 26.11.2018 um 12:12 schrieb Bruce: >> Well, the first thing to note is that /etc/shadow should contain one >> way encrypted information only. So I don't see how you could possibly >> see anything relevant in it? >> >> Sure, if you cat that file (as a root user) you will see some >> (possibly) ASCII strings that represent the passwords - but you can't >> "un-decrypt" them. AFAIK. >> >> As regards your second para, the "shadow" group (AFAICR) is very >> protected. No user, or especially an executable program "should" be >> able to get access. The only way I know is for the executable to >> obtain priviledge access via a runtime login as? a "root" level user. >> >> Re para 3: From memory, (bad at the best of times), there are at least >> a few system calls that let you: >> - compare an encrypted passkey to the relevant value to the ... >> - currently (kernel level) known value for that passkey. >> - here's the rub, I can't remember whether that is actually obtained >> from a read of the shadow file or whether it's something in ring 0 >> memory? >> >> So bascically, trying to use /etc/shadow passkey authentication in >> user space is a no-no. >> >> AFAICR! >> >> I don't know exactly what your end goal is but I don't think you're on >> the right track. >> >> B >> >> On 11/26/18 9:16 PM, Rolf-Werner Eilert wrote: >>> When a program needs to read from a file which could actually only be >>> read if member of a special group, how would this be achieved? >>> >>> I found that in order to read from /etc/shadow, a program needs to be >>> member of the group "shadow". But when I start a password management >>> program (in GUI) as an ordinary user, this program will be member of >>> my own group only. >>> >>> So how would such a program be able to read my hash from /etc/shadow >>> to verify if I type the right old password first? The new password >>> could be sent to passwd to form and save a new hash, but how to read >>> the old one first? >>> >>> Maybe someone here knows how this is achieved. >>> >>> Regards >>> Rolf >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From rwe-sse at osnanet.de Mon Nov 26 13:02:09 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 26 Nov 2018 13:02:09 +0100 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> Message-ID: <689d23c4-19f9-ef3d-4411-8caa656ac172@osnanet.de> Let me add this: I just found two solutions: 1. Commandline: if su -c true "$USER"; then echo "Correct password" fi How would I read the exit code if in a Gambas shell? 2. PAM call. This example is in Ruby, but very much like Gambas. BUT it needs a Ruby library called rpam, so if there is nothing comparable in Gambas... It boils down to this line: if Rpam.auth(username, password, service: 'system-auth') So I would prefer the first way, but I need to know how to read exit codes from a shell. Regards Rolf Am 26.11.2018 um 12:12 schrieb Bruce: > Well, the first thing to note is that /etc/shadow should contain one way > encrypted information only. So I don't see how you could possibly see > anything relevant in it? > > Sure, if you cat that file (as a root user) you will see some (possibly) > ASCII strings that represent the passwords - but you can't "un-decrypt" > them. AFAIK. > > As regards your second para, the "shadow" group (AFAICR) is very > protected. No user, or especially an executable program "should" be able > to get access. The only way I know is for the executable to obtain > priviledge access via a runtime login as? a "root" level user. > > Re para 3: From memory, (bad at the best of times), there are at least a > few system calls that let you: > - compare an encrypted passkey to the relevant value to the ... > - currently (kernel level) known value for that passkey. > - here's the rub, I can't remember whether that is actually obtained > from a read of the shadow file or whether it's something in ring 0 memory? > > So bascically, trying to use /etc/shadow passkey authentication in user > space is a no-no. > > AFAICR! > > I don't know exactly what your end goal is but I don't think you're on > the right track. > > B > > On 11/26/18 9:16 PM, Rolf-Werner Eilert wrote: >> When a program needs to read from a file which could actually only be >> read if member of a special group, how would this be achieved? >> >> I found that in order to read from /etc/shadow, a program needs to be >> member of the group "shadow". But when I start a password management >> program (in GUI) as an ordinary user, this program will be member of >> my own group only. >> >> So how would such a program be able to read my hash from /etc/shadow >> to verify if I type the right old password first? The new password >> could be sent to passwd to form and save a new hash, but how to read >> the old one first? >> >> Maybe someone here knows how this is achieved. >> >> Regards >> Rolf >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From dsanroma at gmail.com Mon Nov 26 15:12:24 2018 From: dsanroma at gmail.com (=?UTF-8?Q?David_Sanrom=c3=a1?=) Date: Mon, 26 Nov 2018 15:12:24 +0100 Subject: [Gambas-user] GridView RichText extra space character. In-Reply-To: <26383a18-c19e-4e27-3bb7-e837da73f63e@gmail.com> References: <08ad8cb7-f224-e0b8-17b3-55b9b4498548@gmail.com> <8f6e9883-2d7b-b06c-72aa-0ec26da1056e@cogier.com> <30897e7d-67a8-c459-35ab-26e5e10a4401@gmail.com> <26383a18-c19e-4e27-3bb7-e837da73f63e@gmail.com> Message-ID: El 26/11/18 a las 12:10, Beno?t Minisini escribi?: > Le 25/11/2018 ? 18:36, Beno?t Minisini a ?crit?: >> Le 25/11/2018 ? 13:43, Charlie Ogier a ?crit?: >>> Hi David, >>> >>> My test shows that this works correctly with QT4 & QT5 but not with >>> GTK2 or GTK3. >>> >>> Click to view example using QT5 >>> >>> >>> Charlie >>> >> >> So this a bug in gb.gtk/gb.gtk3. I will try to fix it. >> > > Fixed! > Fantastic!!! From charlie at cogier.com Mon Nov 26 15:44:09 2018 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 26 Nov 2018 14:44:09 +0000 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> Message-ID: <84638eb6-63e4-19f0-6368-471d262a43a5@cogier.com> Hi Bruce, If you are looking for a way to use 'sudo' in your Gambas program have a look at 'Sudo_solution' that I published on the Gambas Farm. You need only add the 'Authenticate' Form to your program then you can do things like: - Authenticate.Command("cp ~/file.txt /usr/bin/file.txt") sString = Authenticate.Command("fdisk -l") Charlie On 26/11/2018 11:12, Bruce wrote: > Well, the first thing to note is that /etc/shadow should contain one > way encrypted information only. So I don't see how you could possibly > see anything relevant in it? > > Sure, if you cat that file (as a root user) you will see some > (possibly) ASCII strings that represent the passwords - but you can't > "un-decrypt" them. AFAIK. > > As regards your second para, the "shadow" group (AFAICR) is very > protected. No user, or especially an executable program "should" be > able to get access. The only way I know is for the executable to > obtain priviledge access via a runtime login as? a "root" level user. > > Re para 3: From memory, (bad at the best of times), there are at least > a few system calls that let you: > - compare an encrypted passkey to the relevant value to the ... > - currently (kernel level) known value for that passkey. > - here's the rub, I can't remember whether that is actually obtained > from a read of the shadow file or whether it's something in ring 0 > memory? > > So bascically, trying to use /etc/shadow passkey authentication in > user space is a no-no. > > AFAICR! > > I don't know exactly what your end goal is but I don't think you're on > the right track. > > B > > On 11/26/18 9:16 PM, Rolf-Werner Eilert wrote: >> When a program needs to read from a file which could actually only be >> read if member of a special group, how would this be achieved? >> >> I found that in order to read from /etc/shadow, a program needs to be >> member of the group "shadow". But when I start a password management >> program (in GUI) as an ordinary user, this program will be member of >> my own group only. >> >> So how would such a program be able to read my hash from /etc/shadow >> to verify if I type the right old password first? The new password >> could be sent to passwd to form and save a new hash, but how to read >> the old one first? >> >> Maybe someone here knows how this is achieved. >> >> Regards >> Rolf >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From t.lee.davidson at gmail.com Mon Nov 26 17:21:23 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 26 Nov 2018 11:21:23 -0500 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <689d23c4-19f9-ef3d-4411-8caa656ac172@osnanet.de> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> <689d23c4-19f9-ef3d-4411-8caa656ac172@osnanet.de> Message-ID: <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> How about this: Public Sub Main() Dim sPass, sOutput As String sPass = "wrong" Shell "echo " & sPass & "|su -c True $USER 2>&1" To sOutput ' Print sOutput If InStr(sOutput, "failure") > 0 Then Print "Fail" Else Print "Pass" Endif End ___ Lee On 11/26/18 7:02 AM, Rolf-Werner Eilert wrote: > Let?me?add?this: > > I?just?found?two?solutions: > > 1.?Commandline: > > if?su?-c?true?"$USER";?then > ??echo?"Correct?password" > fi > > How?would?I?read?the?exit?code?if?in?a?Gambas?shell? > > 2. PAM call. This example is in Ruby, but very much like Gambas. BUT it needs a Ruby library called rpam, so if there is nothing > comparable in Gambas... > > It?boils?down?to?this?line: > > if?Rpam.auth(username,?password,?service:?'system-auth') > > So I would prefer the first way, but I need to know how to read exit codes?from?a?shell. > > Regards > Rolf From rwe-sse at osnanet.de Mon Nov 26 17:30:44 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 26 Nov 2018 17:30:44 +0100 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> <689d23c4-19f9-ef3d-4411-8caa656ac172@osnanet.de> <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> Message-ID: Good idea, Lee, but now I found that this will work only in a real shell, interactively. If I want to use it from a GUI program written in Gambas, I would at least have to offer a shell where the user can type in the password. Is there really no chance for a test which runs completely in background other than using PAM libraries? Regards Rolf Am 26.11.2018 um 17:21 schrieb T Lee Davidson: > How about this: > > Public Sub Main() > > Dim sPass, sOutput As String > > sPass = "wrong" > Shell "echo " & sPass & "|su -c True $USER 2>&1" To sOutput > ' Print sOutput > If InStr(sOutput, "failure") > 0 Then > Print "Fail" > Else > Print "Pass" > Endif > > End > > > ___ > Lee > > > On 11/26/18 7:02 AM, Rolf-Werner Eilert wrote: >> Let?me?add?this: >> >> I?just?found?two?solutions: >> >> 1.?Commandline: >> >> if?su?-c?true?"$USER";?then >> ??echo?"Correct?password" >> fi >> >> How?would?I?read?the?exit?code?if?in?a?Gambas?shell? >> >> 2. PAM call. This example is in Ruby, but very much like Gambas. BUT it needs a Ruby library called rpam, so if there is nothing >> comparable in Gambas... >> >> It?boils?down?to?this?line: >> >> if?Rpam.auth(username,?password,?service:?'system-auth') >> >> So I would prefer the first way, but I need to know how to read exit codes?from?a?shell. >> >> Regards >> Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From rwe-sse at osnanet.de Mon Nov 26 18:08:56 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 26 Nov 2018 18:08:56 +0100 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> <689d23c4-19f9-ef3d-4411-8caa656ac172@osnanet.de> <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> Message-ID: <67639858-2cd7-12b6-695a-4f1656c2df13@osnanet.de> Sorry got you wrong, this works perfectly! Just oversaw the pipe and echo trick... Thanks a lot! Rolf Am 26.11.2018 um 17:21 schrieb T Lee Davidson: > How about this: > > Public Sub Main() > > Dim sPass, sOutput As String > > sPass = "wrong" > Shell "echo " & sPass & "|su -c True $USER 2>&1" To sOutput > ' Print sOutput > If InStr(sOutput, "failure") > 0 Then > Print "Fail" > Else > Print "Pass" > Endif > > End > > > ___ > Lee > > > On 11/26/18 7:02 AM, Rolf-Werner Eilert wrote: >> Let?me?add?this: >> >> I?just?found?two?solutions: >> >> 1.?Commandline: >> >> if?su?-c?true?"$USER";?then >> ??echo?"Correct?password" >> fi >> >> How?would?I?read?the?exit?code?if?in?a?Gambas?shell? >> >> 2. PAM call. This example is in Ruby, but very much like Gambas. BUT it needs a Ruby library called rpam, so if there is nothing >> comparable in Gambas... >> >> It?boils?down?to?this?line: >> >> if?Rpam.auth(username,?password,?service:?'system-auth') >> >> So I would prefer the first way, but I need to know how to read exit codes?from?a?shell. >> >> Regards >> Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From Karl.Reinl at Fen-Net.de Mon Nov 26 20:51:18 2018 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Mon, 26 Nov 2018 20:51:18 +0100 Subject: [Gambas-user] [CRASH REPORT] ScrollView problems Message-ID: <1543261878.26987.6.camel@Scenic.local> Hello, Damned, my program crashed Gambas that way : a new .parent.parent problem -------------- next part -------------- A non-text attachment was scrubbed... Name: ScrollView_problems-0.0.1-crash-181126-204953.tar.bz2 Type: application/x-bzip-compressed-tar Size: 14747 bytes Desc: not available URL: From taboege at gmail.com Mon Nov 26 22:33:24 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 26 Nov 2018 22:33:24 +0100 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> <689d23c4-19f9-ef3d-4411-8caa656ac172@osnanet.de> <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> Message-ID: <20181126212937.GG872@highrise.localdomain> On Mon, 26 Nov 2018, T Lee Davidson wrote: > How about this: > > Public Sub Main() > > Dim sPass, sOutput As String > > sPass = "wrong" > Shell "echo " & sPass & "|su -c True $USER 2>&1" To sOutput > ' Print sOutput > If InStr(sOutput, "failure") > 0 Then > Print "Fail" > Else > Print "Pass" > Endif > > End I would advise against this. If you put your password into a command line of some sort, everyone on your system can read it via /proc/$PID/cmdline. They just have to be fast enough. That's a gamble I wouldn't take. This is one of the reasons why programs like to read passwords interactively from a tty, not just a pipe (even though apparently su is fine with a pipe by default). It would be better to start `su` For Write (not To sOutput) and then Print the password to the Process stream directly from Gambas. This is, of course, exactly what your echo achieves, but this way, you have the password in memory and don't broadcast it to /proc. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Mon Nov 26 22:54:16 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 26 Nov 2018 22:54:16 +0100 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> Message-ID: <20181126215416.GH872@highrise.localdomain> On Mon, 26 Nov 2018, Rolf-Werner Eilert wrote: > When a program needs to read from a file which could actually only be read > if member of a special group, how would this be achieved? > Complementing the other answers, I think the most proper way is to start the program with the required permissions -- unless only a tiny part of your program needs these permissions. You can use su or sudo for that. In contrast to the other answers, which run a script (I assume) from inside your program using su or sudo, this method would start your whole program with the required privileges. > I found that in order to read from /etc/shadow, a program needs to be member > of the group "shadow". But when I start a password management program (in > GUI) as an ordinary user, this program will be member of my own group only. > su and sudo allow you to specify your desired group. > So how would such a program be able to read my hash from /etc/shadow to > verify if I type the right old password first? The new password could be > sent to passwd to form and save a new hash, but how to read the old one > first? > If you require the user to start your program with the necessary permissions, by calling it with su or sudo, you can rely on them having authenticated succesfully against the *tried and tested standard tools* before even the first line of your code gets to execute. Such a check in your program would be redundant then. And that's a bonus! Your program should not reimplement authentication, but leave that to the tools whose purpose is authentication. The purpose of your program is to perform some task using these elevated privileges. If you want to be extra user-friendly, you can have your single program check its current user and group on startup and if it detects insufficient permissions, it will try to launch itself again via gksu(do), kdesu(do) or (whatever it is that is responsible on the target system; cf. Desktop.RunAsRoot). That will annoy the user minimally out of all options which maintain a separation of "authorization to perform a task" and "the task". But again, it depends on the scope of the program you want to write. If it's a large program, only a tiny bit of which needs elevated privileges, consider splitting the program or performing the privileged task early and dropping the privileges afterwards [1]. Regards, Tobi [1] https://stackoverflow.com/questions/3357737/dropping-root-privileges -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Tue Nov 27 01:06:17 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 26 Nov 2018 19:06:17 -0500 Subject: [Gambas-user] Program to use different group rights In-Reply-To: <20181126212937.GG872@highrise.localdomain> References: <2af98d27-73d8-5a2d-0f27-c0385fad267a@osnanet.de> <9b4b7f67-1333-2a94-78b5-89683ab61a7f@gmail.com> <689d23c4-19f9-ef3d-4411-8caa656ac172@osnanet.de> <6972b482-b88a-ec4a-5f2a-50f03f3dd14c@gmail.com> <20181126212937.GG872@highrise.localdomain> Message-ID: <64f32fc4-ff75-46c9-e969-6bc1f1edd7a8@gmail.com> On 11/26/18 4:33 PM, Tobias Boege wrote: > On Mon, 26 Nov 2018, T Lee Davidson wrote: >> How about this: >> >> Public Sub Main() >> >> Dim sPass, sOutput As String >> >> sPass = "wrong" >> Shell "echo " & sPass & "|su -c True $USER 2>&1" To sOutput >> ' Print sOutput >> If InStr(sOutput, "failure") > 0 Then >> Print "Fail" >> Else >> Print "Pass" >> Endif >> >> End > > I would advise against this. If you put your password into a command line > of some sort, everyone on your system can read it via /proc/$PID/cmdline. > They just have to be fast enough. That's a gamble I wouldn't take. > > This is one of the reasons why programs like to read passwords interactively > from a tty, not just a pipe (even though apparently su is fine with a pipe > by default). It would be better to start `su` For Write (not To sOutput) > and then Print the password to the Process stream directly from Gambas. > This is, of course, exactly what your echo achieves, but this way, you have > the password in memory and don't broadcast it to /proc. > > Regards, > Tobi > Ouch, I had forgotten about /proc/$PID/cmdline. Thank you, Tobi, for your, always excellent, insight and teaching :-) ___ Lee From genbraga1 at gmail.com Wed Nov 28 13:39:02 2018 From: genbraga1 at gmail.com (gen braga) Date: Wed, 28 Nov 2018 10:39:02 -0200 Subject: [Gambas-user] external functions and structs Message-ID: Hi there, I'm trying to use a method from an external library whose signature is as follow int __stdcall assemble_vdm( ais_state *state, char *str ) ais_state is: #define SIXBIT_LEN 255 typedef struct { unsigned char msgid; //!< Message ID 0-31 unsigned int sequence; //!< VDM message sequence number unsigned int total; //!< Total # of parts for the message unsigned int num; //!< Number of the last part stored char channel; //!< AIS Channel character sixbit six_state; //!< sixbit parser state } ais_state; six_state is: typedef struct { char bits[SIXBIT_LEN]; //!< raw 6-bit ASCII data string char *p; //!< pointer to current character in bits unsigned char remainder; //!< Remainder bits unsigned char remainder_bits; //!< Number of remainder bits } sixbit; I declared them all as follow: Public Struct sixbit bits[255] As Byte 'raw 6 - bit ASCII data string --> era [SIXBIT_LEN - 1] p As String 'pointer To current character In bits remainder As Byte 'Remainder bits remainder_bits As Byte 'Number Of remainder bits End Struct Public Struct AIS_State msgid As Byte 'Message ID 0 - 31 sequence As Short 'era DWORD; / / ! < VDM message sequence number total As Short 'era DWORD; / / ! < Total # Of parts For the message num As Short 'era DWORD; / / ! < Number Of the Last part stored channel As Byte ': Char; / / ! < AIS Channel character six_state As SixBit '; / / ! < sixbit parser state End Struct Private Extern assemble_vdm(state As AIS_State, str1 As String) As Integer Ok.... In my Main method I call the assemble_vdm function and the result is as expected, returning an integer between 0 and 5 meaning what's going on, I can confirm it by changing the second parameter's contents. But that method, modifies the first parameter (state) internally, and I should use it afterwards to decide what do to, reading state.msgid The fact is, when I read it, its empty and rises segfault.... Does anyone knows how to deal with it? The library's sources are at https://github.com/bcl/aisparser/tree/master/c Attached are my sources. Greetings, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ais_lib-externo-0.0.2.tar.gz Type: application/gzip Size: 35699 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed Nov 28 17:49:44 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 28 Nov 2018 11:49:44 -0500 Subject: [Gambas-user] external functions and structs In-Reply-To: References: Message-ID: When I try to run your code, I get: Cannot find dynamic library 'libais.so.1.9.so': libais.so.1.9.so: cannot open shared object file: No such file or directory in Main:61. In addition to your: Library "libais.so.1.9" I tried: Library "./libais.so.1.9" Library "../libais.so.1.9" No love. I don't know why Gambas is changing the name I specified. ___ Lee On 11/28/18 7:39 AM, gen braga wrote: > Hi there, > > I'm trying to use a method from an external library whose signature is as follow > > int __stdcall assemble_vdm( ais_state *state, char *str ) > > ais_state is: > > #define SIXBIT_LEN?? 255 > > typedef struct { > ??? unsigned char msgid;?????????????? //!< Message ID 0-31 > ??? unsigned int? sequence;??????????? //!< VDM message sequence number > ??? unsigned int? total;?????????????? //!< Total # of parts for the message > ??? unsigned int? num;???????????????? //!< Number of the last part stored > ??? char????????? channel;???????????? //!< AIS Channel character > ??? sixbit??????? six_state;?????????? //!< sixbit parser state > } ais_state; > > six_state is: > > typedef struct { > ??? char bits[SIXBIT_LEN];????????? //!< raw 6-bit ASCII data string > ??? char *p;??????????????????????? //!< pointer to current character in bits > ??? unsigned char remainder;??????? //!< Remainder bits > ??? unsigned char remainder_bits;?? //!< Number of remainder bits > } sixbit; > > I declared them all as follow: > > Public Struct sixbit > ? bits[255] As Byte?????????????????????????????? 'raw 6 - bit ASCII data string --> era [SIXBIT_LEN - 1] > ? p As String??????????????????????????????????? 'pointer To current character In bits > ? remainder As Byte?????????????????????????????? 'Remainder bits > ? remainder_bits As Byte????????????????????????? 'Number Of remainder bits > End Struct > > Public Struct AIS_State > ??? msgid As Byte?????????????????????????????? 'Message ID 0 - 31 > ??? sequence As Short???????????????????????? 'era DWORD; / / ! < VDM message sequence number > ??? total As Short??????????????????????????? 'era DWORD; / / ! < Total # Of parts For the message > ??? num As Short????????????????????????????? 'era DWORD; / / ! < Number Of the Last part stored > ??? channel As Byte???????????????????????????? ': Char; / / ! < AIS Channel character > ??? six_state As SixBit???????????????????????? '; / / ! < sixbit parser state > End Struct > > Private Extern assemble_vdm(state As AIS_State, str1 As String) As Integer > > Ok.... > In my Main method I call the assemble_vdm function and the result is as expected, returning an integer between 0 and 5 meaning > what's going on, I can confirm it by changing the second parameter's contents. But that method, modifies the first parameter > (state) internally, and I should use it afterwards to decide what do to, reading state.msgid > > The fact is, when I read it, its empty and rises segfault.... Does anyone knows how to deal with it? > > The library's sources are at https://github.com/bcl/aisparser/tree/master/c > > Attached are my sources. > > Greetings, > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From t.lee.davidson at gmail.com Wed Nov 28 17:56:06 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 28 Nov 2018 11:56:06 -0500 Subject: [Gambas-user] external functions and structs In-Reply-To: References: Message-ID: <08140d47-4540-8435-84a6-b0c8d7d49211@gmail.com> On 11/28/18 11:49 AM, T Lee Davidson wrote: > When I try to run your code, I get: > Cannot find dynamic library 'libais.so.1.9.so': libais.so.1.9.so: cannot open shared object file: No such file or directory in > Main:61. > > In addition to your: > Library "libais.so.1.9" > > I tried: > Library "./libais.so.1.9" > Library "../libais.so.1.9" > > No love. I don't know why Gambas is changing the name I specified. > > > ___ > Lee I forgot to mention. In the sixbit structure, there is "char *p; //!< pointer to current character in bits". You have p defined as a string instead of as a pointer. Maybe it needs to be the way you have it. I couldn't test it. > > On 11/28/18 7:39 AM, gen braga wrote: >> Hi there, >> >> I'm trying to use a method from an external library whose signature is as follow >> >> int __stdcall assemble_vdm( ais_state *state, char *str ) >> >> ais_state is: >> >> #define SIXBIT_LEN?? 255 >> >> typedef struct { >> ??? unsigned char msgid;?????????????? //!< Message ID 0-31 >> ??? unsigned int? sequence;??????????? //!< VDM message sequence number >> ??? unsigned int? total;?????????????? //!< Total # of parts for the message >> ??? unsigned int? num;???????????????? //!< Number of the last part stored >> ??? char????????? channel;???????????? //!< AIS Channel character >> ??? sixbit??????? six_state;?????????? //!< sixbit parser state >> } ais_state; >> >> six_state is: >> >> typedef struct { >> ??? char bits[SIXBIT_LEN];????????? //!< raw 6-bit ASCII data string >> ??? char *p;??????????????????????? //!< pointer to current character in bits >> ??? unsigned char remainder;??????? //!< Remainder bits >> ??? unsigned char remainder_bits;?? //!< Number of remainder bits >> } sixbit; >> >> I declared them all as follow: >> >> Public Struct sixbit >> ? bits[255] As Byte?????????????????????????????? 'raw 6 - bit ASCII data string --> era [SIXBIT_LEN - 1] >> ? p As String??????????????????????????????????? 'pointer To current character In bits >> ? remainder As Byte?????????????????????????????? 'Remainder bits >> ? remainder_bits As Byte????????????????????????? 'Number Of remainder bits >> End Struct >> >> Public Struct AIS_State >> ??? msgid As Byte?????????????????????????????? 'Message ID 0 - 31 >> ??? sequence As Short???????????????????????? 'era DWORD; / / ! < VDM message sequence number >> ??? total As Short??????????????????????????? 'era DWORD; / / ! < Total # Of parts For the message >> ??? num As Short????????????????????????????? 'era DWORD; / / ! < Number Of the Last part stored >> ??? channel As Byte???????????????????????????? ': Char; / / ! < AIS Channel character >> ??? six_state As SixBit???????????????????????? '; / / ! < sixbit parser state >> End Struct >> >> Private Extern assemble_vdm(state As AIS_State, str1 As String) As Integer >> >> Ok.... >> In my Main method I call the assemble_vdm function and the result is as expected, returning an integer between 0 and 5 meaning >> what's going on, I can confirm it by changing the second parameter's contents. But that method, modifies the first parameter >> (state) internally, and I should use it afterwards to decide what do to, reading state.msgid >> >> The fact is, when I read it, its empty and rises segfault.... Does anyone knows how to deal with it? >> >> The library's sources are at https://github.com/bcl/aisparser/tree/master/c >> >> Attached are my sources. >> >> Greetings, >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> From g4mba5 at gmail.com Wed Nov 28 18:01:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 28 Nov 2018 18:01:59 +0100 Subject: [Gambas-user] external functions and structs In-Reply-To: References: Message-ID: <136ef27c-8af6-8109-4a05-a08efcb722ed@gmail.com> Le 28/11/2018 ? 17:49, T Lee Davidson a ?crit?: > When I try to run your code, I get: > Cannot find dynamic library 'libais.so.1.9.so': libais.so.1.9.so: cannot open shared object file: No such file or directory in > Main:61. > > In addition to your: > Library "libais.so.1.9" > > I tried: > Library "./libais.so.1.9" > Library "../libais.so.1.9" > > No love. I don't know why Gambas is changing the name I specified. > Maybe you should read the documentation? http://gambaswiki.org/wiki/lang/extdecl Regards, -- Beno?t Minisini From genbraga1 at gmail.com Wed Nov 28 18:05:03 2018 From: genbraga1 at gmail.com (gen braga) Date: Wed, 28 Nov 2018 15:05:03 -0200 Subject: [Gambas-user] external functions and structs In-Reply-To: <08140d47-4540-8435-84a6-b0c8d7d49211@gmail.com> References: <08140d47-4540-8435-84a6-b0c8d7d49211@gmail.com> Message-ID: Hi Lee I just copied the aislib to /usr/lib and also tried to use pointer at sixbit, but wasnt better. Em qua, 28 de nov de 2018 14:57, T Lee Davidson > On 11/28/18 11:49 AM, T Lee Davidson wrote: > > When I try to run your code, I get: > > Cannot find dynamic library 'libais.so.1.9.so': libais.so.1.9.so: > cannot open shared object file: No such file or directory in > > Main:61. > > > > In addition to your: > > Library "libais.so.1.9" > > > > I tried: > > Library "./libais.so.1.9" > > Library "../libais.so.1.9" > > > > No love. I don't know why Gambas is changing the name I specified. > > > > > > ___ > > Lee > > I forgot to mention. In the sixbit structure, there is "char *p; //!< > pointer to current character in bits". You have p defined > as a string instead of as a pointer. Maybe it needs to be the way you have > it. I couldn't test it. > > > > > > On 11/28/18 7:39 AM, gen braga wrote: > >> Hi there, > >> > >> I'm trying to use a method from an external library whose signature is > as follow > >> > >> int __stdcall assemble_vdm( ais_state *state, char *str ) > >> > >> ais_state is: > >> > >> #define SIXBIT_LEN 255 > >> > >> typedef struct { > >> unsigned char msgid; //!< Message ID 0-31 > >> unsigned int sequence; //!< VDM message sequence number > >> unsigned int total; //!< Total # of parts for the > message > >> unsigned int num; //!< Number of the last part > stored > >> char channel; //!< AIS Channel character > >> sixbit six_state; //!< sixbit parser state > >> } ais_state; > >> > >> six_state is: > >> > >> typedef struct { > >> char bits[SIXBIT_LEN]; //!< raw 6-bit ASCII data string > >> char *p; //!< pointer to current character > in bits > >> unsigned char remainder; //!< Remainder bits > >> unsigned char remainder_bits; //!< Number of remainder bits > >> } sixbit; > >> > >> I declared them all as follow: > >> > >> Public Struct sixbit > >> bits[255] As Byte 'raw 6 - bit ASCII > data string --> era [SIXBIT_LEN - 1] > >> p As String 'pointer To current > character In bits > >> remainder As Byte 'Remainder bits > >> remainder_bits As Byte 'Number Of remainder > bits > >> End Struct > >> > >> Public Struct AIS_State > >> msgid As Byte 'Message ID 0 - 31 > >> sequence As Short 'era DWORD; / / ! < VDM > message sequence number > >> total As Short 'era DWORD; / / ! < Total > # Of parts For the message > >> num As Short 'era DWORD; / / ! < > Number Of the Last part stored > >> channel As Byte ': Char; / / ! < AIS > Channel character > >> six_state As SixBit '; / / ! < sixbit > parser state > >> End Struct > >> > >> Private Extern assemble_vdm(state As AIS_State, str1 As String) As > Integer > >> > >> Ok.... > >> In my Main method I call the assemble_vdm function and the result is as > expected, returning an integer between 0 and 5 meaning > >> what's going on, I can confirm it by changing the second parameter's > contents. But that method, modifies the first parameter > >> (state) internally, and I should use it afterwards to decide what do > to, reading state.msgid > >> > >> The fact is, when I read it, its empty and rises segfault.... Does > anyone knows how to deal with it? > >> > >> The library's sources are at > https://github.com/bcl/aisparser/tree/master/c > >> > >> Attached are my sources. > >> > >> Greetings, > >> > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Nov 28 18:24:01 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 28 Nov 2018 12:24:01 -0500 Subject: [Gambas-user] external functions and structs In-Reply-To: <136ef27c-8af6-8109-4a05-a08efcb722ed@gmail.com> References: <136ef27c-8af6-8109-4a05-a08efcb722ed@gmail.com> Message-ID: <9d4ae31e-090f-b83b-1d28-907743d0a14c@gmail.com> On 11/28/18 12:01 PM, Beno?t Minisini wrote: > Le 28/11/2018 ? 17:49, T Lee Davidson a ?crit?: >> When I try to run your code, I get: >> Cannot find dynamic library 'libais.so.1.9.so': libais.so.1.9.so: cannot open shared object file: No such file or directory in >> Main:61. >> >> In addition to your: >> Library "libais.so.1.9" >> >> I tried: >> Library "./libais.so.1.9" >> Library "../libais.so.1.9" >> >> No love. I don't know why Gambas is changing the name I specified. >> > > Maybe you should read the documentation? > > http://gambaswiki.org/wiki/lang/extdecl > > Regards, > I did read the documentation. Apparently the wrong page, http://gambaswiki.org/wiki/doc/library, which did not provide any clue that handling the paths of external shared libraries is different. I finally found the page to which you linked on the EXTERN page. Being able to find the relevant documentation on the Wiki has always been a struggle for me. A search feature would be quite handy. ___ Lee From t.lee.davidson at gmail.com Wed Nov 28 18:38:44 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 28 Nov 2018 12:38:44 -0500 Subject: [Gambas-user] external functions and structs In-Reply-To: References: <08140d47-4540-8435-84a6-b0c8d7d49211@gmail.com> Message-ID: Well, in a rare flash of inspiration, I thought to simply change the name of the library file on disk and use 'Library "libais"' (duh). I also successfully loaded the library using the syntax specified at the External Function Declaration wiki page [0] as was mentioned (ie: Library "./libais:1.9"). I get a segfault no matter whether 'p' in the sixbit structure is defined as a String, as a Pointer, or as a Byte. ___ Lee [0] http://gambaswiki.org/wiki/lang/extdecl On 11/28/18 12:05 PM, gen braga wrote: > Hi Lee > > I just copied the aislib to /usr/lib and also tried to use pointer at sixbit, but wasnt better. From kicking177 at gmail.com Wed Nov 28 19:02:28 2018 From: kicking177 at gmail.com (KKing) Date: Wed, 28 Nov 2018 18:02:28 +0000 Subject: [Gambas-user] Embedded arrays are forbidden here (Within a Function) Message-ID: within a function if I use ??? Dim intWeight[12] As Integer when I go to compile I get. ??? Embedded arrays are forbidden here. Why? From genbraga1 at gmail.com Wed Nov 28 19:09:38 2018 From: genbraga1 at gmail.com (gen braga) Date: Wed, 28 Nov 2018 16:09:38 -0200 Subject: [Gambas-user] external functions and structs In-Reply-To: References: <08140d47-4540-8435-84a6-b0c8d7d49211@gmail.com> Message-ID: Well, i have some notes, 1. I tried to chage P in sixbit to every suitable datatype: byte, string, pointer, etc. No good. 2. I "unested" the structs, so I got no segfault but obviously I still cant get any suitable value in ais_state1 after I call the method assemble_vdm. By "unested" I mean I made only one struct with both contents. If you look at the contents using the debuger, there will be garbage. You can check assemble_vdm is ok by changing any character in the sSentence string, so Handler will return something between 1 and 5, based on wich field was changed. By using the debuger you can see it cleary, as well as the mess at ais_state1. I really have no clue... The library's authors made a simple example here https://github.com/bcl/aisparser/blob/master/c/examples/text/main.c but it does nothing more than my souces at all. Em qua, 28 de nov de 2018 ?s 15:39, T Lee Davidson escreveu: > Well, in a rare flash of inspiration, I thought to simply change the name > of the library file on disk and use 'Library "libais"' > (duh). I also successfully loaded the library using the syntax specified > at the External Function Declaration wiki page [0] as > was mentioned (ie: Library "./libais:1.9"). > > I get a segfault no matter whether 'p' in the sixbit structure is defined > as a String, as a Pointer, or as a Byte. > > > ___ > Lee > > [0] http://gambaswiki.org/wiki/lang/extdecl > > > On 11/28/18 12:05 PM, gen braga wrote: > > Hi Lee > > > > I just copied the aislib to /usr/lib and also tried to use pointer at > sixbit, but wasnt better. > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Nov 28 19:49:59 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 28 Nov 2018 13:49:59 -0500 Subject: [Gambas-user] external functions and structs In-Reply-To: References: <08140d47-4540-8435-84a6-b0c8d7d49211@gmail.com> Message-ID: Try this: Public Struct AIS_State msgid As Byte 'Message ID 0 - 31 sequence As Short 'era DWORD; / / ! < VDM message sequence number total As Short 'era DWORD; / / ! < Total # Of parts For the message num As Short 'era DWORD; / / ! < Number Of the Last part stored channel As Byte ': Char; / / ! < AIS Channel character six_state As Struct SixBit '; / / ! < sixbit parser state End Struct Notice: six_state As *Struct* SixBit http://gambaswiki.org/wiki/lang/structdecl -> Embedded Structures ___ Lee On 11/28/18 1:09 PM, gen braga wrote: > Well, i have some notes, > > 1. I tried to chage P in sixbit to every suitable datatype: byte, string, pointer, etc. No good. > 2. I "unested" the structs, so I got no segfault but obviously I still cant get any suitable value in ais_state1 after I call > the method assemble_vdm. By "unested" I mean I made only one struct with both contents. If you look at the contents using the > debuger, there will be garbage. > > You can check assemble_vdm is ok by changing any character in the sSentence string, so Handler will return something between 1 > and 5, based on wich field? was changed. By using the debuger you can see it cleary, as well as the mess at ais_state1. > > I really have no clue... > > The library's authors made a simple example here https://github.com/bcl/aisparser/blob/master/c/examples/text/main.c but it does > nothing more than my souces at all. From gambas.fr at gmail.com Wed Nov 28 19:50:54 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 28 Nov 2018 19:50:54 +0100 Subject: [Gambas-user] Embedded arrays are forbidden here (Within a Function) In-Reply-To: References: Message-ID: You need to use Dynamic array in a function : Dim aWeight as new Integer[12] Le mer. 28 nov. 2018 ? 19:03, KKing a ?crit : > within a function if I use > > Dim intWeight[12] As Integer > > when I go to compile I get. > > Embedded arrays are forbidden here. > > Why? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Nov 28 19:53:52 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 28 Nov 2018 19:53:52 +0100 Subject: [Gambas-user] Embedded arrays are forbidden here (Within a Function) In-Reply-To: References: Message-ID: Embedded arrays were created to ease the interface between Gambas and external functions located in shared libraries. Consequently, I strongly suggest to use them only if you cannot use normal arrays. Or if your code run faster with embedded arrays than with normal arrays, as it's possible in some cases. In Gambas 3, embedded arrays cannot be used as local variables anymore. But they can be public! http://gambaswiki.org/wiki/lang/arraydecl Le mer. 28 nov. 2018 ? 19:50, Fabien Bodard a ?crit : > You need to use Dynamic array in a function : > > Dim aWeight as new Integer[12] > > Le mer. 28 nov. 2018 ? 19:03, KKing a ?crit : > >> within a function if I use >> >> Dim intWeight[12] As Integer >> >> when I go to compile I get. >> >> Embedded arrays are forbidden here. >> >> Why? >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Wed Nov 28 20:07:32 2018 From: kicking177 at gmail.com (KKing) Date: Wed, 28 Nov 2018 19:07:32 +0000 Subject: [Gambas-user] Embedded arrays are forbidden here (Within a Function) Message-ID: << You need to use Dynamic array in a function : Dim aWeight as new Integer[12] >> many thanks From t.lee.davidson at gmail.com Wed Nov 28 22:08:33 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 28 Nov 2018 16:08:33 -0500 Subject: [Gambas-user] A search box for the wiki? Message-ID: <1f709004-24da-ba7d-b2b4-7621df14c068@gmail.com> This is the simplest and quickest solution I could come up with (other than an option which I won't consider). Ref: https://duckduckgo.com/search_box ___ Lee From g4mba5 at gmail.com Thu Nov 29 00:43:49 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 29 Nov 2018 00:43:49 +0100 Subject: [Gambas-user] A search box for the wiki? In-Reply-To: <1f709004-24da-ba7d-b2b4-7621df14c068@gmail.com> References: <1f709004-24da-ba7d-b2b4-7621df14c068@gmail.com> Message-ID: <1260538e-9b87-04f3-eda2-c69f42b433df@gmail.com> Le 28/11/2018 ? 22:08, T Lee Davidson a ?crit?: > This is the simplest and quickest solution I could come up with (other than an option which I won't consider). > > > > Ref: https://duckduckgo.com/search_box > > > ___ > Lee > You have a google search in the wiki, but only if you are connected. -- Beno?t Minisini From g4mba5 at gmail.com Thu Nov 29 14:00:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 29 Nov 2018 14:00:34 +0100 Subject: [Gambas-user] external functions and structs In-Reply-To: References: Message-ID: <7bc454ab-11d0-c328-2432-81627309442c@gmail.com> Le 28/11/2018 ? 13:39, gen braga a ?crit?: > Hi there, > > I'm trying to use a method from an external library whose signature is > as follow > > int __stdcall assemble_vdm( ais_state *state, char *str ) > > ais_state is: > > #define SIXBIT_LEN?? 255 > > typedef struct { > ??? unsigned char msgid;?????????????? //!< Message ID 0-31 > ??? unsigned int? sequence;??????????? //!< VDM message sequence number > ??? unsigned int? total;?????????????? //!< Total # of parts for the > message > ??? unsigned int? num;???????????????? //!< Number of the last part stored > ??? char????????? channel;???????????? //!< AIS Channel character > ??? sixbit??????? six_state;?????????? //!< sixbit parser state > } ais_state; > > six_state is: > > typedef struct { > ??? char bits[SIXBIT_LEN];????????? //!< raw 6-bit ASCII data string > ??? char *p;??????????????????????? //!< pointer to current character > in bits > ??? unsigned char remainder;??????? //!< Remainder bits > ??? unsigned char remainder_bits;?? //!< Number of remainder bits > } sixbit; > Your structure has holes and alignment problems. In that case, the compiler will reorder the fields in memory arbitrarily, and the Gambas interpreter does not know how to deal with that. If you made the library, try to reorder the structure fields so that there is no hole nor alignment problems anymore. In the future, I may be able to associate Gambas structures with libffi structures, so that passing Gambas structure to extern functions eventually work in all cases. Alas, nothing sure ! Regards, -- Beno?t Minisini From genbraga1 at gmail.com Thu Nov 29 16:21:45 2018 From: genbraga1 at gmail.com (gen braga) Date: Thu, 29 Nov 2018 13:21:45 -0200 Subject: [Gambas-user] external functions and structs In-Reply-To: References: <08140d47-4540-8435-84a6-b0c8d7d49211@gmail.com> Message-ID: Sure... I made that dumb mistake and I was so absorbed looking elsewhere that i didn't realize... thanks for pointing that. By the way, the Gambas compiler didnt tell anything about the missing "Struct" keyword. Is that the expected behavior? I mean, maybe could be a legitimate reason? Em qua, 28 de nov de 2018 ?s 16:51, T Lee Davidson escreveu: > Try this: > > Public Struct AIS_State > msgid As Byte 'Message ID 0 - 31 > sequence As Short 'era DWORD; / / ! < VDM > message sequence number > total As Short 'era DWORD; / / ! < Total # > Of parts For the message > num As Short 'era DWORD; / / ! < Number > Of the Last part stored > channel As Byte ': Char; / / ! < AIS > Channel character > six_state As Struct SixBit '; / / ! < sixbit > parser state > End Struct > > Notice: six_state As *Struct* SixBit > > http://gambaswiki.org/wiki/lang/structdecl -> Embedded Structures > > > ___ > Lee > > > On 11/28/18 1:09 PM, gen braga wrote: > > Well, i have some notes, > > > > 1. I tried to chage P in sixbit to every suitable datatype: byte, > string, pointer, etc. No good. > > 2. I "unested" the structs, so I got no segfault but obviously I still > cant get any suitable value in ais_state1 after I call > > the method assemble_vdm. By "unested" I mean I made only one struct with > both contents. If you look at the contents using the > > debuger, there will be garbage. > > > > You can check assemble_vdm is ok by changing any character in the > sSentence string, so Handler will return something between 1 > > and 5, based on wich field was changed. By using the debuger you can > see it cleary, as well as the mess at ais_state1. > > > > I really have no clue... > > > > The library's authors made a simple example here > https://github.com/bcl/aisparser/blob/master/c/examples/text/main.c but > it does > > nothing more than my souces at all. > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Thu Nov 29 16:36:11 2018 From: genbraga1 at gmail.com (gen braga) Date: Thu, 29 Nov 2018 13:36:11 -0200 Subject: [Gambas-user] external functions and structs In-Reply-To: <7bc454ab-11d0-c328-2432-81627309442c@gmail.com> References: <7bc454ab-11d0-c328-2432-81627309442c@gmail.com> Message-ID: Yes, i spent the last few hours debugging the lib's sources with gdb and everything was ok inside it. I saw the problem you pointed only within gambas debugger. The point is, the array* "char bits[SIXBIT_LEN]"* inside sixbit structure is filled by a pointer with some characters, from the second string parameter passed to the method called inside Gambas. The array looks Ok from position 8 on. Position 0 to 7 receive garbage from the argument's previous characters. As you said, misalignment issues... I'm not very experienced in this matter but will try to tweak the lib's sources. Do you have any suggestion? Thanks in advance, Em qui, 29 de nov de 2018 ?s 11:01, Beno?t Minisini escreveu: > Le 28/11/2018 ? 13:39, gen braga a ?crit : > > Hi there, > > > > I'm trying to use a method from an external library whose signature is > > as follow > > > > int __stdcall assemble_vdm( ais_state *state, char *str ) > > > > ais_state is: > > > > #define SIXBIT_LEN 255 > > > > typedef struct { > > unsigned char msgid; //!< Message ID 0-31 > > unsigned int sequence; //!< VDM message sequence number > > unsigned int total; //!< Total # of parts for the > > message > > unsigned int num; //!< Number of the last part > stored > > char channel; //!< AIS Channel character > > sixbit six_state; //!< sixbit parser state > > } ais_state; > > > > six_state is: > > > > typedef struct { > > char bits[SIXBIT_LEN]; //!< raw 6-bit ASCII data string > > char *p; //!< pointer to current character > > in bits > > unsigned char remainder; //!< Remainder bits > > unsigned char remainder_bits; //!< Number of remainder bits > > } sixbit; > > > > Your structure has holes and alignment problems. > > In that case, the compiler will reorder the fields in memory > arbitrarily, and the Gambas interpreter does not know how to deal with > that. > > If you made the library, try to reorder the structure fields so that > there is no hole nor alignment problems anymore. > > In the future, I may be able to associate Gambas structures with libffi > structures, so that passing Gambas structure to extern functions > eventually work in all cases. Alas, nothing sure ! > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Nov 29 16:54:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 29 Nov 2018 16:54:12 +0100 Subject: [Gambas-user] external functions and structs In-Reply-To: References: <7bc454ab-11d0-c328-2432-81627309442c@gmail.com> Message-ID: <3088517e-15b3-3048-e041-aa9c69e94cb5@gmail.com> Le 29/11/2018 ? 16:36, gen braga a ?crit?: > Yes, i spent the last few hours debugging the lib's sources with gdb and > everything was ok inside it. I saw the problem you pointed only within > gambas debugger. > > The point is, the array/? "char bits[SIXBIT_LEN]"///inside sixbit > structure is filled by a pointer with some characters, from the second > string parameter passed to the method called inside Gambas. > > The array looks Ok from position 8 on. Position 0 to 7 receive garbage > from the argument's previous characters. As you said, misalignment issues... > > I'm not very experienced in this matter but will try to tweak the lib's > sources. Do you have any suggestion? > > Thanks in advance, > Every datatype must be aligned to a multiple of its size. A char can be anywhere, a 32 bits integer must be at a byte index multiple of 4, a 64 bits integer at a byte index multiple of 8, a pointer at a multiple of 4 or 8 depending if your CPU is 32 bits or 64 bits, and so on. -- Beno?t Minisini From g4mba5 at gmail.com Thu Nov 29 22:51:15 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 29 Nov 2018 22:51:15 +0100 Subject: [Gambas-user] [CRASH REPORT] Generatore pagine web dal dbase Astrologo In-Reply-To: <837474e0-0876-c580-af11-005bad4a47d8@gmail.com> References: <837474e0-0876-c580-af11-005bad4a47d8@gmail.com> Message-ID: <878ce64b-deb3-5bb0-49a3-e1a16e99b0a4@gmail.com> Le 29/11/2018 ? 22:38, Diego a ?crit?: > Hello, > > Damned, my program crashed Gambas that way : > > Empty form, only one toolbar button whitout any code. Click & crash. > That's all > > Message: fragmentation error... > No crash at all on Ubuntu 18.10. I don't know why, but the people who have very strange crashes or problems with Gambas 3.11 or the development version always use Mint and Cinnamon... Did you compile Gambas or installed it from the daily packages? And are there other people using Mint that can test this almost void project? -- Beno?t Minisini From g4mba5 at gmail.com Thu Nov 29 22:51:44 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 29 Nov 2018 22:51:44 +0100 Subject: [Gambas-user] [CRASH REPORT] Generatore pagine web dal dbase Astrologo In-Reply-To: <878ce64b-deb3-5bb0-49a3-e1a16e99b0a4@gmail.com> References: <837474e0-0876-c580-af11-005bad4a47d8@gmail.com> <878ce64b-deb3-5bb0-49a3-e1a16e99b0a4@gmail.com> Message-ID: Le 29/11/2018 ? 22:51, Beno?t Minisini a ?crit?: > Le 29/11/2018 ? 22:38, Diego a ?crit?: >> Hello, >> >> Damned, my program crashed Gambas that way : >> >> Empty form, only one toolbar button whitout any code. Click & crash. >> That's all >> >> Message: fragmentation error... >> > > No crash at all on Ubuntu 18.10. > > I don't know why, but the people who have very strange crashes or > problems with Gambas 3.11 or the development version always use Mint and > Cinnamon... > > Did you compile Gambas or installed it from the daily packages? > > And are there other people using Mint that can test this almost void > project? > Here is the project... -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: AstrologoWeb-0.0.1-crash-181129-223703.tar.bz2 Type: application/x-bzip Size: 14400 bytes Desc: not available URL: From mail.gambaspi at gmail.com Thu Nov 29 23:49:08 2018 From: mail.gambaspi at gmail.com (Zainudin Ahmad) Date: Fri, 30 Nov 2018 05:49:08 +0700 Subject: [Gambas-user] [CRASH REPORT] Generatore pagine web dal dbase Astrologo In-Reply-To: <878ce64b-deb3-5bb0-49a3-e1a16e99b0a4@gmail.com> References: <837474e0-0876-c580-af11-005bad4a47d8@gmail.com> <878ce64b-deb3-5bb0-49a3-e1a16e99b0a4@gmail.com> Message-ID: Not surprise, that's gtk bug.this also happen with xubuntu 18.04 ( video-Gtk ) On Fri, Nov 30, 2018 at 4:52 AM Beno?t Minisini wrote: > Le 29/11/2018 ? 22:38, Diego a ?crit : > > Hello, > > > > Damned, my program crashed Gambas that way : > > > > Empty form, only one toolbar button whitout any code. Click & crash. > > That's all > > > > Message: fragmentation error... > > > > No crash at all on Ubuntu 18.10. > > I don't know why, but the people who have very strange crashes or > problems with Gambas 3.11 or the development version always use Mint and > Cinnamon... > > Did you compile Gambas or installed it from the daily packages? > > And are there other people using Mint that can test this almost void > project? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Nov 29 23:56:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 29 Nov 2018 23:56:59 +0100 Subject: [Gambas-user] [CRASH REPORT] Generatore pagine web dal dbase Astrologo In-Reply-To: References: <837474e0-0876-c580-af11-005bad4a47d8@gmail.com> <878ce64b-deb3-5bb0-49a3-e1a16e99b0a4@gmail.com> Message-ID: Le 29/11/2018 ? 23:49, Zainudin Ahmad a ?crit?: > Not surprise, that's gtk bug.this also happen with xubuntu 18.04 ( > video-Gtk ) > > Yep. It's fixed in commit https://gitlab.com/gambas/gambas/commit/b3c305d8bfd3f04fff522c4beaf4712f5cde7cfa. Regards, -- Beno?t Minisini From bagonergi at gmail.com Fri Nov 30 13:10:23 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 30 Nov 2018 13:10:23 +0100 Subject: [Gambas-user] PictureBox and Containers strange behaviour Message-ID: I need to paint an image in a new image and then show it in a picturebox. The thing seems to work correctly only if the picturebox is the only component on the window. If the hbox is present, the image is deformed (stretching) and the lower part of the image is positioned under the hbox. Am I wrong? I attach a project and two explanatory images (with magnifying glass). Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PaintImage-2-0.0.1.tar.gz Type: application/gzip Size: 20466 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: corrected-image.jpg Type: image/jpeg Size: 19376 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: uncorrected-image.jpg Type: image/jpeg Size: 18958 bytes Desc: not available URL: From bagonergi at gmail.com Fri Nov 30 15:39:39 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 30 Nov 2018 15:39:39 +0100 Subject: [Gambas-user] PictureBox and Containers strange behaviour In-Reply-To: References: Message-ID: This is the correct code (?): [code]Private Sub Scale(img As Image) Dim w, h As Integer w = img.W h = img.H If h > w Then $H = PictureBox1.H $W = (PictureBox1.H * w) \ h If $W > PictureBox1.W Then $W = PictureBox1.W $H = (PictureBox1.W * $H) \ $W $X = PictureBox1.X $Y = PictureBox1.Y + ((PictureBox1.H - $H) \ 2) Return Endif $Y = PictureBox1.Y $X = PictureBox1.X + ((PictureBox1.W - $W) \ 2) Else $W = PictureBox1.W $H = (PictureBox1.W * h) \ w If $H > PictureBox1.H Then $H = PictureBox1.H $W = (PictureBox1.H * $W) \ $H $Y = PictureBox1.Y $X = PictureBox1.X + ((PictureBox1.W - $W) \ 2) Return Endif $X = PictureBox1.X $Y = PictureBox1.Y + ((PictureBox1.H - $H) \ 2) Endif End [/code] Although I would love to be able to create a code capable of scaling images on the Form_Resize event A task too burdensome for my tired brain. Regards Gianluigi Il giorno ven 30 nov 2018 alle ore 13:10 Gianluigi ha scritto: > I need to paint an image in a new image and then show it in a picturebox. > The thing seems to work correctly only if the picturebox is the only > component on the window. > If the hbox is present, the image is deformed (stretching) and the lower > part of the image is positioned under the hbox. > Am I wrong? > I attach a project and two explanatory images (with magnifying glass). > > Regards > Gianluigi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Nov 30 16:29:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 30 Nov 2018 16:29:33 +0100 Subject: [Gambas-user] PictureBox and Containers strange behaviour In-Reply-To: References: Message-ID: Finally it works See attached file Reagards Gianluigi Il giorno ven 30 nov 2018 alle ore 15:39 Gianluigi ha scritto: > This is the correct code (?): > > [code]Private Sub Scale(img As Image) > > Dim w, h As Integer > > w = img.W > h = img.H > If h > w Then > $H = PictureBox1.H > $W = (PictureBox1.H * w) \ h > If $W > PictureBox1.W Then > $W = PictureBox1.W > $H = (PictureBox1.W * $H) \ $W > $X = PictureBox1.X > $Y = PictureBox1.Y + ((PictureBox1.H - $H) \ 2) > Return > Endif > $Y = PictureBox1.Y > $X = PictureBox1.X + ((PictureBox1.W - $W) \ 2) > Else > $W = PictureBox1.W > $H = (PictureBox1.W * h) \ w > If $H > PictureBox1.H Then > $H = PictureBox1.H > $W = (PictureBox1.H * $W) \ $H > $Y = PictureBox1.Y > $X = PictureBox1.X + ((PictureBox1.W - $W) \ 2) > Return > Endif > $X = PictureBox1.X > $Y = PictureBox1.Y + ((PictureBox1.H - $H) \ 2) > Endif > > End [/code] > > Although I would love to be able to create a code capable of scaling > images on the Form_Resize event > A task too burdensome for my tired brain. > > Regards > Gianluigi > > Il giorno ven 30 nov 2018 alle ore 13:10 Gianluigi > ha scritto: > >> I need to paint an image in a new image and then show it in a picturebox. >> The thing seems to work correctly only if the picturebox is the only >> component on the window. >> If the hbox is present, the image is deformed (stretching) and the lower >> part of the image is positioned under the hbox. >> Am I wrong? >> I attach a project and two explanatory images (with magnifying glass). >> >> Regards >> Gianluigi >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PaintImage-3-0.0.1.tar.gz Type: application/gzip Size: 20424 bytes Desc: not available URL: