From gp at antani.se Sun Mar 1 03:33:14 2020 From: gp at antani.se (Gianni Piccini) Date: Sun, 1 Mar 2020 03:33:14 +0100 Subject: [Gambas-user] Error launching Gambas first time Message-ID: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> After a fresh pc installation, when trying to run Gambas, it doesn't start. I've installed last debian testing, and it has Gambas 3.14.3. This is the terminal response: me at debsrv:~$ gambas3 gb.jit: error: unable to compile JIT code of 'gb.form.terminal': In file included from /tmp/gambas.1000/27771/jit/jit.h:35, from /tmp/gambas.1000/27771/jit/gb.form.terminal.c:1: /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9:16: fatal error: stdint.h: File o directory non esistente 9 | # include_next | ^~~~~~~~~~ compilation terminated. ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Unable to compile JIT source file ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user ** "File o directory non esistente" is for "File or directory doesn't exist", but file is there: me at debsrv:~$ ls /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h From bagonergi at gmail.com Sun Mar 1 11:46:14 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 1 Mar 2020 11:46:14 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: Il giorno dom 1 mar 2020 alle ore 09:33 Gianni Piccini ha scritto: > After a fresh pc installation, when trying to run Gambas, it doesn't > start. I've installed last debian testing, and it has Gambas 3.14.3. > This is the terminal response: > ... > You could compile the latest Gambas, on Gambas-it.org for forum members there is a pdf step by step (*) which explains how to do it (and it's not a supercazzola :-)). Regards Gianluigi (*) https://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Mar 1 12:27:57 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 1 Mar 2020 12:27:57 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: <8ae1faea-ce72-ba3e-fffb-ce9e3c766ab8@deganius.de> Am 01.03.20 um 03:33 schrieb Gianni Piccini: > After a fresh pc installation, when trying to run Gambas, it doesn't > start. I've installed last debian testing, and it has Gambas 3.14.3. > This is the terminal response: > > me at debsrv:~$ gambas3 > gb.jit: error: unable to compile JIT code of 'gb.form.terminal': This should not happen. As you are using Debian Testing you should report that to the maintainers of the packages with the Debian program reportbug. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Sun Mar 1 20:35:02 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 1 Mar 2020 21:35:02 +0200 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: I think this should work as temporary fix, run gambas with command; GB_NO_JIT=1 gambas3 Jussi On Sun, Mar 1, 2020 at 10:33 AM Gianni Piccini wrote: > After a fresh pc installation, when trying to run Gambas, it doesn't > start. I've installed last debian testing, and it has Gambas 3.14.3. > This is the terminal response: > > > > me at debsrv:~$ gambas3 > gb.jit: error: unable to compile JIT code of 'gb.form.terminal': > > In file included from /tmp/gambas.1000/27771/jit/jit.h:35, > from /tmp/gambas.1000/27771/jit/gb.form.terminal.c:1: > /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9:16: fatal error: > stdint.h: File o directory non esistente > 9 | # include_next > | ^~~~~~~~~~ > compilation terminated. > > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Unable to compile JIT source file > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** > > > > "File o directory non esistente" is for "File or directory doesn't > exist", but file is there: > > me at debsrv:~$ ls /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h > /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gp at antani.se Sun Mar 1 20:03:15 2020 From: gp at antani.se (Gianni Piccini) Date: Sun, 1 Mar 2020 20:03:15 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: Il 01/03/20 11:46, Gianluigi ha scritto: > You could compile the latest Gambas, on Gambas-it.org for forum members > there is a pdf step by step (*) which explains how to do it (and it's > not a supercazzola :-)). Yes, I know and I'm registered, also if I'm not using Gambas too much now. From g4mba5 at gmail.com Sun Mar 1 20:53:29 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 1 Mar 2020 20:53:29 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: Le 01/03/2020 ? 03:33, Gianni Piccini a ?crit?: > After a fresh pc installation, when trying to run Gambas, it doesn't > start. I've installed last debian testing, and it has Gambas 3.14.3. > This is the terminal response: > > > > me at debsrv:~$ gambas3 > gb.jit: error: unable to compile JIT code of 'gb.form.terminal': > > In file included from /tmp/gambas.1000/27771/jit/jit.h:35, > ???????????????? from /tmp/gambas.1000/27771/jit/gb.form.terminal.c:1: > /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9:16: fatal error: > stdint.h: File o directory non esistente > ??? 9 | # include_next > ????? |??????????????? ^~~~~~~~~~ > compilation terminated. > > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Unable to compile JIT source file > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** > > > > "File o directory non esistente" is for "File or directory doesn't > exist", but file is there: > > me at debsrv:~$ ls /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h > /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h > I find strange that gcc cannot find its own include files... Is it possible for debian testing to have something buggy on that side? -- Beno?t Minisini From gp at antani.se Sun Mar 1 20:01:04 2020 From: gp at antani.se (Gianni Piccini) Date: Sun, 1 Mar 2020 20:01:04 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: <8ae1faea-ce72-ba3e-fffb-ce9e3c766ab8@deganius.de> References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> <8ae1faea-ce72-ba3e-fffb-ce9e3c766ab8@deganius.de> Message-ID: Il 01/03/20 12:27, Christof Thalhofer ha scritto: > This should not happen. As you are using Debian Testing you should > report that to the maintainers of the packages with the Debian program > reportbug. I'll try it From gp at antani.se Sun Mar 1 21:39:14 2020 From: gp at antani.se (Gianni Piccini) Date: Sun, 1 Mar 2020 21:39:14 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: Il 01/03/20 20:35, Jussi Lahtinen ha scritto: > I think this should work as temporary fix, run gambas with command; > GB_NO_JIT=1 gambas3 Yes, it works :-) From gp at antani.se Sun Mar 1 22:19:15 2020 From: gp at antani.se (Gianni Piccini) Date: Sun, 1 Mar 2020 22:19:15 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: <2f81a956-58cf-9778-de60-6f19854b9229@antani.se> Il 01/03/20 20:53, Beno?t Minisini ha scritto: > I find strange that gcc cannot find its own include files... Is it > possible for debian testing to have something buggy on that side? Of course, due this is a fresh installation, ma testing pinned with sid and experimental From chrisml at deganius.de Sun Mar 1 22:35:36 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 1 Mar 2020 22:35:36 +0100 Subject: [Gambas-user] Error launching Gambas first time In-Reply-To: References: <37b82e3f-a628-0b33-4dcc-6c108e54446a@antani.se> Message-ID: Am 01.03.20 um 20:53 schrieb Beno?t Minisini: > I find strange that gcc cannot find its own include files... Is it > possible for debian testing to have something buggy on that side? https://wiki.debian.org/DebianTesting Requirement for it: "The package does not introduce new release critical bugs" This is a bug which should not occur. This would be release critical. So it has to be reported to the Debian maintainer. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From fstead at mac.com Sun Mar 1 22:49:06 2020 From: fstead at mac.com (Fred Steadman) Date: Sun, 1 Mar 2020 15:49:06 -0600 Subject: [Gambas-user] GAMBAS download Message-ID: <227EFA06-8AF2-40A8-83D9-63CB14800D41@mac.com> Does your software only work on Linex? I?m running that version of Unix that is accessed in the terminal application of iMac ?El Capitan?. Following is a log of my initial attempts to download and build GAMBAS on my system. It appears I?m missing a couple of pieces. Thanks in advance for any help you can offer. /Users/fstead/BASIC fredstemansimac:BASIC fstead$ ls -l total 24440 drwxr-xr-x 69 fstead staff 2346 Jan 17 17:33 gambas-3.14.3 -rw-r--r--@ 1 fstead staff 12509723 Feb 28 10:14 gambas-3.14.3.tar.bz2 fredstemansimac:BASIC fstead$ ls gambas-3.14.3 AUTHORS gb.compress.bzlib2 gb.ncurses CONTRIBUTING.md gb.compress.zlib gb.net COPYING gb.crypt gb.net.curl ChangeLog gb.db.mysql gb.openal INSTALL gb.db.odbc gb.opengl INSTALL.html gb.db.postgresql gb.openssl Makefile.am gb.db.sqlite2 gb.pcre NEWS gb.db.sqlite3 gb.pdf README gb.dbus gb.qt4 README.commit gb.desktop.gnome.keyring gb.qt5 README.md gb.desktop.x11 gb.sdl TEMPLATE gb.gmp gb.sdl.sound TODO gb.gsl gb.sdl2 VERSION gb.gtk gb.v4l acinclude.m4 gb.gtk3 gb.xml app gb.httpd logo benchmark gb.image.imlib m4 build-dist gb.image.io main comp gb.jit.llvm reconf component.am gb.libxml reconf-all configure.ac gb.media version.m4 gb.cairo gb.mime fredstemansimac:BASIC fstead$ cd ./gambas-3.14.3 fredstemansimac:gambas-3.14.3 fstead$ ./reconf-all ./reconf-all: line 7: libtoolize: command not found ./reconf-all: line 8: autoreconf: command not found fredstemansimac:gambas-3.14.3 fstead$ ./configure -C -bash: ./configure: No such file or directory fredstemansimac:gambas-3.14.3 fstead$ ls libtoolize ls: libtoolize: No such file or directory fredstemansimac:gambas-3.14.3 fstead$ ls libtoolize* ls: libtoolize*: No such file or directory fredstemansimac:gambas-3.14.3 fstead$ autoreconf -bash: autoreconf: command not found fredstemansimac:gambas-3.14.3 fstead$ ls autoreconf* ls: autoreconf*: No such file or directory fredstemansimac:gambas-3.14.3 fstead$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pebauer68 at gmail.com Mon Mar 2 09:56:13 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Mon, 2 Mar 2020 09:56:13 +0100 Subject: [Gambas-user] Circular references with Gambas 3.14.90 dev build from gitlab Message-ID: Hello, 2.3.2020: $git clone --depth=1 https://gitlab.com/gambas/gambas.git Building was ok $gambas3 -V 3.14.90 gbx3: warning: circular references detected: gbx3: 3 Process Best Regards, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From pebauer68 at gmail.com Mon Mar 2 10:24:38 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Mon, 2 Mar 2020 10:24:38 +0100 Subject: [Gambas-user] Gambas 3.14.90 file not found, full path for file needed ? Message-ID: Hello, I often start Gambas3 IDE from the command line to open a single file: This works: peter at brix:~/src_gambas/scripts$ gambas3 $(pwd)/test.txt This gives me the error: "file not found" from gambas3 IDE peter at brix:~/src_gambas/scripts$ gambas3 test.txt Is it possible to make this more user friendly ? Best Regards, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From pebauer68 at gmail.com Mon Mar 2 10:35:41 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Mon, 2 Mar 2020 10:35:41 +0100 Subject: [Gambas-user] ppa:gambas-team/gambas-daily, Error: qt5 components missing Message-ID: Hello, I have tried to install daily build from Ubuntu ppa on Ubuntu 18.04. The ppa does not include all components to start the Gambas3 IDE. Gambas3 IDE startup Error: "qt5" components missing BR, Peter Bauer -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 2 10:46:10 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 2 Mar 2020 10:46:10 +0100 Subject: [Gambas-user] Gambas 3.14.90 file not found, full path for file needed ? In-Reply-To: References: Message-ID: Hello Peter, Am 02.03.20 um 10:24 schrieb Peter Bauer: > I often start Gambas3 IDE from the command line to open a single file: > This works: > peter at brix:~/src_gambas/scripts$ gambas3 $(pwd)/test.txt > > This gives me the error: "file not found" from gambas3 IDE > peter at brix:~/src_gambas/scripts$ gambas3 test.txt > Is it possible to make this more user friendly ? I am not sure if it is possible as the IDE is built around projects. But nevertheless: Would you please write this into the bugtracker as a feature wish? http://gambaswiki.org/bugtracker Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Mon Mar 2 14:22:24 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 2 Mar 2020 14:22:24 +0100 Subject: [Gambas-user] Circular references with Gambas 3.14.90 dev build from gitlab In-Reply-To: References: Message-ID: <8b8676d1-9e9d-0538-be4f-9b6b93b5943a@gmail.com> Le 02/03/2020 ? 09:56, Peter Bauer a ?crit?: > Hello, > 2.3.2020: > $git clone --depth=1 https://gitlab.com/gambas/gambas.git > Building was ok > > $gambas3 -V > 3.14.90 > gbx3: warning: circular references detected: > gbx3: ? ? 3 Process > > Best Regards, > Peter > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I just fixed that in master. -- Beno?t Minisini From g4mba5 at gmail.com Mon Mar 2 14:24:05 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 2 Mar 2020 14:24:05 +0100 Subject: [Gambas-user] GAMBAS download In-Reply-To: <227EFA06-8AF2-40A8-83D9-63CB14800D41@mac.com> References: <227EFA06-8AF2-40A8-83D9-63CB14800D41@mac.com> Message-ID: <38e7ed07-dbce-a882-d9cb-5bc45f006fb9@gmail.com> Le 01/03/2020 ? 22:49, Fred Steadman via User a ?crit?: > Does your software only work on Linex? > > I?m running that version of Unix that is accessed in the terminal > application of iMac ?El Capitan?. Following is a log of my initial > attempts to download and build GAMBAS on my system. It appears I?m > missing a couple of pieces. > > Thanks in advance for any help you can offer. > Have you read the "Compilation & Installation" [1] page on the wiki? [1] http://gambaswiki.org/wiki/install -- Beno?t Minisini From bagonergi at gmail.com Tue Mar 3 16:02:54 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 3 Mar 2020 16:02:54 +0100 Subject: [Gambas-user] A couple of questions about String.PadRight Message-ID: Hi, I think he wasn't born to do this, but... Is this correct, being the first on the right and the second on the left of format? And instead the strange results of the last two Print (1086.10 and 6.186.1)? [code] Public Sub Main() Dim s As String = "The result of multiplication is " Dim e As Integer = String.Len(s) Dim sResult As String = CStr(myResult(12.3, 7)) Dim i As Integer = String.Len(sResult) ' don't takes format into account ---> ' The result of multiplication is 6,10 Print String.PadRight(s, (e + i), Format(sResult, ",#.00")) ' OK ---> ' The result of multiplication is 86,10 Print String.PadRight(s, (e + i + 1), Format(sResult, ",#.00")) ' takes format into account ---> ' The result of multiplication is 86,10 Print String.PadRight(s, (e + i + 1), Format(sResult, "$,#.00")) ' OK ---> ' The result of multiplication is ? 86,10 Print String.PadRight(s, (e + i + 3), Format(sResult, "$,#.00")) ' -------------------------------------------------------------- ' ??? Print String.PadRight(s, (e + i + 3), Format(sResult, ",#.00")) ' ??? Print String.PadRight(s, (e + i + 3), sResult) End Private Function myResult(a As Float, b As Float) As Float Return a * b End [/code] Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Mar 3 16:21:01 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 3 Mar 2020 16:21:01 +0100 Subject: [Gambas-user] A couple of questions about String.PadRight In-Reply-To: References: Message-ID: Il giorno mar 3 mar 2020 alle ore 16:02 Gianluigi ha scritto: > Hi, > > I think he wasn't born to do this, but... > I answer myself: it is correct because the string is joined by reading it from right to left :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gbWilly at protonmail.com Wed Mar 4 18:57:59 2020 From: gbWilly at protonmail.com (gbWilly) Date: Wed, 04 Mar 2020 17:57:59 +0000 Subject: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts In-Reply-To: <2121380019.10360.1582649969213.JavaMail.zimbra@westwoodsvcs.com> References: <1692603755.10145.1582592820857.JavaMail.zimbra@westwoodsvcs.com> <1afce22a-234f-eb41-d7ff-80d7a619c434@gmail.com> <605B1DED34848F44.02f576bf-210c-426a-a189-11971398daa8@mail.outlook.com> <1174772483.10272.1582646501930.JavaMail.zimbra@westwoodsvcs.com> <6578572c-1741-4138-f053-d97c1bbe85a1@gmail.com> <2121380019.10360.1582649969213.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Hi Brian, ??????? Original Message ??????? On Tuesday, February 25, 2020 5:59 PM, Brian G wrote: > The problem is that the name of the package changes like this > westwood-testexec_7.14.9-0ubuntu1_all.deb > westwood-testexec_7.14.8-0ubuntu1_all.deb > westwood-testexec_4.14.7-0ubuntu1_all.deb > etc > > The package name is only considered to the first _ and the rest is versioning > > So no mater what major(also considered interface version for shared libraries), minor, release number > Debian deletes all older versions and replaces it with the newer version. Applications depending on the older version of the interface will now fail. > If you try to install the older version, it will tell you that the newest is already installed. This is exactly the behavior I want and I wouldn't like it to be different. I work a lot with Gambas libraries in a production environment. My new library versions are meant to replace the older ones. Thing is, you make sure that your changes in the new library are backward compatible so they don't mess up the applications using them. So that means for example that if existing methods get a new argument it is always optional. If I don't want that optional argument, I check all applications using this method (simple search in the IDE will do that), change them accordingly and redistribute them. Pretty strait forward in my opinion. > I would like to propose that the major version number become part of a library name as this > > westwood-testexec4_4.14.7-0ubuntu1_all.deb > > This allows the Major/Inteface number to control the package name for libraries and therefore allow the development and implementation in a production environment of newer versions of the interface. and the slow adoption for older applications to the new interface. > > This change for Libraries to the naming You proposition in my case would mean that a library would have a name + number added by the packager (say it is named MyLib) and the deb would be mylib1_1.0.1-0ubuntu1_all.deb My application (name it MyApp) would thus actually be dependend on MyLib1 (instead of MyLib). If I create a new major version of the MyLib package (deb would then be named mylib2_2.0.0-0ubuntu1_all.deb). So, I would also have to change the dependency in MyApp to make it work with MyLib2 (instead of MyLib1). This to me is an undesired behavior, as that means I would always have to update all applications using a the library and redistribute them to make them work with the newer library. If you really would like to work in this manner simply name your library with the added major version number. So name your first version MyLib1 being version 1.0.0 Every update within 1 version (so 1.0.1, 1.1.20 etc) you stick to the name MyLib1 Once you go to a newer major version that is no longer backward compatible name the library MyLib2 (being version 2.0.0, 2.0.1, 2.1.20 etc.) Older applications depending on MyLib1 will not be bother by the MyLib2 update as the libraries are considered by the OS as different packages (since they have different names). Both MyLib1 and MyLib2 will live alongside each other and older applications would need to be refurbished and redistributed to make them work with the major version 2 of your library. This way the default expected behavior of how packages and dependencies work in a Debian/Ubuntu environment would still be met. Just my two cents, gbWilly From g4mba5 at gmail.com Wed Mar 4 20:01:15 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 4 Mar 2020 20:01:15 +0100 Subject: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts In-Reply-To: References: <1692603755.10145.1582592820857.JavaMail.zimbra@westwoodsvcs.com> <1afce22a-234f-eb41-d7ff-80d7a619c434@gmail.com> <605B1DED34848F44.02f576bf-210c-426a-a189-11971398daa8@mail.outlook.com> <1174772483.10272.1582646501930.JavaMail.zimbra@westwoodsvcs.com> <6578572c-1741-4138-f053-d97c1bbe85a1@gmail.com> <2121380019.10360.1582649969213.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <25a46b2a-facf-2915-f3ba-d405fc361c84@gmail.com> Le 04/03/2020 ? 18:57, gbWilly via User a ?crit : > Hi Brian, > > > ??????? Original Message ??????? On Tuesday, February 25, 2020 5:59 > PM, Brian G wrote: > >> The problem is that the name of the package changes like this >> westwood-testexec_7.14.9-0ubuntu1_all.deb >> westwood-testexec_7.14.8-0ubuntu1_all.deb >> westwood-testexec_4.14.7-0ubuntu1_all.deb etc >> >> The package name is only considered to the first _ and the rest is >> versioning >> >> So no mater what major(also considered interface version for shared >> libraries), minor, release number Debian deletes all older versions >> and replaces it with the newer version. Applications depending on >> the older version of the interface will now fail. If you try to >> install the older version, it will tell you that the newest is >> already installed. > > This is exactly the behavior I want and I wouldn't like it to be > different. I work a lot with Gambas libraries in a production > environment. > > My new library versions are meant to replace the older ones. Thing > is, you make sure that your changes in the new library are backward > compatible so they don't mess up the applications using them. > > So that means for example that if existing methods get a new argument > it is always optional. If I don't want that optional argument, I > check all applications using this method (simple search in the IDE > will do that), change them accordingly and redistribute them. > > Pretty strait forward in my opinion. > > >> I would like to propose that the major version number become part >> of a library name as this >> >> westwood-testexec4_4.14.7-0ubuntu1_all.deb >> >> This allows the Major/Inteface number to control the package name >> for libraries and therefore allow the development and >> implementation in a production environment of newer versions of the >> interface. and the slow adoption for older applications to the new >> interface. >> >> This change for Libraries to the naming > > You proposition in my case would mean that a library would have a > name + number added by the packager (say it is named MyLib) and the > deb would be mylib1_1.0.1-0ubuntu1_all.deb My application (name it > MyApp) would thus actually be dependend on MyLib1 (instead of > MyLib). If I create a new major version of the MyLib package (deb > would then be named mylib2_2.0.0-0ubuntu1_all.deb). So, I would also > have to change the dependency in MyApp to make it work with MyLib2 > (instead of MyLib1). This to me is an undesired behavior, as that > means I would always have to update all applications using a the > library and redistribute them to make them work with the newer > library. > > If you really would like to work in this manner simply name your > library with the added major version number. So name your first > version MyLib1 being version 1.0.0 Every update within 1 version (so > 1.0.1, 1.1.20 etc) you stick to the name MyLib1 > > Once you go to a newer major version that is no longer backward > compatible name the library MyLib2 (being version 2.0.0, 2.0.1, > 2.1.20 etc.) Older applications depending on MyLib1 will not be > bother by the MyLib2 update as the libraries are considered by the OS > as different packages (since they have different names). Both MyLib1 > and MyLib2 will live alongside each other and older applications > would need to be refurbished and redistributed to make them work with > the major version 2 of your library. > > This way the default expected behavior of how packages and > dependencies work in a Debian/Ubuntu environment would still be met. > > Just my two cents, > > gbWilly > I mostly agree with you... What I could do is adding an option that add the major version to the project name when making the package. But the simpler is what you say: put the major version directly in the project name. Regards, -- Beno?t Minisini From chrisml at deganius.de Fri Mar 6 09:35:25 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 6 Mar 2020 09:35:25 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <6a02e399-32fa-6dc1-3fe6-1e1fca485b80@deganius.de> References: <484ad668-596e-359e-8677-30cbe3a10a75@gmail.com> <64bafd88-7979-92d6-4696-2dd7e594ca7b@deganius.de> <5a04f1b7-64ea-92d6-5def-b3090d9b7017@deganius.de> <20200223133534.GN990035@highrise.localdomain> <20200223161624.GO990035@highrise.localdomain> <6a02e399-32fa-6dc1-3fe6-1e1fca485b80@deganius.de> Message-ID: <90e78402-0ea1-4b63-93cb-db44b93b55b5@deganius.de> Hi, in master there are now gb.test and gb.test.tap. These two play well together as far as I can see. But a part of the functionality has disappeared and must therefore be restored: Now in Testme.Main() UnitTest.Main("TestFailures", Null, True, True) stops the program without output. Instead it has to report errors and crashes inside the tested project and run through until the end. Every test in it has to report "not ok" and some diagnostics. This has to be done by encapsulating every "Object.Call" in gb.test with "Try" in a way like this: ------------------------------------------------------------- Try Object.Call(... If Error Then Assert.Ok(False, "Raised error: " & Error.Text) Error.Clear End If ------------------------------------------------------------- Also it should report the place where the error happened. So that errors and crashes in testcode and tested code are reported as "not ok" but errors in gb.test itself lead to a bailout. Who wants to restore it? Should I do it? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Fri Mar 6 09:52:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 6 Mar 2020 09:52:47 +0100 Subject: [Gambas-user] gb.test and gb.test.tap Message-ID: Hi, Is there a reason why 'gb.test.tap' is compiled before 'gb.test'? (see 'comp/src/order') It seems not logical, unless these two components are completely independent? -- Beno?t Minisini From chrisml at deganius.de Fri Mar 6 11:06:46 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 6 Mar 2020 11:06:46 +0100 Subject: [Gambas-user] gb.test and gb.test.tap In-Reply-To: References: Message-ID: <00753f28-7d0a-eea0-6377-a8c5116806cd@deganius.de> Am 06.03.20 um 09:52 schrieb Beno?t Minisini: > Is there a reason why 'gb.test.tap' is compiled before 'gb.test'? (see > 'comp/src/order') > > It seems not logical, unless these two components are completely > independent? We will have to rethink dependencies ... (please forget my Flowchart) This is what I think now, IMO: * gb.test should contain Assert. * Assert should be a module not a class (we do not need an object being Assert). * gb.test.tap should contain gb.test as component and should provide its Unittest() like that: Unittest(Tests as String, Optional Values ... ) The variable "Tests" is a comma separated string of testmodules and testmethods. Because: Maybe we later want to have another output module for testing instead of gb.test.tap? Imagine things like that: gb.test.db -> writes test output into a database gb.test.log -> hands over to syslog gb.test.monitor -> hands over to a monitoring system gb.test.csv -> writes tests output to a csv file Or someone can write it's own testing system. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sat Mar 7 01:03:30 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 7 Mar 2020 01:03:30 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab Message-ID: Having obtained two git merge --abort and having complicated my life by following these GitLab tips: Step 1. Fetch and check out the branch for this merge request git fetch "https://gitlab.com/GianluigiOr/gambas.git" "italian-translations" git checkout -b "GianluigiOr/gambas-italian-translations" FETCH_HEAD Step 2. Review the changes locally Step 3. Merge the branch and fix any conflicts that come up git fetch origin git checkout "origin/master" git merge --no-ff "GianluigiOr/gambas-italian-translations" Step 4. Push the result of the merge to GitLab git push origin "master" without getting results... I tried to delete Gambas from my remote repository (I had already done this successfully in the past) 1 -I went to my GitLab remote and I am accredited (Sign in) 2 -I clicked on the personal project 3 -On the left browser I clicked on Settings > General 4 -I scrolled the page all the way down to see Advanced 5 -I clicked on Expand 6 -At the bottom there is the red Remove project button I clicked on it. 7 -I confirmed the choice in a dialog by writing the name of the project in the appropriate text box. Unfortunately things have changed and a project can be eliminated only after a week of reflection, hoping to speed up the times I eliminated the Fork but without the desired result. I reset Gambas from a special button but the fork would not know how to do it (no button). After this attempt, I deleted the repository on my disk, then gave the following commands: gian at gian:~$ git clone git at gitlab.com:GianluigiOr/gambas.git gian at gian:~$ cd gambas gian at gian:~/gambas$ git remote add upstream https://gitlab.com/gambas/gambas.git gian at gian:~/gambas$ git branch italian-translations gian at gian:~/gambas$ git checkout italian-translations gian at gian:~/gambas$ git pull There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=/ italian-translations gian at gian:~/gambas$ git pull upstream master remote: Enumerating objects: 562, done. remote: Counting objects: 100% (562/562), done. remote: Compressing objects: 100% (241/241), done. remote: Total 562 (delta 318), reused 562 (delta 318), pack-reused 0 Ricezione degli oggetti: 100% (562/562), 566.49 KiB | 1.11 MiB/s, done. Risoluzione dei delta: 100% (318/318), completed with 43 local objects. Da https://gitlab.com/gambas/gambas * branch master -> FETCH_HEAD * [nuovo branch] master -> upstream/master Aggiornamento di 516de91f9..d0650b8de error: Your local changes to the following files would be overwritten by merge: app/src/gambas3/.lang/it.po Please commit your changes or stash them before you merge. Aborting gian at gian:~/gambas$ git status Sul branch italian-translations Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: app/src/gambas3/.lang/it.po no changes added to commit (use "git add" and/or "git commit -a") gian at gian:~/gambas$ git add app/src/gambas3/.lang/it.po gian at gian:~/gambas$ git pull upstream master Da https://gitlab.com/gambas/gambas * branch master -> FETCH_HEAD Aggiornamento di 516de91f9..d0650b8de error: Your local changes to the following files would be overwritten by merge: app/src/gambas3/.lang/it.po Please commit your changes or stash them before you merge. Aborting gian at gian:~/gambas$ git commit [italian-translations a5b487f52] Contains new IDE Italian translations 1 file changed, 458 insertions(+), 275 deletions(-) gian at gian:~/gambas$ git push fatal: Il branch corrente italian-translations non ha alcun branch upstream. Per eseguire il push del branch corrente ed impostare remote come upstream, usa git push --set-upstream origin italian-translations gian at gian:~/gambas$ git push --set-upstream origin italian-translations To gitlab.com:GianluigiOr/gambas.git ! [rejected] italian-translations -> italian-translations (non-fast-forward) error: failed to push some refs to 'git at gitlab.com:GianluigiOr/gambas.git' suggerimento: Updates were rejected because the tip of your current branch is behind suggerimento: its remote counterpart. Integrate the remote changes (e.g. suggerimento: 'git pull ...') before pushing again. suggerimento: See the 'Note about fast-forwards' in 'git push --help' for details. Now I find myself with a repository one year backwards and I don't know what to do. Any suggestions other than giving up on git? Regards & Good night Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Mar 7 02:27:44 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 7 Mar 2020 03:27:44 +0200 Subject: [Gambas-user] Bug in latest revision Message-ID: Please run the attached project. When JIT is enable the bug disappears. Not sure how old this bug is, because I had not compiled Gambas for awhile. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.22.tar.gz Type: application/gzip Size: 30033 bytes Desc: not available URL: From pebauer68 at gmail.com Sat Mar 7 12:31:41 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sat, 7 Mar 2020 12:31:41 +0100 Subject: [Gambas-user] Gambas 3.14.90 dev version and TerminalView(gb.form.terminal) Message-ID: Hello, I have seen that the apps terminal(terminal in seven lines of code) and gb.terminal in different versions do no longer work as expected with gambas dev version 3.14.90 as of Friday 6.3.2020. Both Applications are using the TerminalView Control. error description: -> the return key is accepted only once when you start terminal or gb.terminal, then you always have to press the return key twice. to reproduce just type: ls -l in terminal With stable Gambas version 3.14.3 no problems. Best Regards, Peter Bauer -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Mar 7 12:52:37 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 7 Mar 2020 12:52:37 +0100 Subject: [Gambas-user] Gambas 3.14.90 dev version and TerminalView(gb.form.terminal) In-Reply-To: References: Message-ID: Le 07/03/2020 ? 12:31, Peter Bauer a ?crit?: > Hello, > I have seen that the apps terminal(terminal in seven lines of code) and > gb.terminal in different versions do no longer work as expected with > gambas dev version 3.14.90 as of Friday 6.3.2020. > Both Applications are using the TerminalView Control. > error description: > -> the return key is accepted only once when you start terminal or > gb.terminal, then you always have to press the return key twice. > to reproduce just type: ls -l in terminal > > With stable Gambas version 3.14.3 no problems. > > Best Regards, > Peter Bauer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I can't reproduce the behaviour you describe. Please give information about your system (from the corresponding IDE menu). Regards, -- Beno?t Minisini From bagonergi at gmail.com Sat Mar 7 14:21:27 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 7 Mar 2020 14:21:27 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: Message-ID: Il giorno sab 7 mar 2020 alle ore 01:03 Gianluigi ha scritto: > ... > After solving various conflicts and pulling "italian-translations" this is my situation on my remote: --------------------------------------------- gian at gian:~/gambas$ LANG=C git status On branch italian-translations Your branch is ahead of 'origin/italian-translations' by 497 commits. (use "git push" to publish your local commits) Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: app/src/gambas3/.lang/it.po no changes added to commit (use "git add" and/or "git commit -a") ----------------------------------------------------- See also here gitk image https://paste.c-net.org/WalkmanLeveled Any suggestions on how to proceed? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Mar 7 23:40:33 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 7 Mar 2020 23:40:33 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: Message-ID: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> Am 07.03.20 um 14:21 schrieb Gianluigi: > Il giorno sab 7 mar 2020 alle ore 01:03 Gianluigi > ha scritto: > > ... > > ? > After solving various conflicts and pulling "italian-translations" this > is my situation on my remote: > --------------------------------------------- > gian at gian:~/gambas$ LANG=C git status > On branch italian-translations > Your branch is ahead of 'origin/italian-translations' by 497 commits. Hmm, this looks a bit weird. > ? (use "git push" to publish your local commits) > > Changes not staged for commit: > ? (use "git add ..." to update what will be committed) > ? (use "git checkout -- ..." to discard changes in working directory) > > modified: ? app/src/gambas3/.lang/it.po > > no changes added to commit (use "git add" and/or "git commit -a") > ----------------------------------------------------- > > See also here gitk image https://paste.c-net.org/WalkmanLeveled > > Any suggestions on how to proceed? In situations I do not understand any more I do this: (be careful, not tested!) I copy the whole workdir to another place to backup my work. $ cp -r ./gambas /var/tmp (be careful, not tested!!!!) Then I do $ cd ./gambas $ git stash to put my changes out of the way Then I checkout an older version, for instance $ git checkout bfc455070e9b94dd7 Then pull $ git pull $ git checkout master ------------------------- Now there is the current version on the computer. ------------------------- After that you can copy the backup over this version, then commit and push your changes as usual. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sat Mar 7 23:40:19 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 7 Mar 2020 14:40:19 -0800 (PST) Subject: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts In-Reply-To: <25a46b2a-facf-2915-f3ba-d405fc361c84@gmail.com> References: <1692603755.10145.1582592820857.JavaMail.zimbra@westwoodsvcs.com> <1afce22a-234f-eb41-d7ff-80d7a619c434@gmail.com> <605B1DED34848F44.02f576bf-210c-426a-a189-11971398daa8@mail.outlook.com> <1174772483.10272.1582646501930.JavaMail.zimbra@westwoodsvcs.com> <6578572c-1741-4138-f053-d97c1bbe85a1@gmail.com> <2121380019.10360.1582649969213.JavaMail.zimbra@westwoodsvcs.com> <25a46b2a-facf-2915-f3ba-d405fc361c84@gmail.com> Message-ID: <2102431379.13956.1583620819913.JavaMail.zimbra@westwoodsvcs.com> I think I agree. Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Wednesday, March 4, 2020 11:01:15 AM Subject: Re: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts Le 04/03/2020 ? 18:57, gbWilly via User a ?crit : > Hi Brian, > > > ??????? Original Message ??????? On Tuesday, February 25, 2020 5:59 > PM, Brian G wrote: > >> The problem is that the name of the package changes like this >> westwood-testexec_7.14.9-0ubuntu1_all.deb >> westwood-testexec_7.14.8-0ubuntu1_all.deb >> westwood-testexec_4.14.7-0ubuntu1_all.deb etc >> >> The package name is only considered to the first _ and the rest is >> versioning >> >> So no mater what major(also considered interface version for shared >> libraries), minor, release number Debian deletes all older versions >> and replaces it with the newer version. Applications depending on >> the older version of the interface will now fail. If you try to >> install the older version, it will tell you that the newest is >> already installed. > > This is exactly the behavior I want and I wouldn't like it to be > different. I work a lot with Gambas libraries in a production > environment. > > My new library versions are meant to replace the older ones. Thing > is, you make sure that your changes in the new library are backward > compatible so they don't mess up the applications using them. > > So that means for example that if existing methods get a new argument > it is always optional. If I don't want that optional argument, I > check all applications using this method (simple search in the IDE > will do that), change them accordingly and redistribute them. > > Pretty strait forward in my opinion. > > >> I would like to propose that the major version number become part >> of a library name as this >> >> westwood-testexec4_4.14.7-0ubuntu1_all.deb >> >> This allows the Major/Inteface number to control the package name >> for libraries and therefore allow the development and >> implementation in a production environment of newer versions of the >> interface. and the slow adoption for older applications to the new >> interface. >> >> This change for Libraries to the naming > > You proposition in my case would mean that a library would have a > name + number added by the packager (say it is named MyLib) and the > deb would be mylib1_1.0.1-0ubuntu1_all.deb My application (name it > MyApp) would thus actually be dependend on MyLib1 (instead of > MyLib). If I create a new major version of the MyLib package (deb > would then be named mylib2_2.0.0-0ubuntu1_all.deb). So, I would also > have to change the dependency in MyApp to make it work with MyLib2 > (instead of MyLib1). This to me is an undesired behavior, as that > means I would always have to update all applications using a the > library and redistribute them to make them work with the newer > library. > > If you really would like to work in this manner simply name your > library with the added major version number. So name your first > version MyLib1 being version 1.0.0 Every update within 1 version (so > 1.0.1, 1.1.20 etc) you stick to the name MyLib1 > > Once you go to a newer major version that is no longer backward > compatible name the library MyLib2 (being version 2.0.0, 2.0.1, > 2.1.20 etc.) Older applications depending on MyLib1 will not be > bother by the MyLib2 update as the libraries are considered by the OS > as different packages (since they have different names). Both MyLib1 > and MyLib2 will live alongside each other and older applications > would need to be refurbished and redistributed to make them work with > the major version 2 of your library. > > This way the default expected behavior of how packages and > dependencies work in a Debian/Ubuntu environment would still be met. > > Just my two cents, > > gbWilly > I mostly agree with you... What I could do is adding an option that add the major version to the project name when making the package. But the simpler is what you say: put the major version directly in the project name. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From adamnt42 at gmail.com Sun Mar 8 06:16:17 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 8 Mar 2020 15:46:17 +1030 Subject: [Gambas-user] Sparse arrays? Possible? Message-ID: Firstly, I haven't tried this but I was wondering if it is possible. Given a set of objects that have an ordinal characteristic (not a property of the object itself and not encountered in the ascending order of that characteristic) is it possible to construct an array of such objects that is only sparsely populated? Let's say we have the following objects, with that derived characteristic in brackets: Ahab(3),Chab(6), Fhab(2) and Ghab(7). I want to fill the array such that its' final representation is [0] - [1] - [2] Fhab [3] Ahab [4] - [5] - [6] Chab [7] Ghab I don't know at the outset what the maximum ordinal value is and so I don't know the size of the array. There are reasons for using an array rather than a collection keyed by the value. The source of the objects is unsortable, they arrive over time in a random order. Any thoughts? b p.s. It's like the IP layer in TCP/IP putting the packets back in order to rebuild the entire message. From pebauer68 at gmail.com Sun Mar 8 10:02:57 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sun, 8 Mar 2020 10:02:57 +0100 Subject: [Gambas-user] Gambas 3.14.90 dev version and TerminalView(gb.form.terminal) Message-ID: Hello, Please find my system description below: I have seen that terminal and gb.terminal in different versions do no longer work as expected with gambas dev version 3.14.90 as of Friday the 6.3.2020. error: -> the return key is accepted only once when you start gb.terminal, then you always have to press the return key twice. to reproduce just type: ls -l _several times_ in gb.terminal -> I discovered that the error happens when the output of the used command is longer then the terminal size(height) *Workaround:* After using the command "clear" the error disappears until you reach the terminal height again. Strange is that I can't reproduce the error with gb.form.terminal in the IDE. Best Regards, Peter [System] Gambas=3.14.90 d0650b8de (master) OperatingSystem=Linux Kernel=4.15.0-88-generic Architecture=x86_64 Distribution=Ubuntu 18.04.4 LTS Desktop=MATE Theme=Fusion Language=en_US.UTF-8 Memory=15868M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1405.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.57.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] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6GEVIk7c3h,guid=7ecb0cae40ffa8b614df1df65e5cc0f6 DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=mate GDM_LANG=en GIO_LAUNCHED_DESKTOP_FILE=/Schreibtisch/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=3543 GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= JAVA_HOME=/usr/lib/jvm/java-8-oracle LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ADDRESS=de_AT.UTF-8 LC_IDENTIFICATION=de_AT.UTF-8 LC_MEASUREMENT=de_AT.UTF-8 LC_MONETARY=de_AT.UTF-8 LC_NAME=de_AT.UTF-8 LC_NUMERIC=de_AT.UTF-8 LC_PAPER=de_AT.UTF-8 LC_TELEPHONE=de_AT.UTF-8 LC_TIME=de_AT.UTF-8 LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/lib/node_modules/:/rakudo/rakudo-2020.01/bin/:/bin:/rakudo/rakudo-2020.01/share/perl6/site/bin:/rakudo/rakudo-2020.01/ PWD= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/4294,unix/:/tmp/.ICE-unix/4294 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TEXTDOMAIN=lightdm TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pebauer68 at gmail.com Sun Mar 8 11:01:44 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sun, 8 Mar 2020 11:01:44 +0100 Subject: [Gambas-user] Gambas 3.14.90 dev version and TerminalView(gb.form.terminal) Message-ID: Hello, I have done Git synchronize, a compile, compile all and make exec of TerminalView in the IDE. Now also term and gb.terminal are working as expected. BR, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun Mar 8 15:09:33 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 8 Mar 2020 07:09:33 -0700 (PDT) Subject: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts In-Reply-To: <2102431379.13956.1583620819913.JavaMail.zimbra@westwoodsvcs.com> References: <1692603755.10145.1582592820857.JavaMail.zimbra@westwoodsvcs.com> <605B1DED34848F44.02f576bf-210c-426a-a189-11971398daa8@mail.outlook.com> <1174772483.10272.1582646501930.JavaMail.zimbra@westwoodsvcs.com> <6578572c-1741-4138-f053-d97c1bbe85a1@gmail.com> <2121380019.10360.1582649969213.JavaMail.zimbra@westwoodsvcs.com> <25a46b2a-facf-2915-f3ba-d405fc361c84@gmail.com> <2102431379.13956.1583620819913.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1933281394.14120.1583676573798.JavaMail.zimbra@westwoodsvcs.com> I agree with gbwilly with his concern, But don't think I have been clear enough regarding what I would like to see. What I am talking about is allowing the major version number of the shared library to control the name of the package to be changed such that their could be available to an application developer multiple versions of the library. This does not change the library name. Nor would it at all change the dependency chain of your install package or older versions of the app being reinstalled as both versions would be available to resolve dependencies during the install. Both company.bogolib.1.0.0 and company.bogolib.2.0.0 Are available now, the original apps dependencies are unchanged and resolve correctly. I don't believe you can link a libc:10 lib with a cc4 compiled and developed app and have it work correctly. But developers don't usually like the lib name to change, when the environment is updated. I does in fact allow you to control the version of interface your application uses. If you need your old app to use the old version of a library don't change the major version number for that apps version of the library during bug fixes and changes. Update the minor version numbers of the library after the changes to it. That way you Stay compatible. But when you release a updated version of your app that requires a lib with some not compatible changes to the interface enhancing the performance/ability etc then it is time to bump the major number and release the app with the bumped interface number. This In fact allows your older version app to happily co-exist with the new one. And even be reinstalled. And future change and bug fixes to the library without issues. If in the future you would like your old App to use the new library for some reason then it is time to update it. In this case you are in fact releasing a new version of the app. So maybe its dependency chain should be updated. Are All your shared libraries open source? I am not trying to make anyone's life more difficult here. I am only trying to smooth the over all development cycle and app redevelopment cycle. Also it allows the release of publicly available libraries with interface specs that can be changed and the app builder/designer can decide to upgrade or not to the new super duper version of the library for his new release without compromising the existing installed or reinstalled base. I really believe that this would be a useful and well used tool during the development and release cycle. I have added the ability for the scripter to use only the major release number for shared libraries. Today I thought the ide had to select a specific version of the library to link with. Maybe I don't understand well enough. Components don't care about the release information just the gambas version but shared libraries depend on the release information in the ide. As an aside, when we go to gambas4 with a different byte code for example, the shared lib for that version of gambas would get a major version bump. but your gambas3 apps could still be used with the original library, etc. Well that's my two cent from my many years in application development and system level development experience. I would still like the change as originally asked for adding the major release number to the package name , not the library name. Thank You Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Sent: Saturday, March 7, 2020 2:40:19 PM Subject: Re: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts I think I agree. Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Wednesday, March 4, 2020 11:01:15 AM Subject: Re: [Gambas-user] Update ide Package module for shared libraries, Make installation packages to have preinst and postinst scripts Le 04/03/2020 ? 18:57, gbWilly via User a ?crit : > Hi Brian, > > > ??????? Original Message ??????? On Tuesday, February 25, 2020 5:59 > PM, Brian G wrote: > >> The problem is that the name of the package changes like this >> westwood-testexec_7.14.9-0ubuntu1_all.deb >> westwood-testexec_7.14.8-0ubuntu1_all.deb >> westwood-testexec_4.14.7-0ubuntu1_all.deb etc >> >> The package name is only considered to the first _ and the rest is >> versioning >> >> So no mater what major(also considered interface version for shared >> libraries), minor, release number Debian deletes all older versions >> and replaces it with the newer version. Applications depending on >> the older version of the interface will now fail. If you try to >> install the older version, it will tell you that the newest is >> already installed. > > This is exactly the behavior I want and I wouldn't like it to be > different. I work a lot with Gambas libraries in a production > environment. > > My new library versions are meant to replace the older ones. Thing > is, you make sure that your changes in the new library are backward > compatible so they don't mess up the applications using them. > > So that means for example that if existing methods get a new argument > it is always optional. If I don't want that optional argument, I > check all applications using this method (simple search in the IDE > will do that), change them accordingly and redistribute them. > > Pretty strait forward in my opinion. > > >> I would like to propose that the major version number become part >> of a library name as this >> >> westwood-testexec4_4.14.7-0ubuntu1_all.deb >> >> This allows the Major/Inteface number to control the package name >> for libraries and therefore allow the development and >> implementation in a production environment of newer versions of the >> interface. and the slow adoption for older applications to the new >> interface. >> >> This change for Libraries to the naming > > You proposition in my case would mean that a library would have a > name + number added by the packager (say it is named MyLib) and the > deb would be mylib1_1.0.1-0ubuntu1_all.deb My application (name it > MyApp) would thus actually be dependend on MyLib1 (instead of > MyLib). If I create a new major version of the MyLib package (deb > would then be named mylib2_2.0.0-0ubuntu1_all.deb). So, I would also > have to change the dependency in MyApp to make it work with MyLib2 > (instead of MyLib1). This to me is an undesired behavior, as that > means I would always have to update all applications using a the > library and redistribute them to make them work with the newer > library. > > If you really would like to work in this manner simply name your > library with the added major version number. So name your first > version MyLib1 being version 1.0.0 Every update within 1 version (so > 1.0.1, 1.1.20 etc) you stick to the name MyLib1 > > Once you go to a newer major version that is no longer backward > compatible name the library MyLib2 (being version 2.0.0, 2.0.1, > 2.1.20 etc.) Older applications depending on MyLib1 will not be > bother by the MyLib2 update as the libraries are considered by the OS > as different packages (since they have different names). Both MyLib1 > and MyLib2 will live alongside each other and older applications > would need to be refurbished and redistributed to make them work with > the major version 2 of your library. > > This way the default expected behavior of how packages and > dependencies work in a Debian/Ubuntu environment would still be met. > > Just my two cents, > > gbWilly > I mostly agree with you... What I could do is adding an option that add the major version to the project name when making the package. But the simpler is what you say: put the major version directly in the project name. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From jussi.lahtinen at gmail.com Sun Mar 8 19:36:04 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 8 Mar 2020 20:36:04 +0200 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: References: Message-ID: Can you open bit more why using collection is out of the question? Jussi On Sun, Mar 8, 2020 at 7:16 AM Bruce wrote: > Firstly, I haven't tried this but I was wondering if it is possible. > > Given a set of objects that have an ordinal characteristic (not a > property of the object itself and not encountered in the ascending order > of that characteristic) is it possible to construct an array of such > objects that is only sparsely populated? > > Let's say we have the following objects, with that derived > characteristic in brackets: Ahab(3),Chab(6), Fhab(2) and Ghab(7). > I want to fill the array such that its' final representation is > [0] - > [1] - > [2] Fhab > [3] Ahab > [4] - > [5] - > [6] Chab > [7] Ghab > > I don't know at the outset what the maximum ordinal value is and so I > don't know the size of the array. > There are reasons for using an array rather than a collection keyed by > the value. > The source of the objects is unsortable, they arrive over time in a > random order. > > Any thoughts? > b > > p.s. It's like the IP layer in TCP/IP putting the packets back in order > to rebuild the entire message. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Mar 8 23:07:54 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 8 Mar 2020 23:07:54 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> Message-ID: Il giorno sab 7 mar 2020 alle ore 23:41 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 07.03.20 um 14:21 schrieb Gianluigi: > > > Il giorno sab 7 mar 2020 alle ore 01:03 Gianluigi > > ha scritto: > > > > ... > > > > > > After solving various conflicts and pulling "italian-translations" this > > is my situation on my remote: > > --------------------------------------------- > > gian at gian:~/gambas$ LANG=C git status > > On branch italian-translations > > Your branch is ahead of 'origin/italian-translations' by 497 commits. > > Hmm, this looks a bit weird. > > > (use "git push" to publish your local commits) > > > > Changes not staged for commit: > > (use "git add ..." to update what will be committed) > > (use "git checkout -- ..." to discard changes in working > directory) > > > > modified: app/src/gambas3/.lang/it.po > > > > no changes added to commit (use "git add" and/or "git commit -a") > > ----------------------------------------------------- > > > > See also here gitk image https://paste.c-net.org/WalkmanLeveled > > > > Any suggestions on how to proceed? > > In situations I do not understand any more I do this: > (be careful, not tested!) > > I copy the whole workdir to another place to backup my work. > > $ cp -r ./gambas /var/tmp > (be careful, not tested!!!!) > > Then I do > > $ cd ./gambas > $ git stash > to put my changes out of the way > > Then I checkout an older version, for instance > $ git checkout bfc455070e9b94dd7 > > Then pull > > $ git pull > $ git checkout master > > ------------------------- > > Now there is the current version on the computer. > > ------------------------- > > After that you can copy the backup over this version, then commit and > push your changes as usual. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi Christof, sorry I'm late, but I did a thousand tests based on your suggestions These are the last commands given: $ cd ./gambas $ git clone git at gitlab.com:GianluigiOr/gambas.git $ cd ./gambas $ git stash $ git checkout 0a63c136765a50bb92c9c37972f05a638dfed753 $ git pull (ERROR) You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. $ git checkout -b italian-traslations $ git pull --rebase origin/master (ERROR) $ git remote add upstream https://gitlab.com/gambas/gambas.git $ git pull --rebase upstream master $ git status $ git checkout -- app/src/gambas3/.lang/it.po $ exit MAKED TRANSLATIONS $ cd ./gambas $ git status $ git add app/src/gambas3/.lang/it.po $ git commit $ git push (ERROR) $ git push --set-upstream origin italian-traslations This is the current situation on my remote: https://gitlab.com/GianluigiOr/gambas/-/commits/65dd322acf1f6e66c4b4db6ebf7fda488a29c092 I noticed that the italian-translations branch is no longer on origin This is the last gitk: https://paste.c-net.org/StubbornPhoebe Regards & Goodnight Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Mar 8 23:38:11 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 9 Mar 2020 09:08:11 +1030 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: References: Message-ID: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> Much existing code uses the (full) array. The sparse situation occurs perhaps <5% of the time and represents "changes" to the existing set already present in the full array. I suppose that I could detect that the incoming messages represent changes and handle that as a temporary collection but then I'd have to clone and modify many methods that already exist in both applications and libraries (with the concomitant danger to both the current development and the ongoning support... The damn problem is that I cant process the change messages one by one, the entire set of original objects is affected by the entire set of changes. And the changes must be done in an atomic sense because while one change set is building another (different) change set may start to arrive. Grrrr. b On 9/3/20 5:06 am, Jussi Lahtinen wrote: > Can you open bit more why using collection is out of the question? > > Jussi > > On Sun, Mar 8, 2020 at 7:16 AM Bruce > wrote: > > Firstly, I haven't tried this but I was wondering if it is possible. > > Given a set of objects that have an ordinal characteristic (not a > property of the object itself and not encountered in the ascending > order > of that characteristic) is it possible to construct an array of such > objects that is only sparsely populated? > > Let's say we have the following objects, with that derived > characteristic in brackets: Ahab(3),Chab(6), Fhab(2) and Ghab(7). > I want to fill the array such that its' final representation is > [0] - > [1] - > [2] Fhab > [3] Ahab > [4] - > [5] - > [6] Chab > [7] Ghab > > I don't know at the outset what the maximum ordinal value is and so I > don't know the size of the array. > There are reasons for using an array rather than a collection keyed by > the value. > The source of the objects is unsortable, they arrive over time in a > random order. > > Any thoughts? > b > > p.s. It's like the IP layer in TCP/IP putting the packets back in order > to rebuild the entire message. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From jussi.lahtinen at gmail.com Mon Mar 9 02:24:16 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 9 Mar 2020 03:24:16 +0200 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> Message-ID: There rarely are good answers to questions like that without seeing the code. But it seems I would use the normal dynamic object arrays. Dim hArr As New Object[] Fill the array with null objects up to known biggest value. hArr.Insert(hTempArr.Resize(iBiggestValue)) And then just add the object. Unless the value is already within the max index, then just add. Jussi On Mon, Mar 9, 2020 at 12:38 AM Bruce wrote: > Much existing code uses the (full) array. The sparse situation occurs > perhaps <5% of the time and represents "changes" to the existing set > already present in the full array. I suppose that I could detect that > the incoming messages represent changes and handle that as a temporary > collection but then I'd have to clone and modify many methods that > already exist in both applications and libraries (with the concomitant > danger to both the current development and the ongoning support... > > The damn problem is that I cant process the change messages one by one, > the entire set of original objects is affected by the entire set of > changes. And the changes must be done in an atomic sense because while > one change set is building another (different) change set may start to > arrive. Grrrr. > b > > On 9/3/20 5:06 am, Jussi Lahtinen wrote: > > Can you open bit more why using collection is out of the question? > > > > Jussi > > > > On Sun, Mar 8, 2020 at 7:16 AM Bruce > > wrote: > > > > Firstly, I haven't tried this but I was wondering if it is possible. > > > > Given a set of objects that have an ordinal characteristic (not a > > property of the object itself and not encountered in the ascending > > order > > of that characteristic) is it possible to construct an array of such > > objects that is only sparsely populated? > > > > Let's say we have the following objects, with that derived > > characteristic in brackets: Ahab(3),Chab(6), Fhab(2) and Ghab(7). > > I want to fill the array such that its' final representation is > > [0] - > > [1] - > > [2] Fhab > > [3] Ahab > > [4] - > > [5] - > > [6] Chab > > [7] Ghab > > > > I don't know at the outset what the maximum ordinal value is and so I > > don't know the size of the array. > > There are reasons for using an array rather than a collection keyed > by > > the value. > > The source of the objects is unsortable, they arrive over time in a > > random order. > > > > Any thoughts? > > b > > > > p.s. It's like the IP layer in TCP/IP putting the packets back in > order > > to rebuild the entire message. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Mar 9 02:30:34 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 9 Mar 2020 12:00:34 +1030 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> Message-ID: <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> Thanks Jussi, I think I will go that way. b p.s. You don't want to see this code. In fact I don't like looking at it. It grew without enough thought and incomplete requirements. :-( b On 9/3/20 11:54 am, Jussi Lahtinen wrote: > There rarely are good answers to questions like that without seeing the > code. But it seems I would use the normal dynamic object arrays. > Dim hArr As New Object[] > > Fill the array with null objects up to known biggest value. > hArr.Insert(hTempArr.Resize(iBiggestValue)) > > And then just add the object. Unless the value is already within the max > index, then just add. > > > Jussi > > > On Mon, Mar 9, 2020 at 12:38 AM Bruce > wrote: > > Much existing code uses the (full) array. The sparse situation occurs > perhaps <5% of the time and represents "changes" to the existing set > already present in the full array. I suppose that I could detect that > the incoming messages represent changes and handle that as a temporary > collection but then I'd have to clone and modify many methods that > already exist in both applications and libraries (with the concomitant > danger to both the current development and the ongoning support... > > The damn problem is that I cant process the change messages one by one, > the entire set of original objects is affected by the entire set of > changes.? And the changes must be done in an atomic sense because while > one change set is building another (different) change set may start to > arrive. Grrrr. > b > > On 9/3/20 5:06 am, Jussi Lahtinen wrote: > > Can you open bit more why using collection is out of the question? > > > > Jussi > > > > On Sun, Mar 8, 2020 at 7:16 AM Bruce > > >> wrote: > > > >? ? ?Firstly, I haven't tried this but I was wondering if it is > possible. > > > >? ? ?Given a set of objects that have an ordinal characteristic (not a > >? ? ?property of the object itself and not encountered in the > ascending > >? ? ?order > >? ? ?of that characteristic) is it possible to construct an array > of such > >? ? ?objects that is only sparsely populated? > > > >? ? ?Let's say we have the following objects, with that derived > >? ? ?characteristic in brackets: Ahab(3),Chab(6), Fhab(2) and Ghab(7). > >? ? ?I want to fill the array such that its' final representation is > >? ? ?[0] - > >? ? ?[1] - > >? ? ?[2] Fhab > >? ? ?[3] Ahab > >? ? ?[4] - > >? ? ?[5] - > >? ? ?[6] Chab > >? ? ?[7] Ghab > > > >? ? ?I don't know at the outset what the maximum ordinal value is > and so I > >? ? ?don't know the size of the array. > >? ? ?There are reasons for using an array rather than a collection > keyed by > >? ? ?the value. > >? ? ?The source of the objects is unsortable, they arrive over > time in a > >? ? ?random order. > > > >? ? ?Any thoughts? > >? ? ?b > > > >? ? ?p.s. It's like the IP layer in TCP/IP putting the packets > back in order > >? ? ?to rebuild the entire message. > > > >? ? ?----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From jussi.lahtinen at gmail.com Mon Mar 9 03:21:56 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 9 Mar 2020 04:21:56 +0200 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> Message-ID: > p.s. You don't want to see this code. In fact I don't like looking at > it. It grew without enough thought and incomplete requirements. > Hah! I completely understand. That seem to be the case way too often. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 9 09:39:07 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 9 Mar 2020 09:39:07 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> Message-ID: <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> Hello Gianluigi, please quote only relevant things ... and not all ever happened. Am 08.03.20 um 23:07 schrieb Gianluigi: > sorry I'm late, but I did a thousand tests based on your suggestions > These are the last commands given: > ... > $ git clone git at gitlab.com:GianluigiOr/gambas.git Uh, I didn't know you are working with your own forked repo. This makes it more complicated, and I doubt, that we could solve it by mail easily. There are three repos involved, I believe: upstream: https://gitlab.com/gambas/gambas.git origin: https://gitlab.com/GianluigiOr/gambas And the one on your computer. Can you paste here the output of: git status And the content of .git/config in the Gambas directory on your computer. > This is the current situation on my remote: > https://gitlab.com/GianluigiOr/gambas/-/commits/65dd322acf1f6e66c4b4db6ebf7fda488a29c092 There are two branches: italian-traslations and italian-translations > I noticed that the italian-translations branch is no longer on origin > This is the last gitk: > https://paste.c-net.org/StubbornPhoebe You are on italian-traslations (with missing "n"!). Ok, please send the things I needed and then I will have a look at it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Mon Mar 9 09:44:35 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 9 Mar 2020 09:44:35 +0100 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> Message-ID: <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> Am 09.03.20 um 02:30 schrieb Bruce: > p.s. You don't want to see this code. In fact I don't like looking at > it. It grew without enough thought and incomplete requirements. > :-( Then first do a refactoring until you like looking at the code. If you enhance ugly code with ugly code it will only get worse. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Mar 9 12:11:19 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Mar 2020 12:11:19 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 09:40 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Hello Gianluigi, > > please quote only relevant things ... and not all ever happened. > OK sorry > > Am 08.03.20 um 23:07 schrieb Gianluigi: > > > sorry I'm late, but I did a thousand tests based on your suggestions > > These are the last commands given: > > ... > > $ git clone git at gitlab.com:GianluigiOr/gambas.git > > Uh, I didn't know you are working with your own forked repo. This makes > it more complicated, and I doubt, that we could solve it by mail easily. > There are three repos involved, I believe: > > upstream: https://gitlab.com/gambas/gambas.git > origin: https://gitlab.com/GianluigiOr/gambas > And the one on your computer. > > Can you paste here the output of: > > git status > > $ LANG=C git status On branch italian-traslations Your branch is up to date with 'origin/italian-traslations'. Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: app/src/gambas3/.lang/it.po no changes added to commit (use "git add" and/or "git commit -a") I also add: $ git branch * italian-traslations master > And the content of .git/config in the Gambas directory on your computer. > Content of .git/config: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = git at gitlab.com:GianluigiOr/gambas.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master [remote "upstream"] url = https://gitlab.com/gambas/gambas.git fetch = +refs/heads/*:refs/remotes/upstream/* [branch "italian-traslations"] remote = origin merge = refs/heads/italian-traslations > > > This is the current situation on my remote: > > > https://gitlab.com/GianluigiOr/gambas/-/commits/65dd322acf1f6e66c4b4db6ebf7fda488a29c092 > > There are two branches: > italian-traslations and italian-translations > I am an idiot, I await your instructions before making things worse :-( Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 9 13:10:00 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 9 Mar 2020 13:10:00 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> Message-ID: <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> Am 09.03.20 um 12:11 schrieb Gianluigi: > git status > > $ LANG=C git status > On branch italian-traslations > Your branch is up to date with 'origin/italian-traslations'. > > Changes not staged for commit: > ? (use "git add ..." to update what will be committed) > ? (use "git checkout -- ..." to discard changes in working directory) > > modified: ? app/src/gambas3/.lang/it.po Ok, this is easy. You just have modified this single file. Please copy it elsewhere for backup reasons. > no changes added to commit (use "git add" and/or "git commit -a") > > I also add: > > $ git branch > * italian-traslations > ? master Ok, cool, you are on branch italian-traslations. I think that is not nearly necessary, you could also work on master, but anyway. This one you should update that it's state is equal to the master branch of Gambas: $ git pull upstream master (or as I am a little unsure: $ git pull upstream ) Please tell me the output of this command. > I am an idiot, I await your instructions before making things worse :-( ROTFL :-) No you are not! :-) Git is a git (Il nome Git significa stupido, [this is from deepl.com]). The beauty of it is that it is made so that you can hardly break anything with it. ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Mar 9 13:50:53 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Mar 2020 13:50:53 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 13:11 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 09.03.20 um 12:11 schrieb Gianluigi: > > > git status > > ... > > modified: app/src/gambas3/.lang/it.po > > Ok, this is easy. You just have modified this single file. Please copy > it elsewhere for backup reasons. > OK done. This one you should update that it's state is equal to the master branch > of Gambas: > > $ git pull upstream master > (or as I am a little unsure: > $ git pull upstream > ) > > Please tell me the output of this command. > $ git pull upstream remote: Enumerating objects: 249, done. remote: Counting objects: 100% (249/249), done. remote: Compressing objects: 100% (64/64), done. remote: Total 325 (delta 185), reused 231 (delta 184), pack-reused 76 Ricezione degli oggetti: 100% (325/325), 102.51 KiB | 452.00 KiB/s, done. Risoluzione dei delta: 100% (219/219), completed with 45 local objects. Da https://gitlab.com/gambas/gambas * [nuovo branch] cmake -> upstream/cmake * [nuovo branch] evdev -> upstream/evdev * [nuovo branch] exclamation-mark-completion -> upstream/exclamation-mark-completion * [nuovo branch] gb.chart2 -> upstream/gb.chart2 * [nuovo branch] gb.git -> upstream/gb.git * [nuovo branch] gb.joystick -> upstream/gb.joystick * [nuovo branch] gb.net.imap -> upstream/gb.net.imap * [nuovo branch] gb.spreadsheet -> upstream/gb.spreadsheet * [nuovo branch] gb.test -> upstream/gb.test * [nuovo branch] gb.test.tap -> upstream/gb.test.tap * [nuovo branch] jit-with-c -> upstream/jit-with-c 30cde24a5..1a0809095 master -> upstream/master * [nuovo branch] qt5ext-2 -> upstream/qt5ext-2 * [nuovo branch] stable -> upstream/stable * [nuova tag] 3.14.0 -> 3.14.0 * [nuova tag] 3.14.1 -> 3.14.1 * [nuova tag] 3.14.2 -> 3.14.2 * [nuova tag] 3.14.3 -> 3.14.3 You asked to pull from the remote 'upstream', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line. And after: $ git pull upstream master Da https://gitlab.com/gambas/gambas * branch master -> FETCH_HEAD Merge made by the 'recursive' strategy. comp/src/gb.web.form2/.src/Test/Webform1.webform | 2 +- comp/src/gb.web.form2/.src/WebForm.class | 48 +++++++++++++++--------- comp/src/gb.web.form2/style.css | 1 + main/lib/debug/CDebug.c | 12 ++++++ main/lib/debug/debug.c | 4 ++ main/lib/debug/debug.h | 1 + 6 files changed, 49 insertions(+), 19 deletions(-) > > > I am an idiot, I await your instructions before making things worse :-( > > ROTFL :-) > No you are not! :-) > I have the certificate ! > Git is a git (Il nome Git significa stupido, [this is from deepl.com]). > The beauty of it is that it is made so that you can hardly break > anything with it. > Let's hope that's true, because as a child I broke everything and as you know the old people return to children. :-))) Thank you and regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 9 15:23:17 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 9 Mar 2020 15:23:17 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> Message-ID: Am 09.03.20 um 13:50 schrieb Gianluigi: > And after: > > $ git pull upstream master > Da https://gitlab.com/gambas/gambas > ?* branch ? ? ? ? ? ? ? ?master ? ? -> FETCH_HEAD > Merge made by the 'recursive' strategy. > ?comp/src/gb.web.form2/.src/Test/Webform1.webform | ?2 +- > ?comp/src/gb.web.form2/.src/WebForm.class ? ? ? ? | 48 > +++++++++++++++--------- > ?comp/src/gb.web.form2/style.css ? ? ? ? ? ? ? ? ?| ?1 + > ?main/lib/debug/CDebug.c ? ? ? ? ? ? ? ? ? ? ? ? ?| 12 ++++++ > ?main/lib/debug/debug.c ? ? ? ? ? ? ? ? ? ? ? ? ? | ?4 ++ > ?main/lib/debug/debug.h ? ? ? ? ? ? ? ? ? ? ? ? ? | ?1 + > ?6 files changed, 49 insertions(+), 19 deletions(-) Ok now you should commit your changes as always and then do a $ git push Please tell me if that worked. --------------------------------------------------------------- So ... all you needed was "git pull upstream master". But normally better is a $ git rebase upstream master if you have commits in your workdir (which are not pushed!). If you have a problem, you always can copy the whole workdir (all except the hidden directory .git) to another place to make a backup. Then reset the workdir to an older version: $ git reset --hard $HashOfOlderVersion then $ git pull upstream master to make it similar to the original Gambas. And then copy your changes from the backup over it, then commit, then push. You should learn mostly everything about these essential Git commands: fetch, pull, push, merge, stash, branch, rebase and reset. If you have done that you will never have any problem any more. Not with women, not with children, not with age or drugs. And obviously not with Git repositories. > Let's hope that's true, because as a child I broke everything and as you > know the old people return to children. Git will prevent that. Just transform yourself into a Git repository. Git heals everything! ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Mar 9 16:05:36 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Mar 2020 16:05:36 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 15:24 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 09.03.20 um 13:50 schrieb Gianluigi: > > > And after: > > > > $ git pull upstream master > ... > Ok now you should commit your changes as always and then do a > > $ git push > > Please tell me if that worked. > Just not to be wrong, now my status is this: -------------------------------------------- $ LANG=C git status On branch italian-traslations Your branch is ahead of 'origin/italian-traslations' by 3 commits. (use "git push" to publish your local commits) Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: app/src/gambas3/.lang/it.po no changes added to commit (use "git add" and/or "git commit -a") ------------------------------------------------------------------- I just have to give git push as suggested by you and git, without repeating add and commit first, right? > So ... all you needed was "git pull upstream master". But normally > better is a > > $ git rebase upstream master > > if you have commits in your workdir (which are not pushed!). > > If you have a problem, you always can copy the whole workdir (all except > the hidden directory .git) to another place to make a backup. Then reset > the workdir to an older version: > > $ git reset --hard $HashOfOlderVersion > > then > > $ git pull upstream master > > to make it similar to the original Gambas. > > And then copy your changes from the backup over it, then commit, then push. > OK, I'll treasure your advice > > You should learn mostly everything about these essential Git commands: > fetch, pull, push, merge, stash, branch, rebase and reset. > > If you have done that you will never have any problem any more. Not with > women, not with children, not with age or drugs. And obviously not with > Git repositories. > Yours is definitely good universal advice, too bad it came to me a little late, given my age :-) Thank you and regads Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 9 16:22:49 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 9 Mar 2020 16:22:49 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> Message-ID: <8eb118a8-eced-99da-4b72-34f8ffbf476c@deganius.de> Am 09.03.20 um 16:05 schrieb Gianluigi: > Just not to be wrong, now my status is this: > -------------------------------------------- > $ LANG=C git status > On branch italian-traslations > Your branch is ahead of 'origin/italian-traslations' by 3 commits. > ? (use "git push" to publish your local commits) > > Changes not staged for commit: > ? (use "git add ..." to update what will be committed) > ? (use "git checkout -- ..." to discard changes in working directory) > > modified: ? app/src/gambas3/.lang/it.po > > no changes added to commit (use "git add" and/or "git commit -a") > ------------------------------------------------------------------- > I just have to give git push as suggested by you and git, without > repeating add and commit first, right? No, sorry, please do what it says, commit as you are used to. And then push. > You should learn mostly everything about these essential Git commands: > fetch, pull, push, merge, stash, branch, rebase and reset. Uah, I forgot "commit". > If you have done that you will never have any problem any more. Not with > women, not with children, not with age or drugs. And obviously not with > Git repositories. > > > Yours is definitely good universal advice, too bad it came to me a > little late, given my age :-) I said also "not with age" ... because: Git makes you young again. ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Mon Mar 9 18:11:30 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 9 Mar 2020 13:11:30 -0400 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> Message-ID: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> On 3/9/20 11:05 AM, Gianluigi wrote: > Just not to be wrong, now my status is this: > -------------------------------------------- > $ LANG=C git status > On branch italian-traslations > Your branch is ahead of 'origin/italian-traslations' by 3 commits. > ? (use "git push" to publish your local commits) Are you sure you wanted to be doing all that on branch "traslations" and not "translations"? -- Lee From chrisml at deganius.de Mon Mar 9 18:32:19 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 9 Mar 2020 18:32:19 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> Message-ID: <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> Am 09.03.20 um 18:11 schrieb T Lee Davidson: > On 3/9/20 11:05 AM, Gianluigi wrote: >> Just not to be wrong, now my status is this: >> -------------------------------------------- >> $ LANG=C git status >> On branch italian-traslations >> Your branch is ahead of 'origin/italian-traslations' by 3 commits. >> ? (use "git push" to publish your local commits) > > Are you sure you wanted to be doing all that on branch "traslations" and not "translations"? At last he worked on traslations. It can be renamed afterwards. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Mar 9 19:11:11 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Mar 2020 19:11:11 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 18:33 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 09.03.20 um 18:11 schrieb T Lee Davidson: > > On 3/9/20 11:05 AM, Gianluigi wrote: > >> Just not to be wrong, now my status is this: > ... > > Are you sure you wanted to be doing all that on branch "traslations" and > not "translations"? > > At last he worked on traslations. It can be renamed afterwards. > Hi, it didn't go well. I think the problem starts from Master who doesn't advance: ----------------------------------------------------------- $ git status Sul branch italian-traslations Your branch is up to date with 'origin/italian-traslations'. nothing to commit, working tree clean $ gitk $ git checkout master Si ? passati al branch 'master' Your branch is up to date with 'origin/master'. $ gitk ------------------------------------------------------------------------ italian-traslation is about the present time, while the master is one year behind. See image of gitk-italian-traslations and gitk-master: https://paste.c-net.org/GreatlyDelia https://paste.c-net.org/HoveringIngrate Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Mar 9 20:01:41 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Mar 2020 20:01:41 +0100 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 09:45 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 09.03.20 um 02:30 schrieb Bruce: > > > p.s. You don't want to see this code. In fact I don't like looking at > > it. It grew without enough thought and incomplete requirements. > > :-( > > Then first do a refactoring until you like looking at the code. If you > enhance ugly code with ugly code it will only get worse. > To distract myself from Git I propose this solution. It looks clean enough. See attached project (as long as it is not bounced) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SparseArrays-0.0.1.tar.gz Type: application/gzip Size: 11728 bytes Desc: not available URL: From bagonergi at gmail.com Mon Mar 9 20:16:58 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Mar 2020 20:16:58 +0100 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 20:01 Gianluigi ha scritto: > > > Il giorno lun 9 mar 2020 alle ore 09:45 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 09.03.20 um 02:30 schrieb Bruce: >> >> > p.s. You don't want to see this code. In fact I don't like looking at >> > it. It grew without enough thought and incomplete requirements. >> > :-( >> >> Then first do a refactoring until you like looking at the code. If you >> enhance ugly code with ugly code it will only get worse. >> > > To distract myself from Git I propose this solution. > It looks clean enough. > See attached project (as long as it is not bounced) > I'm afraid it's more correct to change *Wait* with *Sleep*, sorry Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Mar 9 21:49:24 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 9 Mar 2020 22:49:24 +0200 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> Message-ID: Lol, yes you can just simply use resize. I was thinking halfway in C. Jussi On Mon, Mar 9, 2020 at 9:02 PM Gianluigi wrote: > > > Il giorno lun 9 mar 2020 alle ore 09:45 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 09.03.20 um 02:30 schrieb Bruce: >> >> > p.s. You don't want to see this code. In fact I don't like looking at >> > it. It grew without enough thought and incomplete requirements. >> > :-( >> >> Then first do a refactoring until you like looking at the code. If you >> enhance ugly code with ugly code it will only get worse. >> > > To distract myself from Git I propose this solution. > It looks clean enough. > See attached project (as long as it is not bounced) > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Mar 9 21:51:14 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 9 Mar 2020 22:51:14 +0200 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> Message-ID: Yet, rare are the projects where all code is beautiful! Jussi On Mon, Mar 9, 2020 at 10:45 AM Christof Thalhofer wrote: > Am 09.03.20 um 02:30 schrieb Bruce: > > > p.s. You don't want to see this code. In fact I don't like looking at > > it. It grew without enough thought and incomplete requirements. > > :-( > > Then first do a refactoring until you like looking at the code. If you > enhance ugly code with ugly code it will only get worse. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 9 22:41:35 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 9 Mar 2020 22:41:35 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> Message-ID: <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> Am 09.03.20 um 19:11 schrieb Gianluigi: > it didn't go well. No. > I think the problem starts from Master who doesn't advance: > ----------------------------------------------------------- > $ git status > Sul branch italian-traslations > Your branch is up to date with 'origin/italian-traslations'. > > nothing to commit, working tree clean Allright, that was, what we have done. We fixed italian-traslations which is now equivalent with upstream/master. > $ gitk > $ git checkout master > Si ? passati al branch 'master' > Your branch is up to date with 'origin/master'. > $ gitk > ------------------------------------------------------------------------ > italian-traslation is about the present time, while the master is one > year behind. Because we didn't pull the changes into master. Do: $ git checkout master Then you can: $ git pull upstream master and/or $ git merge italian-traslation to make your master equivalent to upstream/master. And then you can push it to origin/master: $ git push Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Mar 9 23:15:41 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Mar 2020 23:15:41 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 22:42 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 09.03.20 um 19:11 schrieb Gianluigi: > > > it didn't go well. > > No. > > > I think the problem starts from Master who doesn't advance: > > ----------------------------------------------------------- > > $ git status > > Allright, that was, what we have done. We fixed > italian-traslations which is now equivalent with upstream/master. > ... > > italian-traslation is about the present time, while the master is one > > year behind. > > Because we didn't pull the changes into master. > ... > git pull upstream master it worked, see gitk image: https://paste.c-net.org/MementoDoesn Unfortunately on: $ git merge italian-traslation merge: italian-traslation - not something we can merge I suspend and go to sleep, if you think, we update tomorrow. Thank you and good night Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Mar 10 02:27:13 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 10 Mar 2020 11:57:13 +1030 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> Message-ID: ??? On 9/3/20 7:14 pm, Christof Thalhofer wrote: > Am 09.03.20 um 02:30 schrieb Bruce: > >> p.s. You don't want to see this code. In fact I don't like looking at >> it. It grew without enough thought and incomplete requirements. >> :-( > > Then first do a refactoring until you like looking at the code. If you > enhance ugly code with ugly code it will only get worse. > I do not see any reason to pull down a perfectly functional but very messy 3 bedroom house just to build a chicken coop out the back! :-) b From chrisml at deganius.de Tue Mar 10 08:00:23 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 10 Mar 2020 08:00:23 +0100 Subject: [Gambas-user] Sparse arrays? Possible? In-Reply-To: References: <24d7f01a-19b3-a14b-f75c-e9b1d955ab00@gmail.com> <7e57f193-1684-5cd7-c36d-087531cea398@gmail.com> <5ca25320-ad00-bd0d-003a-365423441a8c@deganius.de> Message-ID: <7def8699-b215-922a-d41f-6d807b6d1e7a@deganius.de> Am 10.03.20 um 02:27 schrieb Bruce: >>> p.s. You don't want to see this code. In fact I don't like looking at >>> it. It grew without enough thought and incomplete requirements. >>> :-( >> >> Then first do a refactoring until you like looking at the code. If you >> enhance ugly code with ugly code it will only get worse. >> > I do not see any reason to pull down a perfectly functional but very > messy 3 bedroom house just to build a chicken coop out the back! :-) Refactoring is not pull down. It is stabilizing and making things clear and better understandable. It is an important criterion if you want to work well with it or with others in the future. It's your code. You can do with it what you want ... but I have no desire and time to discuss the value and conservation of ugly code. Visual Basic and it's culture was source of a lot of messy code. i think it's a tradition worth to be broken. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Tue Mar 10 08:11:42 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 10 Mar 2020 08:11:42 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <90e78402-0ea1-4b63-93cb-db44b93b55b5@deganius.de> References: <484ad668-596e-359e-8677-30cbe3a10a75@gmail.com> <64bafd88-7979-92d6-4696-2dd7e594ca7b@deganius.de> <5a04f1b7-64ea-92d6-5def-b3090d9b7017@deganius.de> <20200223133534.GN990035@highrise.localdomain> <20200223161624.GO990035@highrise.localdomain> <6a02e399-32fa-6dc1-3fe6-1e1fca485b80@deganius.de> <90e78402-0ea1-4b63-93cb-db44b93b55b5@deganius.de> Message-ID: Am 06.03.20 um 09:35 I wrote: > in master there are now gb.test and gb.test.tap. These two play well > together as far as I can see. But a part of the functionality has > disappeared and must therefore be restored: ... > Who wants to restore it? Should I do it? Ok, I will do it now in master. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Tue Mar 10 10:30:05 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 10 Mar 2020 10:30:05 +0100 Subject: [Gambas-user] gb.test In-Reply-To: References: <484ad668-596e-359e-8677-30cbe3a10a75@gmail.com> <64bafd88-7979-92d6-4696-2dd7e594ca7b@deganius.de> <5a04f1b7-64ea-92d6-5def-b3090d9b7017@deganius.de> <20200223133534.GN990035@highrise.localdomain> <20200223161624.GO990035@highrise.localdomain> <6a02e399-32fa-6dc1-3fe6-1e1fca485b80@deganius.de> <90e78402-0ea1-4b63-93cb-db44b93b55b5@deganius.de> Message-ID: Hello, > Am 06.03.20 um 09:35 I wrote: > >> in master there are now gb.test and gb.test.tap. These two play well >> together as far as I can see. But a part of the functionality has >> disappeared and must therefore be restored: > ... >> Who wants to restore it? Should I do it? > > Ok, I will do it now in master. As I now work with the current state of gb.test I see that much more functionality is broken now. We should have fixed that in the gb.test.tap branch before integrating it into master! Why is this broken thing in master now ???? Explanation: I wrote tests to test gb.test itself. Part of these tests now fail and even cannot be debugged any more. In gb.test TestFailures.test has 11 Asserts that have to report "not ok". Currently it crashes immediately. Even if I try to fix it with > Try Object.Call($MyTestModule, Me.name) > If Error Then > Assert.NotOk(True, "Error in " & $MyTestModule.Name & ": " & Error.Text) > Endif in TestCase.Run() only 7 of 11 Asserts report "not ok", the other ones disappear ... but why??? If I want to find that out, I am not able to step through it any more, because the Assert class is not in gb.test any more. Also I cannot see which test is done while stepping through, because the output to stdout is gone. So it is now fundamentally broken! -------------------------------------------------------------- I appreciate it when the functionality is improved, but I get really angry when it gets broken! While I was programming this thing, I used to make a lot of mistakes and wrong decisions, but I fixed that and wrote extra tests to make sure it would not happen again. These tests have to be fulfilled, otherwise it is broken. I stop working on it until these failures are fixed. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From taboege at gmail.com Tue Mar 10 17:34:02 2020 From: taboege at gmail.com (Tobias Boege) Date: Tue, 10 Mar 2020 17:34:02 +0100 Subject: [Gambas-user] gb.test and gb.test.tap In-Reply-To: <00753f28-7d0a-eea0-6377-a8c5116806cd@deganius.de> References: <00753f28-7d0a-eea0-6377-a8c5116806cd@deganius.de> Message-ID: <20200310163402.GA1620@highrise.localdomain> On Fri, 06 Mar 2020, Christof Thalhofer wrote: > Am 06.03.20 um 09:52 schrieb Beno?t Minisini: > > > Is there a reason why 'gb.test.tap' is compiled before 'gb.test'? (see > > 'comp/src/order') > > > > It seems not logical, unless these two components are completely > > independent? > I'm just coming back, slowly, from vacation and a flu. Please bear with me. gb.test.tap is meant to be common code for printing and parsing TAP. It is what gb.test should use so that gb.test.tap is a transitive dependency of every project in "test mode". There will be a global Assert object that the test code and gb.test can use together to print a coherent TAP stream. This is why gb.test.tap must be compiled before gb.test -- it is a dependency. Furthermore, gbt3 and the IDE should use gb.test.tap for parsing TAP output from test programs. > We will have to rethink dependencies ... > (please forget my Flowchart) > > This is what I think now, IMO: > > * gb.test should contain Assert. > > * Assert should be a module not a class > (we do not need an object being Assert). > Ok, why not. > * gb.test.tap should contain gb.test as component > and should provide its Unittest() like that: > > Unittest(Tests as String, Optional Values ... ) > > The variable "Tests" is a comma separated string > of testmodules and testmethods. > > Because: > > Maybe we later want to have another output module for testing instead of > gb.test.tap? Imagine things like that: > > gb.test.db -> writes test output into a database > gb.test.log -> hands over to syslog > gb.test.monitor -> hands over to a monitoring system > gb.test.csv -> writes tests output to a csv file > > Or someone can write it's own testing system. > How does turning around the dependency I described above achieve this? gb.test.tap is a generic component for reading and writing TAP. It is only tangentially related to testing in Gambas. gb.test.tap is an implementation of TAP just like gb.web contains an implementation of JSON. gb.test on the other hand is the testing framework component shipped with Gambas, it should organize, setup and drive the testing. People can write their own testing framework (potentially), but gb.test is the one officially provided by Gambas. If you want gb.test not to output TAP but CSV files, then make gb.test recognize some kind of configuration, maybe via environment variables, to load instead of gb.test.tap the gb.test.csv component. That component must provide an Assert module with the same interface as gb.test.tap. Then that Assert module can do with the assertions whatever it wants. If Assert becomes part of gb.test, how will you handle the conversion of high-level assertions to different output formats? IMO, gb.test may or may not use gb.test.tap, but gb.test.tap should not depend on gb.test. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Mar 10 18:25:13 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 10 Mar 2020 18:25:13 +0100 Subject: [Gambas-user] gb.test and gb.test.tap In-Reply-To: <20200310163402.GA1620@highrise.localdomain> References: <00753f28-7d0a-eea0-6377-a8c5116806cd@deganius.de> <20200310163402.GA1620@highrise.localdomain> Message-ID: <003a73d9-2d6b-9a63-63cb-dbc2bc1fa322@gmail.com> Le 10/03/2020 ? 17:34, Tobias Boege a ?crit?: > On Fri, 06 Mar 2020, Christof Thalhofer wrote: >> Am 06.03.20 um 09:52 schrieb Beno?t Minisini: >> >>> Is there a reason why 'gb.test.tap' is compiled before 'gb.test'? (see >>> 'comp/src/order') >>> >>> It seems not logical, unless these two components are completely >>> independent? >> > > I'm just coming back, slowly, from vacation and a flu. Please bear with me. > > gb.test.tap is meant to be common code for printing and parsing TAP. It is > what gb.test should use so that gb.test.tap is a transitive dependency of > every project in "test mode". There will be a global Assert object that the > test code and gb.test can use together to print a coherent TAP stream. > This is why gb.test.tap must be compiled before gb.test -- it is a dependency. Ah OK, I thought gb.test.tap was just for parsing TAP, not generating it. > > Furthermore, gbt3 and the IDE should use gb.test.tap for parsing TAP output > from test programs. OK. I still don't really understand why there should be a 'gbt3' program. > >> We will have to rethink dependencies ... >> (please forget my Flowchart) >> >> This is what I think now, IMO: >> >> * gb.test should contain Assert. >> >> * Assert should be a module not a class >> (we do not need an object being Assert). >> > > Ok, why not. > >> * gb.test.tap should contain gb.test as component >> and should provide its Unittest() like that: >> >> Unittest(Tests as String, Optional Values ... ) >> >> The variable "Tests" is a comma separated string >> of testmodules and testmethods. >> >> Because: >> >> Maybe we later want to have another output module for testing instead of >> gb.test.tap? Imagine things like that: >> >> gb.test.db -> writes test output into a database >> gb.test.log -> hands over to syslog >> gb.test.monitor -> hands over to a monitoring system >> gb.test.csv -> writes tests output to a csv file >> >> Or someone can write it's own testing system. >> > > How does turning around the dependency I described above achieve this? > gb.test.tap is a generic component for reading and writing TAP. It is > only tangentially related to testing in Gambas. gb.test.tap is an > implementation of TAP just like gb.web contains an implementation > of JSON. gb.test on the other hand is the testing framework component > shipped with Gambas, it should organize, setup and drive the testing. > People can write their own testing framework (potentially), but gb.test > is the one officially provided by Gambas. > > If you want gb.test not to output TAP but CSV files, then make gb.test > recognize some kind of configuration, maybe via environment variables, > to load instead of gb.test.tap the gb.test.csv component. That component > must provide an Assert module with the same interface as gb.test.tap. > Then that Assert module can do with the assertions whatever it wants. > If Assert becomes part of gb.test, how will you handle the conversion > of high-level assertions to different output formats? > > IMO, gb.test may or may not use gb.test.tap, but gb.test.tap should not > depend on gb.test. > > Regards, > Tobias All that seems logical to me. 'gb.test' does the testing, and pass the result of each test to 'gb.test.tap' that prints it in TAP format. You must agree on the interface the Assert class, and be sure that it is somewhat complete. But I have a few remarks about what I see at the moment: 1) ASSERT is already the name of an instruction. But it is not a big deal, as there is no ambiguity between the instruction and the class. 2) When writing my test modules, I should only call methods in the 'gb.test' component. In other words, I suggest having the Assert class in 'gb.test', and overriding it in 'gb.test.tap'. The Assert class in 'gb.test' could emit nothing, or just an internal format for debugging purpose, or detect that no 'gb.test.*' module has been loaded and abort. The Assert class in 'gb.test.tap' will do the real formatting job. Note that the inheritance thing works only if Assert is a dynamic class with "CREATE STATIC" option, and all its methods being dynamic. Assert methods in 'gb.test' could provide all the common stuff so that there is just printing and formatting in 'gb.test.tap'. 3) Could we rename "UnitTest" into "Test" directly? After all, I may want to do some tests that are not "unit tests". Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Tue Mar 10 18:36:37 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 10 Mar 2020 18:36:37 +0100 Subject: [Gambas-user] TreeView scrolling Message-ID: <99098118-124b-fe62-c2a2-df248081b007@osnanet.de> In a TreeView, there should be the possibility to move the contents so it is completely visible. At least it seems so, there is ScrollX, Scroll(X, Y) etc. The values are integers, but what are the units? Is it screen pixels? I tried a bit to compute with ScrollWidth, but the values don't seem to match. Or is it meant to do something completely different? Thanks for any help! Regards Rolf From chrisml at deganius.de Tue Mar 10 23:21:11 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 10 Mar 2020 23:21:11 +0100 Subject: [Gambas-user] gb.test and gb.test.tap In-Reply-To: <20200310163402.GA1620@highrise.localdomain> References: <00753f28-7d0a-eea0-6377-a8c5116806cd@deganius.de> <20200310163402.GA1620@highrise.localdomain> Message-ID: <50f84002-43e4-2ebe-7eb1-52cfd33c1cf9@deganius.de> Hi Tobi, Am 10.03.20 um 17:34 schrieb Tobias Boege: > I'm just coming back, slowly, from vacation and a flu. Please bear with me. Sorry for my rant this morning. I would have preferred if we first had got the job done in the branch gb.test.tap before integrating it into master. > gb.test.tap is meant to be common code for printing and parsing TAP. It is > what gb.test should use so that gb.test.tap is a transitive dependency of > every project in "test mode". There will be a global Assert object that the > test code and gb.test can use together to print a coherent TAP stream. > This is why gb.test.tap must be compiled before gb.test -- it is a dependency. Assert should not be in gb.test.tap, because if one wants to create another output component (gb.test.log, gb.test.db ...) all Assertions would have to be duplicated (and tested!!!) there, which makes no sense IMO. Look: If gb.test.tap or gb.test.db would have an interface called "Ok" which is called by Assert.xyz, that would be enough. This Ok(Result as Boolean, Message as String) can do anything, count tests, print to Stdout or store into a Db, what you want... >> * gb.test should contain Assert. >> >> * Assert should be a module not a class >> (we do not need an object being Assert). > > Ok, why not. Ok, ahm ... what? A few lines later you write the opposite. * >> * gb.test.tap should contain gb.test as component >> and should provide its Unittest() like that: >> >> Unittest(Tests as String, Optional Values ... ) >> >> The variable "Tests" is a comma separated string >> of testmodules and testmethods. >> >> Because: >> >> Maybe we later want to have another output module for testing instead of >> gb.test.tap? Imagine things like that: >> >> gb.test.db -> writes test output into a database >> gb.test.log -> hands over to syslog >> gb.test.monitor -> hands over to a monitoring system >> gb.test.csv -> writes tests output to a csv file >> >> Or someone can write it's own testing system. >> > > How does turning around the dependency I described above achieve this? > gb.test.tap is a generic component for reading and writing TAP. It is > only tangentially related to testing in Gambas. gb.test.tap is an > implementation of TAP just like gb.web contains an implementation > of JSON. gb.test on the other hand is the testing framework component > shipped with Gambas, it should organize, setup and drive the testing. > People can write their own testing framework (potentially), but gb.test > is the one officially provided by Gambas. > > If you want gb.test not to output TAP but CSV files, then make gb.test > recognize some kind of configuration, maybe via environment variables, > to load instead of gb.test.tap the gb.test.csv component. That component > must provide an Assert module with the same interface as gb.test.tap. * At this point I disagree. > Then that Assert module can do with the assertions whatever it wants. > If Assert becomes part of gb.test, how will you handle the conversion > of high-level assertions to different output formats? What are "high-level assertions"? Can you give me an example? If someone wants to write own assertions elsewhere Assert in gb.test can easily been extended by creating an own Assert class which automatically inherits an existing Assert in gb.test. > IMO, gb.test may or may not use gb.test.tap, but gb.test.tap should not > depend on gb.test. I agree. Hmm ok, but please write a piece of code that does what the old gb.test did: * Test itself and let us step through the assertions while debugging it. This is important! Assertions can be buggy, they look simple but it is a testing system that tests a lot of other projects in future so it has to be rock stable! * Output the result of a single assertion immediately, not after all tests are done. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed Mar 11 00:12:16 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 11 Mar 2020 00:12:16 +0100 Subject: [Gambas-user] gb.test and gb.test.tap In-Reply-To: <003a73d9-2d6b-9a63-63cb-dbc2bc1fa322@gmail.com> References: <00753f28-7d0a-eea0-6377-a8c5116806cd@deganius.de> <20200310163402.GA1620@highrise.localdomain> <003a73d9-2d6b-9a63-63cb-dbc2bc1fa322@gmail.com> Message-ID: <94d18027-3199-d638-9cde-1332c4e9f69f@deganius.de> Am 10.03.20 um 18:25 schrieb Beno?t Minisini: >> Furthermore, gbt3 and the IDE should use gb.test.tap for parsing TAP output >> from test programs. > > OK. I still don't really understand why there should be a 'gbt3' program. The idea of gbt3 was a program that is able to test a project on the commandline: gbt3 "testmodule1,testmodule2.testmethod3" ./myproject It can be called by the IDE but also by other programs (or by hand). I would use it in my deployment scripts which should stop if testing reported not ok. > All that seems logical to me. > > 'gb.test' does the testing, and pass the result of each test to > 'gb.test.tap' that prints it in TAP format. Yes this is what I think also. > You must agree on the interface the Assert class, and be sure that it is > somewhat complete. Disagree in parts, but later ... > But I have a few remarks about what I see at the moment: > > 1) ASSERT is already the name of an instruction. But it is not a big > deal, as there is no ambiguity between the instruction and the class. ASSERT was the result of my request in the bugtracker. It is a standard in programming languages and I also wanted to claim the name. ;-) I think we can handle that well in the documentation. > 2) When writing my test modules, I should only call methods in the > 'gb.test' component. In other words, I suggest having the Assert class > in 'gb.test', and overriding it in 'gb.test.tap'. Agree, I think the same but I would like to have as much assertions in gb.test as possible. So they are standard. Assertions have to be tested well, which is what gb.test itself did until aa6196323. Unfortunately it is broken since then and I want that functionality back. > The Assert class in 'gb.test' could emit nothing, or just an internal > format for debugging purpose, or detect that no 'gb.test.*' module has > been loaded and abort. I think in gb.test there should be all standard assertions as they are now in gb.test.tap so they will not have to be rewritten over and over in future gb.test.log, gb.test.db and so on. > The Assert class in 'gb.test.tap' will do the real formatting job. I disagree that the Assert class playes the role of an interface and it should also not do any formatting. If there is an interface in gb.test.tap for example called "Ok(Result as Boolean, Message as String)" or "Track(Result as Boolean, Message as String)" or "Report(Result as Boolean, Message as String)" ... please name it ... that would be enough, IMO. This interface is mandatory in every gb.test.yxz. This would make it much easier to write an alternative output component for gb.test. > Note that the inheritance thing works only if Assert is a dynamic class > with "CREATE STATIC" option, and all its methods being dynamic. Ah ok. > Assert methods in 'gb.test' could provide all the common stuff so that > there is just printing and formatting in 'gb.test.tap'. Ok. I see, you think the same. > 3) Could we rename "UnitTest" into "Test" directly? After all, I may > want to do some tests that are not "unit tests". Yes, for sure. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed Mar 11 08:30:07 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 11 Mar 2020 08:30:07 +0100 Subject: [Gambas-user] gb.test and gb.test.tap In-Reply-To: <50f84002-43e4-2ebe-7eb1-52cfd33c1cf9@deganius.de> References: <00753f28-7d0a-eea0-6377-a8c5116806cd@deganius.de> <20200310163402.GA1620@highrise.localdomain> <50f84002-43e4-2ebe-7eb1-52cfd33c1cf9@deganius.de> Message-ID: Am 10.03.20 um 23:21 schrieb Christof Thalhofer: >> IMO, gb.test may or may not use gb.test.tap, but gb.test.tap should not >> depend on gb.test. > > I agree. > > Hmm ok, but please write a piece of code that does what the old gb.test did: > > * Test itself and let us step through the assertions while debugging it. > This is important! Assertions can be buggy, they look simple but it is a > testing system that tests a lot of other projects in future so it has to > be rock stable! > > * Output the result of a single assertion immediately, not after all > tests are done. I forgot: * Report all 11 assertions in TestFailures as "not ok". Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Wed Mar 11 17:25:19 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 11 Mar 2020 12:25:19 -0400 Subject: [Gambas-user] TreeView scrolling In-Reply-To: <99098118-124b-fe62-c2a2-df248081b007@osnanet.de> References: <99098118-124b-fe62-c2a2-df248081b007@osnanet.de> Message-ID: <87ee2c74-4111-aef2-46db-df077d5a5fe4@gmail.com> On 3/10/20 1:36 PM, Rolf-Werner Eilert wrote: > In a TreeView, there should be the possibility to move the contents so it is completely visible. At least it seems so, there is > ScrollX, Scroll(X, Y) etc. > > The values are integers, but what are the units? Is it screen pixels? I tried a bit to compute with ScrollWidth, but the values > don't seem to match. > > Or is it meant to do something completely different? > > Thanks for any help! > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Perhaps http://gambaswiki.org/wiki/comp/gb.qt4/_treeview_item could help you. I haven't tried it, but I think you might be able to do something like: TreeView1.Scroll(TreeView1.Item.X, TreeView1.Item.Y) -- Lee From brian at westwoodsvcs.com Wed Mar 11 23:25:48 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 11 Mar 2020 15:25:48 -0700 (PDT) Subject: [Gambas-user] Is it possible to unload and reload components and classes Message-ID: <1535663435.15082.1583965548662.JavaMail.zimbra@westwoodsvcs.com> Is it possible to unload a class/Component and reload(with fixes) it without restarting the app. I see there is an unload inside component.c but it's not public. if there are no references to the class of course? Can anyone help me understand this. Please. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Mar 12 00:40:12 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 12 Mar 2020 00:40:12 +0100 Subject: [Gambas-user] Is it possible to unload and reload components and classes In-Reply-To: <1535663435.15082.1583965548662.JavaMail.zimbra@westwoodsvcs.com> References: <1535663435.15082.1583965548662.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 11/03/2020 ? 23:25, Brian G a ?crit?: > Is it possible to unload a class/Component? and reload(with fixes) it > without restarting the app. > > I see there is an unload inside component.c but it's not public. > > if there are no references to the class of course? > > Can anyone help me understand this. Please. > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It's not possible to unload a component. Because, for example, another component loaded after may have overridden a class of that component. But there are other reasons. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Thu Mar 12 00:46:16 2020 From: brian at westwoodsvcs.com (brian) Date: Wed, 11 Mar 2020 23:46:16 +0000 (UTC) Subject: [Gambas-user] Is it possible to unload and reload components and classes In-Reply-To: References: <1535663435.15082.1583965548662.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <701B579B57201662.6ad9920a-533e-41d4-adc5-36df671b8a08@mail.outlook.com> Thanks Get Outlook for Android On Wed, Mar 11, 2020 at 4:41 PM -0700, "Beno?t Minisini" wrote: Le 11/03/2020 ? 23:25, Brian G a ?crit?: > Is it possible to unload a class/Component? and reload(with fixes) it > without restarting the app. > > I see there is an unload inside component.c but it's not public. > > if there are no references to the class of course? > > Can anyone help me understand this. Please. > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It's not possible to unload a component. Because, for example, another component loaded after may have overridden a class of that component. But there are other reasons. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Mar 13 10:28:38 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 13 Mar 2020 10:28:38 +0100 Subject: [Gambas-user] Menu popup MenuButton in Master Message-ID: Hello people, one question, but does the menubutton popup menu work for you? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Mar 13 10:36:57 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 13 Mar 2020 10:36:57 +0100 Subject: [Gambas-user] Menu popup MenuButton in Master In-Reply-To: References: Message-ID: <923ae1a5-1532-2e15-b69a-40449fc5940c@gmail.com> Le 13/03/2020 ? 10:28, Gianluigi a ?crit?: > Hello people, > one question, but does the menubutton popup menu work for you? > > Regards > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > What do you mean exactly? It's used everywhere in the IDE. -- Beno?t Minisini From bagonergi at gmail.com Fri Mar 13 11:08:49 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 13 Mar 2020 11:08:49 +0100 Subject: [Gambas-user] Menu popup MenuButton in Master In-Reply-To: <923ae1a5-1532-2e15-b69a-40449fc5940c@gmail.com> References: <923ae1a5-1532-2e15-b69a-40449fc5940c@gmail.com> Message-ID: Il giorno ven 13 mar 2020 alle ore 10:37 Beno?t Minisini ha scritto: > Le 13/03/2020 ? 10:28, Gianluigi a ?crit : > > Hello people, > > one question, but does the menubutton popup menu work for you? > > > > Regards > > Gianluigi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > What do you mean exactly? It's used everywhere in the IDE. > > -- > Beno?t Minisini > > If, with the IDE editor I create a menu with submenus, then from the PopupMenu property I get multiple menu names and they don't work. It doesn't even work if I create a simple menu. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Mar 13 17:29:09 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 13 Mar 2020 17:29:09 +0100 Subject: [Gambas-user] TreeView scrolling In-Reply-To: <87ee2c74-4111-aef2-46db-df077d5a5fe4@gmail.com> References: <99098118-124b-fe62-c2a2-df248081b007@osnanet.de> <87ee2c74-4111-aef2-46db-df077d5a5fe4@gmail.com> Message-ID: Use TreeView1["MyKey].EnsureVisible Regards, From gambas.fr at gmail.com Fri Mar 13 17:46:28 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 13 Mar 2020 17:46:28 +0100 Subject: [Gambas-user] Menu popup MenuButton in Master In-Reply-To: References: <923ae1a5-1532-2e15-b69a-40449fc5940c@gmail.com> Message-ID: It's the same for me since many time :-/ If I set the name by code it work. Le ven. 13 mars 2020 ? 11:10, Gianluigi a ?crit : > > > > Il giorno ven 13 mar 2020 alle ore 10:37 Beno?t Minisini ha scritto: >> >> Le 13/03/2020 ? 10:28, Gianluigi a ?crit : >> > Hello people, >> > one question, but does the menubutton popup menu work for you? >> > >> > Regards >> > Gianluigi >> > >> > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >> >> What do you mean exactly? It's used everywhere in the IDE. >> >> -- >> Beno?t Minisini >> > > If, with the IDE editor I create a menu with submenus, then from the PopupMenu property I get multiple menu names and they don't work. > It doesn't even work if I create a simple menu. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard Gambas Basic : http://gambas.sf.net GambasForge : http://www.gambasforge.org NEW discourse Gambas Forum : https://gambas.discourse.group/ From bagonergi at gmail.com Fri Mar 13 18:21:24 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 13 Mar 2020 18:21:24 +0100 Subject: [Gambas-user] Menu popup MenuButton in Master In-Reply-To: References: <923ae1a5-1532-2e15-b69a-40449fc5940c@gmail.com> Message-ID: I apologize I have been inaccurate: the menus all work, but if the menu contains submenus, the PopupMenu property displays multiple names. Regards Gianluigi Il giorno ven 13 mar 2020 alle ore 17:47 Fabien Bodard ha scritto: > It's the same for me since many time :-/ > > If I set the name by code it work. > > Le ven. 13 mars 2020 ? 11:10, Gianluigi a ?crit : > > > > > > > > Il giorno ven 13 mar 2020 alle ore 10:37 Beno?t Minisini < > g4mba5 at gmail.com> ha scritto: > >> > >> Le 13/03/2020 ? 10:28, Gianluigi a ?crit : > >> > Hello people, > >> > one question, but does the menubutton popup menu work for you? > >> > > >> > Regards > >> > Gianluigi > >> > > >> > > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > > >> > >> What do you mean exactly? It's used everywhere in the IDE. > >> > >> -- > >> Beno?t Minisini > >> > > > > If, with the IDE editor I create a menu with submenus, then from the > PopupMenu property I get multiple menu names and they don't work. > > It doesn't even work if I create a simple menu. > > > > Regards > > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard > > Gambas Basic : http://gambas.sf.net > GambasForge : http://www.gambasforge.org > NEW discourse Gambas Forum : https://gambas.discourse.group/ > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Mar 14 15:18:20 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 14 Mar 2020 15:18:20 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> Message-ID: Il giorno lun 9 mar 2020 alle ore 23:15 Gianluigi ha scritto: > > > Il giorno lun 9 mar 2020 alle ore 22:42 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 09.03.20 um 19:11 schrieb Gianluigi: >> >> > it didn't go well. >> >> No. >> >> > I think the problem starts from Master who doesn't advance: >> > ----------------------------------------------------------- >> > $ git status >> >> Allright, that was, what we have done. We fixed >> italian-traslations which is now equivalent with upstream/master. >> ... >> > italian-traslation is about the present time, while the master is one >> > year behind. >> >> Because we didn't pull the changes into master. >> ... >> > > git pull upstream master it worked, see gitk image: > https://paste.c-net.org/MementoDoesn > > Unfortunately on: > $ git merge italian-traslation > merge: italian-traslation - not something we can merge > > I suspend and go to sleep, if you think, we update tomorrow. > > Thank you and good night > Gianluigi > Hi Christof, I hope you still have the strength to follow my awkward steps in Git. These are my branches: italian-traslations * master this is the master status: On branch master Your branch is ahead of 'origin/master' by 621 commits. (use "git push" to publish your local commits) nothing to commit, working tree clean and this is the status of italian-traslations: On branch italian-traslations Your branch is up to date with 'origin/italian-traslations'. nothing to commit, working tree clean If I understand correctly, I could only work with the master. To do this, I simply write to terminal: git branch -d italian-traslations Or is the matter more complex? If I am alone with master, I just need to import the latest translations (saved in backup) and do: add, commit and push then ask for merge, correct? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Mar 14 19:14:39 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 14 Mar 2020 11:14:39 -0700 (PDT) Subject: [Gambas-user] Trouble passing struct to my clib Message-ID: <1371826733.15646.1584209679478.JavaMail.zimbra@westwoodsvcs.com> I am trying to pass a structure to my clib Reading the documentation, struct is like a global class but an embedded struct is like an unpacked c struct access via a virtual object. You can create embedded structure arrays where the data is created directly in the array, statically My understanding then is as follows struct xx a as integer end struct dim y[1] as xx should create an array where the structure is embedded already allocated. Correct? but y[0].a = 1 yields an error I must do y[0] = new xx ... ummm maybe I don't understand embedded correctly as the doc says that Gambas creates a virtual object to work with the data. Then I am having a problem understanding how to actually pass the address of y[0] or y for that matter to my c function I would love if someone could point me in the correct direction. Please Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Mar 14 19:42:53 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 14 Mar 2020 11:42:53 -0700 (PDT) Subject: [Gambas-user] Trouble passing struct to my clib In-Reply-To: <1371826733.15646.1584209679478.JavaMail.zimbra@westwoodsvcs.com> References: <1371826733.15646.1584209679478.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1310225439.15676.1584211373703.JavaMail.zimbra@westwoodsvcs.com> Well I did find an example, An I guess it's so simple....... thanks all. Thank You Brian G From: "Brian" To: "Gambas mailing list" Sent: Saturday, March 14, 2020 11:14:39 AM Subject: [Gambas-user] Trouble passing struct to my clib I am trying to pass a structure to my clib Reading the documentation, struct is like a global class but an embedded struct is like an unpacked c struct access via a virtual object. You can create embedded structure arrays where the data is created directly in the array, statically My understanding then is as follows struct xx a as integer end struct dim y[1] as xx should create an array where the structure is embedded already allocated. Correct? but y[0].a = 1 yields an error I must do y[0] = new xx ... ummm maybe I don't understand embedded correctly as the doc says that Gambas creates a virtual object to work with the data. Then I am having a problem understanding how to actually pass the address of y[0] or y for that matter to my c function I would love if someone could point me in the correct direction. Please Thank You Brian G ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Mar 14 20:11:41 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 14 Mar 2020 20:11:41 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> Message-ID: <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> Am 14.03.20 um 15:18 schrieb Gianluigi: > I hope you still have the strength to follow my awkward steps in Git. For sure! > These are my branches: > ? italian-traslations > * master > > this is the master status: > On branch master > Your branch is ahead of 'origin/master' by 621 commits. > ? (use "git push" to publish your local commits) > nothing to commit, working tree clean Look, it says, what should be done. So please do a git push. > and this is the status of italian-traslations: > On branch italian-traslations > Your branch is up to date with 'origin/italian-traslations'. > nothing to commit, working tree clean > > If I understand correctly, I could only work with the master. You can, if you want to. I would do that, only if you want to try something new this would be a reason to create another branch. > To do this, I simply write to terminal: > > git branch -d italian-traslations Yes. If there are commits in there which would be lost, it would complain about that. So just do it and watch what happens. > Or is the matter more complex? No. > If I am alone with master, I just need to import the latest translations > (saved in backup) and do: > add, commit and push > > then ask for merge, correct? Yes. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sat Mar 14 22:34:18 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 14 Mar 2020 22:34:18 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> Message-ID: Il giorno sab 14 mar 2020 alle ore 20:12 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 14.03.20 um 15:18 schrieb Gianluigi: > > > I hope you still have the strength to follow my awkward steps in Git. > > For sure! > > > These are my branches: > > italian-traslations > > * master > > > > this is the master status: > > On branch master > > Your branch is ahead of 'origin/master' by 621 commits. > > (use "git push" to publish your local commits) > > nothing to commit, working tree clean > > Look, it says, what should be done. > So please do a git push. > > > and this is the status of italian-traslations: > > On branch italian-traslations > > Your branch is up to date with 'origin/italian-traslations'. > > nothing to commit, working tree clean > > > > If I understand correctly, I could only work with the master. > > You can, if you want to. I would do that, only if you want to try > something new this would be a reason to create another branch. > > > To do this, I simply write to terminal: > > > > git branch -d italian-traslations > > Yes. If there are commits in there which would be lost, it would > complain about that. So just do it and watch what happens. > > > Or is the matter more complex? > > No. > > > If I am alone with master, I just need to import the latest translations > > (saved in backup) and do: > > add, commit and push > > > > then ask for merge, correct? > > Yes. > Hi Christof, it seems to have worked (*), except that when I get to the merge GitLab replies: Sorry, your filter produced no results ( https://paste.c-net.org/TeamworkLifetime ) Can you help me fix the filter? I've already tried it to no avail Regards Gianluigi (*) deleting branch 'italian-traslations' that has been merged to 'refs/remotes/origin/italian-traslations', but not yet merged to HEAD. Ramo italian-traslations eliminato (era a40d381d5). And: $ git push Counting objects: 101, done. Delta compression using up to 8 threads. Compressing objects: 100% (100/100), done. Writing objects: 100% (101/101), 17.22 KiB | 2.46 MiB/s, done. Total 101 (delta 81), reused 0 (delta 0) remote: Resolving deltas: 100% (81/81), completed with 43 local objects. To gitlab.com:GianluigiOr/gambas.git 516de91f9..401ce521e master -> master -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Mar 15 11:08:50 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 15 Mar 2020 11:08:50 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <2e5caea9-da8a-903a-2483-d8723d315d96@deganius.de> <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> Message-ID: Il giorno sab 14 mar 2020 alle ore 22:34 Gianluigi ha scritto: > > > Il giorno sab 14 mar 2020 alle ore 20:12 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 14.03.20 um 15:18 schrieb Gianluigi: >> >> > I hope you still have the strength to follow my awkward steps in Git. >> >> For sure! >> >> > These are my branches: >> > italian-traslations >> > * master >> > >> > this is the master status: >> > On branch master >> > Your branch is ahead of 'origin/master' by 621 commits. >> > (use "git push" to publish your local commits) >> > nothing to commit, working tree clean >> >> Look, it says, what should be done. >> So please do a git push. >> >> > and this is the status of italian-traslations: >> > On branch italian-traslations >> > Your branch is up to date with 'origin/italian-traslations'. >> > nothing to commit, working tree clean >> > >> > If I understand correctly, I could only work with the master. >> >> You can, if you want to. I would do that, only if you want to try >> something new this would be a reason to create another branch. >> >> > To do this, I simply write to terminal: >> > >> > git branch -d italian-traslations >> >> Yes. If there are commits in there which would be lost, it would >> complain about that. So just do it and watch what happens. >> >> > Or is the matter more complex? >> >> No. >> >> > If I am alone with master, I just need to import the latest translations >> > (saved in backup) and do: >> > add, commit and push >> > >> > then ask for merge, correct? >> >> Yes. >> > > Hi Christof, > it seems to have worked (*), except that when I get to the merge GitLab > replies: > Sorry, your filter produced no results ( > https://paste.c-net.org/TeamworkLifetime ) > Can you help me fix the filter? > I've already tried it to no avail > > Regards > Gianluigi > > (*) deleting branch 'italian-traslations' that has been merged to > 'refs/remotes/origin/italian-traslations', but not yet merged to > HEAD. > Ramo italian-traslations eliminato (era a40d381d5). > > And: > > $ git push > Counting objects: 101, done. > Delta compression using up to 8 threads. > Compressing objects: 100% (100/100), done. > Writing objects: 100% (101/101), 17.22 KiB | 2.46 MiB/s, done. > Total 101 (delta 81), reused 0 (delta 0) > remote: Resolving deltas: 100% (81/81), completed with 43 local objects. > To gitlab.com:GianluigiOr/gambas.git > 516de91f9..401ce521e master -> master > > Hi Christof, New merge request: https://paste.c-net.org/PowwowVoice It seems that to make a merge request you need to be on different branches. I gave these commands: $ git checkout -B italian-translations Switched to a new branch 'italian-translations' $ git status On branch italian-translations nothing to commit, working tree clean See gitk: https://paste.c-net.org/VinceyPinkie Now I should pass the translations that I have on master to the italian-translations branch, can I make a cherry-pick on master? $ git cherry-pick master ??? otherwise? I await your instructions :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Mar 15 12:25:40 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 15 Mar 2020 12:25:40 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> Message-ID: <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> Am 15.03.20 um 11:08 schrieb Gianluigi: >... Please quote only relevant things, not all. I can see all earlier mails. Thank you! > New merge request: https://paste.c-net.org/PowwowVoice > It seems that to make a merge request you need to be on different branches. You have to create a merge request in https://gitlab.com/gambas not in https://gitlab.com/GianluigiOr/gambas But please read until end. > I gave these commands: > > $ git checkout -B italian-translations > Switched to a new branch 'italian-translations' > > $ git status > On branch italian-translations > nothing to commit, working tree clean > > See gitk: https://paste.c-net.org/VinceyPinkie > > Now I should pass the translations that I have on master to the > italian-translations branch, can I make a cherry-pick on master? > > $ git cherry-pick master ??? > Ok, I cannot see the working dir on your computer, but only the things on Gitlab. Your branch master there: https://gitlab.com/GianluigiOr/gambas/-/commits/master Is ahead of https://gitlab.com/gambas/gambas with one commit. This is great. So now you can in Gitlab go to the Gambas repository: https://gitlab.com/gambas/gambas And there create the merge request to merge the single commit 401ce521e7b5c4b18a85c9af8e47a85d0beb6cd7 (in short: 401ce521) which is in https://gitlab.com/GianluigiOr/gambas/-/commits/master so that Beno?t can merge it. Ok, please do it. ------------------------------------------------------------------- After that (but can also be done now): The branches italian-translations and italian-traslations are not needed any more. I would delete them and continue work on master on the local computer. This master on the local computer has to be rebased (or merged) regularly from upstream/master. If you do further changes commit them and then push them to origin/master which is your personal fork of Gambas on Gitlab. And then you can create further merge requests to integrate your work in https://gitlab.com/gambas/gambas Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sun Mar 15 14:31:15 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 15 Mar 2020 14:31:15 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> References: <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> Message-ID: Il giorno dom 15 mar 2020 alle ore 12:26 Christof Thalhofer < chrisml at deganius.de> ha scritto: > ... > > So now you can in Gitlab go to the Gambas repository: > https://gitlab.com/gambas/gambas > > And there create the merge request to merge the single commit > 401ce521e7b5c4b18a85c9af8e47a85d0beb6cd7 (in short: 401ce521) > which is in > https://gitlab.com/GianluigiOr/gambas/-/commits/master > so that Beno?t can merge it. > > Ok, please do it. > > But I did this, I went there and what I see is not what I saw before (a blue button for the merge). The button is gone and if I go for a new merge I get what I showed you in the images. Isn't there a way to merge from a terminal? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Mar 15 14:59:18 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 15 Mar 2020 14:59:18 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <1d025a31-9bda-5e66-2c77-b20e3dd558f3@deganius.de> <74795005-7b2f-5104-ee1c-70eeee762583@deganius.de> <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> Message-ID: The fact that I can't set the target branch probably stems from my initial deletion of the fork. I'm afraid that if Benoit doesn't intervene, I can't do anything from here. See image: https://paste.c-net.org/AppeaseTiptoe Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Mar 15 16:35:41 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 15 Mar 2020 16:35:41 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> Message-ID: Am 15.03.20 um 14:59 schrieb Gianluigi: > The fact that I can't set the target branch probably stems from my > initial deletion of the fork. Yes, your Gambas repository on Gitlab is not a fork any more. Here are the forks of Gambas: https://gitlab.com/gambas/gambas/-/forks So Gitlab cannot see the connection any more. > I'm afraid that if Benoit doesn't intervene, I can't do anything from here. No, Beno?t has not to do anything with it. So .. the failure is in your [Gitlab-]project. I am not sure how to restore the connection to the upstream. Maybe you could delete it and fork new, I think this would be the quickest. I am now in a hurry, so I am not able to do any recherche until tomorrow afternoon. Please try to ask Google or the Gitlab help how to restore a fork connection in Gitlab. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sun Mar 15 18:12:43 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 15 Mar 2020 18:12:43 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> Message-ID: Il giorno dom 15 mar 2020 alle ore 16:36 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Maybe you could delete it and fork new, I think this would be the > quickest. I am now in a hurry, so I am not able to do any recherche > until tomorrow afternoon. Please try to ask Google or the Gitlab help > how to restore a fork connection in Gitlab. > I told you I have the certificate! Just read this: https://docs.gitlab.com/ee/user/project/settings/index.html#removing-a-fork-relationship Now how do I create a new fork since it seems impossible to restore. It also seems impossible to delete a project and then fork again, see image: https://paste.c-net.org/SnottySweets So does GitLab discriminate against idiots? It should be reported! Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Mar 16 12:27:37 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 16 Mar 2020 12:27:37 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> Message-ID: Il giorno dom 15 mar 2020 alle ore 16:36 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Please try to ask Google or the Gitlab help > how to restore a fork connection in Gitlab. > I just opened an issue on GitLab that describes the problem Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 16 16:15:05 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 16 Mar 2020 16:15:05 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> Message-ID: <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> Hi, Am 15.03.20 um 18:12 schrieb Gianluigi: > Il giorno dom 15 mar 2020 alle ore 16:36 Christof Thalhofer > > ha scritto: > > Maybe you could delete it and fork new, I think this would be the > quickest. I am now in a hurry, so I am not able to do any recherche > until tomorrow afternoon. Please try to ask Google or the Gitlab help > how to restore a fork connection in Gitlab. > > > I told you I have the certificate! What do you mean? I do not understand. > Just read this: > https://docs.gitlab.com/ee/user/project/settings/index.html#removing-a-fork-relationship > > Now how do I create a new fork since it seems impossible to restore. > It also seems impossible to delete a project and then fork again, see image: > https://paste.c-net.org/SnottySweets > > So does GitLab discriminate against idiots? It should be reported! No, no, no, you're on an wrong way. If you read the text carefully, you will see that it says nothing of what you are afraid of. I also had a fork and have deleted it a while ago. Now ? yesterday evening ? I tried to create a new one, just to test. No problem. If you are not able to recreate the connection you can delete the fork and later create a new one. Just try it. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bagonergi at gmail.com Mon Mar 16 18:38:49 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 16 Mar 2020 18:38:49 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> References: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> Message-ID: Il giorno lun 16 mar 2020 alle ore 16:16 Christof Thalhofer < chrisml at deganius.de> ha scritto: > > > I told you I have the certificate! > > What do you mean? I do not understand. > I was referring to what was said in the previous emails, the certificate of idiot :-) > ... > > So does GitLab discriminate against idiots? It should be reported! > > No, no, no, you're on an wrong way. If you read the text carefully, you > will see that it says nothing of what you are afraid of. > > I also had a fork and have deleted it a while ago. Now ? yesterday > evening ? I tried to create a new one, just to test. No problem. > > If you are not able to recreate the connection you can delete the fork > and later create a new one. Just try it. > You say so but I have tried several times to restore the fork and GitLab replies that it already exists. You see fork-1 e fork-2: https://paste.c-net.org/TwilightDeclare https://paste.c-net.org/WiselyHandout Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Mar 16 19:26:35 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 16 Mar 2020 19:26:35 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> References: <16b8053f-c164-a28e-5c9e-ba584eb493b8@gmail.com> <144efba7-4b3f-52d9-29f5-01784ffb6f77@deganius.de> <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> Message-ID: Il giorno lun 16 mar 2020 alle ore 16:16 Christof Thalhofer < chrisml at deganius.de> ha scritto: > > I also had a fork and have deleted it a while ago. Now ? yesterday > evening ? I tried to create a new one, just to test. No problem. > I had done this too (about a year ago) and it worked, but now things seem to have changed. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From philippe.valarcher at free.fr Mon Mar 16 20:44:05 2020 From: philippe.valarcher at free.fr (Philippe Valarcher) Date: Mon, 16 Mar 2020 20:44:05 +0100 Subject: [Gambas-user] segmentation error Message-ID: <0c08185aeba0273ebcc1e0ab67ed7002106f2edc.camel@free.fr> Hello, I was testing wayland plasma (up to date) and I wanted to launch the gambas IDE, nothing. So I redo the manipulation through a terminal: "segmentation error". This is just for information because the previous version of the IDE (3.14) worked under wayland. Right now wayland is not yet finished but not very far from the exit of the tunnel and it would be too silly to miss the boat for our favorite IDE. Another info, the programs produced by the IDE, they run under wayland. I'm not going to bother prog with that, it was little cooking. -- Cordialement, Philippe Valarcher. philippe.valarcher at free.fr UNUS EX ALTERA GNU/Linux KDE NEON User Edition 64 Bits Lenovo T410 ThinkPad Intel(R) i5 CPU M 560 @ 2.67Ghz Bonjour, je testais plasma wayland (? jour) et j'ai voulu lancer l'IDE de gambas, rien. Donc je refais la manipulation ? travers un terminal : "erreur de segmentation". Ceci juste pour information car la version pr?c?dente de l'IDE (3.14) fonctionnait sous wayland. Bon pour l'instant wayland n'est pas encore abouti mais pas tr?s loin de la sortie du tunnel et ce serait trop b?te de manquer le coche pour notre IDE favori. Autre info, les programmes produit par l'IDE, eux tournent sous wayland. Je ne vais pas emb?ter les prog avec ?a, c'?tait de la petite cuisine. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: UNUS EX ALTERA.png Type: image/png Size: 19385 bytes Desc: not available URL: From g4mba5 at gmail.com Mon Mar 16 20:49:35 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 16 Mar 2020 20:49:35 +0100 Subject: [Gambas-user] segmentation error In-Reply-To: <0c08185aeba0273ebcc1e0ab67ed7002106f2edc.camel@free.fr> References: <0c08185aeba0273ebcc1e0ab67ed7002106f2edc.camel@free.fr> Message-ID: <1e26c88a-ca29-a4ed-7ce2-25539e3e0f6c@gmail.com> Le 16/03/2020 ? 20:44, Philippe Valarcher a ?crit?: > Bonjour, > je testais plasma wayland (? jour) et j'ai voulu lancer l'IDE de gambas, > rien. Donc je refais la manipulation ? travers un terminal : > "erreur de segmentation". Ceci juste pour information car la version > pr?c?dente de l'IDE (3.14) fonctionnait sous wayland. Bon pour l'instant > wayland n'est pas encore abouti mais pas tr?s loin de la sortie du > tunnel et ce serait trop b?te de manquer le coche pour notre IDE favori. > Autre info, les programmes produit par l'IDE, eux tournent sous wayland. > Je ne vais pas emb?ter les prog avec ?a, c'?tait de la petite cuisine. > > Hello, > I was testing wayland plasma (up to date) and I wanted to launch the > gambas IDE, nothing. So I redo the manipulation through a terminal: > "segmentation error". This is just for information because the previous > version of the IDE (3.14) worked under wayland. Right now wayland is not > yet finished but not very far from the exit of the tunnel and it would > be too silly to miss the boat for our favorite IDE. Another info, the > programs produced by the IDE, they run under wayland. > I'm not going to bother prog with that, it was little cooking. > > > -- > > Cordialement, Philippe Valarcher. > philippe.valarcher at free.fr > > > UNUS EX ALTERA > > GNU/Linux KDE NEON User Edition 64 Bits > Lenovo T410 ThinkPad Intel(R) i5 CPU M 560 @ 2.67Ghz > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > While I don't have Wayland on my computer, I can't test it. On wayland, the IDE, as an X11 application, is run under X-Wayland. I don't know why it would crash then. -- Beno?t Minisini From chrisml at deganius.de Mon Mar 16 21:56:26 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 16 Mar 2020 21:56:26 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> Message-ID: <9edc255f-d32e-9ed4-6a37-155cdda137d1@deganius.de> Am 16.03.20 um 18:38 schrieb Gianluigi: > I was referring to what was said in the previous emails, the certificate > of idiot :-) Oh Jesus! And I thought about further complications. I was thinking about SSH-certificates which are necessary for communication to Github ... Can you please stop joking around until we've got this thing done? And if you apologize, I will force you to flagellate yourself!!! ;-) :-) Ok, let's go on: > You say so but I have tried several times to restore the fork and GitLab > replies that it already exists. > You see fork-1 e fork-2: > https://paste.c-net.org/TwilightDeclare > https://paste.c-net.org/WiselyHandout No it says, the name already exists. And it is right: https://gitlab.com/GianluigiOr/gambas As long as this (Gitlab-)project exists, Gitlab will refuse to create it new. So: * Try to rename/close/whatever it and then fork new. Or: * Try to delete it and then fork new. In this case you will have to wait a few days (as I understood Gitlab) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Mar 16 22:49:15 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 16 Mar 2020 22:49:15 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <9edc255f-d32e-9ed4-6a37-155cdda137d1@deganius.de> References: <03a02c46-4430-7f99-f3af-f464cc459f4e@deganius.de> <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> <9edc255f-d32e-9ed4-6a37-155cdda137d1@deganius.de> Message-ID: Il giorno lun 16 mar 2020 alle ore 21:57 Christof Thalhofer < chrisml at deganius.de> ha scritto: > > Can you please stop joking around until we've got this thing done? And > if you apologize, I will force you to flagellate yourself!!! > ;-D > * Try to rename/close/whatever it and then fork new. > > Are you suggesting me to change my username? Tomorrow I try to investigate the problems I will face Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 16 23:00:53 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 16 Mar 2020 23:00:53 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> <9edc255f-d32e-9ed4-6a37-155cdda137d1@deganius.de> Message-ID: <6ade361e-eeca-b53d-d63c-ac52d66d190f@deganius.de> Am 16.03.20 um 22:49 schrieb Gianluigi: > Are you suggesting me to change my username? > Tomorrow I try to investigate the problems I will face No. The project with the name "gambas" exists in your personal space in Gitlab: https://gitlab.com/GianluigiOr/gambas So if you want to fork https://gitlab.com/gambas/gambas into your space, Gitlab refuses it with this error: https://paste.c-net.org/WiselyHandout Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Mar 16 23:15:31 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 16 Mar 2020 23:15:31 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: <6ade361e-eeca-b53d-d63c-ac52d66d190f@deganius.de> References: <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> <9edc255f-d32e-9ed4-6a37-155cdda137d1@deganius.de> <6ade361e-eeca-b53d-d63c-ac52d66d190f@deganius.de> Message-ID: Il giorno lun 16 mar 2020 alle ore 23:01 Christof Thalhofer < chrisml at deganius.de> ha scritto: > > No. The project with the name "gambas" exists in your personal space in > Gitlab: > > So I should venture into virtuosity like: I create a group I move the Gambas project there Should my space be cleared and could I fork Gambas again? Provided that it can be done... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Mar 16 23:49:08 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 16 Mar 2020 23:49:08 +0100 Subject: [Gambas-user] Let me ask you a question about Git and GitLab In-Reply-To: References: <70f49e1f-c94f-453b-3d40-283d06ee7c49@deganius.de> <2c8e21c4-7a07-425e-39e9-b89aacff84e4@deganius.de> <66ac3931-0774-182f-ada1-754f017ee99f@deganius.de> <9edc255f-d32e-9ed4-6a37-155cdda137d1@deganius.de> <6ade361e-eeca-b53d-d63c-ac52d66d190f@deganius.de> Message-ID: <19c07d65-23fd-1106-c46b-a8d0c51257cd@deganius.de> Am 16.03.20 um 23:15 schrieb Gianluigi: > So I should venture into virtuosity like: > I create a group > I move the Gambas project there > Should my space be cleared and could I fork Gambas again? > Provided that it can be done... I am not really familiar with Gitlab and it's features. Maybe that is possible, just play around. I think you can't do anything wrong. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From arothe at phosco.info Fri Mar 20 19:50:24 2020 From: arothe at phosco.info (=?UTF-8?Q?Andr=C3=A9_Rothe?=) Date: Fri, 20 Mar 2020 19:50:24 +0100 Subject: [Gambas-user] Clear console Message-ID: Hi, I try to teach my children how they can develop applications with a BASIC dialect. My choice is Gambas3, but I don't have any experiences with the language. The last BASIC program I developed 30 years ago with AmigaBasic. So please, be patient... Currently I only use the console window for input and output to let programs be simple and stupid. I need a statement to clear the console window, in the former dialects there was such as SCRCLR for "Screen Clear" or CLS (for "Clear Screen"). How I can emulate this? Thanks Andr? From lapisdecor at gmail.com Fri Mar 20 20:05:07 2020 From: lapisdecor at gmail.com (Luis Louro) Date: Fri, 20 Mar 2020 19:05:07 +0000 Subject: [Gambas-user] Clear console In-Reply-To: References: Message-ID: You can do a for next with a print inside for example. Na(o) sexta, 20/03/2020, 19:00, Andr? Rothe escreveu: > Hi, > > I try to teach my children how they can develop applications with a > BASIC dialect. > My choice is Gambas3, but I don't have any experiences with the > language. The last BASIC > program I developed 30 years ago with AmigaBasic. So please, be > patient... > > Currently I only use the console window for input and output to let > programs be simple and stupid. I need a statement to clear the console > window, in the former dialects there was such as SCRCLR for "Screen > Clear" or CLS (for "Clear Screen"). How I can emulate this? > > Thanks > Andr? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Fri Mar 20 20:06:16 2020 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Fri, 20 Mar 2020 15:06:16 -0400 Subject: [Gambas-user] Clear console In-Reply-To: References: Message-ID: Hello Andr?, Could you be a little more explicit in your explication please. Do you need command to clear a Window terminal in Linux or clear screen in a Gambas program ? Olivier Le 20 mars 2020 ? 15:00:07, Andr? Rothe (arothe at phosco.info) a ?crit: Hi, I try to teach my children how they can develop applications with a BASIC dialect. My choice is Gambas3, but I don't have any experiences with the language. The last BASIC program I developed 30 years ago with AmigaBasic. So please, be patient... Currently I only use the console window for input and output to let programs be simple and stupid. I need a statement to clear the console window, in the former dialects there was such as SCRCLR for "Screen Clear" or CLS (for "Clear Screen"). How I can emulate this? Thanks Andr? ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Mar 20 20:26:30 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 20 Mar 2020 15:26:30 -0400 Subject: [Gambas-user] Clear console In-Reply-To: References: Message-ID: <9e9ed004-281c-8599-4b49-6b145bd7f827@gmail.com> On 3/20/20 3:06 PM, Yahoo via User wrote: > Hello Andr?, > > Could you be a little more explicit in your explication please. > > Do you need command to clear a Window terminal in Linux or clear screen in a Gambas program ? > > > Olivier I think Andre wants to do both; ie. clear a window terminal (console) screen from within a Gambas program. The only manner of doing that I'm aware of is to use the shell's `clear` command by using Gambas' 'SHELL' command: Shell "clear" It doesn't actually fully clear the screen, but the appearance is that it did. -- Lee From arothe at phosco.info Fri Mar 20 20:43:42 2020 From: arothe at phosco.info (=?UTF-8?Q?Andr=C3=A9_Rothe?=) Date: Fri, 20 Mar 2020 20:43:42 +0100 Subject: [Gambas-user] Clear console In-Reply-To: <9e9ed004-281c-8599-4b49-6b145bd7f827@gmail.com> References: <9e9ed004-281c-8599-4b49-6b145bd7f827@gmail.com> Message-ID: Am 20.03.2020 20:26, schrieb T Lee Davidson: > On 3/20/20 3:06 PM, Yahoo via User wrote: >> Hello Andr?, >> >> Could you be a little more explicit in your explication please. >> >> Do you need command to clear a Window terminal in Linux or clear >> screen in a Gambas program ? >> >> >> Olivier > > I think Andre wants to do both; ie. clear a window terminal (console) > screen from within a Gambas program. Yes, it's right. > The only manner of doing that I'm aware of is to use the shell's > `clear` command by using Gambas' 'SHELL' command: > Shell "clear" I'll try this. Thank you. From arothe at phosco.info Fri Mar 20 20:59:35 2020 From: arothe at phosco.info (=?UTF-8?Q?Andr=C3=A9_Rothe?=) Date: Fri, 20 Mar 2020 20:59:35 +0100 Subject: [Gambas-user] Clear console In-Reply-To: References: <9e9ed004-281c-8599-4b49-6b145bd7f827@gmail.com> Message-ID: <17692e52f0baf879f07b8234e761e98c@phosco.info> private Sub Cls() Shell "/usr/bin/clear" Wait end Unfortunately it doesn't work within the IDE console window. From arothe at phosco.info Fri Mar 20 21:12:18 2020 From: arothe at phosco.info (=?UTF-8?Q?Andr=C3=A9_Rothe?=) Date: Fri, 20 Mar 2020 21:12:18 +0100 Subject: [Gambas-user] Clear console In-Reply-To: References: Message-ID: <081c989ce62c69c32e797a418ff7378c@phosco.info> Am 20.03.2020 20:05, schrieb Luis Louro: > You can do a for next with a print inside for example. Yes, I could do that. But how many loops I have to process? ~Andr? From lapisdecor at gmail.com Fri Mar 20 21:25:12 2020 From: lapisdecor at gmail.com (Luis Louro) Date: Fri, 20 Mar 2020 20:25:12 +0000 Subject: [Gambas-user] Clear console In-Reply-To: <081c989ce62c69c32e797a418ff7378c@phosco.info> References: <081c989ce62c69c32e797a418ff7378c@phosco.info> Message-ID: I dont know. You must try and and see until you find tour answer. Cheers, Luis Na(o) sexta, 20/03/2020, 20:13, Andr? Rothe escreveu: > Am 20.03.2020 20:05, schrieb Luis Louro: > > You can do a for next with a print inside for example. > > Yes, I could do that. But how many loops I have to process? > > ~Andr? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Mar 20 21:46:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 20 Mar 2020 21:46:43 +0100 Subject: [Gambas-user] Clear console In-Reply-To: <17692e52f0baf879f07b8234e761e98c@phosco.info> References: <9e9ed004-281c-8599-4b49-6b145bd7f827@gmail.com> <17692e52f0baf879f07b8234e761e98c@phosco.info> Message-ID: Le 20/03/2020 ? 20:59, Andr? Rothe a ?crit?: > private Sub Cls() > ?? Shell "/usr/bin/clear" Wait > end > > Unfortunately it doesn't work within the IDE console window. > It works here. Which version of Gambas do you use? By the way, the terminals on Linux with GUI are terminal emulators. These terminals are complex beasts that use special character sequences for commands like clearing the screen. The Gambas virtual terminal (now used by the IDE console) is a VT-100 terminal. Clearing the screen is done by issuing the sequence "\e[2J". I think all GUI terminal emulators (on KDE, Gnome...) is VT-100 compatible. In the past, when Unix meant a mainframe connected to a lot of possibly different terminals, you had to use the "ncurses" library that provides the needed API to manipulate any terminal type. It's still needed today, but it's easier to assume VT-100 compatibility. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Fri Mar 20 23:38:01 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 20 Mar 2020 23:38:01 +0100 Subject: [Gambas-user] Clear console In-Reply-To: References: Message-ID: Have you tried "clear"? That is the terminal command for it. Shell "clear" should do. At least if you really program terminal window programs. But maybe I've got you wrong... Regards Rolf Am 20.03.2020 um 19:50 schrieb Andr? Rothe: > Hi, > > I try to teach my children how they can develop applications with a > BASIC dialect. > My choice is Gambas3, but I don't have any experiences with the > language. The last BASIC > program I developed 30 years ago with AmigaBasic. So please, be > patient... > > Currently I only use the console window for input and output to let > programs be simple and stupid. I need a statement to clear the console > window, in the former dialects there was such as SCRCLR for "Screen > Clear" or CLS (for "Clear Screen"). How I can emulate this? > > Thanks > Andr? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From jussi.lahtinen at gmail.com Sat Mar 21 00:53:25 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 21 Mar 2020 01:53:25 +0200 Subject: [Gambas-user] Clear console In-Reply-To: References: Message-ID: Shell "reboot" might be bit overkill... Jussi On Sat, Mar 21, 2020 at 12:39 AM Rolf-Werner Eilert wrote: > Have you tried "clear"? That is the terminal command for it. > > Shell "clear" > > should do. At least if you really program terminal window programs. But > maybe I've got you wrong... > > Regards > > Rolf > > > > Am 20.03.2020 um 19:50 schrieb Andr? Rothe: > > Hi, > > > > I try to teach my children how they can develop applications with a > > BASIC dialect. > > My choice is Gambas3, but I don't have any experiences with the > > language. The last BASIC > > program I developed 30 years ago with AmigaBasic. So please, be > > patient... > > > > Currently I only use the console window for input and output to let > > programs be simple and stupid. I need a statement to clear the console > > window, in the former dialects there was such as SCRCLR for "Screen > > Clear" or CLS (for "Clear Screen"). How I can emulate this? > > > > Thanks > > Andr? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Sat Mar 21 07:46:47 2020 From: patrik at trixon.se (=?UTF-8?Q?Patrik_Karlstr=C3=B6m?=) Date: Sat, 21 Mar 2020 07:46:47 +0100 Subject: [Gambas-user] Script vs Command Line Application Message-ID: I was about to do some bash scripts in order to - Create 3 Java run times environment, one for each major os, with jlink - From one NetBeans application platform.zip - edit a text file - insert a JRE - Create an AppImage - Produce checksums I'm already doing this semi-manual today and looking for a more automated version. Then Gambas came to my mind, but it was a couple of years since I used it, and I've never touched scripts before The question now is, should I go with a Script or a Command Line Application? What do you think? Patrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Sat Mar 21 08:13:53 2020 From: patrik at trixon.se (=?UTF-8?Q?Patrik_Karlstr=C3=B6m?=) Date: Sat, 21 Mar 2020 08:13:53 +0100 Subject: [Gambas-user] No menus with KDE Plasma global menu Message-ID: When using Plasmas global menu I get not menus what so ever in Gambas. I get a "menu holder" that I can toggle with ctrl-alt-m, but no items. In the past, there was an option to force the menu behavior, I think, could not find one now though. My problem back then, in Unity times, was that one got one local and one global menu, at the same time. When starting Gambas with KDE_NO_GLOBAL_MENU=whatever gambas3 I get a local menu, but a global would be nice. Patrik [System] Gambas=3.14.3 OperatingSystem=Linux Kernel=5.4.24-1-MANJARO Architecture=x86_64 Distribution=Manjaro Linux Desktop=KDE5 Theme=Breeze Language=sv_SE.UTF-8 Memory=31980M [Libraries] Cairo=libcairo.so.2.11703.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2407.7 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.95.0.0 QT5=libQt5Core.so.5.14.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pebauer68 at gmail.com Sat Mar 21 09:34:31 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sat, 21 Mar 2020 09:34:31 +0100 Subject: [Gambas-user] gbx3, how and where to handle POLLHUP event ? Message-ID: Hello, In which source file does gbx handle poll() callbacks to watch open files ? High CPU load and fast repeating output from strace attached to gbx3 process: poll([ {fd= 6, events = POLLIN}, {fd= 7, events = POLLIN}, {fd= 8, events = POLLIN |POLLPRI}, {fd=13, events=POLLIN}], 4, 989) = 1 ([{fd=13, revents=POLLHUP}]) Gambas example: https://gambas.one/gambasfarm/?id=761&action=search (must be run from a terminal to show the issue,issue not visible in gambas IDE !) I would like to look if it is possible to handle an incoming pipe when the sender process has ended. In this case the pipe should no longer be watched and just be closed and/or an error should be thrown. I found a C source code example for this: https://stackoverflow.com/questions/5857461/how-to-use-the-poll-c-function-to-watch-named-pipes-in-linux/44126952#44126952 [System] Gambas=3.14.90 a59dfb169 (master) OperatingSystem=Linux Kernel=4.15.0-88-generic Architecture=x86_64 Distribution=Ubuntu 18.04.4 LTS Desktop=MATE Theme=Fusion Language=en_US.UTF-8 Memory=15868M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1405.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.57.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] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xW4AH1pxYD,guid=78dee8a13ae9ae16412773225e6b56da DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=mate GDM_LANG=en GIO_LAUNCHED_DESKTOP_FILE=/Schreibtisch/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7578 GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= JAVA_HOME=/usr/lib/jvm/java-8-oracle LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ADDRESS=de_AT.UTF-8 LC_ALL=en_US.UTF-8 LC_IDENTIFICATION=de_AT.UTF-8 LC_MEASUREMENT=de_AT.UTF-8 LC_MONETARY=de_AT.UTF-8 LC_NAME=de_AT.UTF-8 LC_NUMERIC=de_AT.UTF-8 LC_PAPER=de_AT.UTF-8 LC_TELEPHONE=de_AT.UTF-8 LC_TIME=de_AT.UTF-8 LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/lib/node_modules/:/rakudo/rakudo-2020.01/bin/:/bin:/rakudo/rakudo-2020.01/share/perl6/site/bin:/rakudo/rakudo-2020.01/ PWD= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/5255,unix/:/tmp/.ICE-unix/5255 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 Best Regards, Peter Bauer -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat Mar 21 13:37:36 2020 From: taboege at gmail.com (Tobias Boege) Date: Sat, 21 Mar 2020 13:37:36 +0100 Subject: [Gambas-user] Script vs Command Line Application In-Reply-To: References: Message-ID: <20200321123736.GA2655638@highrise.localdomain> On Sat, 21 Mar 2020, Patrik Karlstr?m wrote: > I was about to do some bash scripts in order to > > - Create 3 Java run times environment, one for each major os, with jlink > - From one NetBeans application platform.zip > - edit a text file > - insert a JRE > - Create an AppImage > - Produce checksums > > I'm already doing this semi-manual today and looking for a more automated > version. > > Then Gambas came to my mind, but it was a couple of years since I used it, > and I've never touched scripts before > > The question now is, should I go with a Script or a Command Line > Application? > Of the two types, Command Line Application is the one that is "native" to Gambas. When you create a script and run it through gbs3, it takes your source file and builds a command line project around it and then has gbc3 compile and gbx3 execute that temporary project. These projects are cached in /tmp and a new one is created when your script source changes. That is, scripts are mini-projects that get automatically recompiled when needed. If your source doesn't change, they start up just as fast as pre- compiled projects. The disadvantage of a script is that you are restricted to a single source file. Note that you can still use components by writing USE statements [1] at the top of your script. In particular gb.args can be useful for utility scripts. I tend to use scripts when the single-file restriction doesn't bother me and when I may need to quickly edit them on a host which doesn't have the Gambas IDE installed. Regards, Tobi [1] http://gambaswiki.org/wiki/lang/use -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sat Mar 21 13:58:04 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 21 Mar 2020 13:58:04 +0100 Subject: [Gambas-user] gbx3, how and where to handle POLLHUP event ? In-Reply-To: References: Message-ID: <8b634f2a-e2f3-d5d8-653c-839cae1bffbb@gmail.com> Le 21/03/2020 ? 09:34, Peter Bauer a ?crit?: > Hello, > In which source file does gbx handle poll() callbacks to watch open files ? > > High CPU load and fast repeating output from strace attached to gbx3 > process: > poll([ {fd= 6, events = POLLIN}, {fd= 7, events = POLLIN}, {fd= 8, > events = POLLIN |POLLPRI}, {fd=13, events=POLLIN}], 4, 989) = 1 > ([{fd=13, revents=POLLHUP}]) > > Gambas example: > https://gambas.one/gambasfarm/?id=761&action=search > (must be run from a terminal to show the issue,issue not visible in > gambas IDE !) > > I would like to look?if it is possible to handle an incoming pipe when > the sender > process has ended. In this case the pipe should no longer be watched and > just be closed and/or an error?should be thrown. I found a C source code > example for this: > https://stackoverflow.com/questions/5857461/how-to-use-the-poll-c-function-to-watch-named-pipes-in-linux/44126952#44126952 > > [System] > Gambas=3.14.90 a59dfb169 (master) > OperatingSystem=Linux > Kernel=4.15.0-88-generic > Architecture=x86_64 > Distribution=Ubuntu 18.04.4 LTS > Desktop=MATE > Theme=Fusion > Language=en_US.UTF-8 > Memory=15868M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1405.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2200.30 > OpenGL=libGL.so.1.0.0 > Poppler=libpoppler.so.57.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] > COMPIZ_CONFIG_PROFILE=mate > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xW4AH1pxYD,guid=78dee8a13ae9ae16412773225e6b56da > DESKTOP_SESSION=mate > DISPLAY=:0 > GB_GUI=gb.qt5 > GDMSESSION=mate > GDM_LANG=en > GIO_LAUNCHED_DESKTOP_FILE=/Schreibtisch/Gambas3.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=7578 > GTK_OVERLAY_SCROLLING=0 > HOME= > INSIDE_CAJA_PYTHON= > JAVA_HOME=/usr/lib/jvm/java-8-oracle > LANG=en_US.UTF-8 > LANGUAGE=en_US.UTF-8 > LC_ADDRESS=de_AT.UTF-8 > LC_ALL=en_US.UTF-8 > LC_IDENTIFICATION=de_AT.UTF-8 > LC_MEASUREMENT=de_AT.UTF-8 > LC_MONETARY=de_AT.UTF-8 > LC_NAME=de_AT.UTF-8 > LC_NUMERIC=de_AT.UTF-8 > LC_PAPER=de_AT.UTF-8 > LC_TELEPHONE=de_AT.UTF-8 > LC_TIME=de_AT.UTF-8 > LOGNAME= > MATE_DESKTOP_SESSION_ID=this-is-deprecated > PAPERSIZE=a4 > PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/lib/node_modules/:/rakudo/rakudo-2020.01/bin/:/bin:/rakudo/rakudo-2020.01/share/perl6/site/bin:/rakudo/rakudo-2020.01/ > PWD= > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_LOGGING_RULES=*.debug=false > QT_SCALE_FACTOR=1 > SESSION_MANAGER=local/:@/tmp/.ICE-unix/5255,unix/:/tmp/.ICE-unix/5255 > SHELL=/bin/bash > SHLVL=0 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg > XDG_CURRENT_DESKTOP=MATE > XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=mate > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > Best Regards, > Peter Bauer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I will look at it. Two remarks first: - Why did you put the gbx3 executable inside your project??? - The event loop depends on the GUI component, so the behaviour is different between a command-line application, a QT application and a GTK+ application. I wrote the interpreter event loop, but not the QT or GTK+ one, so maybe the problem comes from that difference. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Mar 21 16:31:21 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 21 Mar 2020 16:31:21 +0100 Subject: [Gambas-user] gbx3, how and where to handle POLLHUP event ? In-Reply-To: <8b634f2a-e2f3-d5d8-653c-839cae1bffbb@gmail.com> References: <8b634f2a-e2f3-d5d8-653c-839cae1bffbb@gmail.com> Message-ID: Le 21/03/2020 ? 13:58, Beno?t Minisini a ?crit?: > Le 21/03/2020 ? 09:34, Peter Bauer a ?crit?: >> Hello, >> In which source file does gbx handle poll() callbacks to watch open >> files ? >> >> High CPU load and fast repeating output from strace attached to gbx3 >> process: >> poll([ {fd= 6, events = POLLIN}, {fd= 7, events = POLLIN}, {fd= 8, >> events = POLLIN |POLLPRI}, {fd=13, events=POLLIN}], 4, 989) = 1 >> ([{fd=13, revents=POLLHUP}]) >> >> Gambas example: >> https://gambas.one/gambasfarm/?id=761&action=search >> (must be run from a terminal to show the issue,issue not visible in >> gambas IDE !) >> >> I would like to look?if it is possible to handle an incoming pipe when >> the sender >> process has ended. In this case the pipe should no longer be watched >> and just be closed and/or an error?should be thrown. I found a C >> source code example for this: >> https://stackoverflow.com/questions/5857461/how-to-use-the-poll-c-function-to-watch-named-pipes-in-linux/44126952#44126952 >> > > I will look at it. > > Two remarks first: > > - Why did you put the gbx3 executable inside your project??? > > - The event loop depends on the GUI component, so the behaviour is > different between a command-line application, a QT application and a > GTK+ application. > > I wrote the interpreter event loop, but not the QT or GTK+ one, so maybe > the problem comes from that difference. > > Regards, > I confirm that with gb.gtk it eats 100% CPU. With gb.qt only 1.0%. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Sat Mar 21 16:39:41 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 21 Mar 2020 11:39:41 -0400 Subject: [Gambas-user] No menus with KDE Plasma global menu In-Reply-To: References: Message-ID: On 3/21/20 3:13 AM, Patrik Karlstr?m wrote: > When using Plasmas global menu I get not menus what so ever in Gambas. > I get a "menu holder" that I can toggle with ctrl-alt-m, but no items. > > In the past, there was an option to force the menu behavior, I think, could not find one now though. > My problem back then, in Unity times, was that one got one local and one global menu, at the same time. > > When starting Gambas with > KDE_NO_GLOBAL_MENU=whatever gambas3 > > I get a local menu, but a global would be nice. > > Patrik > > [System] > Gambas=3.14.3 > OperatingSystem=Linux > Kernel=5.4.24-1-MANJARO > Architecture=x86_64 > Distribution=Manjaro Linux > Desktop=KDE5 > Theme=Breeze > Language=sv_SE.UTF-8 > Memory=31980M > > [Libraries] > Cairo=libcairo.so.2.11703.0 > Curl=libcurl.so.4.6.0 > DBus=libdbus-1.so.3.19.11 > GStreamer=libgstreamer-1.0.so.0.1602.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2407.7 > OpenGL=libGL.so.1.7.0 > Poppler=libpoppler.so.95.0.0 > QT5=libQt5Core.so.5.14.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > On my system, there actually are menu buttons for Gambas on the global menu. But, the only two are so skinny the text is not visible, and the menu cannot be resized horizontally. -- Lee [System] Gambas=3.14.3 OperatingSystem=Linux Kernel=4.12.14-lp151.28.40-default Architecture=x86_64 Distribution=openSUSE Leap 15.1 Desktop=KDE5 Theme=Breeze Language=en_US.UTF-8 Memory=16030M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11510.0 Curl=/usr/lib64/libcurl.so.4.5.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1205.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2200.30 OpenGL=/usr/lib64/libGL.so.1.0.0 Poppler=/usr/lib64/libpoppler.so.73.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.9.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 From pebauer68 at gmail.com Sun Mar 22 13:19:18 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sun, 22 Mar 2020 13:19:18 +0100 Subject: [Gambas-user] gbx3, how and where to handle POLLHUP event ? Message-ID: Hello, Sorry, in future I will put all executables outside of the application project. I had built a gbx3 version with additional debug output enabled, but this did not help me to trace the issue. Thank you very much for your work on Gambas. If I compare it with other projects in the open source space it is in very good shape. I have tried to use the poll() and epoll() module implementation in Python3.8.2 and saw that there is currently no working implementation for files/streams - only sockets now (also in linux). In Gambas most things work perfect just out of the "box". BR, Peter Bauer ----------------------------- I will look at it. Two remarks first: - Why did you put the gbx3 executable inside your project??? - The event loop depends on the GUI component, so the behaviour is different between a command-line application, a QT application and a GTK+ application. I wrote the interpreter event loop, but not the QT or GTK+ one, so maybe the problem comes from that difference. Regards, -- Beno?t Minisini -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrik at trixon.se Sun Mar 22 17:06:13 2020 From: patrik at trixon.se (=?UTF-8?Q?Patrik_Karlstr=C3=B6m?=) Date: Sun, 22 Mar 2020 17:06:13 +0100 Subject: [Gambas-user] Script vs Command Line Application In-Reply-To: <20200321123736.GA2655638@highrise.localdomain> References: <20200321123736.GA2655638@highrise.localdomain> Message-ID: Den l?r 21 mars 2020 kl 13:38 skrev Tobias Boege : > On Sat, 21 Mar 2020, Patrik Karlstr?m wrote: > > I was about to do some bash scripts in order to > > > > - Create 3 Java run times environment, one for each major os, with > jlink > > - From one NetBeans application platform.zip > > - edit a text file > > - insert a JRE > > - Create an AppImage > > - Produce checksums > > > > I'm already doing this semi-manual today and looking for a more automated > > version. > > > > Then Gambas came to my mind, but it was a couple of years since I used > it, > > and I've never touched scripts before > > > > The question now is, should I go with a Script or a Command Line > > Application? > > > > Of the two types, Command Line Application is the one that is "native" to > Gambas. When you create a script and run it through gbs3, it takes your > source file and builds a command line project around it and then has gbc3 > compile and gbx3 execute that temporary project. These projects are cached > in /tmp and a new one is created when your script source changes. > > That is, scripts are mini-projects that get automatically recompiled when > needed. If your source doesn't change, they start up just as fast as pre- > compiled projects. The disadvantage of a script is that you are restricted > to a single source file. Note that you can still use components by writing > USE statements [1] at the top of your script. In particular gb.args can be > useful for utility scripts. > > I tend to use scripts when the single-file restriction doesn't bother me > and when I may need to quickly edit them on a host which doesn't have the > Gambas IDE installed. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/lang/use > > Thank you Tobi, the single-file restriction makes me go for a Command Line Application. After one more day of thinking I might slap a gui on it later on, so that confirms my decision for a CLA. Thanks again, /Patrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From georgioskalogiannis at gmail.com Tue Mar 24 09:16:46 2020 From: georgioskalogiannis at gmail.com (Georgios Kalogiannis) Date: Tue, 24 Mar 2020 10:16:46 +0200 Subject: [Gambas-user] datasource Message-ID: Hello I am using gambas ver 3.14.3. On a graphical database application, I have set a connection with the option Remember password checked and the connection to the database is successfully. On the form I put a datasource control with the properties connection set to above connection and I can choose a table from the property table on the graphical interface. Up to here I have no write any code. When I run the program I get the error message "Access denied for user ... (using password:NO") Do I missing something ? Do I have to write code for the password ? best regards Georgios -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Mar 24 17:07:35 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 24 Mar 2020 12:07:35 -0400 Subject: [Gambas-user] datasource In-Reply-To: References: Message-ID: <5f393407-1ab8-9ea2-b923-9872b40edba9@gmail.com> On 3/24/20 4:16 AM, Georgios Kalogiannis wrote: > Hello > > I am using gambas ver 3.14.3. > On a graphical?database application, I have set a connection with the option Remember password checked and the connection to the > database is successfully. > On the form I put a datasource control with the properties connection set to above connection and I can choose a table from the > property table on the graphical interface. > Up to here I have no write any code. > When I run the program I get the error?message "Access denied for user ... (using password:NO") > Do I missing something?? > Do I have to write code for the password ? > > > best regards > > Georgios > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > "You have to check the gb.desktop component in your project if you want the password connection entered through the IDE to be automatically retrieved. Otherwise you will have to provide it yourself." http://gambaswiki.org/wiki/comp/gb.db/connections -- Lee From ub2 at gmx.ch Wed Mar 25 10:21:48 2020 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Wed, 25 Mar 2020 10:21:48 +0100 Subject: [Gambas-user] How to duplicate Controls with all its preferences at runtime In-Reply-To: References: Message-ID: Dear Gambas Cracks I'm fiddling since 2 days, code explodes, and I'm sure there must be a better way ... I'd like to duplicate at runtime various Controls (different types!) with all it's preferences (Formatting, Pictures, etc). The situation: In a scrollview I have "a well prepared Master-Controls-line" like TglBtn_...._0 | Txta_....._0 | Txtlbl_..._0 | Pixcb_..._0 | ... In order to get new "Record-Lines" I'd like to duplicate all those Master-Controls them with the clumsy code partially shown in Attachement 200325... and access the Controls later with: $Ctrl$ = Me.Txtlbl_....._1 $Ctrl$ = Me.Txtlbl_....._2 ... I'd like to avoid SubForms like: $NewUFrm$ = New UFrmXYZ($RecNr$, ..., ..., $Scrvw$) because access to those new Controls becomes more complicated: $Txtlbl_...._0$ = UFrmXYZ(Me.Scrvw.Children[0]).Children[2] My Question: Is there a command like: $Ctrl_New$ = NewWithPrefs Control($CtrlParent$) $Ctrl_New$ = Duplicate Control($CtrlParent$) ore similar Any ideas, links, keywords, etc would be highly appreciated. Thanks for Gambas and this very helpful community. Take care and stay healthy ub2 -------------- next part -------------- A non-text attachment was scrubbed... Name: 200325-0950a_DuplCtrlsWIrhPrefs.png Type: image/png Size: 82549 bytes Desc: not available URL: From way at gmx.li Thu Mar 26 11:21:51 2020 From: way at gmx.li (Weg) Date: Thu, 26 Mar 2020 11:21:51 +0100 Subject: [Gambas-user] Problem with YAxe Description in Chart.gb Message-ID: Hello Im using Chart.gb, but sometimes (it depend on the linevalues of the chart) the Description of the YAxe is not shown. I still played around a very long time. I created a added a Demo Project and some screenshoots. In some cases of linedatas, the Description of YAxe and the Lines are not shown. Is this a bug? Thank you Tom,.. -------------- next part -------------- A non-text attachment was scrubbed... Name: Charttest.tar.gz Type: application/gzip Size: 14037 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Example4.png Type: image/png Size: 31950 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Example3.png Type: image/png Size: 18016 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Example2.png Type: image/png Size: 29493 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Example1.png Type: image/png Size: 17840 bytes Desc: not available URL: From ub2 at gmx.ch Thu Mar 26 12:00:06 2020 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Thu, 26 Mar 2020 12:00:06 +0100 Subject: [Gambas-user] How to duplicate Ctrls with preferences at runtime (2) In-Reply-To: References: Message-ID: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> Dear Gambas Cracks 2nd try, 1st see below (Was user at lists.gambas-basic.org partially down yesterday ?) Best regards ub2 -------- Weitergeleitete Nachricht -------- Betreff: How to duplicate Controls with all its preferences at runtime Datum: Wed, 25 Mar 2020 10:21:48 +0100 Von: ub2 at gmx.ch An: user at lists.gambas-basic.org Kopie (CC): ub2 at gmx.ch Dear Gambas Cracks I'm fiddling since 2 days, code explodes, and I'm sure there must be a better way ... I'd like to duplicate at runtime various Controls (different types!) with all it's preferences (Formatting, Pictures, etc). The situation: In a scrollview I have "a well prepared Master-Controls-line" like TglBtn_...._0 | Txta_....._0 | Txtlbl_..._0 | Pixcb_..._0 | ... In order to get new "Record-Lines" I'd like to duplicate all those Master-Controls them with the clumsy code partially shown in Attachement 200325... and access the Controls later with: $Ctrl$ = Me.Txtlbl_....._1 $Ctrl$ = Me.Txtlbl_....._2 ... I'd like to avoid SubForms like: $NewUFrm$ = New UFrmXYZ($RecNr$, ..., ..., $Scrvw$) because access to those new Controls becomes more complicated: $Txtlbl_...._0$ = UFrmXYZ(Me.Scrvw.Children[0]).Children[2] My Question: Is there a command like: $Ctrl_New$ = NewWithPrefs Control($CtrlParent$) $Ctrl_New$ = Duplicate Control($CtrlParent$) ore similar Any ideas, links, keywords, etc would be highly appreciated. Thanks for Gambas and this very helpful community. Take care and stay healthy ub2 -------------- next part -------------- A non-text attachment was scrubbed... Name: 200325-0950a_DuplCtrlsWIrhPrefs.png Type: image/png Size: 82549 bytes Desc: not available URL: From bagonergi at gmail.com Thu Mar 26 13:58:46 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 26 Mar 2020 13:58:46 +0100 Subject: [Gambas-user] Problem with YAxe Description in Chart.gb In-Reply-To: References: Message-ID: Il giorno gio 26 mar 2020 alle ore 11:22 Weg ha scritto: > Hello > ... > Try like this (*) Regards Gianluigi (*) Public Sub LoadGraph(Optional Random As Boolean = False) Dim ii As Long MyChart = New Chart MyChart.Title.Text = "Example" MyChart.CountDataSets = 1 If (Random) Then MyChart.YAxe.MaxValue = 6000 MyChart.YAxe.MinValue = 0 MyChart.YAxe.Step = 200 Else MyChart.YAxe.MaxValue = 160000 MyChart.YAxe.MinValue = 16000 MyChart.YAxe.Step = 5000 Endif For Each captions MyChart.Headers.Values.Add(captions[captions.Key]) MyChart[0].Values.Add(0) If (Random) Then MyChart[0].Values[ii] = Rand(100, 6000) Else MyChart[0].Values[ii] = values[ii] End If ii += 1 Next lbl_Firstvalue.Caption = MyChart[0].Values[0] MyChart.Type = ChartType.Lines MyChart.BackGround = Color.Yellow DrawingArea1.Refresh End -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Thu Mar 26 14:01:41 2020 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Thu, 26 Mar 2020 09:01:41 -0400 Subject: [Gambas-user] How to duplicate Ctrls with preferences at runtime (2) In-Reply-To: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> References: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> Message-ID: Hello, I?m not sure to understand exactly your request, but I think you could use Form embedded, as like you don?t want to use, but adding Properties at the Form ?Template?, so it will really easy to access to the various children inside. To identify each Form embedded included into your main Form, add a Property for that, like IdForm for example. Next you could use an Array of your embedded Form to manage all created Forms like: 1- ?Design your Form themplate 2- ?Create an array to manage those Forms For example if your Form template is name ?MyFormTemplate' Public MyArrayForm as ?MyFormTemplate[] Public Sub Add_Form_Template() Dim fNewForm as MyFormTemplate If?MyArrayForm?= NULL then MyArrayForm = New MyFormTemplate[] End If fNewForm = New MyFormTemplate fNewForm.IdForm = ??your id?? MyArrayForm.Add(fNewForm) End Nota: this is just an example ?? Olivier Cruilles Le 26 mars 2020 ? 07:01:05, ub2 at gmx.ch (ub2 at gmx.ch) a ?crit: Dear Gambas Cracks 2nd try, 1st see below (Was user at lists.gambas-basic.org partially down yesterday ?) Best regards ub2 -------- Weitergeleitete Nachricht -------- Betreff: How to duplicate Controls with all its preferences at runtime Datum: Wed, 25 Mar 2020 10:21:48 +0100 Von: ub2 at gmx.ch An: user at lists.gambas-basic.org Kopie (CC): ub2 at gmx.ch Dear Gambas Cracks I'm fiddling since 2 days, code explodes, and I'm sure there must be a better way ... I'd like to duplicate at runtime various Controls (different types!) with all it's preferences (Formatting, Pictures, etc). The situation: In a scrollview I have "a well prepared Master-Controls-line" like TglBtn_...._0 | Txta_....._0 | Txtlbl_..._0 | Pixcb_..._0 | ... In order to get new "Record-Lines" I'd like to duplicate all those Master-Controls them with the clumsy code partially shown in Attachement 200325... and access the Controls later with: $Ctrl$ = Me.Txtlbl_....._1 $Ctrl$ = Me.Txtlbl_....._2 ... I'd like to avoid SubForms like: $NewUFrm$ = New UFrmXYZ($RecNr$, ..., ..., $Scrvw$) because access to those new Controls becomes more complicated: $Txtlbl_...._0$ = UFrmXYZ(Me.Scrvw.Children[0]).Children[2] My Question: Is there a command like: $Ctrl_New$ = NewWithPrefs Control($CtrlParent$) $Ctrl_New$ = Duplicate Control($CtrlParent$) ore similar Any ideas, links, keywords, etc would be highly appreciated. Thanks for Gambas and this very helpful community. Take care and stay healthy ub2 ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Mar 26 15:06:40 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 26 Mar 2020 10:06:40 -0400 Subject: [Gambas-user] How to duplicate Ctrls with preferences at runtime (2) In-Reply-To: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> References: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> Message-ID: On 3/26/20 7:00 AM, ub2 at gmx.ch wrote: > Dear Gambas Cracks > > 2nd try, 1st see below > (Was user at lists.gambas-basic.org partially down yesterday ?) > > Best regards > ub2 > I don't quite understand what you are trying to accomplish, and so I have not fully tested the following. But, perhaps something like this might be helpful for you: ' Gambas class file Public MyChildren As New Object[] Public Sub DuplicateChildren() For Each Child As Control In FMain.Children MyChildren.Add(CopyControl(Child)) Next End Public Sub CopyControl(Child As Control) As Control Dim ChildClass As Class Dim ChildCopy As Object ChildClass = Object.Class(Child) ChildCopy = Object.New(ChildClass.Name, [FMain]) For Each Symbol As String In ChildClass.Symbols If ChildClass[Symbol].Kind = Class.Property Then ' Some symbols are created read-only. Simply ignore them with TRY Try Object.SetProperty(ChildCopy, Symbol, Object.GetProperty(Child, Symbol)) Endif Next Return ChildCopy End -- Lee From ub2 at gmx.ch Thu Mar 26 19:44:44 2020 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Thu, 26 Mar 2020 19:44:44 +0100 Subject: [Gambas-user] How to duplicate Ctrls with properties at runtime, Thanks, work to be done ... In-Reply-To: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> References: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> Message-ID: <895cb797-6341-5720-2003-021d6ad4b1b4@gmx.ch> Dear Olivier and Lee Thanks a lot for your ideas. Right now your code is slightly above my head, but I will dig into and be back probably in a few days. Most likely it needs deciding whether I want to manage complexity a) at the very beginning when listing, or b) later on when accessing/calculating created lists The project already deals with 9 lists, not too much more to come. On the other side, calculations to be adapted upon request.... So for now, work for a) seems to smell less... Sorry for this unspecific answer. But your inputs already helped a lot, and will even do more. Again, thanks for your help, and greetings to all Gambin at s. ub2 Am 26.03.20 um 12:00 schrieb ub2 at gmx.ch: > Dear Gambas Cracks > > 2nd try, 1st see below > (Was user at lists.gambas-basic.org partially down yesterday ?) > > Best regards > ub2 > > > -------- Weitergeleitete Nachricht -------- > Betreff: How to duplicate Controls with all its preferences at runtime > Datum: Wed, 25 Mar 2020 10:21:48 +0100 > Von: ub2 at gmx.ch > An: user at lists.gambas-basic.org > Kopie (CC): ub2 at gmx.ch > > Dear Gambas Cracks > > > I'm fiddling since 2 days, code explodes, and I'm sure there must be a > better way ... > > > I'd like to duplicate at runtime various Controls (different types!) > with all it's preferences (Formatting, Pictures, etc). > > The situation: > In a scrollview I have "a well prepared Master-Controls-line" like > TglBtn_...._0 | Txta_....._0 | Txtlbl_..._0 | Pixcb_..._0 | ... > > In order to get new "Record-Lines" I'd like to duplicate all those > Master-Controls them with the clumsy code partially shown in > Attachement 200325... > and access the Controls later with: > $Ctrl$ = Me.Txtlbl_....._1 > $Ctrl$ = Me.Txtlbl_....._2 > ... > > I'd like to avoid SubForms like: > $NewUFrm$ = New UFrmXYZ($RecNr$, ..., ..., $Scrvw$) > because access to those new Controls becomes more complicated: > $Txtlbl_...._0$ = UFrmXYZ(Me.Scrvw.Children[0]).Children[2] > > > My Question: > Is there a command like: > $Ctrl_New$ = NewWithPrefs Control($CtrlParent$) > $Ctrl_New$ = Duplicate Control($CtrlParent$) > ore similar > > Any ideas, links, keywords, etc would be highly appreciated. > > > Thanks for Gambas and this very helpful community. > Take care and stay healthy > > ub2 > > > From olivier.cruilles at yahoo.fr Thu Mar 26 19:54:58 2020 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Thu, 26 Mar 2020 14:54:58 -0400 Subject: [Gambas-user] How to duplicate Ctrls with properties at runtime, Thanks, work to be done ... In-Reply-To: <895cb797-6341-5720-2003-021d6ad4b1b4@gmx.ch> References: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> <895cb797-6341-5720-2003-021d6ad4b1b4@gmx.ch> Message-ID: Maybe if your could send us a screenshot or your project (as possible) to be able to visually understand what you want to build Olivier Cruilles Email: olivier.cruilles at yahoo.fr Le 26 mars 2020 ? 14:44:47, ub2 at gmx.ch (ub2 at gmx.ch) a ?crit: Dear Olivier and Lee Thanks a lot for your ideas. Right now your code is slightly above my head, but I will dig into and be back probably in a few days. Most likely it needs deciding whether I want to manage complexity a) at the very beginning when listing, or b) later on when accessing/calculating created lists The project already deals with 9 lists, not too much more to come. On the other side, calculations to be adapted upon request.... So for now, work for a) seems to smell less... Sorry for this unspecific answer. But your inputs already helped a lot, and will even do more. Again, thanks for your help, and greetings to all Gambin at s. ub2 Am 26.03.20 um 12:00 schrieb ub2 at gmx.ch: > Dear Gambas Cracks > > 2nd try, 1st see below > (Was user at lists.gambas-basic.org partially down yesterday ?) > > Best regards > ub2 > > > -------- Weitergeleitete Nachricht -------- > Betreff: How to duplicate Controls with all its preferences at runtime > Datum: Wed, 25 Mar 2020 10:21:48 +0100 > Von: ub2 at gmx.ch > An: user at lists.gambas-basic.org > Kopie (CC): ub2 at gmx.ch > > Dear Gambas Cracks > > > I'm fiddling since 2 days, code explodes, and I'm sure there must be a > better way ... > > > I'd like to duplicate at runtime various Controls (different types!) > with all it's preferences (Formatting, Pictures, etc). > > The situation: > In a scrollview I have "a well prepared Master-Controls-line" like > TglBtn_...._0 | Txta_....._0 | Txtlbl_..._0 | Pixcb_..._0 | ... > > In order to get new "Record-Lines" I'd like to duplicate all those > Master-Controls them with the clumsy code partially shown in > Attachement 200325... > and access the Controls later with: > $Ctrl$ = Me.Txtlbl_....._1 > $Ctrl$ = Me.Txtlbl_....._2 > ... > > I'd like to avoid SubForms like: > $NewUFrm$ = New UFrmXYZ($RecNr$, ..., ..., $Scrvw$) > because access to those new Controls becomes more complicated: > $Txtlbl_...._0$ = UFrmXYZ(Me.Scrvw.Children[0]).Children[2] > > > My Question: > Is there a command like: > $Ctrl_New$ = NewWithPrefs Control($CtrlParent$) > $Ctrl_New$ = Duplicate Control($CtrlParent$) > ore similar > > Any ideas, links, keywords, etc would be highly appreciated. > > > Thanks for Gambas and this very helpful community. > Take care and stay healthy > > ub2 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Thu Mar 26 19:54:58 2020 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Thu, 26 Mar 2020 14:54:58 -0400 Subject: [Gambas-user] How to duplicate Ctrls with properties at runtime, Thanks, work to be done ... In-Reply-To: <895cb797-6341-5720-2003-021d6ad4b1b4@gmx.ch> References: <94f69b7c-1959-0334-50e6-bff97db2dcc4@gmx.ch> <895cb797-6341-5720-2003-021d6ad4b1b4@gmx.ch> Message-ID: Maybe if your could send us a screenshot or your project (as possible) to be able to visually understand what you want to build Olivier Cruilles Email: olivier.cruilles at yahoo.fr Le 26 mars 2020 ? 14:44:47, ub2 at gmx.ch (ub2 at gmx.ch) a ?crit: Dear Olivier and Lee Thanks a lot for your ideas. Right now your code is slightly above my head, but I will dig into and be back probably in a few days. Most likely it needs deciding whether I want to manage complexity a) at the very beginning when listing, or b) later on when accessing/calculating created lists The project already deals with 9 lists, not too much more to come. On the other side, calculations to be adapted upon request.... So for now, work for a) seems to smell less... Sorry for this unspecific answer. But your inputs already helped a lot, and will even do more. Again, thanks for your help, and greetings to all Gambin at s. ub2 Am 26.03.20 um 12:00 schrieb ub2 at gmx.ch: > Dear Gambas Cracks > > 2nd try, 1st see below > (Was user at lists.gambas-basic.org partially down yesterday ?) > > Best regards > ub2 > > > -------- Weitergeleitete Nachricht -------- > Betreff: How to duplicate Controls with all its preferences at runtime > Datum: Wed, 25 Mar 2020 10:21:48 +0100 > Von: ub2 at gmx.ch > An: user at lists.gambas-basic.org > Kopie (CC): ub2 at gmx.ch > > Dear Gambas Cracks > > > I'm fiddling since 2 days, code explodes, and I'm sure there must be a > better way ... > > > I'd like to duplicate at runtime various Controls (different types!) > with all it's preferences (Formatting, Pictures, etc). > > The situation: > In a scrollview I have "a well prepared Master-Controls-line" like > TglBtn_...._0 | Txta_....._0 | Txtlbl_..._0 | Pixcb_..._0 | ... > > In order to get new "Record-Lines" I'd like to duplicate all those > Master-Controls them with the clumsy code partially shown in > Attachement 200325... > and access the Controls later with: > $Ctrl$ = Me.Txtlbl_....._1 > $Ctrl$ = Me.Txtlbl_....._2 > ... > > I'd like to avoid SubForms like: > $NewUFrm$ = New UFrmXYZ($RecNr$, ..., ..., $Scrvw$) > because access to those new Controls becomes more complicated: > $Txtlbl_...._0$ = UFrmXYZ(Me.Scrvw.Children[0]).Children[2] > > > My Question: > Is there a command like: > $Ctrl_New$ = NewWithPrefs Control($CtrlParent$) > $Ctrl_New$ = Duplicate Control($CtrlParent$) > ore similar > > Any ideas, links, keywords, etc would be highly appreciated. > > > Thanks for Gambas and this very helpful community. > Take care and stay healthy > > ub2 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Fri Mar 27 06:26:39 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 27 Mar 2020 11:11:39 +0545 Subject: [Gambas-user] Getting value in WebTable Cell Message-ID: I can get value of a cell from GridView as GridView1[Row,Column].Text How can I get value of a cell from WebTable? Safiur Rahman From g4mba5 at gmail.com Fri Mar 27 12:49:16 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 27 Mar 2020 12:49:16 +0100 Subject: [Gambas-user] Getting value in WebTable Cell In-Reply-To: References: Message-ID: <7b9a1f0f-fc93-8458-1778-cfc91a47c4f9@gmail.com> Le 27/03/2020 ? 06:26, Safiur Rahman a ?crit?: > I can get value of a cell from GridView as GridView1[Row,Column].Text > How can I get value of a cell from WebTable? > > Safiur Rahman > You can't. WebTable does not store any data, it just displays it. -- Beno?t Minisini From way at gmx.li Fri Mar 27 20:40:27 2020 From: way at gmx.li (Weg) Date: Fri, 27 Mar 2020 20:40:27 +0100 Subject: [Gambas-user] Size of Cake Chart in Chart.gb Message-ID: <6754f512-160c-4808-cffb-aadb95313fdd@gmx.li> How is it possible, to enlarge the Size of the Cake Chart? I reserved a lot of space, but its still very small. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jcelkljnnnddhlop.png Type: image/png Size: 112091 bytes Desc: not available URL: From t.lee.davidson at gmail.com Fri Mar 27 22:25:36 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 27 Mar 2020 17:25:36 -0400 Subject: [Gambas-user] Size of Cake Chart in Chart.gb In-Reply-To: <6754f512-160c-4808-cffb-aadb95313fdd@gmx.li> References: <6754f512-160c-4808-cffb-aadb95313fdd@gmx.li> Message-ID: <5d8e00db-ecff-eea7-9ca3-e7e9d6dd51cf@gmail.com> On 3/27/20 3:40 PM, Weg wrote: > > How is it possible, to enlarge the Size of the Cake Chart? > I reserved a lot of space, but its still very small. > Have you tried the Height and Width properties? https://gambaswiki.org/wiki/howto/makechart -- Lee P.S. To anyone who may know, where is the Wiki documentation for gb.chart? From bagonergi at gmail.com Fri Mar 27 23:58:46 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 27 Mar 2020 23:58:46 +0100 Subject: [Gambas-user] Size of Cake Chart in Chart.gb In-Reply-To: <5d8e00db-ecff-eea7-9ca3-e7e9d6dd51cf@gmail.com> References: <6754f512-160c-4808-cffb-aadb95313fdd@gmx.li> <5d8e00db-ecff-eea7-9ca3-e7e9d6dd51cf@gmail.com> Message-ID: Il giorno ven 27 mar 2020 alle ore 22:26 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 3/27/20 3:40 PM, Weg wrote: > > > > How is it possible, to enlarge the Size of the Cake Chart? > > I reserved a lot of space, but its still very small. > > > > Have you tried the Height and Width properties? > https://gambaswiki.org/wiki/howto/makechart > > > -- > Lee > > P.S. To anyone who may know, where is the Wiki documentation for gb.chart? > http://gambaswiki.org/wiki/comp/gb.chart With Fabien's code, here works well: Public Sub Form_Open() With Chart .Legend.Font = Font["Serif,16"] .Legend.Title = "Legend" .Legend.Visible = True .[0].Values = [20, 30, 50] .Headers.Values = ["Tic", "Toc", "Tac"] .Proportionnal = True .ShowLabels = True .Border = True .Type = ChartType.Pie End With End Public Sub DrawingArea1_Draw() Chart.Width = DrawingArea1.ClientWidth Chart.Height = DrawingArea1.ClientHeight Chart.Draw() End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Sat Mar 28 14:26:57 2020 From: tercoide at hotmail.com (martin p cristia) Date: Sat, 28 Mar 2020 10:26:57 -0300 Subject: [Gambas-user] AppImage and WLS2 In-Reply-To: References: Message-ID: Hi, hope everyone is well. This is more like an "feature request": Do you thing is possible to move from "Executable" programs to an AppImage single file that includes Gambas runtimes and all its needed? I just ran into this while installing MeshLab from "Ubuntu Software" only to find it won't start. After it, downloaded the AppImage from MeshLab website, ran it from where it landed , "Downloads" for the case, to find it finally works. I beleive our end users, linux begginers, people not interested in programming will love it. Also, I've done testing in the upcomming WLS2 into the Windows Insider Program to find that Gambas3 run flawlessly and very fast, only seen 10% loss of speed in benchmarks with my software. As opposite WLS is pretty unusable with hungs all the time. But from a barebone Windows to and Gambas3 app running is a very long and tedious way, and will continue to be, wich can be cut in half by having the possibility of the AppImage. Stay safe at home. For us, that's never a problem! -- Saludos Ing. Martin P Cristia From t.lee.davidson at gmail.com Sat Mar 28 17:14:44 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 28 Mar 2020 12:14:44 -0400 Subject: [Gambas-user] gb.chart Documentation (was Size of Cake Chart in Chart.gb) In-Reply-To: References: <6754f512-160c-4808-cffb-aadb95313fdd@gmx.li> <5d8e00db-ecff-eea7-9ca3-e7e9d6dd51cf@gmail.com> Message-ID: <37330d54-f3e6-f798-457e-9c8b27b7d1c2@gmail.com> On 3/27/20 6:58 PM, Gianluigi wrote: > P.S. To anyone who may know, where is the Wiki documentation for gb.chart? > > > http://gambaswiki.org/wiki/comp/gb.chart Thank you for that, Gianluigi. I'm puzzled as to why I don't find it in the Index of Components [http://gambaswiki.org/wiki/comp]. -- Lee From bagonergi at gmail.com Sat Mar 28 18:07:06 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 28 Mar 2020 18:07:06 +0100 Subject: [Gambas-user] gb.chart Documentation (was Size of Cake Chart in Chart.gb) In-Reply-To: <37330d54-f3e6-f798-457e-9c8b27b7d1c2@gmail.com> References: <6754f512-160c-4808-cffb-aadb95313fdd@gmx.li> <5d8e00db-ecff-eea7-9ca3-e7e9d6dd51cf@gmail.com> <37330d54-f3e6-f798-457e-9c8b27b7d1c2@gmail.com> Message-ID: Il giorno sab 28 mar 2020 alle ore 17:15 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 3/27/20 6:58 PM, Gianluigi wrote: > > P.S. To anyone who may know, where is the Wiki documentation for > gb.chart? > > > > > > http://gambaswiki.org/wiki/comp/gb.chart > > Thank you for that, Gianluigi. > > I'm puzzled as to why I don't find it in the Index of Components [ > http://gambaswiki.org/wiki/comp]. > It is Fabien who hid it, perhaps he is ashamed :-P :-D Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Mar 30 19:28:53 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 30 Mar 2020 19:28:53 +0200 Subject: [Gambas-user] Fail on compiling gambas Message-ID: abien at fabien-TERRA-MOBILE-1749S:~/Documents/gambas/gb.qt5$ make make all-recursive make[1] : on entre dans le r?pertoire ? /home/fabien/Documents/gambas/gb.qt5 ? Making all in src make[2] : on entre dans le r?pertoire ? /home/fabien/Documents/gambas/gb.qt5/src ? Making all in . make[3] : on entre dans le r?pertoire ? /home/fabien/Documents/gambas/gb.qt5/src ? CXX gb_qt5_la-main_moc.lo main_moc.cpp:78:1: error: ?QT_INIT_METAOBJECT? does not name a type; did you mean ?Q_INIT_RESOURCE?? QT_INIT_METAOBJECT const QMetaObject MyPostCheck::staticMetaObject = { { ^~~~~~~~~~~~~~~~~~ Q_INIT_RESOURCE main_moc.cpp:183:1: error: ?QT_INIT_METAOBJECT? does not name a type; did you mean ?Q_INIT_RESOURCE?? QT_INIT_METAOBJECT const QMetaObject MyApplication::staticMetaObject = { { ^~~~~~~~~~~~~~~~~~ Q_INIT_RESOURCE Makefile:742: recipe for target 'gb_qt5_la-main_moc.lo' failed make[3]: *** [gb_qt5_la-main_moc.lo] Error 1 make[3] : on quitte le r?pertoire ? /home/fabien/Documents/gambas/gb.qt5/src ? Makefile:1265: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2] : on quitte le r?pertoire ? /home/fabien/Documents/gambas/gb.qt5/src ? Makefile:455: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1] : on quitte le r?pertoire ? /home/fabien/Documents/gambas/gb.qt5 ? Makefile:387: recipe for target 'all' failed make: *** [all] Error 2 fabien at fabien-TERRA-MOBILE-1749S:~/Documents/gambas/gb.qt5$ ^C fabien at fabien-TERRA-MOBILE-1749S:~/Documents/gambas/gb.qt5$ mint 19.3 tricia qt5 .9.5 -- Fabien Bodard Gambas Basic : http://gambas.sf.net GambasForge : http://www.gambasforge.org NEW discourse Gambas Forum : https://gambas.discourse.group/ From roberto.premoli at tiscali.it Tue Mar 31 12:16:18 2020 From: roberto.premoli at tiscali.it (roberto) Date: Tue, 31 Mar 2020 12:16:18 +0200 Subject: [Gambas-user] array of object is SO needed Message-ID: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> hi. i am doing a "sudoku" game. i have a matrix of 81 labels, from "label1" to "label81" as containers of the numbers (to show them to user) i have matrix to container of number (to "elaborate" them). To fill the textlabels? i have to do if matrix[1] <> 0 then label1.text=matrix[1] if matrix[2] <> 0 then label2.text=matrix[2] ... if matrix[81] <> 0 then label81.text=matrix[81] also to clean or assign different background color, i have to write 81 times the same command on different labels. it will be HUGE better to have array of objects? to allow some the follow: for n = 1 to 81 ?if matrix[n] <> 0 then label[n].text = matrix[n] next At my eyes, absence of object arrays is the worsest weakness of gambas. PS: in past i did bigger programs with hundreds of labels and all of them must be worked one by one, it was a mess (doing cut and past and renumbering, it is so common to do a mistake). Getting older, i became less used to face this weakness. From rwe-sse at osnanet.de Tue Mar 31 14:00:34 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 31 Mar 2020 14:00:34 +0200 Subject: [Gambas-user] array of object is SO needed In-Reply-To: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> References: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> Message-ID: <97c44ee5-1b4f-af0e-e1be-4d20426c7605@osnanet.de> Hi Roberto, there are arrays of objects in Gambas, and I have been using them for quite some time. There is especially one project where I used them very similarly: for labels, textboxes and comboboxes in a dynamical mask. As an example, at the beginning of the class file: ? Private mLbl As New Object[] This is a small excerpt where a new label is made and set to its position: ????? Case "LABEL" ??????? Inc lblNr ??????? mLbl.Resize(lblNr + 1) ??????? mLbl[lblNr] = New Label(Maske) As "MaskeLabel" ??????? mLbl[lblNr].X = Val(wert[2]) ??????? mLbl[lblNr].Y = Val(wert[3]) + 5 'Gambas 3 Ausgleich n?tig ??????? mLbl[lblNr].Text = wert[4] ??????? '5 und 6 noch f?r den Font ??????? mLbl[lblNr].Width = mLbl[lblNr].Font.TextWidth(mLbl[lblNr].Text) ??????? mLbl[lblNr].Height = mLbl[lblNr].Font.TextHeight(mLbl[lblNr].Text) You have to take care to delete the objects backwards (for... step -1): ? For i = mLbl.Count - 1 To 0 Step -1 ??? mLbl[i].Delete ? Next ? mLbl.Clear As far as I know, you could even define Arrays of Arrays, for your multilayer matrix for instance, to simulate the layers, but I never needed that. Or did I get you completely wrong here? Regards Rolf Am 31.03.2020 um 12:16 schrieb roberto: > hi. > > i am doing a "sudoku" game. > > i have a matrix of 81 labels, from "label1" to "label81" as containers > of the numbers (to show them to user) > > i have matrix to container of number (to "elaborate" them). > > To fill the textlabels? i have to do > > > if matrix[1] <> 0 then label1.text=matrix[1] > > if matrix[2] <> 0 then label2.text=matrix[2] > > ... > > if matrix[81] <> 0 then label81.text=matrix[81] > > > also to clean or assign different background color, i have to write 81 > times the same command on different labels. > > it will be HUGE better to have array of objects? to allow some the > follow: > > > for n = 1 to 81 > > ?if matrix[n] <> 0 then label[n].text = matrix[n] > > next > > At my eyes, absence of object arrays is the worsest weakness of gambas. > > > PS: in past i did bigger programs with hundreds of labels and all of > them must be worked one by one, it was a mess (doing cut and past and > renumbering, it is so common to do a mistake). > > Getting older, i became less used to face this weakness. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From t.lee.davidson at gmail.com Tue Mar 31 17:34:30 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 31 Mar 2020 11:34:30 -0400 Subject: [Gambas-user] array of object is SO needed In-Reply-To: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> References: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> Message-ID: <690eb0d3-d5b2-2389-7a72-e51930d23ba1@gmail.com> On 3/31/20 6:16 AM, roberto wrote: > At?my?eyes,?absence?of?object?arrays?is?the?worsest?weakness?of?gambas. http://gambaswiki.org/wiki/comp/gb/object[] -- Lee From alarch at alarch.pw Tue Mar 31 18:27:57 2020 From: alarch at alarch.pw (Marc Guillaume) Date: Tue, 31 Mar 2020 18:27:57 +0200 Subject: [Gambas-user] how to manage mysql error in gambas ? Message-ID: <20200331182757.43b94f1f@Marc-ThinkPad-SL510> hi everybody, I would like to use the mysql error handling when I try to make a mysql insert that generates a "Duplacate entry" error in mysql to be able to transform the query into an update of one of the table fields. But Gambas returns the -1 error whatever the mysql error generated. I can parse the mysql error message that is returned, but is there a way to retrieve the specific error number from MySQL? Otherwise I'll try to use a stored procedure. thanks for your help From tercoide at hotmail.com Tue Mar 31 19:52:49 2020 From: tercoide at hotmail.com (martin p cristia) Date: Tue, 31 Mar 2020 14:52:49 -0300 Subject: [Gambas-user] WebView webGL support In-Reply-To: References: Message-ID: Hi: is there a chance to have WebGL support in the WebView control? -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Tue Mar 31 20:12:37 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 31 Mar 2020 20:12:37 +0200 Subject: [Gambas-user] WebView webGL support In-Reply-To: References: Message-ID: <4bab6212-cce5-2af5-e4e6-991339803f91@gmail.com> Le 31/03/2020 ? 19:52, martin p cristia a ?crit?: > Hi: > > is there a chance to have WebGL support in the WebView control? > I don't think it's possible until we switch to the new Qt web view. -- Beno?t Minisini From criguada at gmail.com Tue Mar 31 20:15:25 2020 From: criguada at gmail.com (Cristiano Guadagnino) Date: Tue, 31 Mar 2020 20:15:25 +0200 Subject: [Gambas-user] how to manage mysql error in gambas ? In-Reply-To: <20200331182757.43b94f1f@Marc-ThinkPad-SL510> References: <20200331182757.43b94f1f@Marc-ThinkPad-SL510> Message-ID: Hi Marc, this does not reply your Gambas question, however the problem you face is usually handled directly in-database by using the MERGE statement. MySQL does not support MERGE, but it does support something similar: see https://www.dbrnd.com/2015/08/insert-update-merge-statement-in-mysql/ Hope this helps Bye Cris Il giorno mar 31 mar 2020 alle ore 18:34 Marc Guillaume ha scritto: > hi everybody, > > I would like to use the mysql error handling when I try to make a mysql > insert that generates a "Duplacate entry" error in mysql to be able to > transform the query into an update of one of the table fields. But > Gambas returns the -1 error whatever the mysql error generated. I can > parse the mysql error message that is returned, but is there a way to > retrieve the specific error number from MySQL? > > Otherwise I'll try to use a stored procedure. > > thanks for your help > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Mar 31 20:20:49 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 31 Mar 2020 21:20:49 +0300 Subject: [Gambas-user] array of object is SO needed In-Reply-To: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> References: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> Message-ID: You can even use array of labels... Jussi On Tue, Mar 31, 2020 at 1:22 PM roberto wrote: > hi. > > i am doing a "sudoku" game. > > i have a matrix of 81 labels, from "label1" to "label81" as containers > of the numbers (to show them to user) > > i have matrix to container of number (to "elaborate" them). > > To fill the textlabels i have to do > > > if matrix[1] <> 0 then label1.text=matrix[1] > > if matrix[2] <> 0 then label2.text=matrix[2] > > ... > > if matrix[81] <> 0 then label81.text=matrix[81] > > > also to clean or assign different background color, i have to write 81 > times the same command on different labels. > > it will be HUGE better to have array of objects to allow some the follow: > > > for n = 1 to 81 > > if matrix[n] <> 0 then label[n].text = matrix[n] > > next > > At my eyes, absence of object arrays is the worsest weakness of gambas. > > > PS: in past i did bigger programs with hundreds of labels and all of > them must be worked one by one, it was a mess (doing cut and past and > renumbering, it is so common to do a mistake). > > Getting older, i became less used to face this weakness. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Mar 31 21:10:19 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 31 Mar 2020 21:10:19 +0200 Subject: [Gambas-user] how to manage mysql error in gambas ? In-Reply-To: <20200331182757.43b94f1f@Marc-ThinkPad-SL510> References: <20200331182757.43b94f1f@Marc-ThinkPad-SL510> Message-ID: Le 31/03/2020 ? 18:27, Marc Guillaume a ?crit?: > hi everybody, > > I would like to use the mysql error handling when I try to make a mysql > insert that generates a "Duplacate entry" error in mysql to be able to > transform the query into an update of one of the table fields. But > Gambas returns the -1 error whatever the mysql error generated. I can > parse the mysql error message that is returned, but is there a way to > retrieve the specific error number from MySQL? > > Otherwise I'll try to use a stored procedure. > > thanks for your help > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > The mysql error code is in the Connection.Error property. Regards, -- Beno?t Minisini From alarch at alarch.pw Tue Mar 31 22:12:04 2020 From: alarch at alarch.pw (Marc Guillaume) Date: Tue, 31 Mar 2020 22:12:04 +0200 Subject: [Gambas-user] how to manage mysql error in gambas ? In-Reply-To: References: <20200331182757.43b94f1f@Marc-ThinkPad-SL510> Message-ID: <20200331221204.6b118cb2@Marc-ThinkPad-SL510> Le Tue, 31 Mar 2020 21:10:19 +0200, Beno?t Minisini a ?crit : > Le 31/03/2020 ? 18:27, Marc Guillaume a ?crit?: > > hi everybody, > > > > I would like to use the mysql error handling when I try to make a > > mysql insert that generates a "Duplacate entry" error in mysql to > > be able to transform the query into an update of one of the table > > fields. But Gambas returns the -1 error whatever the mysql error > > generated. I can parse the mysql error message that is returned, > > but is there a way to retrieve the specific error number from MySQL? > > > > Otherwise I'll try to use a stored procedure. > > > > thanks for your help > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > The mysql error code is in the Connection.Error property. > > Regards, > Thank you! I hadn't seen that connection object property. From alarch at alarch.pw Tue Mar 31 22:17:28 2020 From: alarch at alarch.pw (Marc Guillaume) Date: Tue, 31 Mar 2020 22:17:28 +0200 Subject: [Gambas-user] how to manage mysql error in gambas ? In-Reply-To: References: <20200331182757.43b94f1f@Marc-ThinkPad-SL510> Message-ID: <20200331221728.52a187ab@Marc-ThinkPad-SL510> Le Tue, 31 Mar 2020 20:15:25 +0200, Cristiano Guadagnino a ?crit : > Hi Marc, > this does not reply your Gambas question, however the problem you > face is usually handled directly in-database by using the MERGE > statement. MySQL does not support MERGE, but it does support > something similar: see > https://www.dbrnd.com/2015/08/insert-update-merge-statement-in-mysql/ > > Hope this helps > Bye > Cris > > > > Il giorno mar 31 mar 2020 alle ore 18:34 Marc Guillaume > ha scritto: > > > hi everybody, > > > > I would like to use the mysql error handling when I try to make a > > mysql insert that generates a "Duplacate entry" error in mysql to > > be able to transform the query into an update of one of the table > > fields. But Gambas returns the -1 error whatever the mysql error > > generated. I can parse the mysql error message that is returned, > > but is there a way to retrieve the specific error number from MySQL? > > > > Otherwise I'll try to use a stored procedure. > > > > thanks for your help > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Helo, in the meantime I had indeed found the ON DUPLICATE KEY UPDATE statement. But now Beno?t told me where to find the MySQL error in a generic way, for all those occasions when there won't be a MySQL statement as handy as this one. Thanks for your help. From nando_f at nothingsimple.com Tue Mar 31 23:17:18 2020 From: nando_f at nothingsimple.com (nando_f at nothingsimple.com) Date: Tue, 31 Mar 2020 16:17:18 -0500 Subject: [Gambas-user] array of object is SO needed In-Reply-To: References: <4a324567-0d48-5bb1-9c46-8b6fe2cfcd4b@tiscali.it> Message-ID: <20200331211200.M90590@nothingsimple.com> I've done an array[][] of objects for Sudoku In fact, I have 3 kinds of arrays pointing to the same single 9x9 array 9 sets of an array of 3x3 squares which point to the same 9x9 9 sets of an array of 9 for columns pointing to the same 9x9 9 sets of an array of 9 for rows pointing to the same 9x9. It doesn't matter which way you look at it, it all points to the same 9x9 I get to address it as a nine 3x3, or nine rows or nine columns. Each array element was a label where I could set the x,y for each. This structure made it easier for how I did it. There may be better, or even more efficient, but it was cool. Gambas is pretty cool. -Fernando (Canada) -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Tue, 31 Mar 2020 21:20:49 +0300 Subject: Re: [Gambas-user] array of object is SO needed > You can even use array of labels... > > Jussi > > On Tue, Mar 31, 2020 at 1:22 PM roberto wrote: > > > hi. > > > > i am doing a "sudoku" game. > > > > i have a matrix of 81 labels, from "label1" to "label81" as containers > > of the numbers (to show them to user) > > > > i have matrix to container of number (to "elaborate" them). > > > > To fill the textlabels i have to do > > > > > > if matrix[1] <> 0 then label1.text=matrix[1] > > > > if matrix[2] <> 0 then label2.text=matrix[2] > > > > ... > > > > if matrix[81] <> 0 then label81.text=matrix[81] > > > > > > also to clean or assign different background color, i have to write 81 > > times the same command on different labels. > > > > it will be HUGE better to have array of objects to allow some the follow: > > > > > > for n = 1 to 81 > > > > if matrix[n] <> 0 then label[n].text = matrix[n] > > > > next > > > > At my eyes, absence of object arrays is the worsest weakness of gambas. > > > > > > PS: in past i did bigger programs with hundreds of labels and all of > > them must be worked one by one, it was a mess (doing cut and past and > > renumbering, it is so common to do a mistake). > > > > Getting older, i became less used to face this weakness. > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ------- End of Original Message -------