From isafiur at gmail.com Fri May 1 06:41:19 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 1 May 2020 10:26:19 +0545 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: References: Message-ID: Yes the file is there $ ls -la /usr/lib/cgi-bin/newapp* the output is: -rwxr-xr-x 1 ubuntu ubuntu 2405 ?????? 30 17:45 /usr/lib/cgi-bin/newapp From ian.roper at iinet.net.au Fri May 1 07:44:25 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Fri, 1 May 2020 13:44:25 +0800 Subject: [Gambas-user] Using Printer.Default returns an error. Message-ID: <49b591d1-8dd5-ea21-8b30-28a8cb022365@iinet.net.au> Printer.Default (gb.qt4) Static Property Read Default As String Return the name of the default printer. If I try to assign this value to a valid text field it returns the error message "/printer.default is static/" Is the help for printer.default wrong? Cheers, Ian. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri May 1 08:06:46 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 1 May 2020 08:06:46 +0200 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: References: Message-ID: <5fef12c7-0f75-7101-229d-99efacaeaf9e@deganius.de> Am 01.05.20 um 06:41 schrieb Safiur Rahman: > Yes the file is there > > $ ls -la /usr/lib/cgi-bin/newapp* > > the output is: > -rwxr-xr-x 1 ubuntu ubuntu 2405 ?????? 30 17:45 /usr/lib/cgi-bin/newapp Ah sorry, I was on the wrong way. The error was: "gbx3: unable to find startup file: /usr/lib/cgi-bin/newapp" If you look at the Gambas sources of newapp, it should contain a file called ".startup" in the root directory of the project. If it is missing, it should be created automatically when the project is compiled. If the project gets compiled and packed it should make it's way into the executable (which containes the filesystem of the project). So I guess, the error says, that the file called ".startup" is not in the packed filesystem of the gambas executable. Sorry, I have no idea why ... 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 gambas at cd-bahia.com Fri May 1 10:06:22 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Fri, 1 May 2020 10:06:22 +0200 Subject: [Gambas-user] Problem with connection Message-ID: <7837ef02-d27b-6d69-edbc-f4ab951f560c@cd-bahia.com> Hi, I try to use the database component (DB Browser) for the first time. Till now I programmed database apps via SQL, manually so to say. It works fine but makes a lot of of typing work. Now I made a connection and defined all parameters. I can see the tables, even the contents, before I start the program. But as soon as it starts, I get the error message wrong password, and Password =No I installed the secret-code for mate, but then the keyring prompt me for the password, I thought the password was the same for login and keyring, obviously not. Tried to change the keyring-password, but it fails: tells me my old password is wrong. So now I am standing here unable to use the DB browser. Any help? Regards, Dag From gambas at cd-bahia.com Fri May 1 10:47:54 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Fri, 1 May 2020 10:47:54 +0200 Subject: [Gambas-user] Problem with connection In-Reply-To: <7837ef02-d27b-6d69-edbc-f4ab951f560c@cd-bahia.com> References: <7837ef02-d27b-6d69-edbc-f4ab951f560c@cd-bahia.com> Message-ID: Hi again, I solved the problem with the keyring. But now I can't connect anyway, because it tries to connect with password=no, and my server requires a password. How can I change to set password=yes? (I use the german version) Thanks, Dag Am 01.05.20 um 10:06 schrieb Dag Jarle Nerland Johansen - Gambas: > Hi, > I try to use the database component (DB Browser) for the first time. > Till now I programmed database apps via SQL, manually so to say. > It works fine but makes a lot of of typing work. > Now I made a connection and defined all parameters. > I can see the tables, even the contents, before I start the program. > But as soon as it starts, I get the error message wrong password, and > Password =No > I installed the secret-code for mate, but then the keyring prompt me > for the password, > I thought the password was the same for login and keyring, obviously not. > Tried to change the keyring-password, but it fails: tells me my old > password is wrong. > So now I am standing here unable to use the DB browser. > Any help? > Regards, Dag > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From gambas at cd-bahia.com Fri May 1 11:22:45 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Fri, 1 May 2020 11:22:45 +0200 Subject: [Gambas-user] Problem with connection In-Reply-To: References: <7837ef02-d27b-6d69-edbc-f4ab951f560c@cd-bahia.com> Message-ID: <5105dd96-80ca-7fc1-a007-56829b19442a@cd-bahia.com> Seems like a bug. I have set a password, and "no password" is not set. Please see the attatchment Am 01.05.20 um 10:47 schrieb Dag Jarle Nerland Johansen - Gambas: > Hi again, > I solved the problem with the keyring. > But now I can't connect anyway, because it tries to connect with > password=no, > and my server requires a password. > How can I change to set password=yes? > (I use the german version) > Thanks, > Dag > > Am 01.05.20 um 10:06 schrieb Dag Jarle Nerland Johansen - Gambas: >> Hi, >> I try to use the database component (DB Browser) for the first time. >> Till now I programmed database apps via SQL, manually so to say. >> It works fine but makes a lot of of typing work. >> Now I made a connection and defined all parameters. >> I can see the tables, even the contents, before I start the program. >> But as soon as it starts, I get the error message wrong password, and >> Password =No >> I installed the secret-code for mate, but then the keyring prompt me >> for the password, >> I thought the password was the same for login and keyring, obviously >> not. >> Tried to change the keyring-password, but it fails: tells me my old >> password is wrong. >> So now I am standing here unable to use the DB browser. >> Any help? >> Regards, Dag >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto zu 2020-05-01 11-21-29.png Type: image/png Size: 49861 bytes Desc: not available URL: From pierre.deswysen at gmail.com Fri May 1 11:28:42 2020 From: pierre.deswysen at gmail.com (Pierre Deswysen) Date: Fri, 1 May 2020 11:28:42 +0200 Subject: [Gambas-user] Problem with connection In-Reply-To: <5105dd96-80ca-7fc1-a007-56829b19442a@cd-bahia.com> References: <7837ef02-d27b-6d69-edbc-f4ab951f560c@cd-bahia.com> <5105dd96-80ca-7fc1-a007-56829b19442a@cd-bahia.com> Message-ID: I had the same problem and I forgot the "graphic" connection and I use msql in old-fashioned text Le ven. 1 mai 2020 ? 11:23, Dag Jarle Nerland Johansen - Gambas < gambas at cd-bahia.com> a ?crit : > Seems like a bug. > I have set a password, and "no password" is not set. > Please see the attatchment > > > Am 01.05.20 um 10:47 schrieb Dag Jarle Nerland Johansen - Gambas: > > Hi again, > > I solved the problem with the keyring. > > But now I can't connect anyway, because it tries to connect with > > password=no, > > and my server requires a password. > > How can I change to set password=yes? > > (I use the german version) > > Thanks, > > Dag > > > > Am 01.05.20 um 10:06 schrieb Dag Jarle Nerland Johansen - Gambas: > >> Hi, > >> I try to use the database component (DB Browser) for the first time. > >> Till now I programmed database apps via SQL, manually so to say. > >> It works fine but makes a lot of of typing work. > >> Now I made a connection and defined all parameters. > >> I can see the tables, even the contents, before I start the program. > >> But as soon as it starts, I get the error message wrong password, and > >> Password =No > >> I installed the secret-code for mate, but then the keyring prompt me > >> for the password, > >> I thought the password was the same for login and keyring, obviously > >> not. > >> Tried to change the keyring-password, but it fails: tells me my old > >> password is wrong. > >> So now I am standing here unable to use the DB browser. > >> Any help? > >> Regards, Dag > >> > >> > >> ----[ 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 t.lee.davidson at gmail.com Fri May 1 18:58:25 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 1 May 2020 12:58:25 -0400 Subject: [Gambas-user] WebTable In-Reply-To: <20200430203938.M37940@455.co.il> References: <20200430183013.M85821@455.co.il> <20200430184953.M34451@455.co.il> <103cccfb-b692-7acc-4f3d-2e6bfd438284@gmail.com> <20200430203938.M37940@455.co.il> Message-ID: <1f5b7ba7-1158-69f1-70ae-6608843c3cab@gmail.com> On 4/30/20 4:47 PM, Mayost Sharon wrote: > How can it be that once it reaches the _NEW event the values of the controls are empty Because its children controls have not yet been created at that point. > And when it arrives at the OPEN event the values of the controls are full. By this time, the children have also been created and initialized. -- Lee From t.lee.davidson at gmail.com Fri May 1 19:19:36 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 1 May 2020 13:19:36 -0400 Subject: [Gambas-user] DataSource.Table = SELECT... In-Reply-To: References: Message-ID: On 4/30/20 5:36 PM, Gianluigi wrote: > Hi, > Can you pass a SELECT Aliases query to the DataSource.Table of gb.db.form, as SELECT column_name AS alias_name FROM table_name; > or pass multiple tables with Inner Join ? > Because I can't. > > Regards > Gianluigi On a Wordpress database, I was able to use the following successfully: "SELECT option_id, option_name AS my_name FROM wp_options order by option_id asc" I did not try a JOIN. -- Lee From t.lee.davidson at gmail.com Fri May 1 19:26:07 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 1 May 2020 13:26:07 -0400 Subject: [Gambas-user] Using Printer.Default returns an error. In-Reply-To: <49b591d1-8dd5-ea21-8b30-28a8cb022365@iinet.net.au> References: <49b591d1-8dd5-ea21-8b30-28a8cb022365@iinet.net.au> Message-ID: On 5/1/20 1:44 AM, Ian Roper wrote: > > Printer.Default (gb.qt4) > > Static Property Read Default As String > > Return the name of the default printer. > > > If I try to assign this value to a valid text field it returns the error message "/printer.default is static/" > > Is the help for printer.default wrong? > > > Cheers, > > Ian. You didn't show how you are trying to use the method. You cannot use it on a Printer object. You must use it statically. Public Sub Form_Open() Dim sDefaultPrinter As String sDefaultPrinter = Printer.Default Print sDefaultPrinter End -- Lee From bagonergi at gmail.com Fri May 1 19:50:14 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 1 May 2020 19:50:14 +0200 Subject: [Gambas-user] DataSource.Table = SELECT... In-Reply-To: References: Message-ID: Il giorno ven 1 mag 2020 alle ore 19:20 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > > On a Wordpress database, I was able to use the following successfully: > "SELECT option_id, option_name AS my_name FROM wp_options order by > option_id asc" > > So if I understand correctly, you did something like this: DataSource1.Table = "SELECT option_id, option_name AS my_name FROM wp_options order by option_id asc;" And the data source showed you the ordered result in a grid with my_name header. Thanks you have been very helpful. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri May 1 19:54:38 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 1 May 2020 13:54:38 -0400 Subject: [Gambas-user] Problem with connection In-Reply-To: <5105dd96-80ca-7fc1-a007-56829b19442a@cd-bahia.com> References: <7837ef02-d27b-6d69-edbc-f4ab951f560c@cd-bahia.com> <5105dd96-80ca-7fc1-a007-56829b19442a@cd-bahia.com> Message-ID: On 5/1/20 5:22 AM, Dag Jarle Nerland Johansen - Gambas wrote: > Seems?like?a?bug. > I?have?set?a?password,?and?"no?password"?is?not?set. > Please?see?the?attatchment If you are using a GNOME-based keyring, it *should* work. Others have reported that it does work with that keyring. It does, though, have a problem working with KDE's KWallet. Now that you have the keyring functional, perhaps try deleting and re-creating the Connection. -- Lee From t.lee.davidson at gmail.com Fri May 1 19:58:04 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 1 May 2020 13:58:04 -0400 Subject: [Gambas-user] DataSource.Table = SELECT... In-Reply-To: References: Message-ID: On 5/1/20 1:50 PM, Gianluigi wrote: > So if I understand correctly, you did something like this: > > DataSource1.Table = "SELECT option_id, option_name AS my_name FROM wp_options order by option_id asc;" > > And the data source showed you the ordered result in a grid with my_name header. That's correct almost exactly. I believe I used a DataView to display the resulting two columns. -- Lee From kicking177 at gmail.com Sat May 2 19:11:48 2020 From: kicking177 at gmail.com (KKing) Date: Sat, 2 May 2020 18:11:48 +0100 Subject: [Gambas-user] Build from source on Debian 10 Buster Message-ID: Does anyone have some (more recent guidance) on how to build Gambas 3.13 from source for Debian Buster? I referred to? http://gambaswiki.org/wiki/install/debian?nh But it doesn't appear to have a specific section for compiling for buster so I followed the section "Compilation from sources (stretch and sid)" specifically "Gambas 3 (version >= 3.9 and development version on master)" When I tried << Step 3. Install these packages : $ sudo apt install build-essential g++ automake autoconf libbz2-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev default-libmysqlclient-dev postgresql-server-dev-9.6 libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev libssl-dev >> I got <> if I ignore that and run $ ./configure -C I get << || || THESE COMPONENTS ARE DISABLED: || - gb.compress.bzlib2 || - gb.db.mysql || - gb.db.odbc || - gb.db.postgresql || - gb.desktop.gnome.keyring || - gb.desktop.x11 || - gb.gmp || >> Just wondering if anyone else has been through this already? K. From claude.dessere at orange.fr Sat May 2 19:17:02 2020 From: claude.dessere at orange.fr (CD) Date: Sat, 02 May 2020 19:17:02 +0200 Subject: [Gambas-user] xmlDocument Bug 1336 In-Reply-To: References: Message-ID: Hi, here is a copy of an email I recently (2020/04/10) sent to Adrien Prokopowicz, without success! Decidedly, XML doesn't interest many people in the Gambas community. Hi, it's been 22 months since I noticed bug 1336 in http://gambaswiki.org/bugtracker/main. I sent a message to lists.gambas-basic.org on Nov 5, 2019 without any answer. I updated the different versions of Gambas as they are published. Today I'm in 3.14.3 (see my environment below) By re-debugging the code I realized that not only the function Save of the XmlDocument object truncates the prolog of the xml document, but that the Open function of the same XmlDocument object also truncates the same prolog. And in both cases (Open/Save) the Processing Instruction is deleted. Moreover, after searching unsuccessfully in the objects of the gb.xml library, especially in the XmlDocument object, I did not find anywhere a method to create/modify a Prologue (https://www.w3.org/TR/xml/#sec-prolog-dtd) or a Processing Instruction (https://www.w3.org/TR/xml/#sec-pi). My only 2 questions are : Do you intend to correct these problems? and when? Yours sincerely. [System] Gambas=3.14.3 OperatingSystem=Linux Kernel=4.15.0-96-generic Architecture=x86_64 Distribution=Ubuntu 18.04.4 LTS Desktop=MATE Theme=Gtk Language=fr_FR.UTF-8 Memory=7853M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1405.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.73.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.5 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=32288 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1410,unix/:/tmp/.ICE- unix/1410 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1552 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 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 bagonergi at gmail.com Sat May 2 22:49:59 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 2 May 2020 22:49:59 +0200 Subject: [Gambas-user] Build from source on Debian 10 Buster In-Reply-To: References: Message-ID: Il giorno sab 2 mag 2020 alle ore 19:12 KKing ha scritto: > Does anyone have some (more recent guidance) on how to build Gambas 3.13 > from source for Debian Buster? > I think this is the right library: postgresql-server-dev-11 You have to look at this document for the correct libraries: https://gitlab.com/gambas/gambas/-/blob/master/.gitlab-ci.yml gb.desktop.gnome.keyring no longer needed now used desktop secret-tool Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun May 3 01:25:32 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 3 May 2020 08:55:32 +0930 Subject: [Gambas-user] Build from source on Debian 10 Buster In-Reply-To: References: Message-ID: <54748ad0-29ed-f5ca-8753-550a6ae37777@gmail.com> On 3/5/20 2:41 am, KKing wrote: > When I tried > << > Step 3. Install these packages : > $ sudo apt install build-essential g++ automake autoconf libbz2-dev > unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev > default-libmysqlclient-dev postgresql-server-dev-9.6 libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libpoppler-private-dev libasound2-dev libdirectfb-dev libxtst-dev > libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew-dev > libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev > libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev > libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev > libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev > libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev > sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev > libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev libssl-dev > >> > I got > > < E: Unable to locate package postgresql-server-dev-9.6 > E: Couldn't find any package by glob 'postgresql-server-dev-9.6' > E: Couldn't find any package by regex 'postgresql-server-dev-9.6' > E: Unable to locate package libgnome-keyring-dev > >> > That list does not look right for buster, if it were me I'd go back to the requirements on the generic install from source page and work out the proper package requirements for buster. For example: buster uses postgresql v11 (a Gianluigi pointed out) - the correct client side library is "libpq5" not libpq, also I don't see why postgresql-server-dev is included at all, that's the headers for programming the postgres server? > if I ignore that and run > $ ./configure -C > > I get > << > || > || THESE COMPONENTS ARE DISABLED: > || - gb.compress.bzlib2 > || - gb.db.mysql > || - gb.db.odbc > || - gb.db.postgresql > || - gb.desktop.gnome.keyring > || - gb.desktop.x11 > || - gb.gmp > || You will need to go though each and every one of these (that you want) and find out exactly what bit is missing. I know that bzlib in the distro we use is a pain because the actual libraries (.so files) are spread out over several library rpms that have nothing to do really with bzip. Your mileage may differ. hth b From g4mba5 at gmail.com Sun May 3 02:00:14 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 May 2020 02:00:14 +0200 Subject: [Gambas-user] Build from source on Debian 10 Buster In-Reply-To: <54748ad0-29ed-f5ca-8753-550a6ae37777@gmail.com> References: <54748ad0-29ed-f5ca-8753-550a6ae37777@gmail.com> Message-ID: Le 03/05/2020 ? 01:25, Bruce a ?crit : > > > On 3/5/20 2:41 am, KKing wrote: >> When I tried << Step 3. Install these packages : $ sudo apt install >> build-essential g++ automake autoconf libbz2-dev [...] I got >> >> <> postgresql-server-dev-9.6 E: Couldn't find any package by glob >> 'postgresql-server-dev-9.6' E: Couldn't find any package by regex >> 'postgresql-server-dev-9.6' E: Unable to locate package >> libgnome-keyring-dev >>>> >> > > That list does not look right for buster, if it were me I'd go back > to the requirements on the generic install from source page and work > out the proper package requirements for buster. For example: buster > uses postgresql v11 (a Gianluigi pointed out) - the correct client > side library is "libpq5" not libpq, also Yes, the package list in https://gitlab.com/gambas/gambas/-/blob/master/.gitlab-ci.yml is more up to date. When it is not accurate, I get a message from gitlab CI system, and I usually try to fix it as soon as possible. > I don't see why postgresql-server-dev is included at all, that's the > headers for programming the postgres server? > Because the postgres developers put in the server development packages an include file that is needed on the client side. No idea why. Regards, -- Beno?t Minisini From kicking177 at gmail.com Sun May 3 15:52:35 2020 From: kicking177 at gmail.com (KKing) Date: Sun, 3 May 2020 14:52:35 +0100 Subject: [Gambas-user] Build from source on Debian 10 Buster Message-ID: thank you running commands out of ??? https://gitlab.com/gambas/gambas/-/blob/master/.gitlab-ci.yml from the debian:stable section worked for me. K. From kicking177 at gmail.com Sun May 3 15:57:54 2020 From: kicking177 at gmail.com (KKing) Date: Sun, 3 May 2020 14:57:54 +0100 Subject: [Gambas-user] Running multiple versions of Gambas and or use of --program-suffix Message-ID: <48fbdf47-9647-9de9-818a-6ac446d40ec3@gmail.com> I have reasons for wanting to be able to have the version of Gambas as installed from distribution repo as well as maybe a couple of other versions of Gambas built from source. Is it possible to use something like? --program-suffix to build each version from source so from console instead of gambas3 for current repo version, I could, if desired use e.g. gambas3.13? and or gambas3.14 to run built from source versions of? And is that applied at make or make install stage? K? From isafiur at gmail.com Sun May 3 22:00:46 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Mon, 4 May 2020 01:45:46 +0545 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: References: Message-ID: Hi I found the bug which is causing problem in loading any form in gb.web.gui. Args[0] in Static Public Sub Main() of WebForm Class is not taking value. So in order to run my application with name "newapp" I commented following lines: ' If Not Exist(Application.Path &/ Args[0]) Then ' If Class.IsLoaded("Debug") Then ' PrintLog("---------------- EXEC gbx3 -g -f " & Debug.Fifo & " " & Application.Path & " -- " & Application.Handle & " " & sCookie) ' hProcess = Exec ["gbx3", "-g", "-f", Debug.Fifo, Application.Path, "--", Application.Handle, sCookie] Wait ' Else ' PrintLog("---------------- EXEC gbx3 " & Application.Path & " -- " & Application.Handle & " " & sCookie) ' hProcess = Exec ["gbx3", Application.Path, "--", Application.Handle, sCookie] Wait ' Endif ' Else ' PrintLog("---------------- EXEC " & Application.Path &/ Args[0] & " " & Application.Handle & " " & sCookie) ' hProcess = Exec [Application.Path &/ Args[0], Application.Handle, sCookie] Wait ' Endif and added following lines: PrintLog("---------------- EXEC " & Application.Path &/ "newapp" & " " & Application.Handle & " " & sCookie) hProcess = Exec [Application.Path &/ "newapp", Application.Handle, sCookie] Wait Then I compiled and installed. Now I can load "newapp" webforms in gb.web.gui. From brian at westwoodsvcs.com Sun May 3 23:13:00 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 3 May 2020 14:13:00 -0700 (PDT) Subject: [Gambas-user] Command line app for getting, listing and searching online shared gambas lib repository Message-ID: <507235034.22498.1588540380808.JavaMail.zimbra@westwoodsvcs.com> Would anyone find it interesting to have a command line app for installing, searching and listing gambas shared libraries Much like pythons pip, we could have gap(gambas app project .. lol) that works the same way as pip for gambas shared libraries from a local or curated central source. Will allow us to build out shared libraries for device management, special use cases etc. Like raspberry pi hats. Without the overhead of having to have then available thru distro management sources. This may help to make Gambas more popular among younger and hobby users. Making interfaces to things much easier to use and reaching a broader audience of users familiar with quick access to black box solutions with documentation. Just a thought! Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun May 3 23:53:38 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 May 2020 23:53:38 +0200 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: References: Message-ID: Le 03/05/2020 ? 22:00, Safiur Rahman a ?crit?: > Hi > > I found the bug which is causing problem in loading any form in gb.web.gui. > Args[0] in Static Public Sub Main() of WebForm Class is not taking > value. So in order to run my application with name "newapp" I > commented following lines: > ' If Not Exist(Application.Path &/ Args[0]) Then > ' If Class.IsLoaded("Debug") Then > ' PrintLog("---------------- EXEC gbx3 -g -f " & Debug.Fifo & > " " & Application.Path & " -- " & Application.Handle & " " & sCookie) > ' hProcess = Exec ["gbx3", "-g", "-f", Debug.Fifo, > Application.Path, "--", Application.Handle, sCookie] Wait > ' Else > ' PrintLog("---------------- EXEC gbx3 " & Application.Path & > " -- " & Application.Handle & " " & sCookie) > ' hProcess = Exec ["gbx3", Application.Path, "--", > Application.Handle, sCookie] Wait > ' Endif > ' Else > ' PrintLog("---------------- EXEC " & Application.Path &/ > Args[0] & " " & Application.Handle & " " & sCookie) > ' hProcess = Exec [Application.Path &/ Args[0], > Application.Handle, sCookie] Wait > ' Endif > > and added following lines: > PrintLog("---------------- EXEC " & Application.Path &/ "newapp" & " " > & Application.Handle & " " & sCookie) > hProcess = Exec [Application.Path &/ "newapp", Application.Handle, > sCookie] Wait > > Then I compiled and installed. Now I can load "newapp" webforms in gb.web.gui. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Thanks for the investigation. Normally Args[0] is always the name of the executable. How could it be void? -- Beno?t Minisini From g4mba5 at gmail.com Mon May 4 00:37:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 May 2020 00:37:31 +0200 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: References: Message-ID: <7c8ef06b-252a-037a-1696-e63c4aadaa1f@gmail.com> Le 03/05/2020 ? 23:53, Beno?t Minisini a ?crit?: > Le 03/05/2020 ? 22:00, Safiur Rahman a ?crit?: >> Hi >> >> I found the bug which is causing problem in loading any form in >> gb.web.gui. >> Args[0] in Static Public Sub Main() of WebForm Class is not taking >> value. > > Thanks for the investigation. > > Normally Args[0] is always the name of the executable. How could it be > void? > I have just tested by running a Gambas CGI script executable through an Apache server located on a server of the company I work for: Args[0] is not void, and returns the absolute path of the executable. Can you investigate or your own apache server to see why Args[0] is void? -- Beno?t Minisini From g4mba5 at gmail.com Mon May 4 00:41:12 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 May 2020 00:41:12 +0200 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: <7c8ef06b-252a-037a-1696-e63c4aadaa1f@gmail.com> References: <7c8ef06b-252a-037a-1696-e63c4aadaa1f@gmail.com> Message-ID: <02a300a7-8129-ef5c-d7f6-afa22eee6ddf@gmail.com> Le 04/05/2020 ? 00:37, Beno?t Minisini a ?crit?: > Le 03/05/2020 ? 23:53, Beno?t Minisini a ?crit?: >> Le 03/05/2020 ? 22:00, Safiur Rahman a ?crit?: >>> Hi >>> >>> I found the bug which is causing problem in loading any form in >>> gb.web.gui. >>> Args[0] in Static Public Sub Main() of WebForm Class is not taking >>> value. >> >> Thanks for the investigation. >> >> Normally Args[0] is always the name of the executable. How could it be >> void? >> > > I have just tested by running a Gambas CGI script executable through an > Apache server located on a server of the company I work for: Args[0] is > not void, and returns the absolute path of the executable. > > Can you investigate or your own apache server to see why Args[0] is void? > I just saw that it's possible for a parent process to set its first argument to NULL before running a child process. So I should find a way for a Gambas program to run itself again without relying on Args[0]... Weird! -- Beno?t Minisini From g4mba5 at gmail.com Mon May 4 01:49:34 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 May 2020 01:49:34 +0200 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: <02a300a7-8129-ef5c-d7f6-afa22eee6ddf@gmail.com> References: <7c8ef06b-252a-037a-1696-e63c4aadaa1f@gmail.com> <02a300a7-8129-ef5c-d7f6-afa22eee6ddf@gmail.com> Message-ID: <8944f708-7e4d-718e-4966-9c0d241c02b5@gmail.com> Le 04/05/2020 ? 00:41, Beno?t Minisini a ?crit?: > Le 04/05/2020 ? 00:37, Beno?t Minisini a ?crit?: >> Le 03/05/2020 ? 23:53, Beno?t Minisini a ?crit?: >>> Le 03/05/2020 ? 22:00, Safiur Rahman a ?crit?: >>>> Hi >>>> >>>> I found the bug which is causing problem in loading any form in >>>> gb.web.gui. >>>> Args[0] in Static Public Sub Main() of WebForm Class is not taking >>>> value. >>> >>> Thanks for the investigation. >>> >>> Normally Args[0] is always the name of the executable. How could it >>> be void? >>> >> >> I have just tested by running a Gambas CGI script executable through >> an Apache server located on a server of the company I work for: >> Args[0] is not void, and returns the absolute path of the executable. >> >> Can you investigate or your own apache server to see why Args[0] is void? >> > > I just saw that it's possible for a parent process to set its first > argument to NULL before running a child process. > > So I should find a way for a Gambas program to run itself again without > relying on Args[0]... Weird! > Sorry, I told you rubbish. Your Gambas executable 'newapp' is actually a script run through the 'gbr3' command. So the executed command is actually 'gbr3 '. It's the gambas interpreter then that put '' in argv[0]. So it is impossible to Args[0] to be void. -- Beno?t Minisini From g4mba5 at gmail.com Mon May 4 02:17:41 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 May 2020 02:17:41 +0200 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: References: Message-ID: <1d9293f2-58a4-a7c0-80ed-7a6846f65418@gmail.com> Le 03/05/2020 ? 22:00, Safiur Rahman a ?crit?: > Hi > > I found the bug which is causing problem in loading any form in gb.web.gui. > Args[0] in Static Public Sub Main() of WebForm Class is not taking > value. Can you try the last commit and tell me if it changes something for you? I still don't know how Args[0] could possibly be void! -- Beno?t Minisini From sharon at 455.co.il Mon May 4 05:26:42 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 4 May 2020 06:26:42 +0300 Subject: [Gambas-user] WebHtml With bootstrap Message-ID: <20200504032523.M55832@455.co.il> Hello I'm trying to put an WebHTML page with a bootstrapcdn CSS It works well on display But it stop the functioning of events Attached is an example When I tried to go to GAMBAS source code and manually added inside the file: Header.webpage In addition to what's there: Inside the section: ... ... ... ... ... ... The question is whether there is a better way without the need for a source to put more stuff into the part Many thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: wf2.zip Type: application/zip Size: 18182 bytes Desc: not available URL: From isafiur at gmail.com Mon May 4 07:33:10 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Mon, 4 May 2020 11:18:10 +0545 Subject: [Gambas-user] gb.web.gui application with apache2 In-Reply-To: References: Message-ID: Hi I can confirm that I can load webform in gb.web.gui with recent fix in lighttpd. will check in apache2 later on. I have attached the gambas error.log files before and after the fix in both conditions(ie "/usr/lib/cgi-bin/newapp" and "~/public_html/cgi-bin/newapp"). Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: root_lighty_old.log Type: text/x-log Size: 222 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: root_lighty_new.log Type: text/x-log Size: 61164 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: home_lighty_old.log Type: text/x-log Size: 246 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: home_lighty_new.log Type: text/x-log Size: 31779 bytes Desc: not available URL: From jean-yvon.renaut at wanadoo.fr Tue May 5 10:33:31 2020 From: jean-yvon.renaut at wanadoo.fr (Jean-Yvon) Date: Tue, 5 May 2020 10:33:31 +0200 Subject: [Gambas-user] Version 20.04 And QT4 Message-ID: Hello, I had to reinstall kubuntu before making a backup. I had an answer that saved all my work, but of course it went away. I just went on 20.04 (not stable). This version no longer accepts gb.qt4 what to replace this component with? thank you in advance Bonjour, J'ai ?t? oblig? de r?installer kubuntu avant de faire une sauvegarde. J'avais eu une r?ponse qui avait sauv? tout mon travail mais bien sur elle est partie. Je viens de passer sur la 20.04 (pas stable). Cette version n'accepte plus gb.qt4 par quoi lremplacer ce composant? Merci d'avance -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue May 5 10:38:38 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 May 2020 10:38:38 +0200 Subject: [Gambas-user] Version 20.04 And QT4 In-Reply-To: References: Message-ID: Il giorno mar 5 mag 2020 alle ore 10:34 Jean-Yvon < jean-yvon.renaut at wanadoo.fr> ha scritto: > Hello, > I had to reinstall kubuntu before making a backup. > I had an answer that saved all my work, but of course it went away. > I just went on 20.04 (not stable). This version no longer accepts gb.qt4 > what to replace this component with? > thank you in advance > gb.gui.qt Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 5 10:39:08 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 May 2020 10:39:08 +0200 Subject: [Gambas-user] Version 20.04 And QT4 In-Reply-To: References: Message-ID: <24d7082a-08f8-eb99-c1b6-ead0a71035fe@gmail.com> Le 05/05/2020 ? 10:33, Jean-Yvon a ?crit?: > Hello, > I had to reinstall kubuntu before making a backup. > I had an answer that saved all my work, but of course it went away. > I just went on 20.04 (not stable). This version no longer accepts gb.qt4 > what to replace this component with? > thank you in advance > > Bonjour, > J'ai ?t? oblig? de r?installer kubuntu avant de faire une sauvegarde. > J'avais eu une r?ponse qui avait sauv? tout mon travail mais bien sur > elle est partie. > Je viens de passer sur la 20.04 (pas stable). Cette version n'accepte > plus gb.qt4 par quoi lremplacer ce composant? > Merci d'avance > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You have to use gb.qt5 instead. What's the problem? -- Beno?t Minisini From bagonergi at gmail.com Tue May 5 10:53:26 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 May 2020 10:53:26 +0200 Subject: [Gambas-user] Version 20.04 And QT4 In-Reply-To: <24d7082a-08f8-eb99-c1b6-ead0a71035fe@gmail.com> References: <24d7082a-08f8-eb99-c1b6-ead0a71035fe@gmail.com> Message-ID: > gb.gui.qt > Regards > Gianluigi > You have to use gb.qt5 instead. What's the problem? > -- > Beno?t Minisini The most important thing is ... to all agree ;-D Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Tue May 5 12:48:23 2020 From: tercoide at hotmail.com (martin p cristia) Date: Tue, 5 May 2020 07:48:23 -0300 Subject: [Gambas-user] DXF parser In-Reply-To: References: Message-ID: Hi, if anybody has an DXF parser to draw things with Paint and want to share it, let me know. -- Saludos Ing. Martin P Cristia From jean-yvon.renaut at wanadoo.fr Tue May 5 13:08:09 2020 From: jean-yvon.renaut at wanadoo.fr (Jean-Yvon) Date: Tue, 5 May 2020 13:08:09 +0200 Subject: [Gambas-user] Version 20.04 And QT4 In-Reply-To: References: Message-ID: Thank you for your answers When the project starts there are several messages: 1 C Component 626 user control class is missing in gb.form that twice and once with gb.form.editor Once in the IDE the form is not edited in graphical mode but I only have the code when I want to change the component and go to gb.gui.qt Here is the answer : [13] null object F.component chooser checkselection 666 so the project no longer works at all Codially JY Merci de vos r?ponses Au d?marage du projet il y a plusieurs message: 1 C Component 626 user control class is missing in gb.form ?a deux fois et une fois avec gb.form.editor Une fois dans l'IDE les form ne s'?dite pas en mode graphique mais je n'ai que le code lorsque je veux changer de composant et passer ? gb.gui.qt voici la r?ponse : [13] null object F.component chooser checkselection 666 donc le projet ne fonctionne plus du tout Codialement Le 05/05/2020 ? 10:38, Gianluigi a ?crit?: > > > Il giorno mar 5 mag 2020 alle ore 10:34 Jean-Yvon > > ha > scritto: > > Hello, > I had to reinstall kubuntu before making a backup. > I had an answer that saved all my work, but of course it went away. > I just went on 20.04 (not stable). This version no longer accepts > gb.qt4 what to replace this component with? > thank you in advance > > gb.gui.qt > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue May 5 14:11:54 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 May 2020 14:11:54 +0200 Subject: [Gambas-user] Version 20.04 And QT4 In-Reply-To: References: Message-ID: Il giorno mar 5 mag 2020 alle ore 13:09 Jean-Yvon < jean-yvon.renaut at wanadoo.fr> ha scritto: > Thank you for your answers > When the project starts there are several messages: > 1 C Component 626 > user control class is missing in gb.form > that twice > and once with gb.form.editor > > Once in the IDE the form is not edited in graphical mode but I only have > the code > > when I want to change the component and go to gb.gui.qt > Here is the answer : > [13] null object > F.component chooser checkselection 666 > > so the project no longer works at all > The ancient Latins said: "ubi maior minor cessat" in this case, maior = Benoit Minisini minor = Gianluigi :-) The errors you receive come from components written in C What components does your program use? If it use gb.qt4 and gb.qt4.ext you should switch to gb.qt5 and gb.qt5.ext as suggested by maior. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Tue May 5 14:39:34 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Tue, 5 May 2020 14:39:34 +0200 Subject: [Gambas-user] How to make an array Message-ID: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Hi, I got unsure how to create a dynamic two-dimensional array. I need to read in a CSV for processing addresses. That means a variable length of the array, but the field numbers are always the same. forename, surename, mail ... Can anyone help, thanks, (I know I should know this by now but I only program now and then with long pauses in between) Dag From bagonergi at gmail.com Tue May 5 14:52:20 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 May 2020 14:52:20 +0200 Subject: [Gambas-user] How to make an array In-Reply-To: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Message-ID: Il giorno mar 5 mag 2020 alle ore 14:40 Dag Jarle Nerland Johansen - Gambas ha scritto: > Hi, > I got unsure how to create a dynamic two-dimensional array. > I need to read in a CSV for processing addresses. > That means a variable length of the array, but the field numbers are > always the same. > forename, surename, mail ... > Can anyone help, > thanks, > (I know I should know this by now but I only program now and then with > long pauses in between) > Dag > Maybe this example of mine on the Gambas Software Farm can help you: DynamicMatrixExample 0.1.4 on 2016 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue May 5 16:21:12 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 5 May 2020 10:21:12 -0400 Subject: [Gambas-user] How to make an array In-Reply-To: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Message-ID: <1763a8aa-eb20-131e-18b3-ebbae9d21033@gmail.com> On 5/5/20 8:39 AM, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > I got unsure how to create a dynamic two-dimensional array. > I need to read in a CSV for processing addresses. > That means a variable length of the array, but the field numbers are always the same. > forename, surename, mail ... > Can anyone help, > thanks, > (I know I should know this by now but I only program now and then with long pauses in between) > Dag Perhaps an array of Collection (Collection[]) would be better suited. -- Lee From jean-yvon.renaut at wanadoo.fr Tue May 5 16:26:52 2020 From: jean-yvon.renaut at wanadoo.fr (Jean-Yvon) Date: Tue, 5 May 2020 16:26:52 +0200 Subject: [Gambas-user] Version 20.04 And QT4 In-Reply-To: References: Message-ID: <8c7b9713-64e6-800f-a69e-bf70cc673e43@wanadoo.fr> hello Don't ask me how I did it. All my programs work with gb.gui.qt. To relax, I opened another one and there, there was no problem going from gb.qt4 to gb.gui.qt. So I came back to the most reticent and it went like a letter in the mail. Thank you for your attention JY Le 05/05/2020 ? 14:11, Gianluigi a ?crit?: > > > Il giorno mar 5 mag 2020 alle ore 13:09 Jean-Yvon > > ha > scritto: > > Thank you for your answers > When the project starts there are several messages: > 1 C Component 626 > user control class is missing in gb.form > that twice > and once with gb.form.editor > > Once in the IDE the form is not edited in graphical mode but I > only have the code > > when I want to change the component and go to gb.gui.qt > Here is the answer : > [13] null object > F.component chooser checkselection 666 > > so the project no longer works at all > > > The ancient Latins said: > "ubi maior minor cessat" > in this case, maior = Benoit Minisini > minor = Gianluigi :-) > > The errors you receive come from components written in C > > What components does your program use? > If it use gb.qt4 and gb.qt4.ext you should switch to gb.qt5 and > gb.qt5.ext as suggested by maior. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue May 5 16:45:21 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 5 May 2020 16:45:21 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> Message-ID: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Am 06.04.20 um 14:19 schrieb Beno?t Minisini: > But as soon as everything is written in Gambas and depends on no > specific component, you can put everything in the same project, while > keeping the separation between the 'gb.test' code and the 'gb.test.tap' > code. Ok it is done so far. We merged all into gb.test. gb.test works and can be used and tested by everyone. Here's how it goes: https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/README.md We have reached the point where the machinery is running. It lacks a few things which can be read here (and should be done for 3.15): https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/taskell.md The point "Decide where Skip, SkipAll, Todo reside" still keeps it in alpha state until these interfaces have found their place. But overall the duty is done, just the freestyle is missing (aka GUI, integration into the IDE) but I think we can leave that to Gambas 3.16. My experience is that you have to work with it for a while before you get the beauty and ease of programming with this system. So please try it out and have fun with it. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bagonergi at gmail.com Tue May 5 17:09:15 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 May 2020 17:09:15 +0200 Subject: [Gambas-user] How to make an array In-Reply-To: References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Message-ID: Il giorno mar 5 mag 2020 alle ore 14:52 Gianluigi ha scritto: > > > Il giorno mar 5 mag 2020 alle ore 14:40 Dag Jarle Nerland Johansen - > Gambas ha scritto: > >> Hi, >> I got unsure how to create a dynamic two-dimensional array. >> I need to read in a CSV for processing addresses. >> That means a variable length of the array, but the field numbers are >> always the same. >> forename, surename, mail ... >> Can anyone help > > > Maybe this example of mine on the Gambas Software Farm can help you: > DynamicMatrixExample 0.1.4 on 2016 > Sorry I forgot this: http://gambaswiki.org/wiki/comp/gb.util/csvfile Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Tue May 5 18:10:23 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Tue, 05 May 2020 18:10:23 +0200 Subject: [Gambas-user] How to make an array In-Reply-To: References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Message-ID: Am Dienstag, den 05.05.2020, 17:09 +0200 schrieb Gianluigi: > Il giorno mar 5 mag 2020 alle ore 14:52 Gianluigi < > bagonergi at gmail.com> ha scritto: > > Il giorno mar 5 mag 2020 alle ore 14:40 Dag Jarle Nerland Johansen > > - Gambas ha scritto: > > > Hi, > > > > > > I got unsure how to create a dynamic two-dimensional array. > > > > > > I need to read in a CSV for processing addresses. > > > > > > That means a variable length of the array, but the field numbers > > > are > > > > > > always the same. > > > > > > forename, surename, mail ... > > > > > > Can anyone help > > > Maybe this example of mine on the Gambas Software Farm can help > > you: > > DynamicMatrixExample 0.1.4 on 2016 > > Sorry I forgot this: > http://gambaswiki.org/wiki/comp/gb.util/csvfile > hey, that is from future. "Since 3.15 Create a CSV File". -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Tue May 5 18:29:05 2020 From: kicking177 at gmail.com (KKing) Date: Tue, 5 May 2020 17:29:05 +0100 Subject: [Gambas-user] Running multiple versions of Gambas and or use of --program-suffix Message-ID: <38d3b6d5-6eae-6271-786a-0b2733926e30@gmail.com> << I have reasons for wanting to be able to have the version of Gambas as installed from distribution repo as well as maybe a couple of other versions of Gambas built from source. Is it possible to use something like? --program-suffix to build each version from source so from console instead of gambas3 for current repo version, I could, if desired use e.g. gambas3.13? and or gambas3.14 to run built from source versions of? And is that applied at make or make install stage? >> I'm guessing that is a NO then? From olivier.cruilles at yahoo.fr Tue May 5 18:49:09 2020 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Tue, 5 May 2020 12:49:09 -0400 Subject: [Gambas-user] How to make an array In-Reply-To: <1763a8aa-eb20-131e-18b3-ebbae9d21033@gmail.com> References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> <1763a8aa-eb20-131e-18b3-ebbae9d21033@gmail.com> Message-ID: Hello, I thing the simple way to manage an Array for various kind of fiels could be an Array of Class Example: - Create a Class named ?ClassUserRecord? containing: Public FirstName as String Public LastName as String Public Address1 as String Public Address2 as String Public PhoneNumber as String - In your Form or module, instantiate an Array based in this Class Public ArrayOfUser as New ClassUserRecord[] - To add a new entry in the Array Public Sub Add_New_User(FirsName as String, LastName as String, Address1 as String, Address2 as String, PhoneNumber as String) Dim NewUserRecord as?ClassUserRecord NewUserRecord = New?ClassUserRecord NewUserRecord.FirstName =?FirsName NewUserRecord.LastName =?LastName NewUserRecord.Address1 =?Address1 NewUserRecord.Address2 =?Address2 NewUserRecord.PhoneNumber =?PhoneNumber ArrayOfUser.Add(NewUserRecord) End - To list all User in the Array Public Sub List_User_Array() Dim ItemUser as?ClassUserRecord ? ? if?ArrayOfUser <> NULL Then print ?Sorry, no User in the Array for now? End If For Each ItemUser In ArrayOfUser Print ?FirstName: ? & ItemUser.FirstName Print ?LastName: ? & ItemUser. LastName Print ?Address1: ? & ItemUser. Address1 Print ?Address2: ? & ItemUser. Address2 Print ?PhoneNumber: ? & ItemUser. PhoneNumber Next Print ?Number of records: ? & ArrayOfUser.Count End Etc?... This is just examples?. ?? Olivier Cruilles On May 5, 2020 at 10:22:05, T Lee Davidson (t.lee.davidson at gmail.com) wrote: On 5/5/20 8:39 AM, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > I got unsure how to create a dynamic two-dimensional array. > I need to read in a CSV for processing addresses. > That means a variable length of the array, but the field numbers are always the same. > forename, surename, mail ... > Can anyone help, > thanks, > (I know I should know this by now but I only program now and then with long pauses in between) > Dag Perhaps an array of Collection (Collection[]) would be better suited. -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue May 5 19:04:15 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 May 2020 19:04:15 +0200 Subject: [Gambas-user] How to make an array In-Reply-To: References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Message-ID: Il giorno mar 5 mag 2020 alle ore 18:23 Karl Reinl ha scritto: > Am Dienstag, den 05.05.2020, 17:09 +0200 schrieb Gianluigi: > > > > Il giorno mar 5 mag 2020 alle ore 14:52 Gianluigi > ha scritto: > > > > Il giorno mar 5 mag 2020 alle ore 14:40 Dag Jarle Nerland Johansen - > Gambas ha scritto: > > Hi, > I got unsure how to create a dynamic two-dimensional array. > I need to read in a CSV for processing addresses. > That means a variable length of the array, but the field numbers are > always the same. > forename, surename, mail ... > Can anyone help > > > > > Maybe this example of mine on the Gambas Software Farm can help you: > DynamicMatrixExample 0.1.4 on 2016 > > > Sorry I forgot this: > http://gambaswiki.org/wiki/comp/gb.util/csvfile > > hey, that is from future. > "Since 3.15 Create a CSV File". > But I have the master, I'm in the future! And as Benoit says, the master is the stable of tomorrow. :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue May 5 19:22:30 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 May 2020 19:22:30 +0200 Subject: [Gambas-user] How to make an array In-Reply-To: References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> <1763a8aa-eb20-131e-18b3-ebbae9d21033@gmail.com> Message-ID: Il giorno mar 5 mag 2020 alle ore 18:50 Yahoo via User < user at lists.gambas-basic.org> ha scritto: > Hello, > > I thing the simple way to manage an Array for various kind of fiels could > be an Array of Class > > Example: > ... > ? If he doesn't have the master, maybe does it first by downloading the CsvFile.class: https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.util/.src/CsvFile.class Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Tue May 5 19:28:34 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Tue, 05 May 2020 19:28:34 +0200 Subject: [Gambas-user] Running multiple versions of Gambas and or use of --program-suffix In-Reply-To: <38d3b6d5-6eae-6271-786a-0b2733926e30@gmail.com> References: <38d3b6d5-6eae-6271-786a-0b2733926e30@gmail.com> Message-ID: <1905badbc2d46eed7d0209e317af8c0eaa72e27f.camel@fen-net.de> Am Dienstag, den 05.05.2020, 17:29 +0100 schrieb KKing: > << > I have reasons for wanting to be able to have the version of Gambas > as > installed from distribution repo as well as maybe a couple of other > versions of Gambas built from source. Is it possible to use something > like? --program-suffix to build each version from source so from > console > instead of gambas3 for current repo version, I could, if desired use > e.g. gambas3.13? and or gambas3.14 to run built from source versions > of? > And is that applied at make or make install stage? > > > > > I'm guessing that is a NO then? Salut KKing, I once had 3 versions on one computer, but only one could be installed at a time. If I needed another version, I changed into its directory and made a "sudo make install". I had a script for that. All 3 were build from the source code. -- Amicalement Charlie From t.lee.davidson at gmail.com Wed May 6 15:40:50 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 6 May 2020 09:40:50 -0400 Subject: [Gambas-user] How to make an array In-Reply-To: References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> <1763a8aa-eb20-131e-18b3-ebbae9d21033@gmail.com> Message-ID: <1471baa4-3e50-8ed1-dc15-28c6aab8e988@gmail.com> On 5/6/20 4:59 AM, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > thanks, but that confuses even more > > Am 05.05.20 um 16:21 schrieb T Lee Davidson: >> On 5/5/20 8:39 AM, Dag Jarle Nerland Johansen - Gambas wrote: >>> Hi, >>> I got unsure how to create a dynamic two-dimensional array. >>> I need to read in a CSV for processing addresses. >>> That means a variable length of the array, but the field numbers are always the same. >>> forename, surename, mail ... >>> Can anyone help, >>> thanks, >>> (I know I should know this by now but I only program now and then with long pauses in between) >>> Dag >> >> Perhaps an array of Collection (Collection[]) would be better suited. Public Sub Main() Dim hCsvFile As CsvFile Dim aLines As Collection[] hCsvFile = New CsvFile("MyCsvFile.csv", ",") While Not hCsvFile.Eof aLines.Add(hCsvFile.Read) Wend End http://gambaswiki.org/wiki/comp/gb.util/csvfile -- Lee From charlie at cogier.com Wed May 6 15:39:49 2020 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 6 May 2020 14:39:49 +0100 Subject: [Gambas-user] How to make an array In-Reply-To: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Message-ID: Hi Dag, If your CSV file is set up something like: - forename, surename, mail, tel, sock colour!, etc I suggest you open the file with a line like: - Dim sData as String = Split(File.Load("MyFile.csv"), gb.NewLine, Chr(34), True, True) This will split each line into 1 element of the sData array You can then Split each line, when needed. I have attached a program that is in early development but should open your file and display the contents in a GridView If you want more help pop a post at https://forum.gambas.one/ Charlie On 05/05/2020 13:39, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > I got unsure how to create a dynamic two-dimensional array. > I need to read in a CSV for processing addresses. > That means a variable length of the array, but the field numbers are > always the same. > forename, surename, mail ... > Can anyone help, > thanks, > (I know I should know this by now but I only program now and then with > long pauses in between) > Dag > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- A non-text attachment was scrubbed... Name: No_db_Database-0.0.4.tar.gz Type: application/gzip Size: 68369 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed May 6 23:36:51 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 6 May 2020 17:36:51 -0400 Subject: [Gambas-user] How to make an array In-Reply-To: References: <94986249-df06-ba7e-ff90-6d91cffc513b@cd-bahia.com> Message-ID: On 5/6/20 9:39 AM, Charlie Ogier wrote: > Dim sData as String = Split(File.Load("MyFile.csv"), gb.NewLine, Chr(34),?True,?True) Just for clarity, shouldn't that be: Dim sData as String[] = Split(File.Load("MyFile.csv"), gb.NewLine, Chr(34), True, True) I didn't look at the program to see if it's the same there. -- Lee From ian.roper at iinet.net.au Thu May 7 02:18:01 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Thu, 7 May 2020 08:18:01 +0800 Subject: [Gambas-user] Minor feature request Message-ID: Would it be possible to add a DateCreated=YYYY-MM-DD? to the .project file ? This would reflect when the actual project was created and this would never need to be changed again. It would allow the developer to know when this piece of work was started. Regards, Ian Roper From adamnt42 at gmail.com Thu May 7 06:34:01 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 7 May 2020 14:04:01 +0930 Subject: [Gambas-user] Minor feature request In-Reply-To: References: Message-ID: <16d20955-f30f-37cc-0301-7aa197d45965@gmail.com> Quick reply Just shell out of the IDE and "touch datecreated". Then 'twill e'er be there. b On 7/5/20 9:48 am, Ian Roper wrote: > Would it be possible to add a DateCreated=YYYY-MM-DD?? to the .project > file ? > > This would reflect when the actual project was created and this would > never need to be changed again. > > It would allow the developer to know when this piece of work was started. > > > Regards, > > Ian Roper > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Thu May 7 07:13:28 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 07:13:28 +0200 Subject: [Gambas-user] Minor feature request In-Reply-To: <16d20955-f30f-37cc-0301-7aa197d45965@gmail.com> References: <16d20955-f30f-37cc-0301-7aa197d45965@gmail.com> Message-ID: <4264e046-2837-e426-d456-71efc1c05c43@gmail.com> Le 07/05/2020 ? 06:34, Bruce a ?crit?: > Quick reply > Just shell out of the IDE and "touch datecreated". > Then 'twill e'er be there. > b > > On 7/5/20 9:48 am, Ian Roper wrote: >> Would it be possible to add a DateCreated=YYYY-MM-DD?? to the .project >> file ? >> >> This would reflect when the actual project was created and this would >> never need to be changed again. >> >> It would allow the developer to know when this piece of work was started. >> >> >> Regards, >> >> Ian Roper >> Anyway, it's possible. -- Beno?t Minisini From g4mba5 at gmail.com Thu May 7 07:30:15 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 07:30:15 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: Le 05/05/2020 ? 16:45, Christof Thalhofer a ?crit?: > Am 06.04.20 um 14:19 schrieb Beno?t Minisini: > >> But as soon as everything is written in Gambas and depends on no >> specific component, you can put everything in the same project, while >> keeping the separation between the 'gb.test' code and the 'gb.test.tap' >> code. > > Ok it is done so far. We merged all into gb.test. > > gb.test works and can be used and tested by everyone. Here's how it goes: > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/README.md > > We have reached the point where the machinery is running. It lacks a few > things which can be read here (and should be done for 3.15): > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/taskell.md > > The point "Decide where Skip, SkipAll, Todo reside" still keeps it in > alpha state until these interfaces have found their place. But overall > the duty is done, just the freestyle is missing (aka GUI, integration > into the IDE) but I think we can leave that to Gambas 3.16. > > My experience is that you have to work with it for a while before you > get the beauty and ease of programming with this system. So please try > it out and have fun with it. > > Alles Gute > > Christof Thalhofer > Hi, 'gbt3'should be removed in its current form: it has too many hacks (recompiling the target project!) that do not work in all cases. First, support for running 'Test.Main()' directly in the interpreter must be added. I will do that and tell you. Then 'gbt3' will be able to be rewritten correctly (and with less lines of code). Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 7 07:39:23 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 07:39:23 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: Le 05/05/2020 ? 16:45, Christof Thalhofer a ?crit?: > Am 06.04.20 um 14:19 schrieb Beno?t Minisini: > >> But as soon as everything is written in Gambas and depends on no >> specific component, you can put everything in the same project, while >> keeping the separation between the 'gb.test' code and the 'gb.test.tap' >> code. > > Ok it is done so far. We merged all into gb.test. > > gb.test works and can be used and tested by everyone. Here's how it goes: > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/README.md > > We have reached the point where the machinery is running. It lacks a few > things which can be read here (and should be done for 3.15): > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/taskell.md > > The point "Decide where Skip, SkipAll, Todo reside" still keeps it in > alpha state until these interfaces have found their place. But overall > the duty is done, just the freestyle is missing (aka GUI, integration > into the IDE) but I think we can leave that to Gambas 3.16. > > My experience is that you have to work with it for a while before you > get the beauty and ease of programming with this system. So please try > it out and have fun with it. > > Alles Gute > > Christof Thalhofer > Another point: maybe Setup, TearDown, SetupEach and TearDownEach should be prefixed with an underscore. This is the standard way in Gambas to tell the user "warning! special methods, do not use these names for something else". Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 7 07:56:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 07:56:43 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> Le 05/05/2020 ? 16:45, Christof Thalhofer a ?crit?: > Am 06.04.20 um 14:19 schrieb Beno?t Minisini: > >> But as soon as everything is written in Gambas and depends on no >> specific component, you can put everything in the same project, while >> keeping the separation between the 'gb.test' code and the 'gb.test.tap' >> code. > > Ok it is done so far. We merged all into gb.test. > > gb.test works and can be used and tested by everyone. Here's how it goes: > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/README.md > > We have reached the point where the machinery is running. It lacks a few > things which can be read here (and should be done for 3.15): > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/taskell.md > > The point "Decide where Skip, SkipAll, Todo reside" still keeps it in > alpha state until these interfaces have found their place. But overall > the duty is done, just the freestyle is missing (aka GUI, integration > into the IDE) but I think we can leave that to Gambas 3.16. > > My experience is that you have to work with it for a while before you > get the beauty and ease of programming with this system. So please try > it out and have fun with it. > > Alles Gute > > Christof Thalhofer > Are you sure that all exported classes of 'gb.test' really need to be exported? -- Beno?t Minisini From chrisml at deganius.de Thu May 7 08:21:39 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 08:21:39 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> Message-ID: <94f837dc-0577-efb3-6c02-554767e1c483@deganius.de> Am 07.05.20 um 07:56 schrieb Beno?t Minisini: > Are you sure that all exported classes of 'gb.test' really need to be > exported? For the classes Assert and Test I am sure. This is the testing functionality. AFAIK TapParser and TapPrinter have to be exported, so that other programs in future could use their functionality. For the rest I am not sure, this is Tobis realm, he must decide that. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Thu May 7 08:23:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 08:23:31 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> Le 07/05/2020 ? 07:30, Beno?t Minisini a ?crit?: > > Hi, > > 'gbt3'should be removed in its current form: it has too many hacks > (recompiling the target project!) that do not work in all cases. > > First, support for running 'Test.Main()' directly in the > interpreter must be added. > > I will do that and tell you. > > Then 'gbt3' will be able to be rewritten correctly (and with less lines > of code). > > Regards, > This is done. $ gbx3 -T TestA,TestB,TestC now calls Test.Main("TestA,TestB,TestC") And 'gbx3 -T' calls Test.Main("") If I run 'gbx3 -T' on 'gb.test' project, I get : --8<-------------------------------------------- TestCase TestBailout:TestBailout # This will stop all testing immediately # Unwinding subtest stack! 1..0 not ok 14 - TestBailout:TestBailout Bail out! Bo-Test gbx3: warning: circular references detected: gbx3: 1 TestSuite gbx3: warning: 126 allocation(s) non freed. --8<-------------------------------------------- at the end. Is it normal? -- Beno?t Minisini From chrisml at deganius.de Thu May 7 08:24:55 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 08:24:55 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: <794dbfce-0a3e-da0a-8cc6-f5a4ce40ba80@deganius.de> Am 07.05.20 um 07:30 schrieb Beno?t Minisini: > 'gbt3'should be removed in its current form: it has too many hacks > (recompiling the target project!) that do not work in all cases. > > First, support for running 'Test.Main()' directly in the > interpreter must be added. > > I will do that and tell you. > > Then 'gbt3' will be able to be rewritten correctly (and with less lines > of code). Yes it's a hack, here we are waiting for you. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Thu May 7 08:25:20 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 08:25:20 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <94f837dc-0577-efb3-6c02-554767e1c483@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> <94f837dc-0577-efb3-6c02-554767e1c483@deganius.de> Message-ID: Le 07/05/2020 ? 08:21, Christof Thalhofer a ?crit?: > Am 07.05.20 um 07:56 schrieb Beno?t Minisini: > >> Are you sure that all exported classes of 'gb.test' really need to be >> exported? > > For the classes Assert and Test I am sure. This is the testing > functionality. > > AFAIK TapParser and TapPrinter have to be exported, so that other > programs in future could use their functionality. > > For the rest I am not sure, this is Tobis realm, he must decide that. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > If a class needs to be exported (so that the component works), but should not be used by the final user, I prefix the class name with an underscore. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 7 08:31:35 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 08:31:35 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: Le 05/05/2020 ? 16:45, Christof Thalhofer a ?crit?: > Am 06.04.20 um 14:19 schrieb Beno?t Minisini: > >> But as soon as everything is written in Gambas and depends on no >> specific component, you can put everything in the same project, while >> keeping the separation between the 'gb.test' code and the 'gb.test.tap' >> code. > > Ok it is done so far. We merged all into gb.test. > > gb.test works and can be used and tested by everyone. Here's how it goes: > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/README.md > > We have reached the point where the machinery is running. It lacks a few > things which can be read here (and should be done for 3.15): > > https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.test/taskell.md > > The point "Decide where Skip, SkipAll, Todo reside" still keeps it in > alpha state until these interfaces have found their place. But overall > the duty is done, just the freestyle is missing (aka GUI, integration > into the IDE) but I think we can leave that to Gambas 3.16. > > My experience is that you have to work with it for a while before you > get the beauty and ease of programming with this system. So please try > it out and have fun with it. > > Alles Gute > > Christof Thalhofer > Now I can add a big "Test" button in the IDE: if you have ideas and/or examples for a GUI displaying the TAP test results, you are welcome! Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 7 08:36:42 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 08:36:42 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> Message-ID: <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> Le 07/05/2020 ? 08:23, Beno?t Minisini a ?crit?: > Le 07/05/2020 ? 07:30, Beno?t Minisini a ?crit?: >> >> Hi, >> >> 'gbt3'should be removed in its current form: it has too many hacks >> (recompiling the target project!) that do not work in all cases. >> >> First, support for running 'Test.Main()' directly in the >> interpreter must be added. >> >> I will do that and tell you. >> >> Then 'gbt3' will be able to be rewritten correctly (and with less >> lines of code). >> >> Regards, >> > > This is done. > > $ gbx3 -T TestA,TestB,TestC > > now calls Test.Main("TestA,TestB,TestC") > > And 'gbx3 -T' calls Test.Main("") > > If I run 'gbx3 -T' on 'gb.test' project, I get : > > --8<-------------------------------------------- > TestCase TestBailout:TestBailout > ? # This will stop all testing immediately > ? # Unwinding subtest stack! > ? 1..0 > not ok 14 - TestBailout:TestBailout > Bail out! Bo-Test > gbx3: warning: circular references detected: > gbx3:???? 1 TestSuite > gbx3: warning: 126 allocation(s) non freed. > --8<-------------------------------------------- > > at the end. Is it normal? > Is 'gbt3' really needed now? Can we remove it? -- Beno?t Minisini From chrisml at deganius.de Thu May 7 08:56:05 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 08:56:05 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: <8f409ea4-cbc1-9253-036c-d128192d1201@deganius.de> Am 07.05.20 um 07:39 schrieb Beno?t Minisini: > Another point: maybe Setup, TearDown, SetupEach and TearDownEach should > be prefixed with an underscore. This is the standard way in Gambas to > tell the user "warning! special methods, do not use these names for > something else". Here I am in hefty doubt because please mention: Setup, TearDown, SetupEach and TearDownEach should only(!) be created by the user. They do not exist at all. This is contrary to all hidden public methods I've ever seen in Gambas. And also these names are standard. 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 Thu May 7 08:58:58 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 08:58:58 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> Message-ID: <950c2ae2-7fc3-a469-9995-f6ae46fd8ea9@deganius.de> Am 07.05.20 um 08:36 schrieb Beno?t Minisini: > Is 'gbt3' really needed now? > Can we remove it? If gbx3 -T does the same we can remove 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 Thu May 7 09:05:20 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 09:05:20 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> Message-ID: <853d03e1-5ec0-09f8-6e9c-dae124babae7@deganius.de> Am 07.05.20 um 08:23 schrieb Beno?t Minisini: > And 'gbx3 -T' calls Test.Main("") > > If I run 'gbx3 -T' on 'gb.test' project, I get : > > --8<-------------------------------------------- > TestCase TestBailout:TestBailout > # This will stop all testing immediately > # Unwinding subtest stack! > 1..0 > not ok 14 - TestBailout:TestBailout > Bail out! Bo-Test gb.test has tests that fail, especially BailOut, so it will fail if you run all tests. If you want it to test ok you have to use gbx3 -T "TestAllAsserts, TestElse, TestError, TestInternals, TestFailures, TestSetup, TestSummary.DoSomeAsserts, TestSummary.DoTodo, TestSummary.DoSkip" > gbx3: warning: circular references detected: > gbx3: 1 TestSuite > gbx3: warning: 126 allocation(s) non freed. > --8<-------------------------------------------- > > at the end. Is it normal? This is not nice, it should Bailout and do Quit 1 without the circular references warning. I am not sure where they are coming from. 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 Thu May 7 09:12:23 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 09:12:23 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> <94f837dc-0577-efb3-6c02-554767e1c483@deganius.de> Message-ID: <493effac-e1e9-6bd3-e782-ddf236e84bd6@deganius.de> Am 07.05.20 um 08:25 schrieb Beno?t Minisini: > If a class needs to be exported (so that the component works), but > should not be used by the final user, I prefix the class name with an > underscore. Ok, I think we'll have to do that for TestAssertion and TapContext. AFAIK Tap and TestStats must not be exported. Tobi? Are you watching? 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 Thu May 7 09:37:20 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 09:37:20 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> Message-ID: <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> Am 07.05.20 um 08:31 schrieb Beno?t Minisini: > Now I can add a big "Test" button in the IDE: if you have ideas and/or > examples for a GUI displaying the TAP test results, you are welcome! Please let us think about the IDE a bit and please work a little bit with gb.test as it is before you decide. Write a couple of tests for things you are working on and simply try it out. I would prefer if we could wait with GUI and the integration into the IDE until 3.16. Because a lot of GUI chichi which comes to mind first simply won't be necessary! I know that because I first wrote GUI chichi four years ago. I don't prefer a button, I would explicitly hate it! ;-) While programming I hate it if I have to grab the mouse. And if you do test-driven-programming you would have to do that as often as you hit F5! I personally would prefer to hit F4 to run a test. But also with F5 I would be fine. If I do test driven programming, I currently run Test.Main("TestOfThePartIAmCurrently.WorkingOn") in a Starttup Module called TestMe and I like that. This is very easy. I write a test, then production code, hit F5, see FAILED, change code, Hit F5, set a breakpoint, hit F5, change code, hit F5, see PASSED ... ok, done! This is fast and easy! The only thing I don't like is that the console comes up and hides the first time after I started the IDE and I have to pull it up with the mouse. 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 Thu May 7 09:59:46 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 7 May 2020 09:59:46 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <493effac-e1e9-6bd3-e782-ddf236e84bd6@deganius.de> References: <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> <94f837dc-0577-efb3-6c02-554767e1c483@deganius.de> <493effac-e1e9-6bd3-e782-ddf236e84bd6@deganius.de> Message-ID: <20200507075820.GK1532022@highrise.localdomain> On Thu, 07 May 2020, Christof Thalhofer wrote: > Am 07.05.20 um 08:25 schrieb Beno?t Minisini: > > > If a class needs to be exported (so that the component works), but > > should not be used by the final user, I prefix the class name with an > > underscore. > > Ok, I think we'll have to do that for TestAssertion and TapContext. > > AFAIK Tap and TestStats must not be exported. > > Tobi? Are you watching? > TestAssertion and TapContext objects are definitely returned by public methods. It would be nice if autocompletion in the IDE works for those, but otherwise they can be hidden, as they are only consumed by users. I think it would not break anything to unexport TapParser and TapPrinter, leaving only the high-level interfaces of Assert / Test (TAP out) and TestHarness (TAP in). With this done, there pretty much no reason to export TapContext anymore either, the only two references being in TapPrinter.Session and Test.Session, both for internal usage by gb.test. This eliminates almost every mention of TAP in the component's interface. The Tap class contains constants that are referred to by TestAssertion, maybe the constants can be moved into TestAssertion (whose existence is the result of a very recent refactoring). Then Tap can go as well. TestStats is supposed to be the summary of a test run produced by the TestHarness class. It was written so that a TAP parser, like soon the IDE, just has to pipe `gbx3 -T ...` into TestHarness and get out an object representation of the test result (plus ability to zoom in as far as to individual assertions). It can be hidden for the same reason as TestAssertion and TapContext but should remain exported. Should I attempt to do these things? As for the "allocations non-freed" warning: that's a lot of allocations. The data structures that keep testing information during the test run (TestAssertion and TapContext) are strictly hierarchical, so I don't think there is a real circular reference at this point. The message only appears in the BailOut test, too. Beno?t: is this expected given that there is a hard `Quit 1` deep down the call stack of a method from an object which references lots of data? I imagine that the object is referenced while one of its methods execute and when that execution results in a Quit, the object cannot be freed while the interpreter shuts down? 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 Thu May 7 10:06:14 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 10:06:14 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <20200507075820.GK1532022@highrise.localdomain> References: <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> <94f837dc-0577-efb3-6c02-554767e1c483@deganius.de> <493effac-e1e9-6bd3-e782-ddf236e84bd6@deganius.de> <20200507075820.GK1532022@highrise.localdomain> Message-ID: <90f4e042-dc0f-5134-bdb9-c7698f382fdb@gmail.com> Le 07/05/2020 ? 09:59, Tobias Boege a ?crit?: > On Thu, 07 May 2020, Christof Thalhofer wrote: >> Am 07.05.20 um 08:25 schrieb Beno?t Minisini: >> >>> If a class needs to be exported (so that the component works), but >>> should not be used by the final user, I prefix the class name with an >>> underscore. >> >> Ok, I think we'll have to do that for TestAssertion and TapContext. >> >> AFAIK Tap and TestStats must not be exported. >> >> Tobi? Are you watching? >> > > TestAssertion and TapContext objects are definitely returned by public > methods. It would be nice if autocompletion in the IDE works for those, > but otherwise they can be hidden, as they are only consumed by users. > > I think it would not break anything to unexport TapParser and TapPrinter, > leaving only the high-level interfaces of Assert / Test (TAP out) and > TestHarness (TAP in). With this done, there pretty much no reason to > export TapContext anymore either, the only two references being in > TapPrinter.Session and Test.Session, both for internal usage by gb.test. > This eliminates almost every mention of TAP in the component's interface. > > The Tap class contains constants that are referred to by TestAssertion, > maybe the constants can be moved into TestAssertion (whose existence is > the result of a very recent refactoring). Then Tap can go as well. > > TestStats is supposed to be the summary of a test run produced by the > TestHarness class. It was written so that a TAP parser, like soon the > IDE, just has to pipe `gbx3 -T ...` into TestHarness and get out an > object representation of the test result (plus ability to zoom in as > far as to individual assertions). It can be hidden for the same reason > as TestAssertion and TapContext but should remain exported. > > Should I attempt to do these things? Yep. > > As for the "allocations non-freed" warning: that's a lot of allocations. > The data structures that keep testing information during the test run > (TestAssertion and TapContext) are strictly hierarchical, so I don't think > there is a real circular reference at this point. The message only appears > in the BailOut test, too. > > Beno?t: is this expected given that there is a hard `Quit 1` deep down > the call stack of a method from an object which references lots of data? > I imagine that the object is referenced while one of its methods execute > and when that execution results in a Quit, the object cannot be freed > while the interpreter shuts down? That makes sense. When I have time, I will check what happens exactly. Regards, -- Beno?t Minisini From chrisml at deganius.de Thu May 7 10:10:04 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 10:10:04 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> Message-ID: Am 07.05.20 um 08:36 schrieb Beno?t Minisini: >> This is done. >> >> $ gbx3 -T TestA,TestB,TestC gbx3 -T "" ~/temp/unittesthelloworld > gbx3: too many project directories. This is wrong. It should run all tests. Also: gbx3 -T ~/temp/unittesthelloworld > gbx3: unable to find startup file This is also wrong. It also should run all tests. If you call Test.Main() it should run all tests. 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 Thu May 7 10:20:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 10:20:43 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> Message-ID: <1f7aede6-36a6-32c2-8309-d23c34b28da3@gmail.com> Le 07/05/2020 ? 10:10, Christof Thalhofer a ?crit?: > Am 07.05.20 um 08:36 schrieb Beno?t Minisini: > >>> This is done. >>> >>> $ gbx3 -T TestA,TestB,TestC > gbx3 -T "" ~/temp/unittesthelloworld > > >> gbx3: too many project directories. > > This is wrong. It should run all tests. > > Also: > > gbx3 -T ~/temp/unittesthelloworld >> gbx3: unable to find startup file > > This is also wrong. It also should run all tests. > > If you call Test.Main() it should run all tests. > > Alles Gute > > Christof Thalhofer > Is it better with the last commit? The interpreter now accepts void arguments to options. But the argument is always required. You cannot run 'gbx3 -T ~/temp/unittesthelloworld'. Regards, -- Beno?t Minisini From chrisml at deganius.de Thu May 7 10:29:17 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 10:29:17 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> Message-ID: <4492ce74-78eb-6dfb-edcf-ac9c5efad862@deganius.de> gbx3 -T "TestSummary" ./comp/src/gb.test | echo $? > 0 This is wrong. TestSummary fails, that is ok. But if tests fail it must hand over the exit code 1. I am not sure how to achieve this as if I do 'Quit 1' in gb.test the '1' doesn't make it through to stdout. 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 Thu May 7 10:56:01 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 10:56:01 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <1f7aede6-36a6-32c2-8309-d23c34b28da3@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> <1f7aede6-36a6-32c2-8309-d23c34b28da3@gmail.com> Message-ID: Am 07.05.20 um 10:20 schrieb Beno?t Minisini: > Is it better with the last commit? The interpreter now accepts void > arguments to options. Yes, it's good now. > But the argument is always required. You cannot run > 'gbx3 -T ~/temp/unittesthelloworld'. This is cosmetical. But for things like that I thought of gbt3. gbt3 ./comp/src/gb.test Also I thought gbt3 to do other things: * Hand over the exit code (0 PASSED, 1 FAILED) * Run silently (no TAP output) with --quiet 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 Thu May 7 11:16:46 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 11:16:46 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <4492ce74-78eb-6dfb-edcf-ac9c5efad862@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> <4492ce74-78eb-6dfb-edcf-ac9c5efad862@deganius.de> Message-ID: Le 07/05/2020 ? 10:29, Christof Thalhofer a ?crit?: > gbx3 -T "TestSummary" ./comp/src/gb.test | echo $? > What do you think that shell command does ??? -- Beno?t Minisini From chrisml at deganius.de Thu May 7 13:08:57 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 13:08:57 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> <4492ce74-78eb-6dfb-edcf-ac9c5efad862@deganius.de> Message-ID: Am 07.05.20 um 11:16 schrieb Beno?t Minisini: > Le 07/05/2020 ? 10:29, Christof Thalhofer a ?crit?: >> gbx3 -T "TestSummary" ./comp/src/gb.test | echo $? > > What do you think that shell command does ??? It prints the exit code of gbx3 -T "TestSummary" ./comp/src/gb.test Sorry, that was misleading. Please forget it. Tobi and I phoned for about an hour. Tobi will commit some changes (hide/unexport) and this will also be part of it. Then we see. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From taboege at gmail.com Thu May 7 13:17:26 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 7 May 2020 13:17:26 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <90f4e042-dc0f-5134-bdb9-c7698f382fdb@gmail.com> References: <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <5774b0c2-af71-34cb-116c-d24eaeea3e7c@gmail.com> <94f837dc-0577-efb3-6c02-554767e1c483@deganius.de> <493effac-e1e9-6bd3-e782-ddf236e84bd6@deganius.de> <20200507075820.GK1532022@highrise.localdomain> <90f4e042-dc0f-5134-bdb9-c7698f382fdb@gmail.com> Message-ID: <20200507111726.GB3351518@highrise.localdomain> On Thu, 07 May 2020, Beno?t Minisini wrote: > > Should I attempt to do these things? > > Yep. > Done in master. There are only five exported classes now: - Test: startup class and organization of testing, - Assert: print assertions as TAP, - TestHarness: run project and parse its TAP, - TestStats: result of TestHarness, - TestAssertion: building blocks of TestStats. I also removed / hid one or two properties that are not meant to be externally visible. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Thu May 7 13:17:40 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 13:17:40 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> <4492ce74-78eb-6dfb-edcf-ac9c5efad862@deganius.de> Message-ID: <951dcd5c-68fb-a364-288c-bb1276f3747c@gmail.com> Le 07/05/2020 ? 13:08, Christof Thalhofer a ?crit?: > Am 07.05.20 um 11:16 schrieb Beno?t Minisini: >> Le 07/05/2020 ? 10:29, Christof Thalhofer a ?crit?: >>> gbx3 -T "TestSummary" ./comp/src/gb.test | echo $? >> >> What do you think that shell command does ??? > > It prints the exit code of > gbx3 -T "TestSummary" ./comp/src/gb.test It doesn't. It pipes the standard output of "gbx3 -T "TestSummary" ./comp/src/gb.test" to the echo command, that returns zero. The return code of gbx3 is lost. -- Beno?t Minisini From g4mba5 at gmail.com Thu May 7 15:28:45 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 May 2020 15:28:45 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> Message-ID: <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> Le 07/05/2020 ? 09:37, Christof Thalhofer a ?crit?: > Am 07.05.20 um 08:31 schrieb Beno?t Minisini: > >> Now I can add a big "Test" button in the IDE: if you have ideas and/or >> examples for a GUI displaying the TAP test results, you are welcome! > > Please let us think about the IDE a bit and please work a little bit > with gb.test as it is before you decide. Write a couple of tests for > things you are working on and simply try it out. I would prefer if we > could wait with GUI and the integration into the IDE until 3.16. > > Because a lot of GUI chichi which comes to mind first simply won't be > necessary! I know that because I first wrote GUI chichi four years ago. > > I don't prefer a button, I would explicitly hate it! ;-) > > While programming I hate it if I have to grab the mouse. And if you do > test-driven-programming you would have to do that as often as you hit F5! > > I personally would prefer to hit F4 to run a test. But also with F5 I > would be fine. > > If I do test driven programming, I currently run > > Test.Main("TestOfThePartIAmCurrently.WorkingOn") > > in a Starttup Module called TestMe and I like that. This is very easy. > > I write a test, then production code, hit F5, see FAILED, change code, > Hit F5, set a breakpoint, hit F5, change code, hit F5, see PASSED ... > ok, done! > > This is fast and easy! > > The only thing I don't like is that the console comes up and hides the > first time after I started the IDE and I have to pull it up with the mouse. > > Alles Gute > > Christof Thalhofer > I have added the 'test' button (with the F4 shortcut), and a 'unit tests' tab in the debug panel that displays the output of the tests in a terminal. Nothing more. I will add a 'test that class' menu in the project tree too. Note that 'gb.test' is now an hidden component that is automatically loaded by the interpreter when running in test mode. -- Beno?t Minisini From chrisml at deganius.de Thu May 7 21:06:08 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 21:06:08 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <951dcd5c-68fb-a364-288c-bb1276f3747c@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <482e3b4b-9011-fc8a-485a-a62a5cab88d8@gmail.com> <3e2cfe0e-33d6-4469-753d-61f425ce040c@gmail.com> <4492ce74-78eb-6dfb-edcf-ac9c5efad862@deganius.de> <951dcd5c-68fb-a364-288c-bb1276f3747c@gmail.com> Message-ID: Am 07.05.20 um 13:17 schrieb Beno?t Minisini: >> It prints the exit code of >> gbx3 -T "TestSummary" ./comp/src/gb.test > > It doesn't. It pipes the standard output of "gbx3 -T "TestSummary" > ./comp/src/gb.test" to the echo command, that returns zero. The return > code of gbx3 is lost. Yes you're right. gbx3 -T "TestAllAsserts" ./comp/src/gb.test > /dev/null; echo $? 0 gbx3 -T "TestSummary" ./comp/src/gb.test > /dev/null; echo $? 1 :-) 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 Thu May 7 21:41:07 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 May 2020 21:41:07 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> Message-ID: Am 07.05.20 um 15:28 schrieb Beno?t Minisini: > I have added the 'test' button (with the F4 shortcut), and a 'unit > tests' tab in the debug panel that displays the output of the tests in a > terminal. Nothing more. Cooooooooooooooooool!! :-) > I will add a 'test that class' menu in the project tree too. We have not only Testclasses but also Testmethods to choose. I am not sure how to name them. Testclass / Testmethod or Testcontainer / Testcase What do you think? Meanwhile I think, the first is more "gambassy" and the users are more familiar with it. > Note that 'gb.test' is now an hidden component that is automatically > loaded by the interpreter when running in test mode. This is all very, very good. :-) At the weekend I will try it all out and will have a look at the few things that have to be done until 3.15. I will also update unittesthelloworld and the documentation. That was a hell of a job! But now I am very happy. :-) Alles Gute Christof Thalhofer P.S.: The IDE does sth strange with the cursor. Look at the image. -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: mousecursor.png Type: image/png Size: 4051 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Fri May 8 07:55:02 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 8 May 2020 07:55:02 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> Message-ID: <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> Am 07.05.20 um 15:28 schrieb Beno?t Minisini: > Note that 'gb.test' is now an hidden component that is automatically > loaded by the interpreter when running in test mode. Now the classes Assert and Test cannot be reached any more by the user. Assert: Unknown identifier Test: Unknown identifier gb.test now can only test itself but in other projects the classes are out of reach. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Fri May 8 10:27:25 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 8 May 2020 17:57:25 +0930 Subject: [Gambas-user] Is there a way to test if a gridview scrollbar is actually visible at runtime? Message-ID: <3b64dcd4-5473-a5e7-e818-b93a2657d23a@gmail.com> I'm trying to co-ordinate a set of 4 gridview/tableviews. Depending on the number of columns and rows in each I need to adjust the heights of others and also perform similar scrolling on the others when one is scrolled. I can see which scrollbars are "allowed" in each but I can't find a way to check which ones are actually visible at any particylar point in time. please help. b (as usual long explanation... it's a four way grid, i.e. 2x2 and so if the user scrolls [0,0] to the right then all the others need to scroll similarly. Simple? Fine? No. The grids are inside hsplits and vsplits so the presence of any scrollbar is entirely dependant on the way the user has currently oriented the entire heirarchy of splits and grids. From kicking177 at gmail.com Fri May 8 11:09:37 2020 From: kicking177 at gmail.com (KKing) Date: Fri, 8 May 2020 10:09:37 +0100 Subject: [Gambas-user] Running multiple versions of Gambas and or use of --program-suffix Message-ID: @Benoit, is there a root config file that holds the main version at 3 that I could for my own purposes say change to 9 so could create a disguised 3.14 as 9.14 for my testing? I tried looking and testing, but I seem to find a lot of references and the make would still generate a mixture of gambas3 and gambas9 references and e.g. gbr3 but gbc9. @Karl, re make install run one at a time, but prefer to be able to run more than one at same time. Probably will have to look at using KVM/QEMU, if no other option. K. From t.lee.davidson at gmail.com Fri May 8 17:52:05 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 8 May 2020 11:52:05 -0400 Subject: [Gambas-user] Is there a way to test if a gridview scrollbar is actually visible at runtime? In-Reply-To: <3b64dcd4-5473-a5e7-e818-b93a2657d23a@gmail.com> References: <3b64dcd4-5473-a5e7-e818-b93a2657d23a@gmail.com> Message-ID: <320e8f50-8d00-c1dd-5bad-825b31131d5c@gmail.com> On 5/8/20 4:27 AM, Bruce wrote: > I'm trying to co-ordinate a set of 4 gridview/tableviews.? Depending on the number of columns and rows in each I need to adjust > the heights of others and also perform similar scrolling on the others when one is scrolled. > I can see which scrollbars are "allowed" in each but I can't find a way to check which ones are actually visible at any > particylar point in time. > > please help. > b > > (as usual long explanation... > it's a four way grid, i.e. 2x2 and so if the user scrolls [0,0] to the right then all the others need to scroll similarly. > Simple? Fine? No. The grids are inside hsplits and vsplits so the presence of any scrollbar is entirely dependant on the way the > user has currently oriented the entire heirarchy of splits and grids. For coordinated scrolling, I take it you've already thought of something like this: Public Sub GridView1_Scroll() GridView2.ScrollX = GridView1.ScrollX GridView2.ScrollY = GridView1.ScrollY GridView3.ScrollX = GridView1.ScrollX GridView3.ScrollY = GridView1.ScrollY GridView4.ScrollX = GridView1.ScrollX GridView4.ScrollY = GridView1.ScrollY End To determine if a scroll bar is visible, this seems to work: bGv1HorBarVisible = GridView1.ScrollWidth > GridView1.Width bGv1VertBarVisible = GridView1.ScrollHeight > GridView1.Height (And, also as usual, I probable misunderstood what you're trying to accomplish.) -- Lee From tercoide at hotmail.com Sat May 9 00:04:17 2020 From: tercoide at hotmail.com (martin p cristia) Date: Fri, 8 May 2020 19:04:17 -0300 Subject: [Gambas-user] [CRASH REPORT] GLplus Vertex Arrays testing Message-ID: Hello, Damned, my program crashed Gambas that way : don't know what happened -- Saludos Ing. Martin P Cristia -------------- next part -------------- A non-text attachment was scrubbed... Name: GLVertexArrays-0.0.1-crash-200508-190204.tar.bz2 Type: application/x-bzip Size: 19202 bytes Desc: not available URL: From chrisml at deganius.de Sat May 9 00:36:11 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 9 May 2020 00:36:11 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> Message-ID: <92769ed0-a1c1-993f-3fe9-18d3287b28b3@deganius.de> Am 08.05.20 um 07:55 schrieb Christof Thalhofer: > gb.test now can only test itself but in other projects the classes are > out of reach. This is a problem I faced very early as I developed gb.test. As it is injected into another project and looks at it "from inside" it cannot be hidden. It is a true component, the testclasses inside the project to be tested depend on it. For me this problem can be solved in two ways: 1) Let gb.test be component even in production. I did this and I got no problems. This comes with the burden of dead code in *every* project in the future that has any test class in it. I could live with that. 2) Remove every $class.test and the string "Component=gb.test" from the .project file before the compilation. Here the disadvantage is that gb.test again requires gb.util and it is hard to decide whether you can remove gb.util as well. But maybe there are more possibilities I don't know. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat May 9 11:02:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 9 May 2020 11:02:58 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> Message-ID: <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> Le 08/05/2020 ? 07:55, Christof Thalhofer a ?crit?: > Am 07.05.20 um 15:28 schrieb Beno?t Minisini: > >> Note that 'gb.test' is now an hidden component that is automatically >> loaded by the interpreter when running in test mode. > > Now the classes Assert and Test cannot be reached any more by the user. > > Assert: Unknown identifier > Test: Unknown identifier > > gb.test now can only test itself but in other projects the classes are > out of reach. > > Alles Gute > > Christof Thalhofer > It just need support for the compiler to load the 'gb.test' component information when needed (i.e. when compiling a test module). -- Beno?t Minisini From chrisml at deganius.de Sat May 9 12:46:01 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 9 May 2020 12:46:01 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> Message-ID: <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> Am 09.05.20 um 11:02 schrieb Beno?t Minisini: >> gb.test now can only test itself but in other projects the classes are >> out of reach. > > It just need support for the compiler to load the 'gb.test' component > information when needed (i.e. when compiling a test module). Yes but you you also have to be able to see it inside the testee project when you *write a test*. This is now broken. Just use unittesthelloworld and try to write or edit a test. The current unittesthello world has this line in the .project file: Component=gb.test If you open the project, the IDE complains about the missing component gb.test. If you remove the line it does not complain any more, but also the classes Test and Assert are not accessible and it is impossible for the user to write a test. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat May 9 20:57:05 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 9 May 2020 20:57:05 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> Message-ID: Le 09/05/2020 ? 12:46, Christof Thalhofer a ?crit?: > Am 09.05.20 um 11:02 schrieb Beno?t Minisini: > >>> gb.test now can only test itself but in other projects the classes are >>> out of reach. >> >> It just need support for the compiler to load the 'gb.test' component >> information when needed (i.e. when compiling a test module). > > Yes but you you also have to be able to see it inside the testee project > when you *write a test*. This is now broken. > > Just use unittesthelloworld and try to write or edit a test. > > The current unittesthello world has this line in the .project file: > > Component=gb.test > > If you open the project, the IDE complains about the missing component > gb.test. If you remove the line it does not complain any more, but also > the classes Test and Assert are not accessible and it is impossible for > the user to write a test. > > Alles Gute > > Christof Thalhofer > The problems should be fixed in the last commit. -- Beno?t Minisini From chrisml at deganius.de Sun May 10 09:33:57 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 10 May 2020 09:33:57 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> Message-ID: <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> Am 09.05.20 um 20:57 schrieb Beno?t Minisini: > The problems should be fixed in the last commit. Nope. Please update your Gambas and then unpack unittesthelloworld-0.0.9.tar.gz anywhere on your computer. Open it with Gambas3. Edit TestHello.TestHelloWorld Add a new assertion, for instance Assert.Equals("hmm", "hmm") Type: "Assert." See that you cannot choose any assertion. There is no autocompletion any more. The classes Assert, Test must not be hidden, they are essential for writing tests! You cannot write test code if these classes are not visible to the user. Also we need TestHarness, TestAssertion, TestStats (in future). -------------------------------------------------------- I find the idea to hide gb.test not good. Instead, I would prefer that a user could choose the gb.test component as usual and that the IDE changes its behavior when gb.test is enabled and displays the appropriate controls. Also we need an unhidden gb.test later for future usage. TestHarness will provide functionality that users can write their own testing environment. This would be impossible it it was hidden. *gb.test is a testing framework*. If it is hidden, it is crippled and hardly usable any more. 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 shordi at gmail.com Sun May 10 13:42:27 2020 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 10 May 2020 13:42:27 +0200 Subject: [Gambas-user] How can I distinguish between left shift key and right shift key? Message-ID: II am making a small text editor and I have a problem: In Spanish the double quotes are different from the left and the right (??). I would like the character to use depending on whether the left or right shift key has been pressed. With the codes of the Key class I cannot distinguish when one or the other is pressed. Is it possible to distinguish them as it happens with the Control key? Thank you. Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun May 10 15:59:32 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 May 2020 15:59:32 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> References: <20200402233001.GL3605349@highrise.localdomain> <8ffae4aa-8397-d9d2-c56a-35d21e41c470@deganius.de> <20200405174813.GT3605349@highrise.localdomain> <20200405181628.GU3605349@highrise.localdomain> <38ae8af5-e55f-0efd-22ae-27313d24d22f@deganius.de> <20200406120220.GX3605349@highrise.localdomain> <93cff332-e9fb-da4a-411e-f3c3f881963e@gmail.com> <56d49a20-6d7d-fe5a-82c1-fd1a0df970d0@deganius.de> <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> Message-ID: <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> Le 10/05/2020 ? 09:33, Christof Thalhofer a ?crit?: > Am 09.05.20 um 20:57 schrieb Beno?t Minisini: > >> The problems should be fixed in the last commit. > > Nope. > > Please update your Gambas and then unpack > unittesthelloworld-0.0.9.tar.gz > anywhere on your computer. Open it with Gambas3. > > Edit TestHello.TestHelloWorld > > Add a new assertion, for instance Assert.Equals("hmm", "hmm") > > Type: > "Assert." > > See that you cannot choose any assertion. There is no autocompletion any > more. > > The classes Assert, Test must not be hidden, they are essential for > writing tests! You cannot write test code if these classes are not > visible to the user. > > Also we need TestHarness, TestAssertion, TestStats (in future). It's fixed in the last commit. It was just a matter of automatically loading 'gb.test' information. > > -------------------------------------------------------- > > I find the idea to hide gb.test not good. Instead, I would prefer that a > user could choose the gb.test component as usual and that the IDE > changes its behavior when gb.test is enabled and displays the > appropriate controls. I disagree. 'gb.test' cannot be explicit, otherwise the component will be loaded when not testing, and I don't want the project to be polluted by something unneeded. Regards, -- Beno?t Minisini From taboege at gmail.com Sun May 10 16:19:24 2020 From: taboege at gmail.com (Tobias Boege) Date: Sun, 10 May 2020 16:19:24 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> References: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> Message-ID: <20200510141924.GC3641490@highrise.localdomain> On Sun, 10 May 2020, Beno?t Minisini wrote: > > I find the idea to hide gb.test not good. Instead, I would prefer that a > > user could choose the gb.test component as usual and that the IDE > > changes its behavior when gb.test is enabled and displays the > > appropriate controls. > > I disagree. 'gb.test' cannot be explicit, otherwise the component will be > loaded when not testing, and I don't want the project to be polluted by > something unneeded. > The problem Christof is describing is that gb.test is not only for organizing and running tests in the project being tested. It plays a double role containing also the TestHarness-related stuff which would be used, for example, by the IDE to run another project under test mode and parse the TAP it emits into a summary of the test. So, when a project is being tested (or a test written in the IDE), gb.test needs to be automatically loaded and otherwise not for the reason you state. But there are also certain projects which might legitimately load gb.test to get at the TAP parsing functionality, not the test running functionality. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Sun May 10 16:31:51 2020 From: taboege at gmail.com (Tobias Boege) Date: Sun, 10 May 2020 16:31:51 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <20200510141924.GC3641490@highrise.localdomain> References: <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> <20200510141924.GC3641490@highrise.localdomain> Message-ID: <20200510143151.GD3641490@highrise.localdomain> On Sun, 10 May 2020, Tobias Boege wrote: > On Sun, 10 May 2020, Beno?t Minisini wrote: > > > I find the idea to hide gb.test not good. Instead, I would prefer that a > > > user could choose the gb.test component as usual and that the IDE > > > changes its behavior when gb.test is enabled and displays the > > > appropriate controls. > > > > I disagree. 'gb.test' cannot be explicit, otherwise the component will be > > loaded when not testing, and I don't want the project to be polluted by > > something unneeded. > > > > The problem Christof is describing is that gb.test is not only for > organizing and running tests in the project being tested. It plays > a double role containing also the TestHarness-related stuff which > would be used, for example, by the IDE to run another project under > test mode and parse the TAP it emits into a summary of the test. > > So, when a project is being tested (or a test written in the IDE), > gb.test needs to be automatically loaded and otherwise not for the > reason you state. But there are also certain projects which might > legitimately load gb.test to get at the TAP parsing functionality, > not the test running functionality. > [ Sorry, I was distracted and didn't really finish that thought before hitting "send". ] Therefore, maybe gb.test should: - not be hidden, - used directly by almost *no* project, - mostly autoloaded in test mode or for autocompletion only. I think of it as: gb.test is the "Gambas testing framework component". Unless you are directly interacting with the testing framework, don't use the component. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sun May 10 16:34:57 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 May 2020 16:34:57 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <20200510141924.GC3641490@highrise.localdomain> References: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> <20200510141924.GC3641490@highrise.localdomain> Message-ID: <91409349-b405-dbef-f7ae-f84ed8ea2d1e@gmail.com> Le 10/05/2020 ? 16:19, Tobias Boege a ?crit?: > On Sun, 10 May 2020, Beno?t Minisini wrote: >>> I find the idea to hide gb.test not good. Instead, I would prefer that a >>> user could choose the gb.test component as usual and that the IDE >>> changes its behavior when gb.test is enabled and displays the >>> appropriate controls. >> >> I disagree. 'gb.test' cannot be explicit, otherwise the component will be >> loaded when not testing, and I don't want the project to be polluted by >> something unneeded. >> > > The problem Christof is describing is that gb.test is not only for > organizing and running tests in the project being tested. It plays > a double role containing also the TestHarness-related stuff which > would be used, for example, by the IDE to run another project under > test mode and parse the TAP it emits into a summary of the test. > > So, when a project is being tested (or a test written in the IDE), > gb.test needs to be automatically loaded and otherwise not for the > reason you state. But there are also certain projects which might > legitimately load gb.test to get at the TAP parsing functionality, > not the test running functionality. > > Regards, > Tobias > So it's just a matter of unhide 'gb.test' now. -- Beno?t Minisini From akrobaticone at gmail.com Sun May 10 17:39:27 2020 From: akrobaticone at gmail.com (Michele V.) Date: Sun, 10 May 2020 17:39:27 +0200 Subject: [Gambas-user] Gambas repository on DomotiGa project Message-ID: On my raspberry runs Raspbian Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch May you suggest to me how must be the sources.list in order to enable ppa repository of Gambas3? Thank you in advance ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun May 10 18:39:36 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 10 May 2020 18:39:36 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <91409349-b405-dbef-f7ae-f84ed8ea2d1e@gmail.com> References: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> <20200510141924.GC3641490@highrise.localdomain> <91409349-b405-dbef-f7ae-f84ed8ea2d1e@gmail.com> Message-ID: Am 10.05.20 um 16:34 schrieb Beno?t Minisini: > So it's just a matter of unhide 'gb.test' now. Yes. Let's try that out please and 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 shordi at gmail.com Sun May 10 20:54:13 2020 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 10 May 2020 20:54:13 +0200 Subject: [Gambas-user] How can I distinguish between left shift key and right shift key? In-Reply-To: References: Message-ID: Sorry, the control key does not distinguish between left and right either. I don't know why I said it before. Now I'm working on a Raspberry Pi (quarantine issues). Best Regards. This is my System Information [System] Gambas=3.12.2 OperatingSystem=Linux Kernel=4.19.97-v7l+ Architecture=arm Distribution=debian 10.3 Desktop=LXDE Theme=Qt5CTProxy Language=es_ES.UTF-8 Memory=1761M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.11 GStreamer=libgstreamer-1.0.so.0.1404.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.1 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.82.0.0 QT5=libQt5Core.so.5.11.3 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=LXDE- DISPLAY=:0.0 GB_GUI=gb.qt5 GDMSESSION=lightdm-xsession GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 HOME= LANG=es_ES.UTF-8 LANGUAGE=es_ES.UTF-8 LC_ALL=es_ES.UTF-8 LOGNAME= NO_AT_BRIDGE=1 PATH=/.local/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games PWD= QT_QPA_PLATFORMTHEME=qt5ct SAL_USE_VCLPLUGIN=gtk3 SHELL=/bin/bash SSH_AGENT_PID=758 SSH_AUTH_SOCK=/tmp/ssh-XyQoZbd9ne2D/agent.696 TEXTDOMAIN=Linux-PAM TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/usr/share/fkms:/usr/local/share:/usr/share/ras-ui-overrides:/usr/share:/usr/share/gdm:/var/lib/menu-xdg XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/ XDG_MENU_PREFIX=lxde-- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=lightdm-xsession XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 _LXSESSION_PID=696 El dom., 10 may. 2020 a las 13:42, Jorge Carri?n () escribi?: > II am making a small text editor and I have a problem: In Spanish the > double quotes are different from the left and the right (??). I would like > the character to use depending on whether the left or right shift key has > been pressed. With the codes of the Key class I cannot distinguish when one > or the other is pressed. Is it possible to distinguish them as it happens > with the Control key? > Thank you. > > Best regards > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.roper at iinet.net.au Mon May 11 11:44:41 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 11 May 2020 17:44:41 +0800 Subject: [Gambas-user] gambas3 --version Message-ID: <4d467fff-5893-89af-1e75-b8aef0e8e930@iinet.net.au> When I run the version parameter on a command line I get: gambas3 --version gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead 3.14.3 I was expecting just the version number - is this output correct ? Cheers. From tercoide at hotmail.com Mon May 11 12:20:21 2020 From: tercoide at hotmail.com (martin p cristia) Date: Mon, 11 May 2020 07:20:21 -0300 Subject: [Gambas-user] Cairo in Gambas In-Reply-To: References: Message-ID: Hi there!, I'd like to know how its Cairo being used: -It is trough Qt/GTK binding? -Directly to the Linux port? and if so, can we adress the library directly to draw in an Image -- Saludos Ing. Martin P Cristia From chrisml at deganius.de Mon May 11 13:56:52 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 11 May 2020 13:56:52 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <91409349-b405-dbef-f7ae-f84ed8ea2d1e@gmail.com> References: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> <20200510141924.GC3641490@highrise.localdomain> <91409349-b405-dbef-f7ae-f84ed8ea2d1e@gmail.com> Message-ID: <1ff667a7-2016-3316-2000-9096cc8e81a7@deganius.de> Am 10.05.20 um 16:34 schrieb Beno?t Minisini: > So it's just a matter of unhide 'gb.test' now. To explain, what I think would be a good way to integrate gb.test into the IDE: First gb.test should be open and freely usable as a component in the same way other components can be used. If a user wants to equip a project with tests, he/she first has to switch the component gb.test on. Then (and in general when the component gb.test is activated) the IDE gives the ability to create testclasses and shows the test button / testing GUI interfaces (which I can can help to write). If there are testclasses already in the project and if gb.test is not activated, the interpreter should throw an error. If a project is packed by the archiver the testclasses could be removed by default but optionally kept if the user needs gb.test afterwards in production. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Mon May 11 14:08:27 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 11 May 2020 21:38:27 +0930 Subject: [Gambas-user] How can I distinguish between left shift key and right shift key? In-Reply-To: References: Message-ID: <8864ab9b-c36d-49ce-b46c-dbb025bea3c0@gmail.com> (This is very short answer based on a 300 page thesis I just wrote on "keyboards and why you can't see them anymore".) Shift and Ctl are "modifiers". So is "Alt" and possibly "Fn" by the way. Because of the many layers of software between your project and the actual keyboard that hide the physical layer way back in the O/S, or + + especially "X" it has been determined that "thou need not know" which actual modifier key was used. You could try getting as close to the O/S as possible using some library or other but it is still hard given "keymaps" and the like. man showkey and then the rest best wishes b From adamnt42 at gmail.com Mon May 11 14:12:25 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 11 May 2020 21:42:25 +0930 Subject: [Gambas-user] Is there a way to test if a gridview scrollbar is actually visible at runtime? In-Reply-To: <320e8f50-8d00-c1dd-5bad-825b31131d5c@gmail.com> References: <3b64dcd4-5473-a5e7-e818-b93a2657d23a@gmail.com> <320e8f50-8d00-c1dd-5bad-825b31131d5c@gmail.com> Message-ID: On 9/5/20 1:22 am, T Lee Davidson wrote: > > To determine if a scroll bar is visible, this seems to work: > bGv1HorBarVisible = GridView1.ScrollWidth > GridView1.Width > bGv1VertBarVisible = GridView1.ScrollHeight > GridView1.Height > > (And, also as usual, I probable misunderstood what you're trying to > accomplish.) > > Oh. no! You were so correct! It was the idea I was looking for. And yes, it does seem to work. So well I think it should be put in the help somewhere. Thanks b From g4mba5 at gmail.com Mon May 11 14:54:44 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 11 May 2020 14:54:44 +0200 Subject: [Gambas-user] gambas3 --version In-Reply-To: <4d467fff-5893-89af-1e75-b8aef0e8e930@iinet.net.au> References: <4d467fff-5893-89af-1e75-b8aef0e8e930@iinet.net.au> Message-ID: <4a8805d7-1b86-a31a-5fe2-1d48e27fd10b@gmail.com> Le 11/05/2020 ? 11:44, Ian Roper a ?crit?: > When I run the version parameter on a command line I get: > > gambas3 --version > gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead > 3.14.3 > > I was expecting just the version number - is this output correct ? > > > Cheers. > Yes. The warning is issued on the standard error output. The version on the standard output. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Mon May 11 15:05:43 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 11 May 2020 22:35:43 +0930 Subject: [Gambas-user] Cant decipher this one Message-ID: <8e295bba-15eb-5c08-d046-855012802d50@gmail.com> make[2]: Entering directory '/home/share/gambasdevel/gb.gtk' make all-recursive make[3]: Entering directory '/home/share/gambasdevel/gb.gtk' Making all in src make[4]: Entering directory '/home/share/gambasdevel/gb.gtk/src' Making all in . make[5]: Entering directory '/home/share/gambasdevel/gb.gtk/src' CXXLD gb.gtk.la /usr/bin/ld: cannot find -lrsvg-2 collect2: error: ld returned 1 exit status make[5]: *** [Makefile:721: gb.gtk.la] Error 1 make[5]: Leaving directory '/home/share/gambasdevel/gb.gtk/src' make[4]: *** [Makefile:1410: all-recursive] Error 1 make[4]: Leaving directory '/home/share/gambasdevel/gb.gtk/src' make[3]: *** [Makefile:445: all-recursive] Error 1 make[3]: Leaving directory '/home/share/gambasdevel/gb.gtk' make[2]: *** [Makefile:377: all] Error 2 make[2]: Leaving directory '/home/share/gambasdevel/gb.gtk' make[1]: *** [Makefile:436: all-recursive] Error 1 make[1]: Leaving directory '/home/share/gambasdevel' make: *** [Makefile:377: all] Error 2 but 1) gtk should have been disabled from the prior ./configure * but 2) /usr/bin/ld: cannot find -lrsvg-2 looks a bit weird ? * ./configure --disable-sdl2 --disable-gtk2 -C --disable-gtk3 From taboege at gmail.com Mon May 11 15:06:36 2020 From: taboege at gmail.com (Tobias Boege) Date: Mon, 11 May 2020 15:06:36 +0200 Subject: [Gambas-user] gambas3 --version In-Reply-To: <4d467fff-5893-89af-1e75-b8aef0e8e930@iinet.net.au> References: <4d467fff-5893-89af-1e75-b8aef0e8e930@iinet.net.au> Message-ID: <20200511130636.GG3641490@highrise.localdomain> On Mon, 11 May 2020, Ian Roper wrote: > When I run the version parameter on a command line I get: > > gambas3 --version > gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead > 3.14.3 > > I was expecting just the version number - is this output correct ? > The warning comes from the gb.gui.qt component during its initialization. If you want to have as few warnings as possible, load as few components as possible that could warn. Don't ask the Gambas IDE for its version, but Gambas interpreter (gbx3) or the compiler (gbc3): $ gbx3 --version 3.14.90 4c2a4f47f (testing-system) In case you want to process version output automatically, there is some- thing you have to take into account: on stable versions like yours above you just get "3.14.3" but on development versions you get the version followed by the git commit and the branch name it was compiled from. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Mon May 11 15:10:46 2020 From: taboege at gmail.com (Tobias Boege) Date: Mon, 11 May 2020 15:10:46 +0200 Subject: [Gambas-user] Cant decipher this one In-Reply-To: <8e295bba-15eb-5c08-d046-855012802d50@gmail.com> References: <8e295bba-15eb-5c08-d046-855012802d50@gmail.com> Message-ID: <20200511131046.GH3641490@highrise.localdomain> On Mon, 11 May 2020, Bruce wrote: > make[2]: Entering directory '/home/share/gambasdevel/gb.gtk' > make all-recursive > make[3]: Entering directory '/home/share/gambasdevel/gb.gtk' > Making all in src > make[4]: Entering directory '/home/share/gambasdevel/gb.gtk/src' > Making all in . > make[5]: Entering directory '/home/share/gambasdevel/gb.gtk/src' > CXXLD gb.gtk.la > /usr/bin/ld: cannot find -lrsvg-2 > collect2: error: ld returned 1 exit status > make[5]: *** [Makefile:721: gb.gtk.la] Error 1 > make[5]: Leaving directory '/home/share/gambasdevel/gb.gtk/src' > make[4]: *** [Makefile:1410: all-recursive] Error 1 > make[4]: Leaving directory '/home/share/gambasdevel/gb.gtk/src' > make[3]: *** [Makefile:445: all-recursive] Error 1 > make[3]: Leaving directory '/home/share/gambasdevel/gb.gtk' > make[2]: *** [Makefile:377: all] Error 2 > make[2]: Leaving directory '/home/share/gambasdevel/gb.gtk' > make[1]: *** [Makefile:436: all-recursive] Error 1 > make[1]: Leaving directory '/home/share/gambasdevel' > make: *** [Makefile:377: all] Error 2 > > > but 1) gtk should have been disabled from the prior ./configure * but > 2) /usr/bin/ld: cannot find -lrsvg-2 > looks a bit weird ? > > * ./configure --disable-sdl2 --disable-gtk2 -C --disable-gtk3 > Try --disable-gtk instead of --disable-gtk2 ;-) Not finding -lrsvg-2 means that the rsvg-2 library isn't installed where the linker can find it (but at the same time the configure stage didn't complain -- maybe because it didn't test for it). Anyway, try dropping the "2" if you just want to disable it altogether. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at gmail.com Mon May 11 15:25:48 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 11 May 2020 22:55:48 +0930 Subject: [Gambas-user] Cant decipher this one In-Reply-To: <20200511131046.GH3641490@highrise.localdomain> References: <8e295bba-15eb-5c08-d046-855012802d50@gmail.com> <20200511131046.GH3641490@highrise.localdomain> Message-ID: <658693ee-b8c6-5a47-7419-36db31d99b34@gmail.com> On 11/5/20 10:40 pm, Tobias Boege wrote: > Try --disable-gtk instead of --disable-gtk2 ;-) > > Not finding -lrsvg-2 means that the rsvg-2 library isn't installed where > the linker can find it (but at the same time the configure stage didn't > complain -- maybe because it didn't test for it). Anyway, try dropping > the "2" if you just want to disable it altogether. > > Regards, > Tobias > Thanks Tobi, I think you just saved my "marriage" as in "Will you turn that )&%%^% off and come to bed!" cheers b From vuott at tiscali.it Mon May 11 16:14:42 2020 From: vuott at tiscali.it (vuott at tiscali.it) Date: Mon, 11 May 2020 16:14:42 +0200 Subject: [Gambas-user] gb.map source code Message-ID: <660bc32dd31935ea5a8e2ae3455949c5@tiscali.it> Hello, is it possible to know the source files/code of the gb.map Component ? Regards vuott Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Mon May 11 17:20:15 2020 From: taboege at gmail.com (Tobias Boege) Date: Mon, 11 May 2020 17:20:15 +0200 Subject: [Gambas-user] gb.map source code In-Reply-To: <660bc32dd31935ea5a8e2ae3455949c5@tiscali.it> References: <660bc32dd31935ea5a8e2ae3455949c5@tiscali.it> Message-ID: <20200511152015.GB317122@highrise.localdomain> On Mon, 11 May 2020, vuott at tiscali.it wrote: > > Hello, > is it possible to know the source files/code of the gb.map > Component ? > Yes, it's a component written in Gambas like many others. It is included the Gambas source code: https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.map Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Mon May 11 18:39:29 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 11 May 2020 18:39:29 +0200 Subject: [Gambas-user] New Systray In-Reply-To: References: Message-ID: <281e4b7e-ca5d-6e9d-be69-de256630dcfc@gmail.com> Hi, System tray now works with QT5 since commit https://gitlab.com/gambas/gambas/-/commit/4ffe07752918a3111f4d660636391b8e5a11cb5b. Note that there is still a display problem. Regards, Le 26/04/2020 ? 19:32, herberth guzman a ?crit?: > Hi > > I cannot solve the problem of the system tray with gambas3-gb-qt5 > but my temporary solution to my project is to work my OS in debian > and not in ubuntu to continue with gambas3-gb-qt4 and in the future see > if I work with gambas3- gb-gtk3 > but at the moment it gives me errors with this component, my project > doesn't work. > > Regards > > > El jue., 23 abr. 2020 a las 10:59, herberth guzman > (>) escribi?: > > The code is: > > ' Gambas class file > > Private $hTrayIcons As New TrayIcon[] > Public Sub Form_Open() > Dim hTray As TrayIcon > > ? Dim i As Integer > ? Dim hDBusApplication As DBusApplication > ? Dim hConnection As DBusConnection > ? Dim hDBusProxy As DBusProxy > ? Dim sDBusName, sDBusObjectPath, sDBusInterface As String > ? Dim aChildren As New String[] > ? Dim aVal As Variant[] > ? Dim s As String > > > ? sDBusName = "org.freedesktop.NetworkManager" > ? hConnection = DBus.System > ? hDBusApplication = New DBusApplication(hConnection, sDBusName) > > ? sDBusObjectPath = "/org/freedesktop/NetworkManager" > ? sDBusInterface = "org.freedesktop.NetworkManager" > ? hDBusProxy = New DBusProxy(hDBusApplication, sDBusObjectPath, > sDBusInterface) > > ? aChildren = hDBusProxy.Children > > ? txaReport.Insert(gb.NewLine) > ? For i = 0 To aChildren.Max > ? ? txaReport.Insert(sDBusObjectPath &/ aChildren[i] & gb.NewLine) > ? Next > > ? s = > DBus["system://org.freedesktop.NetworkManager"]["/org/freedesktop/NetworkManager", > "org.freedesktop.NetworkManager"].GetAllDevices().Join("\n") > ?Print s > > ?If s Then > ? ? hTray = New TrayIcon > ? ? hTray.Name = s > ? ? $hTrayIcons.Add(hTray) > ? ? hTray.Icon = Picture["icon:/32/connect"] > ? ? Endif > ? 'Next > > ? ?dwgSystemTray.Refresh > > End > > El mi?., 22 abr. 2020 a las 21:44, herberth guzman > (>) escribi?: > > Hi Benoit > > I don't have the necessary knowledge for everything I want to > do, but I try. > > I want to make a system tray, could you check my code please. > > Could you help me as I managed to get the popup menu of > networkmanager (example list of wifi networks) by clicking on > the icon of the network menu and at the same time if you think I > am on the right path to continue or could you advise me please. > > i need my new system tray > > at the moment i need networkmanager > but in the future I need to show any app in the systray (example > vlc, audio, others) > > thank you very much > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Beno?t Minisini From shordi at gmail.com Mon May 11 20:33:54 2020 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 11 May 2020 20:33:54 +0200 Subject: [Gambas-user] How can I distinguish between left shift key and right shift key? In-Reply-To: References: Message-ID: Ok. Thank you very much, Bruce. Best Regards El dom., 10 may. 2020 a las 20:54, Jorge Carri?n () escribi?: > Sorry, the control key does not distinguish between left and right either. > I don't know why I said it before. > > Now I'm working on a Raspberry Pi (quarantine issues). > > Best Regards. > > > This is my System Information > [System] > Gambas=3.12.2 > OperatingSystem=Linux > Kernel=4.19.97-v7l+ > Architecture=arm > Distribution=debian 10.3 > Desktop=LXDE > Theme=Qt5CTProxy > Language=es_ES.UTF-8 > Memory=1761M > > [Libraries] > Cairo=libcairo.so.2.11600.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.11 > GStreamer=libgstreamer-1.0.so.0.1404.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2404.1 > OpenGL=libGL.so.1.7.0 > Poppler=libpoppler.so.82.0.0 > QT5=libQt5Core.so.5.11.3 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=LXDE- > DISPLAY=:0.0 > GB_GUI=gb.qt5 > GDMSESSION=lightdm-xsession > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > HOME= > LANG=es_ES.UTF-8 > LANGUAGE=es_ES.UTF-8 > LC_ALL=es_ES.UTF-8 > LOGNAME= > NO_AT_BRIDGE=1 > > PATH=/.local/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games > PWD= > QT_QPA_PLATFORMTHEME=qt5ct > SAL_USE_VCLPLUGIN=gtk3 > SHELL=/bin/bash > SSH_AGENT_PID=758 > SSH_AUTH_SOCK=/tmp/ssh-XyQoZbd9ne2D/agent.696 > TEXTDOMAIN=Linux-PAM > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg > XDG_CONFIG_HOME=/.config > XDG_CURRENT_DESKTOP=LXDE > > XDG_DATA_DIRS=/usr/share/fkms:/usr/local/share:/usr/share/ras-ui-overrides:/usr/share:/usr/share/gdm:/var/lib/menu-xdg > XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/ > XDG_MENU_PREFIX=lxde-- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_CLASS=user > XDG_SESSION_DESKTOP=lightdm-xsession > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > _LXSESSION_PID=696 > > El dom., 10 may. 2020 a las 13:42, Jorge Carri?n () > escribi?: > >> II am making a small text editor and I have a problem: In Spanish the >> double quotes are different from the left and the right (??). I would like >> the character to use depending on whether the left or right shift key has >> been pressed. With the codes of the Key class I cannot distinguish when one >> or the other is pressed. Is it possible to distinguish them as it happens >> with the Control key? >> Thank you. >> >> Best regards >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thadtaylor997 at gmail.com Mon May 11 21:25:14 2020 From: thadtaylor997 at gmail.com (Thad Taylor) Date: Mon, 11 May 2020 13:25:14 -0600 Subject: [Gambas-user] Gambas3 won't launch on Ubuntu 20.04 Message-ID: <0fb565d3-bdcf-b304-9058-7c9508d39061@gmail.com> It is there, but it won't launch on Ubuntu 20.04 I was using it, wrote a dice game. I like it. Used to teach VB6 at community college. Thanks Thad From chrisml at deganius.de Mon May 11 22:05:01 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 11 May 2020 22:05:01 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <1ff667a7-2016-3316-2000-9096cc8e81a7@deganius.de> References: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> <20200510141924.GC3641490@highrise.localdomain> <91409349-b405-dbef-f7ae-f84ed8ea2d1e@gmail.com> <1ff667a7-2016-3316-2000-9096cc8e81a7@deganius.de> Message-ID: <94040928-3173-54c5-467a-bb04cfe6709d@deganius.de> Hello Beno?t, now gb.test seems to work well. Thank you, that's great! :-) I would like to create a form in which we could create, name and choose test szenarios. We could present it for example in the IDE menu right under Debug->Test as a menu entry "Choose Tests". For that I had to use an Array like so: [ ["*", ""] ["Testsuite one", "Testmodule1.Test1, Testmodule2"], ["Szenario 2", "Testmodule2, Testmodule3.Test1, Testmodule3"], ["Test DB Select", "TestDB.Select"], ... ] Is there a possibility to store this anywhere in the project? 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 Mon May 11 22:55:51 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 11 May 2020 23:55:51 +0300 Subject: [Gambas-user] Gambas3 won't launch on Ubuntu 20.04 In-Reply-To: <0fb565d3-bdcf-b304-9058-7c9508d39061@gmail.com> References: <0fb565d3-bdcf-b304-9058-7c9508d39061@gmail.com> Message-ID: Open terminal and write "gambas3", what is the error message? Jussi On Mon, May 11, 2020 at 10:26 PM Thad Taylor wrote: > It is there, but it won't launch on Ubuntu 20.04 > > I was using it, wrote a dice game. I like it. > > Used to teach VB6 at community college. > > Thanks > > Thad > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Tue May 12 16:14:25 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Tue, 12 May 2020 10:14:25 -0400 Subject: [Gambas-user] Systray - new feature request In-Reply-To: <281e4b7e-ca5d-6e9d-be69-de256630dcfc@gmail.com> References: <281e4b7e-ca5d-6e9d-be69-de256630dcfc@gmail.com> Message-ID: While you are working on X11Systray, could you please expose the name of the icon and, perhaps, its class?? This would be helpful when arranging=2 the systray, especially for implementing an overflow area or hide function. -- Email domain proudly hosted at https://migadu.com From herberthguzman at gmail.com Tue May 12 17:09:58 2020 From: herberthguzman at gmail.com (herberth guzman) Date: Tue, 12 May 2020 09:09:58 -0600 Subject: [Gambas-user] New Systray In-Reply-To: <281e4b7e-ca5d-6e9d-be69-de256630dcfc@gmail.com> References: <281e4b7e-ca5d-6e9d-be69-de256630dcfc@gmail.com> Message-ID: Benoit thank you very much for the system tray already installed and it is functional. El lun., 11 may. 2020 10:40 a. m., Beno?t Minisini escribi?: > Hi, > > System tray now works with QT5 since commit > > https://gitlab.com/gambas/gambas/-/commit/4ffe07752918a3111f4d660636391b8e5a11cb5b > . > > Note that there is still a display problem. > > Regards, > > Le 26/04/2020 ? 19:32, herberth guzman a ?crit : > > Hi > > > > I cannot solve the problem of the system tray with gambas3-gb-qt5 > > but my temporary solution to my project is to work my OS in debian > > and not in ubuntu to continue with gambas3-gb-qt4 and in the future see > > if I work with gambas3- gb-gtk3 > > but at the moment it gives me errors with this component, my project > > doesn't work. > > > > Regards > > > > > > El jue., 23 abr. 2020 a las 10:59, herberth guzman > > (>) escribi?: > > > > The code is: > > > > ' Gambas class file > > > > Private $hTrayIcons As New TrayIcon[] > > Public Sub Form_Open() > > Dim hTray As TrayIcon > > > > Dim i As Integer > > Dim hDBusApplication As DBusApplication > > Dim hConnection As DBusConnection > > Dim hDBusProxy As DBusProxy > > Dim sDBusName, sDBusObjectPath, sDBusInterface As String > > Dim aChildren As New String[] > > Dim aVal As Variant[] > > Dim s As String > > > > > > sDBusName = "org.freedesktop.NetworkManager" > > hConnection = DBus.System > > hDBusApplication = New DBusApplication(hConnection, sDBusName) > > > > sDBusObjectPath = "/org/freedesktop/NetworkManager" > > sDBusInterface = "org.freedesktop.NetworkManager" > > hDBusProxy = New DBusProxy(hDBusApplication, sDBusObjectPath, > > sDBusInterface) > > > > aChildren = hDBusProxy.Children > > > > txaReport.Insert(gb.NewLine) > > For i = 0 To aChildren.Max > > txaReport.Insert(sDBusObjectPath &/ aChildren[i] & gb.NewLine) > > Next > > > > s = > > > DBus["system://org.freedesktop.NetworkManager"]["/org/freedesktop/NetworkManager", > > "org.freedesktop.NetworkManager"].GetAllDevices().Join("\n") > > Print s > > > > If s Then > > hTray = New TrayIcon > > hTray.Name = s > > $hTrayIcons.Add(hTray) > > hTray.Icon = Picture["icon:/32/connect"] > > Endif > > 'Next > > > > dwgSystemTray.Refresh > > > > End > > > > El mi?., 22 abr. 2020 a las 21:44, herberth guzman > > (>) > escribi?: > > > > Hi Benoit > > > > I don't have the necessary knowledge for everything I want to > > do, but I try. > > > > I want to make a system tray, could you check my code please. > > > > Could you help me as I managed to get the popup menu of > > networkmanager (example list of wifi networks) by clicking on > > the icon of the network menu and at the same time if you think I > > am on the right path to continue or could you advise me please. > > > > i need my new system tray > > > > at the moment i need networkmanager > > but in the future I need to show any app in the systray (example > > vlc, audio, others) > > > > thank you very much > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed May 13 11:26:24 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 13 May 2020 11:26:24 +0200 Subject: [Gambas-user] gb.test IDE integration Message-ID: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> Hello, we need a possibility to get all tests (testmodules and testmethods) of a project. There is a new function in gb.test that returns all tests (names of testmodules and their testmethods) as a Json string: Test.AllTestsJson() Can we create an option for the interpreter to call this function? For instance: gbx3 -a /path/to/project would then print out a json string with all tests of that project. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed May 13 11:35:42 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 May 2020 11:35:42 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> Message-ID: Le 13/05/2020 ? 11:26, Christof Thalhofer a ?crit?: > Hello, > > we need a possibility to get all tests (testmodules and testmethods) of > a project. There is a new function in gb.test that returns all tests > (names of testmodules and their testmethods) as a Json string: > > Test.AllTestsJson() > > Can we create an option for the interpreter to call this function? For > instance: > > gbx3 -a /path/to/project > > would then print out a json string with all tests of that project. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > What for? Just browse all '*.test' files recursively in '.src'. -- Beno?t Minisini From chrisml at deganius.de Wed May 13 12:31:16 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 13 May 2020 12:31:16 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> Message-ID: Am 13.05.20 um 11:35 schrieb Beno?t Minisini: > What for? Just browse all '*.test' files recursively in '.src'. In gb.test this browsing functionality is already done. It gives the names of all testmodules and all testmethods easily so that we can create a form for the IDE in which we can choose which tests should be executed if we don't want to execute all. But: This is not only for the IDE, the form in the IDE is just an example what can be done with it. Is it a big problem to create such an option for the interpreter? 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 Wed May 13 12:40:36 2020 From: taboege at gmail.com (Tobias Boege) Date: Wed, 13 May 2020 12:40:36 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> Message-ID: <20200513104036.GD317122@highrise.localdomain> On Wed, 13 May 2020, Beno?t Minisini wrote: > Le 13/05/2020 ? 11:26, Christof Thalhofer a ?crit?: > > Hello, > > > > we need a possibility to get all tests (testmodules and testmethods) of > > a project. There is a new function in gb.test that returns all tests > > (names of testmodules and their testmethods) as a Json string: > > > > Test.AllTestsJson() > > > > Can we create an option for the interpreter to call this function? For > > instance: > > > > gbx3 -a /path/to/project > > > > would then print out a json string with all tests of that project. > > > > What for? Just browse all '*.test' files recursively in '.src'. > The test dialog should support the granularity of test selection that gb.test already has: to pick individual methods inside of test modules to run. Given that the IDE can load classes and symbols from the project (e.g. for autocompletion), it should be possible to use the same mechanism to: [ - compile the project (to renew the .test and .info file), ] - read the .test file for all test class names, - load their method symbols. I think this meets all our needs, right? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Wed May 13 12:48:47 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 13 May 2020 12:48:47 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <20200513104036.GD317122@highrise.localdomain> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <20200513104036.GD317122@highrise.localdomain> Message-ID: Am 13.05.20 um 12:40 schrieb Tobias Boege: > The test dialog should support the granularity of test selection that > gb.test already has: to pick individual methods inside of test modules > to run. > > Given that the IDE can load classes and symbols from the project > (e.g. for autocompletion), it should be possible to use the same > mechanism to: > > [ - compile the project (to renew the .test and .info file), ] > - read the .test file for all test class names, > - load their method symbols. > > I think this meets all our needs, right? Yes, but just for the IDE. As I can call tests of a project on the commandline it would be also nice if I could get their names there too. And the code for that is already written in gb.test. Why not use that? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Wed May 13 13:23:01 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 13 May 2020 13:23:01 +0200 Subject: [Gambas-user] Coming back to gb.test In-Reply-To: <94040928-3173-54c5-467a-bb04cfe6709d@deganius.de> References: <62a802d8-d51f-e3e6-48f5-9bc3d6898eb2@deganius.de> <282ea9d6-d42c-7e51-9d71-0ac4765c2756@deganius.de> <606e4103-318c-3e08-068b-d3c32f79ecc2@gmail.com> <7139fe4a-64a9-bdd4-9f9d-9b057ec0681c@deganius.de> <26b5cd60-b0ed-d8a4-a106-15e91d91fb8b@gmail.com> <8c24bc7d-d311-1625-66f0-fc8d1e94f13c@deganius.de> <8eb8f5a6-37d9-93f3-5c9b-347ac2128723@deganius.de> <4a3827a5-b8ad-64be-fe3f-11e7ac000f81@gmail.com> <20200510141924.GC3641490@highrise.localdomain> <91409349-b405-dbef-f7ae-f84ed8ea2d1e@gmail.com> <1ff667a7-2016-3316-2000-9096cc8e81a7@deganius.de> <94040928-3173-54c5-467a-bb04cfe6709d@deganius.de> Message-ID: <9178a9e8-0994-9aef-3c9f-b885a6ee5c1c@deganius.de> Am 11.05.20 um 22:05 schrieb Christof Thalhofer: > I would like to create a form in which we could create, name and choose > test szenarios. We could present it for example in the IDE menu right > under Debug->Test as a menu entry "Choose Tests". > > For that I had to use an Array like so: > > [ > ["*", ""] > ["Testsuite one", "Testmodule1.Test1, Testmodule2"], > ["Szenario 2", "Testmodule2, Testmodule3.Test1, Testmodule3"], > ["Test DB Select", "TestDB.Select"], > ... > ] > > Is there a possibility to store this anywhere in the project? Tobi and I just spoke about that. We will create a file .tests in the project and there store these things as settings. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed May 13 20:50:42 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 May 2020 20:50:42 +0200 Subject: [Gambas-user] Cairo in Gambas In-Reply-To: References: Message-ID: <62a86d01-73a0-3b04-6b35-fb2799edb44c@gmail.com> Le 11/05/2020 ? 12:20, martin p cristia a ?crit?: > Hi there!, I'd like to know how its Cairo being used: > > -It is trough Qt/GTK binding? Only GTK+ uses Cairo, but this is hidden by the Paint class. > > -Directly to the Linux port? and if so, can we adress the library > directly to draw in an Image You can also use the gb.cairo component to directly address the Cairo API. Note that nobody apparently maintains Cairo anymore. The Linux GUI toolkit situation is not quite good at the moment... Regards, -- Beno?t Minisini From twopilots at interisland.net Wed May 13 21:59:40 2020 From: twopilots at interisland.net (Ed & Clare Kelm) Date: Wed, 13 May 2020 12:59:40 -0700 Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 Message-ID: <1398e5d4-a015-8f77-e02f-12ca9b255d0b@interisland.net> After a recent upgrade (don't know which one, but probably in the last 2 weeks) Gambas3 won't start. Just updated to latest daily build, but that didn't fix it. Installed version is now: 3.14.90+git6618.78a969e+build4da896c1~ubuntu14.04.1 Messages in terminal are: clare at strata-8110:~$ gambas3 gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead CDocumentation.Reset.1123: #12: Not an object CDocumentation.Reset.1123 CDocumentation._new.359 Project.Main.359 How do I fix this? Thanks! Ed K. From chrisml at deganius.de Wed May 13 22:21:13 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 13 May 2020 22:21:13 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> Message-ID: <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> Am 13.05.20 um 11:35 schrieb Beno?t Minisini: > What for? Just browse all '*.test' files recursively in '.src'. "Just" is not an easy task for me. For you, of course, it's a simple thing. I am not familiar with browsing the content of source files in directory trees for the names of functions and subs and before I try to figure it out and need about one day for that ... ... forget about it. I'll find an easier way to get this information from gb.test. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Wed May 13 22:51:33 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 13 May 2020 13:51:33 -0700 (PDT) Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 In-Reply-To: <1398e5d4-a015-8f77-e02f-12ca9b255d0b@interisland.net> References: <1398e5d4-a015-8f77-e02f-12ca9b255d0b@interisland.net> Message-ID: <1417661435.1526.1589403093677.JavaMail.zimbra@westwoodsvcs.com> I Have the same issue with the latest update of mint 19.3 but only the CDocumentation.Reset.1123: #12: Not an object CDocumentation.Reset.1123 CDocumentation._new.359 Project.Main.359 in a popup message using the daily as well Thank You Brian G ----- Original Message ----- From: "Ed & Clare Kelm" To: "Gambas mailing list" Sent: Wednesday, May 13, 2020 12:59:40 PM Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 After a recent upgrade (don't know which one, but probably in the last 2 weeks) Gambas3 won't start. Just updated to latest daily build, but that didn't fix it. Installed version is now: 3.14.90+git6618.78a969e+build4da896c1~ubuntu14.04.1 Messages in terminal are: clare at strata-8110:~$ gambas3 gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead CDocumentation.Reset.1123: #12: Not an object CDocumentation.Reset.1123 CDocumentation._new.359 Project.Main.359 How do I fix this? Thanks! Ed K. ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From tercoide at hotmail.com Thu May 14 04:14:49 2020 From: tercoide at hotmail.com (martin p cristia) Date: Wed, 13 May 2020 23:14:49 -0300 Subject: [Gambas-user] Cairo in Gambas Message-ID: Sad to hear that because Cairo is 5-10 times faster that Paint as can be seen in the project attatched. Not sure what you mean about the "linux toolkit" El 5/13/20 a las 3:51 PM, user-request at lists.gambas-basic.org escribi?: > Re: Cairo in Gambas > Note that nobody apparently maintains Cairo anymore. The Linux GUI > toolkit situation is not quite good at the moment... -- Saludos Ing. Martin P Cristia -------------- next part -------------- A non-text attachment was scrubbed... Name: CairoVsPaint-0.0.1.tar.gz Type: application/gzip Size: 13130 bytes Desc: not available URL: From g4mba5 at gmail.com Thu May 14 04:43:09 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 04:43:09 +0200 Subject: [Gambas-user] Cairo in Gambas In-Reply-To: References: Message-ID: Le 14/05/2020 ? 04:14, martin p cristia a ?crit?: > Sad to hear that because Cairo is 5-10 times faster that Paint as can be > seen in the project attatched. > > Not sure what you mean about the "linux toolkit" > > El 5/13/20 a las 3:51 PM, user-request at lists.gambas-basic.org escribi?: >> Re: Cairo in Gambas >> Note that nobody apparently maintains Cairo anymore. The Linux GUI >> toolkit situation is not quite good at the moment... > If you use Qt4. If you use Qt5, Paint class is 3x times faster than Cairo. It seems there is a problem with Qt4. -- Beno?t Minisini From g4mba5 at gmail.com Thu May 14 04:45:09 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 04:45:09 +0200 Subject: [Gambas-user] Cairo in Gambas In-Reply-To: References: Message-ID: <1e05bd62-520f-0582-823e-b8354061a516@gmail.com> Le 14/05/2020 ? 04:43, Beno?t Minisini a ?crit?: > Le 14/05/2020 ? 04:14, martin p cristia a ?crit?: >> Sad to hear that because Cairo is 5-10 times faster that Paint as can >> be seen in the project attatched. >> >> Not sure what you mean about the "linux toolkit" >> >> El 5/13/20 a las 3:51 PM, user-request at lists.gambas-basic.org escribi?: >>> Re: Cairo in Gambas >>> Note that nobody apparently maintains Cairo anymore. The Linux GUI >>> toolkit situation is not quite good at the moment... >> > > If you use Qt4. If you use Qt5, Paint class is 3x times faster than Cairo. > > It seems there is a problem with Qt4. > Anyway, your benchmark is silly. You mainly test the drawing of rotated text. If you remove the rotation, you will get about the same speed whatever you use (with always a bit of slowness with qt4). -- Beno?t Minisini From g4mba5 at gmail.com Thu May 14 04:50:14 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 04:50:14 +0200 Subject: [Gambas-user] Cairo in Gambas In-Reply-To: <1e05bd62-520f-0582-823e-b8354061a516@gmail.com> References: <1e05bd62-520f-0582-823e-b8354061a516@gmail.com> Message-ID: Le 14/05/2020 ? 04:45, Beno?t Minisini a ?crit?: > Le 14/05/2020 ? 04:43, Beno?t Minisini a ?crit?: >> Le 14/05/2020 ? 04:14, martin p cristia a ?crit?: >>> Sad to hear that because Cairo is 5-10 times faster that Paint as can >>> be seen in the project attatched. >>> >>> Not sure what you mean about the "linux toolkit" >>> >>> El 5/13/20 a las 3:51 PM, user-request at lists.gambas-basic.org escribi?: >>>> Re: Cairo in Gambas >>>> Note that nobody apparently maintains Cairo anymore. The Linux GUI >>>> toolkit situation is not quite good at the moment... >>> >> >> If you use Qt4. If you use Qt5, Paint class is 3x times faster than >> Cairo. >> >> It seems there is a problem with Qt4. >> > > Anyway, your benchmark is silly. You mainly test the drawing of rotated > text. If you remove the rotation, you will get about the same speed > whatever you use (with always a bit of slowness with qt4). > Moreover, it has many bugs and useless method calls (like Paint.Stroke). If you want to compare, you have to do exactly the same thing in both drawing routines. In ohter words, what is displayed should be the same, except for the text which is never drawn the same way between toolkits. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 14 08:42:30 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 08:42:30 +0200 Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 In-Reply-To: <1417661435.1526.1589403093677.JavaMail.zimbra@westwoodsvcs.com> References: <1398e5d4-a015-8f77-e02f-12ca9b255d0b@interisland.net> <1417661435.1526.1589403093677.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <0b731152-d6e8-1423-4b7a-415aefd233f9@gmail.com> Le 13/05/2020 ? 22:51, Brian G a ?crit?: > I Have the same issue with the latest update of mint 19.3 > but only the > > CDocumentation.Reset.1123: #12: Not an object > CDocumentation.Reset.1123 CDocumentation._new.359 Project.Main.359 > in a popup message > using the daily as well > > > > Thank You > Brian G > > ----- Original Message ----- > From: "Ed & Clare Kelm" > To: "Gambas mailing list" > Sent: Wednesday, May 13, 2020 12:59:40 PM > Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 > > After a recent upgrade (don't know which one, but probably in the last 2 > weeks) Gambas3 won't start. > > Just updated to latest daily build, but that didn't fix it. Installed > version is now: > > 3.14.90+git6618.78a969e+build4da896c1~ubuntu14.04.1 > > Messages in terminal are: > > clare at strata-8110:~$ gambas3 > gb.gui.qt: warning: 'gb.qt5' component not found, using 'gb.qt4' instead > CDocumentation.Reset.1123: #12: Not an object > CDocumentation.Reset.1123 CDocumentation._new.359 Project.Main.359 > > How do I fix this? > > Thanks! > > Ed K. > 'gambas-daily' should be fixed tomorrow. Regards, -- Beno?t Minisini From akrobaticone at gmail.com Thu May 14 10:57:58 2020 From: akrobaticone at gmail.com (Michele V.) Date: Thu, 14 May 2020 10:57:58 +0200 Subject: [Gambas-user] Gambas repository on DomotiGa project Message-ID: Some times ago Sebastian say to me: *" You can use the PPAs hosted in Launchpad, as they also compile Gambas for the ARM architecture. If you are using Raspbian you must choose the corresponding Ubuntu release and manually add it to you sources.list. Hope it helps! Regards, Sebastian"* ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 14 11:40:53 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 11:40:53 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> Message-ID: <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> Le 13/05/2020 ? 22:21, Christof Thalhofer a ?crit?: > Am 13.05.20 um 11:35 schrieb Beno?t Minisini: > >> What for? Just browse all '*.test' files recursively in '.src'. > > "Just" is not an easy task for me. For you, of course, it's a simple thing. > > I am not familiar with browsing the content of source files in directory > trees for the names of functions and subs and before I try to figure it > out and need about one day for that ... $ cd $ find .src -name '*.test' -exec basename {} .test \; | sort will return the list of test modules, sorted. I don't know why you need that on the command-line. -- Beno?t Minisini From g4mba5 at gmail.com Thu May 14 11:43:42 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 11:43:42 +0200 Subject: [Gambas-user] Tap parser in gb.test Message-ID: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> Hi Christof, Hi Tobias, So I have apparently a TAP parser inside 'gb.test'. How can I use it in the IDE to parse the TAP output so that I can present test results in a more readable way? -- Beno?t Minisini From chrisml at deganius.de Thu May 14 12:26:26 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 14 May 2020 12:26:26 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> Message-ID: <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> Am 14.05.20 um 11:40 schrieb Beno?t Minisini: > $ cd > $ find .src -name '*.test' -exec basename {} .test \; | sort > > will return the list of test modules, sorted. > > I don't know why you need that on the command-line. Thank you, I don't need that any more. I am currently creating the IDE integration (so that we can select any combination of tests, store it as testsuites and let run it with F4) and I'm almost finished. Please wait a bit then you will see. 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 Thu May 14 12:28:15 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 14 May 2020 12:28:15 +0200 Subject: [Gambas-user] Tap parser in gb.test In-Reply-To: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> References: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> Message-ID: <3a6f8184-11ab-9aad-13b1-d3aaf941da17@deganius.de> Am 14.05.20 um 11:43 schrieb Beno?t Minisini: > Hi Christof, Hi Tobias, > > So I have apparently a TAP parser inside 'gb.test'. > > How can I use it in the IDE to parse the TAP output so that I can > present test results in a more readable way? The Tap parser is Tobi's realm. I am not sure if it is finished yet. Please wait a minute! 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 Thu May 14 12:29:30 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 12:29:30 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> Message-ID: <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> Le 14/05/2020 ? 12:26, Christof Thalhofer a ?crit?: > Am 14.05.20 um 11:40 schrieb Beno?t Minisini: > >> $ cd >> $ find .src -name '*.test' -exec basename {} .test \; | sort >> >> will return the list of test modules, sorted. >> >> I don't know why you need that on the command-line. > > Thank you, I don't need that any more. I am currently creating the IDE > integration (so that we can select any combination of tests, store it as > testsuites and let run it with F4) and I'm almost finished. Please wait > a bit then you will see. > > Alles Gute > > Christof Thalhofer > If you modify on the IDE, can you work on a branch and make a merge request instead of directly pushing on master? -- Beno?t Minisini From taboege at gmail.com Thu May 14 12:46:14 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 14 May 2020 12:46:14 +0200 Subject: [Gambas-user] Tap parser in gb.test In-Reply-To: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> References: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> Message-ID: <20200514104614.GA1060098@highrise.localdomain> On Thu, 14 May 2020, Beno?t Minisini wrote: > Hi Christof, Hi Tobias, > > So I have apparently a TAP parser inside 'gb.test'. > > How can I use it in the IDE to parse the TAP output so that I can present > test results in a more readable way? > The parser class is hidden now, so it can only be used through the TestRunner module. This takes a project directory, starts it under `gbx3 -T` and parses the TAP output into a TestStats object... which I forgot to return from the Run method. It will be available in a few minutes! If you have TAP saved in a text file or something like that, there is no way to parse it anymore. Also Christof is right in that the parser has a few TODO items left, most notably it doesn't parse subtests yet. These holes should be filled when the first thing that uses the parser is written, which is now? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Thu May 14 12:49:51 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 14 May 2020 12:49:51 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> Message-ID: Am 14.05.20 um 12:29 schrieb Beno?t Minisini: > If you modify on the IDE, can you work on a branch and make a merge > request instead of directly pushing on master? 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 tercoide at hotmail.com Thu May 14 12:59:24 2020 From: tercoide at hotmail.com (martin p cristia) Date: Thu, 14 May 2020 07:59:24 -0300 Subject: [Gambas-user] Cairo in Gambas In-Reply-To: References: Message-ID: > If you use Qt4. If you use Qt5, Paint class is 3x times faster than Cairo. > > It seems there is a problem with Qt4. Good news. I've also read that Qt5 implements VBO needed for modern OpenGL, so when are we going to have it?? :) > Anyway, your benchmark is silly. You mainly test the drawing of rotated > text. If you remove the rotation, you will get about the same speed > whatever you use (with always a bit of slowness with qt4). Off course it is, it's a benchmark, not the actual thing I want ot do. Anyway if you Stroke outside the For-Next loop, you get same color. Rotation it's needed, it's a part of it. -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Thu May 14 13:05:42 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 13:05:42 +0200 Subject: [Gambas-user] Tap parser in gb.test In-Reply-To: <20200514104614.GA1060098@highrise.localdomain> References: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> <20200514104614.GA1060098@highrise.localdomain> Message-ID: <82ac8fdf-7bae-ded7-6bb5-7dc528a3b7de@gmail.com> Le 14/05/2020 ? 12:46, Tobias Boege a ?crit?: > On Thu, 14 May 2020, Beno?t Minisini wrote: >> Hi Christof, Hi Tobias, >> >> So I have apparently a TAP parser inside 'gb.test'. >> >> How can I use it in the IDE to parse the TAP output so that I can present >> test results in a more readable way? >> > > The parser class is hidden now, so it can only be used through the TestRunner > module. This takes a project directory, starts it under `gbx3 -T` and parses > the TAP output into a TestStats object... which I forgot to return from the > Run method. It will be available in a few minutes! > > If you have TAP saved in a text file or something like that, there is no way > to parse it anymore. Also Christof is right in that the parser has a few TODO > items left, most notably it doesn't parse subtests yet. These holes should be > filled when the first thing that uses the parser is written, which is now? > > Regards, > Tobi > If it had been public, I would have been able to use it in the IDE to plug it to the test output and replace the unit test terminal by a better presentation. Regards, -- Beno?t Minisini From taboege at gmail.com Thu May 14 13:28:46 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 14 May 2020 13:28:46 +0200 Subject: [Gambas-user] Tap parser in gb.test In-Reply-To: <82ac8fdf-7bae-ded7-6bb5-7dc528a3b7de@gmail.com> References: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> <20200514104614.GA1060098@highrise.localdomain> <82ac8fdf-7bae-ded7-6bb5-7dc528a3b7de@gmail.com> Message-ID: <20200514112846.GB1060098@highrise.localdomain> On Thu, 14 May 2020, Beno?t Minisini wrote: > Le 14/05/2020 ? 12:46, Tobias Boege a ?crit?: > > On Thu, 14 May 2020, Beno?t Minisini wrote: > > > Hi Christof, Hi Tobias, > > > > > > So I have apparently a TAP parser inside 'gb.test'. > > > > > > How can I use it in the IDE to parse the TAP output so that I can present > > > test results in a more readable way? > > > > > > > The parser class is hidden now, so it can only be used through the TestRunner > > module. This takes a project directory, starts it under `gbx3 -T` and parses > > the TAP output into a TestStats object... which I forgot to return from the > > Run method. It will be available in a few minutes! > > > > If you have TAP saved in a text file or something like that, there is no way > > to parse it anymore. Also Christof is right in that the parser has a few TODO > > items left, most notably it doesn't parse subtests yet. These holes should be > > filled when the first thing that uses the parser is written, which is now? > > > > Regards, > > Tobi > > > > If it had been public, I would have been able to use it in the IDE to plug > it to the test output and replace the unit test terminal by a better > presentation. > Let's re-export it then. It breaks the symmetry of not having any TAP part visible in the component interface, but that's only a minor reason. Unlike TestRunner, the TapParser is interactive which is certainly nicer for viewing tests as they run. This makes me wonder if TestRunner should be interactive (i.e. raise events) as well...? -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Thu May 14 14:31:59 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 14 May 2020 14:31:59 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> Message-ID: <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> Am 14.05.20 um 12:29 schrieb Beno?t Minisini: > If you modify on the IDE, can you work on a branch and make a merge > request instead of directly pushing on master? Here is the merge request: https://gitlab.com/gambas/gambas/-/merge_requests/145 Attention! With the new form FTestSuite testsuites can be created and stored in this file as settings: /path/to/project/.tests. Here the key "CurrentTests" contains the tests to be executed when hit F4. But I did not write the code to hand over this string with F4. I left this job for you, Beno?t. 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 Thu May 14 14:38:59 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 14:38:59 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> Message-ID: Le 14/05/2020 ? 14:31, Christof Thalhofer a ?crit?: > Am 14.05.20 um 12:29 schrieb Beno?t Minisini: > >> If you modify on the IDE, can you work on a branch and make a merge >> request instead of directly pushing on master? > > Here is the merge request: > > https://gitlab.com/gambas/gambas/-/merge_requests/145 > > Attention! With the new form FTestSuite testsuites can be created and > stored in this file as settings: > > /path/to/project/.tests. > > Here the key "CurrentTests" contains the tests to be executed when hit F4. > > But I did not write the code to hand over this string with F4. I left > this job for you, Beno?t. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Why did you create a new settings file for that? The test suites are part of the project, they should be stored in the project configuration file, '.project'. -- Beno?t Minisini From chrisml at deganius.de Thu May 14 14:55:00 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 14 May 2020 14:55:00 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> Message-ID: <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> Am 14.05.20 um 14:38 schrieb Beno?t Minisini: > Why did you create a new settings file for that? The test suites are > part of the project, they should be stored in the project configuration > file, '.project'. I asked in the mailinglist where I should store such data. You didn't answer. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Thu May 14 15:12:21 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 14 May 2020 22:42:21 +0930 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> Message-ID: <65d1c2a8-11b6-95bf-af9d-f5dda2472c79@gmail.com> On 14/5/20 10:08 pm, Beno?t Minisini wrote: > Le 14/05/2020 ?? 14:31, Christof Thalhofer a ??crit??: >> Am 14.05.20 um 12:29 schrieb Beno??t Minisini: > > Why did you create a new settings file for that? The test suites are > part of the project, they should be stored in the project configuration > file, '.project'. > Beno?t, For the first time I have to strongly disagree with you. Anything that has to do with an optional development activity should be kept outside the .project file which is included in the real executable. While .project is used in the ide it also has importance in the final project. The importance and focus of the .project file would better be confined to that role alone. We have over the years used many extra metadata files external to .project, some for development purposes and some used at the runtime. I am confused as to why you would want this (excuse the following, I can't think of a better word) "pollution" in the .project file. rgds b From g4mba5 at gmail.com Thu May 14 15:24:12 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 15:24:12 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <65d1c2a8-11b6-95bf-af9d-f5dda2472c79@gmail.com> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <65d1c2a8-11b6-95bf-af9d-f5dda2472c79@gmail.com> Message-ID: <3fc8a931-70dd-2da1-5179-5c2d92d9ed88@gmail.com> Le 14/05/2020 ? 15:12, Bruce a ?crit?: > > > On 14/5/20 10:08 pm, Beno?t Minisini wrote: >> Le 14/05/2020 ?? 14:31, Christof Thalhofer a ??crit??: >>> Am 14.05.20 um 12:29 schrieb Beno??t Minisini: > >> >> Why did you create a new settings file for that? The test suites are >> part of the project, they should be stored in the project >> configuration file, '.project'. >> > > Beno?t, > For the first time I have to strongly disagree with you. Anything that > has to do with an optional development activity should be kept outside > the .project file which is included in the real executable. It could be removed from the executable safely, it is not used by the interpreter at all. No idea why I didn't do that yet. > While .project is used in the ide it also has importance in the final > project. The importance and focus of the .project file would better be > confined to that role alone. We have over the years used many extra > metadata files external to .project, some for development purposes and > some used at the runtime. I am confused as to why you would want this > (excuse the following, I can't think of a better word) "pollution" in > the .project file. > rgds > b > '.project' is where the project settings must be stored, whatever they are, optional or not optional. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 14 15:25:29 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 15:25:29 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> Message-ID: <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> Le 14/05/2020 ? 14:55, Christof Thalhofer a ?crit?: > Am 14.05.20 um 14:38 schrieb Beno?t Minisini: > >> Why did you create a new settings file for that? The test suites are >> part of the project, they should be stored in the project configuration >> file, '.project'. > > I asked in the mailinglist where I should store such data. You didn't > answer. > Lol. My lack of answer is not a good reason for doing that. :-) As I told Bruce, '.project' is where the project settings must be stored, whatever they are, optional or not optional. Regards, -- Beno?t Minisini From taboege at gmail.com Thu May 14 15:34:46 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 14 May 2020 15:34:46 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <3fc8a931-70dd-2da1-5179-5c2d92d9ed88@gmail.com> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <65d1c2a8-11b6-95bf-af9d-f5dda2472c79@gmail.com> <3fc8a931-70dd-2da1-5179-5c2d92d9ed88@gmail.com> Message-ID: <20200514133446.GD1060098@highrise.localdomain> On Thu, 14 May 2020, Beno?t Minisini wrote: > > While .project is used in the ide it also has importance in the final > > project. The importance and focus of the .project file would better be > > confined to that role alone. We have over the years used many extra > > metadata files external to .project, some for development purposes and > > some used at the runtime. I am confused as to why you would want this > > (excuse the following, I can't think of a better word) "pollution" in > > the .project file. > > rgds > > b > > > > '.project' is where the project settings must be stored, whatever they are, > optional or not optional. > If I may add my mustard (somehow the German version of "two cents"): these test suite descriptions seem to me more like .connection files (which are stored separately in the project) than project settings. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Thu May 14 15:42:07 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 14 May 2020 15:42:07 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> Message-ID: <27832e98-a9c3-723b-26a4-4d4a3aa86932@deganius.de> Am 14.05.20 um 15:25 schrieb Beno?t Minisini: >> I asked in the mailinglist where I should store such data. You didn't >> answer. > > Lol. My lack of answer is not a good reason for doing that. :-) > > As I told Bruce, '.project' is where the project settings must be > stored, whatever they are, optional or not optional. I also told you what I will do and you still did not answer. What should I do? Hitchhiking to France to knock at your door? :-) Ok beside this, I am fine with the data in .tests. And I am unsure if we won't get additional things to store for testing purposes and what the format would be. The settings format makes it easy therefor I have chosen it. Also the IDE has gb.settings activated, so why don't use 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 Thu May 14 17:05:04 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 14 May 2020 17:05:04 +0200 Subject: [Gambas-user] Tap parser in gb.test In-Reply-To: <82ac8fdf-7bae-ded7-6bb5-7dc528a3b7de@gmail.com> References: <97e37a93-219f-4e7e-2abc-81bfbc83ff99@gmail.com> <20200514104614.GA1060098@highrise.localdomain> <82ac8fdf-7bae-ded7-6bb5-7dc528a3b7de@gmail.com> Message-ID: <6d119b79-1c8e-1c78-6d42-3042664ba9d3@deganius.de> Hi Beno?t, Am 14.05.20 um 13:05 schrieb Beno?t Minisini: > If it had been public, I would have been able to use it in the IDE to > plug it to the test output and replace the unit test terminal by a > better presentation. I wrote the form last night and this morning. It lacks support for translation (I am not familiar with it, sorry) and support for keyboard. I want it to be very fast: So that one can open it with Alt-D-D, then choose a testsuite with the arrow keys (not done yet), then hit Esc and F4 and then the test runs. On my computer if I hit F4 the Unittests console does not open but just flicker when the IDE is started new. But I want to see it instantly. As for the test result: In my daily work with a lot of tests I like the TAP output very much and it's summary at the end gives me all I need (it lacks a few things which I will write in taskell). The most important things stand at the end: PASSED or FAILED and what failed, if then. To be able to watch the TAP output is important in two cases (these are the things that come to my mind spontaneously): 1) If tests need some time. Then you are happy if you see the processing of the ok ... ok ... ok because you'll know it's not stuck. 2) If you step through your tests while writing test code. If you wrote 5 assertions at once you want to see TAP ok..ok..ok.. while stepping through. -------------------------------------------------------------- So please: Before you think of hiding the "machinery" of gb.test and TAP and so on, work a little with it. Write a couple of tests for important parts of Gambas and Gambas components and get familiar with it. After a while you will see, that the current implementation gives you fast access and a lot of information that you don't think is important right now but wouldn't want to miss later. Again and again I fear that important parts are hidden because their importance for the daily work is not seen properly. So please work 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 charlie at cogier.com Thu May 14 18:25:30 2020 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 14 May 2020 17:25:30 +0100 Subject: [Gambas-user] The future of Gambas? Message-ID: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> Hi All, I am surprised that more is not being done to sort out Gambas on Ubuntu 20.04. Gambas is available from the Ubuntu repository but it does not run. The PPA doesn't work either. Of the top 20 Distros 6 are based on Ubuntu, Mint 20 is due out in June which uses the same Ubuntu repositories. If Gambas is to become more popular surely attention needs to be directed at the latest releases of the most popular distros and not to Ubuntu 14.04 which is now out of support! Or am I missing something? Charlie From bagonergi at gmail.com Thu May 14 19:56:17 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 14 May 2020 19:56:17 +0200 Subject: [Gambas-user] The future of Gambas? In-Reply-To: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> Message-ID: Il giorno gio 14 mag 2020 alle ore 18:48 Charlie Ogier ha scritto: > Hi All, > > I am surprised that more is not being done to sort out Gambas on Ubuntu > 20.04. Gambas is available from the Ubuntu repository but it does not > run. The PPA doesn't work either. > > Of the top 20 Distros 6 are based on Ubuntu, Mint 20 is due out in June > which uses the same Ubuntu repositories. > > If Gambas is to become more popular surely attention needs to be > directed at the latest releases of the most popular distros and not to > Ubuntu 14.04 which is now out of support! > > Or am I missing something? > > Charlie > I don't use PPA, maybe you should contact Sebastian: https://code.launchpad.net/~gambas-team/+archive/ubuntu/gambas-beta Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 14 20:28:12 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 20:28:12 +0200 Subject: [Gambas-user] The future of Gambas? In-Reply-To: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> Message-ID: Le 14/05/2020 ? 18:25, Charlie Ogier a ?crit?: > Hi All, > > I am surprised that more is not being done to sort out Gambas on Ubuntu > 20.04. Gambas is available from the Ubuntu repository but it does not > run. The PPA doesn't work either. > > Of the top 20 Distros 6 are based on Ubuntu, Mint 20 is due out in June > which uses the same Ubuntu repositories. > > If Gambas is to become more popular surely attention needs to be > directed at the latest releases of the most popular distros and not to > Ubuntu 14.04 which is now out of support! > > Or am I missing something? > > Charlie > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I don't make the Debian/Ubuntu packages. Sebastian Kulesz and me only manage the gambas stable PPA and gambas daily PPA. The gambas daily PPA should work again in a few hours. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Thu May 14 20:31:41 2020 From: brian at westwoodsvcs.com (brian at westwoodsvcs.com) Date: Thu, 14 May 2020 21:31:41 +0300 Subject: [Gambas-user] =?utf-8?q?The_future_of_Gambas=3F?= In-Reply-To: References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> Message-ID: <1589481101.961951441@f29.my.com> How does gambas become part of the distro release? -- Thanks Brian Thursday, 14 May 2020, 11:29AM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 14/05/2020 ? 18:25, Charlie Ogier a ?crit?: > Hi All, > > I am surprised that more is not being done to sort out Gambas on Ubuntu > 20.04. Gambas is available from the Ubuntu repository but it does not > run. The PPA doesn't work either. > > Of the top 20 Distros 6 are based on Ubuntu, Mint 20 is due out in June > which uses the same Ubuntu repositories. > > If Gambas is to become more popular surely attention needs to be > directed at the latest releases of the most popular distros and not to > Ubuntu 14.04 which is now out of support! > > Or am I missing something? > > Charlie > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >I don't make the Debian/Ubuntu packages. Sebastian Kulesz and me only >manage the gambas stable PPA and gambas daily PPA. > >The gambas daily PPA should work again in a few hours. > >Regards, > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 14 21:55:24 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 May 2020 21:55:24 +0200 Subject: [Gambas-user] The future of Gambas? In-Reply-To: <1589481101.961951441@f29.my.com> References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> <1589481101.961951441@f29.my.com> Message-ID: <0a7bb315-c54f-4bb4-be09-7a8521d273b6@gmail.com> Le 14/05/2020 ? 20:31, brian at westwoodsvcs.com a ?crit?: > How does gambas become part of the distro release? > > -- > Thanks > Brian > I think there is a guy that decided to package Gambas in Debian, and the Ubuntu packages are just the Debian packages. The question now is why the Debian packages do not work? It is not very hard to compile Gambas from sources as soon as all the dependencies are installed. You just have to be careful to create the right packages with the right files inside. But I wrote a detailed how to for that in the wiki. -- Beno?t Minisini From spikethecat73 at gmail.com Thu May 14 22:08:35 2020 From: spikethecat73 at gmail.com (David Robertson) Date: Thu, 14 May 2020 21:08:35 +0100 Subject: [Gambas-user] The future of Gambas? In-Reply-To: <0a7bb315-c54f-4bb4-be09-7a8521d273b6@gmail.com> References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> <1589481101.961951441@f29.my.com> <0a7bb315-c54f-4bb4-be09-7a8521d273b6@gmail.com> Message-ID: This may not be helpful, but I upgraded to Xubuntu 20.04 last night. I had to clear out a couple of incorrect PPAs, set the correct (stable) one, and then updated and installed Gambas. It wouldn't start, telling me that GB.form.print was required, but once I added that via Synaptic Package Manager, Gambas started ok. There were a few other components which hadn't installed, but once I added these, everything seemed ok. Been running it today with no problems yet. David Robertson On Thu, 14 May 2020, 20:56 Beno?t Minisini, wrote: > Le 14/05/2020 ? 20:31, brian at westwoodsvcs.com a ?crit : > > How does gambas become part of the distro release? > > > > -- > > Thanks > > Brian > > > > I think there is a guy that decided to package Gambas in Debian, and the > Ubuntu packages are just the Debian packages. > > The question now is why the Debian packages do not work? It is not very > hard to compile Gambas from sources as soon as all the dependencies are > installed. You just have to be careful to create the right packages with > the right files inside. But I wrote a detailed how to for that in the wiki. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 15 00:12:59 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 May 2020 00:12:59 +0200 Subject: [Gambas-user] The future of Gambas? In-Reply-To: References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> <1589481101.961951441@f29.my.com> <0a7bb315-c54f-4bb4-be09-7a8521d273b6@gmail.com> Message-ID: <97f80332-5047-5561-5475-47ce916400b0@gmail.com> Le 14/05/2020 ? 22:08, David Robertson a ?crit?: > This may not be helpful, but I upgraded to Xubuntu 20.04 last night. I > had to clear out a couple of incorrect PPAs, set the correct (stable) > one, and then updated and installed Gambas. > > It wouldn't start, telling me that GB.form.print was required, but once > I added that via Synaptic Package Manager, Gambas started ok. > > There were a few other components which hadn't installed, but once I > added these, everything seemed ok. Been running it today with no > problems yet. > > > David Robertson > Did you use the Ubuntu packages, or a PPA? In that case which one? -- Beno?t Minisini From spikethecat73 at gmail.com Fri May 15 00:49:43 2020 From: spikethecat73 at gmail.com (David Robertson) Date: Thu, 14 May 2020 23:49:43 +0100 Subject: [Gambas-user] The future of Gambas? In-Reply-To: <97f80332-5047-5561-5475-47ce916400b0@gmail.com> References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> <1589481101.961951441@f29.my.com> <0a7bb315-c54f-4bb4-be09-7a8521d273b6@gmail.com> <97f80332-5047-5561-5475-47ce916400b0@gmail.com> Message-ID: Sorry, wasn't clear. I used http://launchpad.net/gambas-team/gambas3/ubuntu focal main. David Robertson On Thu, 14 May 2020, 23:14 Beno?t Minisini, wrote: > Le 14/05/2020 ? 22:08, David Robertson a ?crit : > > This may not be helpful, but I upgraded to Xubuntu 20.04 last night. I > > had to clear out a couple of incorrect PPAs, set the correct (stable) > > one, and then updated and installed Gambas. > > > > It wouldn't start, telling me that GB.form.print was required, but once > > I added that via Synaptic Package Manager, Gambas started ok. > > > > There were a few other components which hadn't installed, but once I > > added these, everything seemed ok. Been running it today with no > > problems yet. > > > > > > David Robertson > > > > Did you use the Ubuntu packages, or a PPA? In that case which one? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spikethecat73 at gmail.com Fri May 15 00:52:32 2020 From: spikethecat73 at gmail.com (David Robertson) Date: Thu, 14 May 2020 23:52:32 +0100 Subject: [Gambas-user] The future of Gambas? In-Reply-To: References: <76e54096-4dbb-43e5-aefc-37c82e9c827c@cogier.com> <1589481101.961951441@f29.my.com> <0a7bb315-c54f-4bb4-be09-7a8521d273b6@gmail.com> <97f80332-5047-5561-5475-47ce916400b0@gmail.com> Message-ID: Sorry again, ppa should be http://ppa.launchpad.net/gambas-team/gambas3/ubuntu focal main. On Thu, 14 May 2020, 23:49 David Robertson, wrote: > Sorry, wasn't clear. I used > http://launchpad.net/gambas-team/gambas3/ubuntu focal main. > > > David Robertson > > > On Thu, 14 May 2020, 23:14 Beno?t Minisini, wrote: > >> Le 14/05/2020 ? 22:08, David Robertson a ?crit : >> > This may not be helpful, but I upgraded to Xubuntu 20.04 last night. I >> > had to clear out a couple of incorrect PPAs, set the correct (stable) >> > one, and then updated and installed Gambas. >> > >> > It wouldn't start, telling me that GB.form.print was required, but once >> > I added that via Synaptic Package Manager, Gambas started ok. >> > >> > There were a few other components which hadn't installed, but once I >> > added these, everything seemed ok. Been running it today with no >> > problems yet. >> > >> > >> > David Robertson >> > >> >> Did you use the Ubuntu packages, or a PPA? In that case which one? >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chabotdaniel at orange.fr Fri May 15 07:19:24 2020 From: chabotdaniel at orange.fr (chab) Date: Fri, 15 May 2020 07:19:24 +0200 Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 Message-ID: <27786859-3fcc-8dfa-5c50-0014070b1cf7@orange.fr> I Have the same issue with mint 18.3 and mint 19.3 This application has raised an unexpected error and must abort. [12] Not an object. CDocumentation.Reset.1123 Installed version is now: 3.14.90+git6623.aa46af3+build4480c3e3f~ubuntu18.04.1 Thank You Dan Chab -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 15 07:43:44 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 May 2020 07:43:44 +0200 Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 In-Reply-To: <27786859-3fcc-8dfa-5c50-0014070b1cf7@orange.fr> References: <27786859-3fcc-8dfa-5c50-0014070b1cf7@orange.fr> Message-ID: <2c50beed-a269-8810-7a1e-3d19a36ab996@gmail.com> Le 15/05/2020 ? 07:19, chab a ?crit?: > I Have the same issue with mint 18.3 and mint 19.3 > > This application has raised an unexpected error and must abort. [12] Not > an object. CDocumentation.Reset.1123 > > Installed version is now: > 3.14.90+git6623.aa46af3+build4480c3e3f~ubuntu18.04.1 > > Thank You > Dan Chab > OK, my fix was incorrect. The next build should be ok. -- Beno?t Minisini From isafiur at gmail.com Fri May 15 10:15:24 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 15 May 2020 14:00:24 +0545 Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 Message-ID: The same happens in Ubuntu 19.10 after installation of latest version from ppa:gambas-team/gambas-daily. The version is gambas3_3.14.90+git6623.aa46af3+build179c7bb3~ubuntu19.10.1_all.deb The error is CDocumentation.Reset.1123 From chrisml at deganius.de Fri May 15 13:03:36 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 15 May 2020 13:03:36 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> Message-ID: <2171bc41-5180-c1c0-7cb5-f188bc36f841@deganius.de> Am 14.05.20 um 15:25 schrieb Beno?t Minisini: > As I told Bruce, '.project' is where the project settings must be > stored, whatever they are, optional or not optional. For me it is not relevant where to store the data and if you don't like .tests I would refactor it to store the data in .project. Is there any interface in the IDE to store data there? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Fri May 15 13:47:32 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 15 May 2020 21:17:32 +0930 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <2171bc41-5180-c1c0-7cb5-f188bc36f841@deganius.de> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> <2171bc41-5180-c1c0-7cb5-f188bc36f841@deganius.de> Message-ID: Sorry to but in again. I spent the best part of 20 years as a "testing consultant", what that meant is that I was very good at breaking software. Nonetheless, all I really want to say id have you considered "alternative test plans"? From memeory, we used to have about 3 on the go at any time for a piece of software, the plan for the "current release", the plan for the "next release" and the grrrrrrr_regression plan. On one occassion, I had 5 test plans on the go for the above and for two possible alternative release strategies. blah blah blah... But consider this, suppose there is a gambas developer out there that uses a lot of git branches and merges etc etc. Wouldn't it be a good idea to keep "test plans" out of the .project file to avoid a gazillion hours of conflict resolution? just my "onions" worth b > From chrisml at deganius.de Fri May 15 15:13:55 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 15 May 2020 15:13:55 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> <2171bc41-5180-c1c0-7cb5-f188bc36f841@deganius.de> Message-ID: Am 15.05.20 um 13:47 schrieb Bruce: > Sorry to but in again. I spent the best part of 20 years as a "testing > consultant", what that meant is that I was very good at breaking > software. Nonetheless, all I really want to say id have you considered > "alternative test plans"? Yes, sure. You can configure a lot of different test plans, they are called 'testsuites' in gb.test. I've just developed a small form in which you can do the bookkeeping in the IDE and if you have a few hundred tests up to a few thousands, you might be able to manage about fifty to hundred plans with it easily (per project!), from then on it might get confusing ... but now we are far away from that. When we had tens of thousands of tests and hundreds of plans, I think we needed to develop a more mature organizational structure. But I am sure one would split such a big code mess into different projects and libs so that testing in the way it is currently done never would be the bottleneck. > From memeory, we used to have about 3 on the > go at any time for a piece of software, the plan for the "current > release", the plan for the "next release" and the grrrrrrr_regression > plan. On one occassion, I had 5 test plans on the go for the above and > for two possible alternative release strategies. > blah blah blah... > > But consider this, suppose there is a gambas developer out there that > uses a lot of git branches and merges etc etc. As I do it all the time :-) > Wouldn't it be a good idea to keep "test plans" out of the .project file > to avoid a gazillion hours of conflict resolution? > > just my "onions" worth :-) I'd not think it conflicts in any way and if, it would conflict in '.project' as well as in '.tests'. The only thing is, if you really have a Git merge conflict and do sth wrong at merging ... one the one hand you screwed up your project and on the other hand just the tests ... ... so I would prefer to keep the test plans in '.tests' (which is the current state) especially because I'm lazy and don't want to have to do extra work. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From john.aaron.rose at gmail.com Fri May 15 15:16:32 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Fri, 15 May 2020 14:16:32 +0100 Subject: [Gambas-user] Select Area using mouse Message-ID: <91108f14-867a-28f9-ea42-4e3ff4529e9d@gmail.com> I have an app which includes a facility to select an area on the screen's available desktop. I've stripped the app down so that the FMain form just has a button to call the FSelectArea form. The area is selected by mouse button down on the left top corner and dragging to the bottom right corner and then mouse button up. As the cursor is dragged, I want a rectangle border to be drawn from the top left to the cursor's current position. What happens is that the available desktop is cleared. I've obviously misunderstood the DrawingArea object and its methods etc. I've attached the stripped down Test app as a compressed source file. -- John -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/gzip Size: 67367 bytes Desc: not available URL: From chrisml at deganius.de Fri May 15 16:44:59 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 15 May 2020 16:44:59 +0200 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> <2171bc41-5180-c1c0-7cb5-f188bc36f841@deganius.de> Message-ID: <56b26395-58ca-4a59-70ec-94e42dc416c0@deganius.de> Am 15.05.20 um 13:47 schrieb Bruce: > Sorry to but in again. I spent the best part of 20 years as a "testing > consultant", what that meant is that I was very good at breaking > software. Isn't that something everybody is good at? ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Fri May 15 16:57:37 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 16 May 2020 00:27:37 +0930 Subject: [Gambas-user] gb.test IDE integration In-Reply-To: <56b26395-58ca-4a59-70ec-94e42dc416c0@deganius.de> References: <08565d9a-8ff3-d89c-018b-d93db59b83ec@deganius.de> <7dd01bf3-bedb-dac7-e0f4-3944c11e7cdc@deganius.de> <925f1b46-8d29-1ef1-e217-991b63605301@gmail.com> <4bf1717f-e3e3-e16b-0065-e1ebd65b36a3@deganius.de> <288fa1be-c84c-8b6a-0271-c3ac15786a73@gmail.com> <98d61a48-0e2a-3c9e-7d02-f34b247183a5@deganius.de> <611e8a94-58a6-8b48-eab9-cc1baca0faa9@deganius.de> <1a763f5a-b339-d734-316b-f781fec98403@gmail.com> <2171bc41-5180-c1c0-7cb5-f188bc36f841@deganius.de> <56b26395-58ca-4a59-70ec-94e42dc416c0@deganius.de> Message-ID: <7694ce1e-f789-9c83-4b6c-fa134e0ea932@gmail.com> On 16/5/20 12:14 am, Christof Thalhofer wrote: > Am 15.05.20 um 13:47 schrieb Bruce: > >> Sorry to but in again. I spent the best part of 20 years as a "testing >> consultant", what that meant is that I was very good at breaking >> software. > > Isn't that something everybody is good at? > ;-) > > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Assert NobodyInThereRightMindWouldEverTryToDoThis = True Fail! Fail! Fail! Fail! .... Fail! From john.aaron.rose at gmail.com Sat May 16 13:26:02 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Sat, 16 May 2020 12:26:02 +0100 Subject: [Gambas-user] Select Area using mouse Message-ID: I posted to the Gambas User List yesterday. I sent, with the email, an attachment of my 'stripped down' project as a compressed source (Test.tar.gz). When I look at the Archive, specifically my post, it says: A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/gzip Size: 67367 bytes Desc: not available URL: I haven't posted for years. People when replying to posts asking for help with a project generally ask me for the project in a 'stripped down' form. Perhaps I should attach a project in a different way. If so, what? So here's the code: ' Gambas class file Private iAreaLeft As Integer Private iAreaTop As Integer Private iAreaWidth As Integer Private iAreaHeight As Integer Public Sub _new() FSelectArea.Left = Screen.AvailableX FSelectArea.Top = Screen.AvailableY FSelectArea.Width = Screen.AvailableWidth FSelectArea.Height = Screen.AvailableHeight DrawingAreaDesktop.Left = Screen.AvailableX DrawingAreaDesktop.Top = Screen.AvailableY DrawingAreaDesktop.Width = Screen.AvailableWidth DrawingAreaDesktop.Height = Screen.AvailableHeight End Public Sub Form_Open() Message.Title = "To Specify Area to be Recorded:" Message.Info("Mouse button down & hold down on top left corner, drag to bottom right corner, and mouse button up.") Inc Application.Busy iAreaLeft = Screen.Width iAreaTop = Screen.Height iAreaWidth = 0 iAreaHeight = 0 Finally Application.Busy = 0 Catch Message.Warning(ERROR.Text) End Public Sub DrawingAreaDesktop_MouseDown() Inc Application.Busy ' Print "Area 1st corner: X=" & Mouse.X & ", Y=" & Mouse.Y iAreaLeft = Mouse.X iAreaTop = Mouse.Y Paint.Begin(Last) Finally Application.Busy = 0 Catch Message.Warning(ERROR.Text) End Public Sub DrawingAreaDesktop_MouseMove() If iAreaLeft >= Mouse.X Or iAreaTop >= Mouse.Y Then Return Endif Inc Application.Busy iAreaWidth = Mouse.X - iAreaLeft iAreaHeight = Mouse.Y - iAreaTop Paint.Rectangle(iAreaLeft, iAreaTop, iAreaWidth, iAreaHeight) Finally Application.Busy = 0 Catch Message.Warning(ERROR.Text) End Public Sub DrawingAreaDesktop_MouseUp() If iAreaLeft >= Mouse.X Or iAreaTop >= Mouse.Y Then Message.Title = "Try again:" Message.Info("You have not selected an area") Return Endif Inc Application.Busy ' Print "Area 2nd corner: X=" & Mouse.X & ", Y=" & Mouse.Y iAreaWidth = Mouse.X - iAreaLeft iAreaHeight = Mouse.Y - iAreaTop Paint.End Print "You have selected this area: " & iAreaLeft & ", " & iAreaTop & ", " & iAreaWidth & " ," & iAreaHeight FMain.iRegionLeft = iAreaLeft FMain.iRegionTop = iAreaTop FMain.iRegionWidth = iAreaWidth FMain.iRegionHeight = iAreaHeight Last.Close Finally Application.Busy = 0 Catch Message.Warning(ERROR.Text) End -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Sat May 16 14:31:23 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 16 May 2020 14:31:23 +0200 Subject: [Gambas-user] Select Area using mouse In-Reply-To: References: Message-ID: <263bb1c0ab395d9513fb08322f06558772888eb8.camel@fen-net.de> Am Samstag, den 16.05.2020, 12:26 +0100 schrieb John Rose: > I posted to the Gambas User List yesterday. I sent, with the > email, an attachment of my 'stripped down' project as a > compressed > source (Test.tar.gz). When I look at the Archive, specifically > my > post, it says: > > A non-text attachment was scrubbed...Name: Test.tar.gzType: > application/gzipSize: 67367 bytesDesc: not availableURL: < > https://lists.gambas-basic.org/pipermail/user/attacSo here's the > code:' Gambas class file > Private iAreaLeft As IntegerPrivate iAreaTop As IntegerPrivate > iAreaWidth As IntegerPrivate iAreaHeight As Integer > Public Sub _new() FSelectArea.Left = > Screen.AvailableX FSelectArea.Top = > Screen.AvailableY FSelectArea.Width = > Screen.AvailableWidth FSelectArea.Height = > Screen.AvailableHeight DrawingAreaDesktop.Left = > Screen.AvailableX DrawingAreaDesktop.Top = > Screen.AvailableY DrawingAreaDesktop.Width = > Screen.AvailableWidth DrawingAreaDesktop.Height = > Screen.AvailableHeightEnd > Public Sub Form_Open() Message.Title = "To Specify Area to be > Recorded:" Message.Info("Mouse button down & hold down on top left > corner, drag to bottom right corner, and mouse button up.") Inc > Application.Busy iAreaLeft = Screen.Width iAreaTop = > Screen.Height iAreaWidth = 0 iAreaHeight = > 0Finally Application.Busy = 0Catch Message.Warning(ERROR.Text)End > Public Sub DrawingAreaDesktop_MouseDown() Inc Application.Busy ' > Print "Area 1st corner: X=" & Mouse.X & ", Y=" & Mouse.Y iAreaLeft = > Mouse.X iAreaTop = > Mouse.Y Paint.Begin(Last)Finally Application.Busy = > 0Catch Message.Warning(ERROR.Text)End > Public Sub DrawingAreaDesktop_MouseMove() If iAreaLeft >= Mouse.X Or > iAreaTop >= Mouse.Y Then Return Endif Inc > Application.Busy iAreaWidth = Mouse.X - iAreaLeft iAreaHeight = > Mouse.Y - iAreaTop Paint.Rectangle(iAreaLeft, iAreaTop, iAreaWidth, > iAreaHeight)Finally Application.Busy = > 0Catch Message.Warning(ERROR.Text)End > Public Sub DrawingAreaDesktop_MouseUp() If iAreaLeft >= Mouse.X Or > iAreaTop >= Mouse.Y Then Message.Title = "Try > again:" Message.Info("You have not selected an > area") Return Endif Inc Application.Busy ' Print "Area 2nd > corner: X=" & Mouse.X & ", Y=" & Mouse.Y iAreaWidth = Mouse.X - > iAreaLeft iAreaHeight = Mouse.Y - iAreaTop Paint.End Print "You > have selected this area: " & iAreaLeft & ", " & iAreaTop & ", " & > iAreaWidth & " ," & iAreaHeight FMain.iRegionLeft = > iAreaLeft FMain.iRegionTop = iAreaTop FMain.iRegionWidth = > iAreaWidth FMain.iRegionHeight = > iAreaHeight Last.CloseFinally Application.Busy = > 0Catch Message.Warning(ERROR.Text)Endhments/20200515/e997d432/attach > ment-0001.gz> > I haven't posted for years. People when replying to posts asking for > help with a project generally ask me for the project in a 'stripped > down' form. Perhaps I should attach a project in a different way. If > so, what? no, not at all. The attachment wasn't scrubbed, may be that's your own email-client who say that. -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Grafik-P6O7J0.png Type: image/png Size: 42387 bytes Desc: not available URL: From chrisml at deganius.de Sat May 16 14:58:02 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 16 May 2020 14:58:02 +0200 Subject: [Gambas-user] Select Area using mouse In-Reply-To: <263bb1c0ab395d9513fb08322f06558772888eb8.camel@fen-net.de> References: <263bb1c0ab395d9513fb08322f06558772888eb8.camel@fen-net.de> Message-ID: <87d1c964-ae69-d845-90ca-970cf78779ee@deganius.de> Am 16.05.20 um 14:31 schrieb Karl Reinl: >> I haven't posted for years. People when replying to posts asking for >> help with a project generally ask me for the project in a 'stripped >> down' form. Perhaps I should attach a project in a different way. If >> so, what? > > no, not at all. The attachment wasn't scrubbed, may be that's your own > email-client who say that. Please don't quote all to post 1 sentence at the end ... John is right. The attachment is destroyed in the archive. No idea why, I will have to investigate. But the attachment sent by the mailinglist to the users was ok. I could also open it. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From gambas.fr at gmail.com Sun May 17 13:17:22 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 17 May 2020 13:17:22 +0200 Subject: [Gambas-user] Cairo in Gambas In-Reply-To: References: <1e05bd62-520f-0582-823e-b8354061a516@gmail.com> Message-ID: It remember me ...I miss a way to use paint method of qt without gui stuff Le jeu. 14 mai 2020 ? 04:51, Beno?t Minisini a ?crit : > Le 14/05/2020 ? 04:45, Beno?t Minisini a ?crit : > > Le 14/05/2020 ? 04:43, Beno?t Minisini a ?crit : > >> Le 14/05/2020 ? 04:14, martin p cristia a ?crit : > >>> Sad to hear that because Cairo is 5-10 times faster that Paint as can > >>> be seen in the project attatched. > >>> > >>> Not sure what you mean about the "linux toolkit" > >>> > >>> El 5/13/20 a las 3:51 PM, user-request at lists.gambas-basic.org > escribi?: > >>>> Re: Cairo in Gambas > >>>> Note that nobody apparently maintains Cairo anymore. The Linux GUI > >>>> toolkit situation is not quite good at the moment... > >>> > >> > >> If you use Qt4. If you use Qt5, Paint class is 3x times faster than > >> Cairo. > >> > >> It seems there is a problem with Qt4. > >> > > > > Anyway, your benchmark is silly. You mainly test the drawing of rotated > > text. If you remove the rotation, you will get about the same speed > > whatever you use (with always a bit of slowness with qt4). > > > > Moreover, it has many bugs and useless method calls (like Paint.Stroke). > > If you want to compare, you have to do exactly the same thing in both > drawing routines. In ohter words, what is displayed should be the same, > except for the text which is never drawn the same way between toolkits. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From twopilots at interisland.net Mon May 18 03:04:36 2020 From: twopilots at interisland.net (Ed & Clare Kelm) Date: Sun, 17 May 2020 18:04:36 -0700 Subject: [Gambas-user] Gambas3 won't start on Xubuntu 14.04 In-Reply-To: <2c50beed-a269-8810-7a1e-3d19a36ab996@gmail.com> References: <27786859-3fcc-8dfa-5c50-0014070b1cf7@orange.fr> <2c50beed-a269-8810-7a1e-3d19a36ab996@gmail.com> Message-ID: On 5/14/20 10:43 PM, Beno?t Minisini wrote: > Le 15/05/2020 ? 07:19, chab a ?crit?: >> I Have the same issue with mint 18.3 and mint 19.3 >> >> This application has raised an unexpected error and must abort. [12] >> Not an object. CDocumentation.Reset.1123 >> >> Installed version is now: >> 3.14.90+git6623.aa46af3+build4480c3e3f~ubuntu18.04.1 >> >> Thank You >> Dan Chab >> > > OK, my fix was incorrect. The next build should be ok. > Benoit: Installed 3.14.90+git6629..... Problem fixed! Thanks! Ed K. From john.aaron.rose at gmail.com Mon May 18 09:43:17 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Mon, 18 May 2020 08:43:17 +0100 Subject: [Gambas-user] Copying forms between different projects Message-ID: <564e1075-24c4-e3ee-ca5b-487bc7fa4e19@gmail.com> Class code can obviously be copied between different projects by use of Copy & Paste. How can a form be copied from one project to another? From g4mba5 at gmail.com Mon May 18 09:46:04 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 18 May 2020 09:46:04 +0200 Subject: [Gambas-user] Copying forms between different projects In-Reply-To: <564e1075-24c4-e3ee-ca5b-487bc7fa4e19@gmail.com> References: <564e1075-24c4-e3ee-ca5b-487bc7fa4e19@gmail.com> Message-ID: <7eaba469-27c9-e6ff-80f5-9391602a52db@gmail.com> Le 18/05/2020 ? 09:43, John Rose a ?crit?: > Class code can obviously be copied between different projects by use of > Copy & Paste. How can a form be copied from one project to another? > By using the "Import..." menu entry. -- Beno?t Minisini From john.aaron.rose at gmail.com Mon May 18 13:05:01 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Mon, 18 May 2020 12:05:01 +0100 Subject: [Gambas-user] Copying forms between different projects Message-ID: Le 18/05/2020 ? 09:43, John Rose a ?crit?: > Class code can obviously be copied between different projects by use > of Copy & Paste. How can a form be copied from one project to another? > "By using the "Import..." menu entry." Thanks Beno?t. However, when I did the import from the relevant .form file in the .src directory, it displayed the form not as a form but with the following code: # Gambas Form File 3.0 { Form Form ? MoveScaled(0,0,64,49) ? Icon = Picture["StreamRecorder.png"] ? Border = False ? { DrawingAreaDesktop DrawingArea ??? MoveScaled(2,2,60,45) ??? Tag = "DrawingAreaDesktop" ? } } Is this convertible from code to display it as a form (though it doesn't look like it contains enough detail, e.g. properties, for the form? BTW is there a good way (I use Thunderbird) to 'highlight' code in the email,as many forums do? -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon May 18 18:21:08 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 18 May 2020 12:21:08 -0400 Subject: [Gambas-user] Copying forms between different projects In-Reply-To: References: Message-ID: On 5/18/20 7:05 AM, John Rose wrote: > Thanks Beno?t. However, when I did the import from the relevant .form file in the .src directory, it displayed the form not as a > form but with the following code: > > # Gambas Form File 3.0 > > { Form Form > ? MoveScaled(0,0,64,49) > ? Icon = Picture["StreamRecorder.png"] > ? Border = False > ? { DrawingAreaDesktop DrawingArea > ??? MoveScaled(2,2,60,45) > ??? Tag = "DrawingAreaDesktop" > ? } > } > > Is this convertible from code to display it as a form (though it doesn't look like it contains enough detail, e.g. properties, > for the form? It works fine for me. What I did is: Right-click on Sources. Select "*.form" as the filter. Select the form. Click OK. The form was imported and I could Open it and its code. > > BTW is there a good way (I use Thunderbird) to 'highlight' code in the email,as many forums do? > The mailing list, I believe, is text only so there is no way to highlight code. I sometimes enclose it in or [code][/code] 'tags'. -- Lee From john.aaron.rose at gmail.com Tue May 19 09:18:26 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Tue, 19 May 2020 08:18:26 +0100 Subject: [Gambas-user] Components to be used Message-ID: <51db2998-9e7a-7b46-0e28-9d7cdf6baa16@gmail.com> I'm confused about which components to use when developing an app primarily for Ubuntu. It seems to me a good idea to use gb, gb.desktop, gb.form, gb.form.dialog, gb.image always. Is that reasonable? However, which of gb.gtk, gb.gtk3, gb.gui, gb.gui.qt should be used? From bagonergi at gmail.com Tue May 19 10:16:08 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 19 May 2020 10:16:08 +0200 Subject: [Gambas-user] Components to be used In-Reply-To: <51db2998-9e7a-7b46-0e28-9d7cdf6baa16@gmail.com> References: <51db2998-9e7a-7b46-0e28-9d7cdf6baa16@gmail.com> Message-ID: Il giorno mar 19 mag 2020 alle ore 09:19 John Rose < john.aaron.rose at gmail.com> ha scritto: > I'm confused about which components to use when developing an app > primarily for Ubuntu. > > It seems to me a good idea to use gb, gb.desktop, gb.form, > gb.form.dialog, gb.image always. Is that reasonable? > > However, which of gb.gtk, gb.gtk3, gb.gui, gb.gui.qt should be used? > I use Ubuntu and create projects using gb.gui.qt (Gambas works better with qt). But if you use gb.gui your program adapts to the current Desktop libraries. If your gb.gui project works well on Ubuntu it will work well everywhere. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 19 10:33:13 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 May 2020 10:33:13 +0200 Subject: [Gambas-user] Components to be used In-Reply-To: <51db2998-9e7a-7b46-0e28-9d7cdf6baa16@gmail.com> References: <51db2998-9e7a-7b46-0e28-9d7cdf6baa16@gmail.com> Message-ID: <1c4bde1a-89cb-9b91-0dbb-7e4d3f9b5dd6@gmail.com> Le 19/05/2020 ? 09:18, John Rose a ?crit?: > I'm confused about which components to use when developing an app > primarily for Ubuntu. > > It seems to me a good idea to use gb, gb.desktop, gb.form, > gb.form.dialog, gb.image always. Is that reasonable? > > However, which of gb.gtk, gb.gtk3, gb.gui, gb.gui.qt should be used? > Have you read the description of each component in the wiki? -- Beno?t Minisini From john.aaron.rose at gmail.com Tue May 19 16:00:01 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Tue, 19 May 2020 15:00:01 +0100 Subject: [Gambas-user] Components to be used Message-ID: <7646d792-a30b-038b-28df-a6e2e1f56c9b@gmail.com> Beno?t, I'd previously read the wiki's descriptions of the gtk & qt components but was left no wiser by doing so. I'm not a professional developer, so I don't even know which of the Gtk2, Gtk3, QT4, QT5 tool kits is best for Ubuntu Xenial let alone understand why the selected component is the best. Gianluigi, Thanks for the tip about QT4 being best for Ubuntu, I just tried gb.gui. It created 5 .deb packages with slightly different names: selectwindow_0.0.23-0ubuntu1_all.deb, selectwindow-gtk__0.0.23-0ubuntu1_all.deb, selectwindow-gtk3__0.0.23-0ubuntu1_all.deb, selectwindow-qt4__0.0.23-0ubuntu1_all.deb, selectwindow-qt5__0.0.23-0ubuntu1_all.deb I only want to install one of these packages i.e. suitable for Ubuntu Xenial. Is it the first? If that's the case, which component should I use to achieve this? From g4mba5 at gmail.com Tue May 19 16:33:17 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 May 2020 16:33:17 +0200 Subject: [Gambas-user] Components to be used In-Reply-To: <7646d792-a30b-038b-28df-a6e2e1f56c9b@gmail.com> References: <7646d792-a30b-038b-28df-a6e2e1f56c9b@gmail.com> Message-ID: Le 19/05/2020 ? 16:00, John Rose a ?crit?: > Beno?t, > I'd previously read the wiki's descriptions of the gtk & qt components > but was left no wiser by doing so. I'm not a professional developer, so > I don't even know which of the Gtk2, Gtk3, QT4, QT5 tool kits is best > for Ubuntu Xenial let alone understand why the selected component is the > best. Each four component should behave the same. In pratice, each one has its own quirks, GTK+ components being less tested than QT ones. It depends on what you use exactly, so just try or ask. Normally, you should use the gb.gui component. It will choose the toolkit according to the desktop used by the user, and the components actually availble on the user desktop. Choose explicitely a component only if you encounter problems with the others. > > Gianluigi, > > Thanks for the tip about QT4 being best for Ubuntu, I just tried gb.gui. > It created 5 .deb packages with slightly different names: > selectwindow_0.0.23-0ubuntu1_all.deb, > selectwindow-gtk__0.0.23-0ubuntu1_all.deb, > selectwindow-gtk3__0.0.23-0ubuntu1_all.deb, > selectwindow-qt4__0.0.23-0ubuntu1_all.deb, > selectwindow-qt5__0.0.23-0ubuntu1_all.deb > I only want to install one of these packages i.e. suitable for Ubuntu > Xenial. Is it the first? If that's the case, which component should I > use to achieve this? The first package is your program. The four others are dummy packages that just introduce the dependency on each GUI components. It's up to the user to choose which one to install. The problem is that there is no way in debian -as far as I know- to tell that one of the four packages must be installed. You have to make them all optionals. Regards, -- Beno?t Minisini From john.aaron.rose at gmail.com Tue May 19 19:23:27 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Tue, 19 May 2020 18:23:27 +0100 Subject: [Gambas-user] Existing app windows on screen Message-ID: I would like my app to be able to identify windows of OTHER apps (e.g. internet browser) displayed on the desktop. Is there a way to do this. The reason that I want to be able to do this is so as to stream video from a browser window (or an area of it) from my app. From sharon at 455.co.il Tue May 19 19:58:29 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 May 2020 20:58:29 +0300 Subject: [Gambas-user] How to add Args from the IDE Message-ID: <20200519175812.M9646@455.co.il> Fedora 31 64 bit gambas 3.14.2 I'm trying to add Args through the IDE Project -> Properties -> Arguments -> Insert For example, I added 3 Args But, when I run the program: The value I get from Args.Count is: always 1 But, if I run the program from a command line with 3 Args it works fine Thank you From jussi.lahtinen at gmail.com Tue May 19 20:18:01 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 May 2020 21:18:01 +0300 Subject: [Gambas-user] How to add Args from the IDE In-Reply-To: <20200519175812.M9646@455.co.il> References: <20200519175812.M9646@455.co.il> Message-ID: Have you tried what is the output of Print Args.All.Join(",") Maybe all the arguments are in the same string, instead of separated arguments..? Just a quick thought, probably wrong. Jussi On Tue, May 19, 2020 at 9:05 PM Mayost Sharon wrote: > Fedora 31 64 bit > gambas 3.14.2 > > I'm trying to add Args through the IDE > Project -> Properties -> Arguments -> Insert > For example, I added 3 Args > > But, when I run the program: > The value I get from Args.Count is: always 1 > > But, if I run the program from a command line with 3 Args it works fine > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue May 19 20:27:35 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 May 2020 21:27:35 +0300 Subject: [Gambas-user] How to add Args from the IDE In-Reply-To: References: <20200519175812.M9646@455.co.il> Message-ID: <20200519182712.M85276@455.co.il> Hello It brings back the name of the program I am attaching the demo Thanks ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Tue, 19 May 2020 21:18:01 +0300 Subject: Re: [Gambas-user] How to add Args from the IDE > Have you tried what is the output of > Print Args.All.Join(",") > > Maybe all the arguments are in the same string, instead of separated > arguments..? Just a quick thought, probably wrong. > > Jussi > > On Tue, May 19, 2020 at 9:05 PM Mayost Sharon wrote: > > > Fedora 31 64 bit > > gambas 3.14.2 > > > > I'm trying to add Args through the IDE > > Project -> Properties -> Arguments -> Insert > > For example, I added 3 Args > > > > But, when I run the program: > > The value I get from Args.Count is: always 1 > > > > But, if I run the program from a command line with 3 Args it works fine > > > > Thank you > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: gArgs.zip Type: application/zip Size: 13856 bytes Desc: not available URL: From karl.reinl at fen-net.de Tue May 19 20:50:49 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Tue, 19 May 2020 20:50:49 +0200 Subject: [Gambas-user] How to add Args from the IDE In-Reply-To: <20200519182712.M85276@455.co.il> References: <20200519175812.M9646@455.co.il> <20200519182712.M85276@455.co.il> Message-ID: <9495b1e3254cf7cd815cda55b08c1c9ceae8bbff.camel@fen-net.de> Am Dienstag, den 19.05.2020, 21:27 +0300 schrieb Mayost Sharon: > Hello > > It brings back the name of the program > I am attaching the demo > > the first Argument Args[0] is always the name. Then in the IDE next to the Start Button you can select the Argument you need to use. In your demo no Argument is checked. And you have 3 Args to select. If you need 3 Arguments you have to write them in a line, like this. -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Grafik-RBK5K0.png Type: image/png Size: 15620 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Grafik-27DVK0.png Type: image/png Size: 18831 bytes Desc: not available URL: From sharon at 455.co.il Tue May 19 20:59:28 2020 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 May 2020 21:59:28 +0300 Subject: [Gambas-user] How to add Args from the IDE In-Reply-To: <9495b1e3254cf7cd815cda55b08c1c9ceae8bbff.camel@fen-net.de> References: <20200519175812.M9646@455.co.il> <20200519182712.M85276@455.co.il> <9495b1e3254cf7cd815cda55b08c1c9ceae8bbff.camel@fen-net.de> Message-ID: <20200519185917.M74098@455.co.il> Thank you It's OK I did not notice that there is the arrow for choosing the Args ---------- Original Message ----------- From: Karl Reinl To: user at lists.gambas-basic.org Sent: Tue, 19 May 2020 20:50:49 +0200 Subject: Re: [Gambas-user] How to add Args from the IDE > Am Dienstag, den 19.05.2020, 21:27 +0300 schrieb Mayost Sharon: > > Hello > > > > It brings back the name of the program > > I am attaching the demo > > > > > > the first Argument Args[0] is always the name. Then in the IDE next > to the Start Button you can select the Argument you need to use. > In your demo no Argument is checked. And you have 3 Args to select. > If you need 3 Arguments you have to write them in a line, like this. > > -- > Amicalement > Charlie ------- End of Original Message ------- From vuott at tiscali.it Wed May 20 03:49:52 2020 From: vuott at tiscali.it (vuott at tiscali.it) Date: Wed, 20 May 2020 03:49:52 +0200 Subject: [Gambas-user] Existing app windows on screen In-Reply-To: References: Message-ID: <2f618942f954c8a36c19b9bc2ad7b62b@tiscali.it> Hello, to know the "visible" name of windows that appear on the desktop, by activating "gb.desktop" Component you can use this simple code: Public Sub Form_Open() Dim i As Integer Dim dw As DesktopWindow ' Gets the ID of all the "windows" open on the desktop: For Each i In Desktop.FindWindow(Null, Null, Null) With dw = New DesktopWindow(i) ' Shows the visible name and ID of the Window: Print .VisibleName, Hex(i) End With Next End Il 19.05.2020 19:23 John Rose ha scritto: > I would like my app to be able to identify windows of OTHER apps (e.g. > internet browser) displayed on the desktop. Is there a way to do this. > The reason that I want to be able to do this is so as to stream video > from a browser window (or an area of it) from my app. > > ----[ http://gambaswiki.org/wiki/doc/netiquette [1] ]---- Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Wed May 20 04:11:56 2020 From: vuott at tiscali.it (vuott at tiscali.it) Date: Wed, 20 May 2020 04:11:56 +0200 Subject: [Gambas-user] Existing app windows on screen In-Reply-To: <2f618942f954c8a36c19b9bc2ad7b62b@tiscali.it> References: <2f618942f954c8a36c19b9bc2ad7b62b@tiscali.it> Message-ID: <4855afc0e9756c9880b6de0d9998ede0@tiscali.it> opsss... It seems like I have some trouble formatting the code here! Il 20.05.2020 03:49 vuott at tiscali.it ha scritto: > Hello, > to know the "visible" name of windows that appear on the desktop, by activating "gb.desktop" Component you can use this simple code: > > Public Sub Form_Open() > > Dim i As Integer > Dim dw As DesktopWindow > > ' Gets the ID of all the "windows" open on the desktop: > For Each i In Desktop.FindWindow(Null, Null, Null) > > With dw = New DesktopWindow(i) > ' Shows the visible name and ID of the Window: > Print .VisibleName, Hex(i) > End With > > Next > > End > > Il 19.05.2020 19:23 John Rose ha scritto: > >> I would like my app to be able to identify windows of OTHER apps (e.g. >> internet browser) displayed on the desktop. Is there a way to do this. >> The reason that I want to be able to do this is so as to stream video >> from a browser window (or an area of it) from my app. >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette [1] ]---- > > Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99EUR al mese. http://tisca.li/smart30 [2] Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed May 20 16:22:49 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 May 2020 07:22:49 -0700 (PDT) Subject: [Gambas-user] is there a Daily RPM for gambas Message-ID: <1961597001.3171.1589984569080.JavaMail.zimbra@westwoodsvcs.com> Is there a daily rpm build for gambas the same as ubuntu daily build? Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Thu May 21 13:07:51 2020 From: tercoide at hotmail.com (martin p cristia) Date: Thu, 21 May 2020 08:07:51 -0300 Subject: [Gambas-user] Pluggin In-Reply-To: References: Message-ID: Hi! Wich is the best approach to make a pluggin for an app? The app is distributed by code, but the pluggin is closed source. It will add menus and buttons in the app and will be given access to certain data. I thougth is could be as a gambas library, or maybe use some app-chatting protocol like DBus (I never user it). -- Saludos Ing. Martin P Cristia From pebauer68 at gmail.com Fri May 22 11:21:45 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Fri, 22 May 2020 11:21:45 +0200 Subject: [Gambas-user] Use Gambas as a GUI Server Message-ID: Hello, While I was using some other program languages I always missed the Gambas GUI and its RAD environment. I have written a small demo Gambas Basic TCP server which allows to set values of Gambas objects(properties) during runtime via a connected TCP client. I Hope it is useful. Should be usable for Python, Ruby, Crystal ... they all do not have a good RAD environment for GUI development. https://gambas.one/gambasfarm/?id=821&action=search https://www.bitkistl.com/2020/05/gambas3-gui-server.html BR, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri May 22 21:34:52 2020 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 22 May 2020 12:34:52 -0700 (PDT) Subject: [Gambas-user] Loading GUI component as runtime Message-ID: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> I would like to load the GUI component at run time if needed I Can component.load("gb.data") Dim id As Object = classes["List"].new() id.append("hello") id.append("fat") For Each s As String In id Print s Next This type of component works fine but when i do component.load("gb.gui") it always returns an error gb.gui: error: cannot load component 'gb.qt5' or sometimes 'gb.gtk3' depending if i test from ide or standalone Can anyone help me get this to work correctly? Am I doing something wrong? Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri May 22 22:48:04 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 22 May 2020 16:48:04 -0400 Subject: [Gambas-user] Loading GUI component as runtime In-Reply-To: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> References: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 5/22/20 3:34 PM, Brian G wrote: > I would like to load the GUI component at run time if needed > > I Can > component.load("gb.data") > > Dim id As Object = classes["List"].new() > id.append("hello") > id.append("fat") > > For Each s As String In id > ? Print s > ? Next > > This type of component works fine but? when i do > component.load("gb.gui") > > it always returns an error > > gb.gui: error: cannot load component 'gb.qt5' or sometimes 'gb.gtk3' depending if i test from ide or standalone > Can anyone help me get this to work correctly? Am I doing something wrong? > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > The documentation for gb.qt5 is the same as that for gb.qt4. And, both gb.qt4 and gb.gtk3 require gb.image. You may need to load that first. -- Lee From brian at westwoodsvcs.com Sat May 23 01:44:59 2020 From: brian at westwoodsvcs.com (brian at westwoodsvcs.com) Date: Sat, 23 May 2020 02:44:59 +0300 Subject: [Gambas-user] =?utf-8?q?Loading_GUI_component_as_runtime?= In-Reply-To: References: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1590191099.610897995@f40.my.com> Yes loaded image, and both other required classes first but it complains it can't load . Component.load("gb.image") Component.load("gb.draw") Component.load("gb.geom") When I load gb.gui I get same error can't load When I load gb.qt5 or gb.gtk3 it complains that Cannot load class 'UserControl' :. Loading has already failed Error #2: cannot load class '_Gui': program is exiting -- Thanks Brian Friday, 22 May 2020, 01:49PM -07:00 from T Lee Davidson t.lee.davidson at gmail.com : >On 5/22/20 3:34 PM, Brian G wrote: > I would like to load the GUI component at run time if needed > > I Can > component.load("gb.data") > > Dim id As Object = classes["List"].new() > id.append("hello") > id.append("fat") > > For Each s As String In id > ? Print s > ? Next > > This type of component works fine but? when i do > component.load("gb.gui") > > it always returns an error > > gb.gui: error: cannot load component 'gb.qt5' or sometimes 'gb.gtk3' depending if i test from ide or standalone > Can anyone help me get this to work correctly? Am I doing something wrong? > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > >The documentation for gb.qt5 is the same as that for gb.qt4. And, both gb.qt4 and gb.gtk3 require gb.image. You may need to load >that first. > > >-- >Lee > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat May 23 04:28:55 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 23 May 2020 11:58:55 +0930 Subject: [Gambas-user] Loading GUI component as runtime In-Reply-To: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> References: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <73bc7469-e4f7-994e-433a-e74996aa6094@gmail.com> When are you trying to load it? It must be done as early as possible so the gui components can initialise the forms and controls. But then perhaps it is not possible to get gui components loaded early enough as could be indicated by the "already failed" error. I tried to do something similar to this some years ago in order to let the user choose which gui to use. Benoit told me at that time that it couldn't be done. I can't remember what I was trying nor what the reason was. hth b On 23/5/20 5:04 am, Brian G wrote: > I would like to load the GUI component at run time if needed > > I Can > component.load("gb.data") > > Dim id As Object = classes["List"].new() > id.append("hello") > id.append("fat") > > For Each s As String In id > Print s > Next > > This type of component works fine but when i do > component.load("gb.gui") > > it always returns an error > > gb.gui: error: cannot load component 'gb.qt5' or sometimes 'gb.gtk3' depending if i test from ide or standalone > Can anyone help me get this to work correctly? Am I doing something wrong? > > Thank You > Brian G > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From brian at westwoodsvcs.com Sat May 23 16:45:30 2020 From: brian at westwoodsvcs.com (brian at westwoodsvcs.com) Date: Sat, 23 May 2020 17:45:30 +0300 Subject: [Gambas-user] =?utf-8?q?Loading_GUI_component_as_runtime?= In-Reply-To: <73bc7469-e4f7-994e-433a-e74996aa6094@gmail.com> References: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> <73bc7469-e4f7-994e-433a-e74996aa6094@gmail.com> Message-ID: <1590245130.661908890@f20.my.com> Perhaps Benoit could please comment on this? It would really be appreciated! -- Thanks Brian Friday, 22 May 2020, 07:28PM -07:00 from Bruce adamnt42 at gmail.com : >When are you trying to load it? It must be done as early as possible so >the gui components can initialise the forms and controls. But then >perhaps it is not possible to get gui components loaded early enough as >could be indicated by the "already failed" error. >I tried to do something similar to this some years ago in order to let >the user choose which gui to use. Benoit told me at that time that it >couldn't be done. I can't remember what I was trying nor what the reason >was. >hth >b > >On 23/5/20 5:04 am, Brian G wrote: > I would like to load the GUI component at run time if needed > > I Can > component.load("gb.data") > > Dim id As Object = classes["List"].new() > id.append("hello") > id.append("fat") > > For Each s As String In id > Print s > Next > > This type of component works fine but when i do > component.load("gb.gui") > > it always returns an error > > gb.gui: error: cannot load component 'gb.qt5' or sometimes 'gb.gtk3' depending if i test from ide or standalone > Can anyone help me get this to work correctly? Am I doing something wrong? > > Thank You > Brian G > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pebauer68 at gmail.com Sat May 23 18:05:56 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sat, 23 May 2020 18:05:56 +0200 Subject: [Gambas-user] Set/GetProperty/Find Method feature request Message-ID: Hello, Would it be possible to please extend the Set/GetProperty Method by allowing to pass the oo by a String Name ? Is there a find object per name(String) method available ? Gambas builtin: Static Function GetProperty ( Object As Object, Property As String ) As Variant I would need these often: Static Function GetProperty ( Object Name As String, Property As String ) As Variant Static Function FindObject ( Object Name As String) As Object BR, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 23 18:56:32 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 23 May 2020 18:56:32 +0200 Subject: [Gambas-user] Set/GetProperty/Find Method feature request In-Reply-To: References: Message-ID: <45554ede-855c-2f46-ac39-a2a1d59e9529@gmail.com> Le 23/05/2020 ? 18:05, Peter Bauer a ?crit?: > Hello, > Would it be possible to please extend the Set/GetProperty Method by > allowing to pass the oo by a String Name ? Is there a find object per > name(String) method?available ? > Gambas builtin: > Static Function GetProperty ( Object As Object, Property As String ) As > Variant > I would need these often: > Static Function GetProperty ( Object Name As String, Property As String > ) As Variant > Static Function FindObject ( Object Name As String) As Object > BR, > Peter > This doesn't have any sense at all in Gambas. What do you want to achieve? -- Beno?t Minisini From g4mba5 at gmail.com Sat May 23 19:01:33 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 23 May 2020 19:01:33 +0200 Subject: [Gambas-user] Loading GUI component as runtime In-Reply-To: <1590245130.661908890@f20.my.com> References: <1797429297.3536.1590176092710.JavaMail.zimbra@westwoodsvcs.com> <73bc7469-e4f7-994e-433a-e74996aa6094@gmail.com> <1590245130.661908890@f20.my.com> Message-ID: <0c3bd8c4-badf-c937-66f6-c646967ee4c5@gmail.com> Le 23/05/2020 ? 16:45, brian at westwoodsvcs.com a ?crit?: > Perhaps Benoit could please comment on this? > It would really be appreciated! > > -- > Thanks > Brian > I can't say more than I have already said. GUI components override the command-line arguments processing, the event loop, the timer management, and the file descriptor watching of the interpreter [1]. So they can only be loaded before anything else. The solution I implemented for chosing the GUI component at runtime is the gb.gui component, that loads the component whose name is store in the GB_GUI environment variable. Regards, [1] i.e. they use the select() system call or one of the same family, and this can be done once per process only (roughly). -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat May 23 19:23:47 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 23 May 2020 20:23:47 +0300 Subject: [Gambas-user] Set/GetProperty/Find Method feature request In-Reply-To: References: Message-ID: Object name as it is declared? Dim hMyObject As SomeObject So you would like to find things with "hMyObject"? Jussi On Sat, May 23, 2020 at 7:07 PM Peter Bauer wrote: > Hello, > Would it be possible to please extend the Set/GetProperty Method by > allowing to pass the oo by a String Name ? Is there a find object per > name(String) method available ? > Gambas builtin: > Static Function GetProperty ( Object As Object, Property As String ) As > Variant > I would need these often: > Static Function GetProperty ( Object Name As String, Property As String ) > As Variant > Static Function FindObject ( Object Name As String) As Object > BR, > Peter > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pebauer68 at gmail.com Sat May 23 19:50:08 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sat, 23 May 2020 19:50:08 +0200 Subject: [Gambas-user] Introspection/Event forwarding feature request Message-ID: Hello, I would need a method which gives a reference as a complete name of the currently used (event handling)Sub. Is there already a way for a program to find out in which Sub the code currently runs ? e.g. Public Sub Button1_Click() Print Me.Subname should give something like: Button1_Click() BR, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat May 23 20:03:36 2020 From: taboege at gmail.com (Tobias Boege) Date: Sat, 23 May 2020 20:03:36 +0200 Subject: [Gambas-user] Introspection/Event forwarding feature request In-Reply-To: References: Message-ID: <20200523180336.GE2458603@highrise.localdomain> On Sat, 23 May 2020, Peter Bauer wrote: > Hello, > I would need a method which gives a reference as a complete name of the > currently used (event handling)Sub. Is there already a way for a program to > find out in which Sub the code currently runs ? > > e.g. Public Sub Button1_Click() > > Print Me.Subname should give something like: > Button1_Click() > There is System.Backtrace which contains such information, but I don't think that its format has any compatibility guarantees. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Sat May 23 20:11:05 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 23 May 2020 20:11:05 +0200 Subject: [Gambas-user] Introspection/Event forwarding feature request In-Reply-To: <20200523180336.GE2458603@highrise.localdomain> References: <20200523180336.GE2458603@highrise.localdomain> Message-ID: <56740e1c-a1fa-0e59-3106-a19b8168ecbf@gmail.com> Le 23/05/2020 ? 20:03, Tobias Boege a ?crit?: > On Sat, 23 May 2020, Peter Bauer wrote: >> Hello, >> I would need a method which gives a reference as a complete name of the >> currently used (event handling)Sub. Is there already a way for a program to >> find out in which Sub the code currently runs ? >> >> e.g. Public Sub Button1_Click() >> >> Print Me.Subname should give something like: >> Button1_Click() >> > > There is System.Backtrace which contains such information, but I don't think > that its format has any compatibility guarantees. > Morever, it works only if debugging information is put inside the executable. -- Beno?t Minisini From pebauer68 at gmail.com Sat May 23 20:26:53 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sat, 23 May 2020 20:26:53 +0200 Subject: [Gambas-user] Set/GetProperty/Find Method feature request Message-ID: This doesn't have any sense at all in Gambas. What do you want to achieve? I already wrote a small Gambas App (gui_server) https://gambas.one/gambasfarm/?id=821&action=search https://forum.crystal-lang.org/t/state-plans-of-gui-development-with-crystal/1615/28 which allows to use many Gambas GUI objects from other scripting languages like Ruby, Python and Crystal(compiled Ruby like language). Currently I walk the controls and classes with a for each loop to make all Objects and Properties available to GUI clients(TCP socket connection) by their Name. But I am not happy with the performance of my code. I started with the Controls TextArea and Buttons, some events already work fine. Example code in crystal language: #connect to Gambas GUI via TCP require "socket" GUI_SERVER="localhost" GUI_PORT=9090 class GuiClient property send_time = true @client = TCPSocket.new #define var def connect @client = TCPSocket.new(GUI_SERVER,GUI_PORT) rescue err puts err.message exit end def send (object,value) puts "send(object,value)" @client << object + "," + value + "\n" #send to GUI_SERVER sleep 0.1 end def send (object) puts "send(object)" @client << object + "\n" #send to GUI_SERVER sleep 0.1 end def disconnect @client.close end def receive #handle events spawn do loop do event = @client.gets puts event case event when "Button1_clicked" #stop button @send_time=false when "Button2_clicked" #continue button @send_time=true when "Button3_clicked" #clear textarea button send "textarea1.text","" when "Button4_clicked" #upcase textarea.text send "Textarea1.text" #request this value from gui elemen response = @client.gets puts "Response: ",response send "Textarea1.text",(response.not_nil! + "\n").upcase #do upcase on string in textarea1 when "Button5_clicked" #upcase textarea.text send "Textarea1.text" #request this value from gui element response = @client.gets puts "Response: ",response send "Textarea1.text",(response.not_nil! + "\n").downcase #do downcase on string in textarea1 when "FMain_closed" #Appilcation Window closed by user exit else end end end end end #start the gambas gui server demo app spawn do; system("~/src_gambas/gui_server/gui_server.gambas"); end sleep 2 #give some time for startup mygui = GuiClient.new mygui.connect mygui.receive mygui.send "textlabel1.text","crystal + gambas = crybas" mygui.send "button1.text","stop" mygui.send "button2.text","continue" #mygui.send "button3.enabled","0" #disable a button mygui.send "button3.text","clear texrarea" mygui.send "button4.text","do Text.upcase" mygui.send "button5.text","do Text.downcase" #send key,value pairs for GUI Objects based on GTK or QT mygui.send "FMain.Text","Crybas" #set title of Application mygui.send "Textarea1.Text","hello-textarea" loop do #Error writing to socket: Broken pipe when server closes mygui.send "Textbox1.Text",Time.local.to_s if mygui.send_time # display time in the gui sleep 1 end sleep Simple example: I want to be able to query any Object like TextBox1.Text for the current String value. BR, Peter Object introspection in Gambas code: Public Sub full_instrospect(clsname As String) Dim cls As Class Dim count, pos As Integer Dim oo As Object Dim string$, result As String Dim propname, objname, clsn As String 'lets see which class it could be 'textbox1.text Print "clsname: "; clsname pos = InStr(clsname, ".") If pos > 0 Then clsn = Left$(clsname, pos - 1) ' button1.foreground\n propname = Trim$(Right$(clsname, Len(clsname) - pos)) ' foreground objname = clsn clsname = Left$(clsn, -1) 'remove number ' button1 Else clsname = Trim$(clsname) If IsNumber(Right$(clsname)) Then clsname = Left$(clsname, -1) 'remove number ' button1 Endif Endif 'cls = Class.load("Textarea") Try cls = Class.Load(clsname) If Error Then Print "full_instrospect() "; Error.Text Print #rsock, "full_instrospect() "; Error.Text Return Endif Print "Controls: "; Me.Controls.Count 'number of controls For Each oo In Me.Controls 'Print "Current object: "; oo.name If Not propname Then Print #rsock, " "; Trim$(oo.name) If UCase$(oo.name) = UCase$(clsname) Print "Found cls object: "; clsname Break Else If UCase$(oo.name) = UCase$(objname) Print "Found cls.object object: "; clsname; " "; objname Try result = Object.GetProperty(oo, propname) If Error Then Print #rsock, "full_instrospect() "; Error.Text Return Endif Print #rsock, result Return ' found button1.foreground property Else 'Print "full_introspec(Object): "; clsname; " not matching" Endif Next 'oo = Me.Children[0] 'ref to instance of TextArea1, this app has just one control which is a Textarea Print oo '(TextArea 0x559201bb78c8) Print oo.Name; ":" 'TextArea1 Textarea1_object = oo 'set object ref in a global var count = 0 For Each string$ In cls.Symbols 'iterate over all symbols Print string$; ","; Print #rsock, string$; ","; count += 1 Next Print "\nSymbols found: "; count; "\n" Print #rsock, "\nSymbols found: "; count; "\n" count = 0 For Each string$ In cls.Symbols Print "\nTRY: "; count; " "; If Not objname Then Print #rsock, "\nTRY: "; clsname; " "; count; " "; Try result = Object.GetProperty(oo, string$) If result Not Begins ":" 'is an event ! Print "Symbol: "; string$; " Value: "; result; ""; If Not objname Then Print #rsock, "Symbol: "; string$; " Value: "; result; ""; Endif If Error Then Print " Error: "; Error.code; " "; Error.Text; " "; Print #rsock, " Error: "; Error.code; " "; Error.Text; " "; Endif count += 1 Next Print #rsock, "\n" End -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 23 20:40:45 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 23 May 2020 20:40:45 +0200 Subject: [Gambas-user] Set/GetProperty/Find Method feature request In-Reply-To: References: Message-ID: <87ca7c9a-2d3d-e687-ac0c-795ee0150a6e@gmail.com> Le 23/05/2020 ? 20:26, Peter Bauer a ?crit?: > This doesn't have any sense at all in Gambas. > What do you want to achieve? > > I already wrote a small Gambas App (gui_server) > https://gambas.one/gambasfarm/?id=821&action=search > https://forum.crystal-lang.org/t/state-plans-of-gui-development-with-crystal/1615/28 > which allows to use many Gambas GUI objects from other scripting > languages like Ruby, Python and Crystal(compiled Ruby like language). > Currently I walk?the controls and classes with a for each loop to make > all Objects and Properties available to GUI clients(TCP socket > connection) by their Name. But I? am not happy with the performance of > my code. I started with the Controls TextArea and Buttons, some > events?already work fine. > Each form can return one of its control from its name (using the array accessor, see the doc). Other Gambas objects usually do not have names. Regards, -- Beno?t Minisini From pebauer68 at gmail.com Sat May 23 21:14:28 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sat, 23 May 2020 21:14:28 +0200 Subject: [Gambas-user] Set/GetProperty/Find Method feature request Message-ID: Example what currently works: rlwrap socat - tcp:localhost:9090 /* connect to Gambas gui_server App Set properties: name of object.property,string e.g Button1.Text,123 Read properites: name of object - e.g. Button1 List objects: Press q #query all controls in a form works fine: Objects: FMain HBox1 TextBox1 Button1 Button2 Button3 HBox3 TextLabel1 HBox2 TextArea1 HBox4 Button4 Button5 Set a Property, query a property of a single GUI Object, works fine: Textarea1.text,"test-text" /* set Textarea1.text /* query "test-text" Query all Properties of a GUI Object, here a Textarea again: I only would need the Properties, not all symbols. Does not work as expected. For Each string$ In cls.Symbols Print "\nTRY: "; count; " "; If Not objname Then Print #rsock, "\nTRY: "; clsname; " "; count; " "; Try result = Object.GetProperty(oo, string$) If result Not Begins ":" 'is an event ! Print "Symbol: "; string$; " Value: "; result; ""; If Not objname Then Print #rsock, "Symbol: "; string$; " Value: "; result; ""; Endif If Error Then Print " Error: "; Error.code; " "; Error.Text; " "; Print #rsock, " Error: "; Error.code; " "; Error.Text; " "; Endif count += 1 Next Print #rsock, "\n" End .,H,W,X,Y,Id,Cut,Pos,Tag,Top,_new,Copy,Drag,Drop,Font,Grab,Hide,Left,Line,Move,Name,Next,Redo,Show,Text,Undo,Wrap,:Drag,:Drop,:Menu,Clear,Lower,Mouse,Paste,Proxy,Raise,ToPos,Width,:Enter,:Leave,Action,Border,Column,Cursor,Delete,Design,Expand,Handle,Height,Ignore,Insert,Length,Parent,Resize,Select,ToLine,Window,:Change,:Cursor,_Family,_Parent,Enabled,Hovered,Refresh,ScreenX,ScreenY,Tooltip,Visible,:MouseUp,_Similar,CursorAt,HasFocus,Previous,ReadOnly,Reparent,Selected,SetFocus,ToColumn,Tracking,Unselect,:DblClick,:DragMove,:GotFocus,:KeyPress,Alignment,PopupMenu,ScrollBar,SelectAll,Selection,:DragLeave,:LostFocus,:MouseDown,:MouseDrag,:MouseMove,_IsControl,Background,Foreground,MoveScaled,NoTabFocus,:KeyRelease,:MouseWheel,_Properties,_DefaultSize,ResizeScaled,_DefaultEvent,EnsureVisible, Symbols found: 106 TRY: Textarea 0 Symbol: . Value: Error: 14 'Button..' is static TRY: Textarea 1 Symbol: H Value: 40 TRY: Textarea 2 Symbol: W Value: 128 TRY: Textarea 3 Symbol: X Value: 128 TRY: Textarea 4 Symbol: Y Value: 0 TRY: Textarea 5 Symbol: Id Value: 60817413 TRY: Textarea 6 Symbol: Cut Value: 60817413 Error: 11 Unknown symbol 'Cut' in class 'Button' TRY: Textarea 7 Symbol: Pos Value: 60817413 Error: 11 Unknown symbol 'Pos' in class 'Button' TRY: Textarea 8 Symbol: Tag Value: TRY: Textarea 9 Symbol: Top Value: 0 TRY: Textarea 10 Symbol: _new Value: 0 Error: 17 'Button._new' is not a property TRY: Textarea 11 Symbol: Copy Value: 0 Error: 11 Unknown symbol 'Copy' in class 'Button' TRY: Textarea 12 Symbol: Drag Value: 0 Error: 17 'Button.Drag' is not a property TRY: Textarea 13 Symbol: Drop Value: TRY: Textarea 14 Symbol: Font Value: Error: 6 Type mismatch: wanted String, got Font instead TRY: Textarea 15 Symbol: Grab Value: Error: 17 'Button.Grab' is not a property TRY: Textarea 16 Symbol: Hide Value: Error: 17 'Button.Hide' is not a property TRY: Textarea 17 Symbol: Left Value: 128 TRY: Textarea 18 Symbol: Line Value: 128 Error: 11 Unknown symbol 'Line' in class 'Button' TRY: Textarea 19 Symbol: Move Value: 128 Error: 17 'Button.Move' is not a property TRY: Textarea 20 Symbol: Name Value: Button5 TRY: Textarea 21 Symbol: Next Value: TRY: Textarea 22 Symbol: Redo Value: Error: 11 Unknown symbol 'Redo' in class 'Button' TRY: Textarea 23 Symbol: Show Value: Error: 17 'Button.Show' is not a property TRY: Textarea 24 Symbol: Text Value: TRY: Textarea 25 Symbol: Undo Value: Error: 11 Unknown symbol 'Undo' in class 'Button' TRY: Textarea 26 Symbol: Wrap Value: Error: 11 Unknown symbol 'Wrap' in class 'Button' TRY: Textarea 27 Symbol: :Drag Value: Error: 17 'Button.:Drag' is not a property TRY: Textarea 28 Symbol: :Drop Value: Error: 17 'Button.:Drop' is not a property TRY: Textarea 29 Symbol: :Menu Value: Error: 17 'Button.:Menu' is not a property TRY: Textarea 30 Symbol: Clear Value: Error: 11 Unknown symbol 'Clear' in class 'Button' TRY: Textarea 31 Symbol: Lower Value: Error: 17 'Button.Lower' is not a property TRY: Textarea 32 Symbol: Mouse Value: 0 TRY: Textarea 33 Symbol: Paste Value: 0 Error: 11 Unknown symbol 'Paste' in class 'Button' TRY: Textarea 34 Symbol: Proxy Value: TRY: Textarea 35 Symbol: Raise Value: Error: 17 'Button.Raise' is not a property TRY: Textarea 36 Symbol: ToPos Value: Error: 11 Unknown symbol 'ToPos' in class 'Button' TRY: Textarea 37 Symbol: Width Value: 128 TRY: Textarea 38 Symbol: :Enter Value: 128 Error: 17 'Button.:Enter' is not a property TRY: Textarea 39 Symbol: :Leave Value: 128 Error: 17 'Button.:Leave' is not a property TRY: Textarea 40 Symbol: Action Value: TRY: Textarea 41 Symbol: Border Value: T TRY: Textarea 42 Symbol: Column Value: T Error: 11 Unknown symbol 'Column' in class 'Button' TRY: Textarea 43 Symbol: Cursor Value: TRY: Textarea 44 Symbol: Delete Value: Error: 17 'Button.Delete' is not a property TRY: Textarea 45 Symbol: Design Value: TRY: Textarea 46 Symbol: Expand Value: TRY: Textarea 47 Symbol: Handle Value: 60817413 TRY: Textarea 48 Symbol: Height Value: 40 TRY: Textarea 49 Symbol: Ignore Value: TRY: Textarea 50 Symbol: Insert Value: Error: 11 Unknown symbol 'Insert' in class 'Button' TRY: Textarea 51 Symbol: Length Value: Error: 11 Unknown symbol 'Length' in class 'Button' TRY: Textarea 52 Symbol: Parent Value: Error: 6 Type mismatch: wanted String, got Container instead TRY: Textarea 53 Symbol: Resize Value: Error: 17 'Button.Resize' is not a property TRY: Textarea 54 Symbol: Select Value: Error: 11 Unknown symbol 'Select' in class 'Button' TRY: Textarea 55 Symbol: ToLine Value: Error: 11 Unknown symbol 'ToLine' in class 'Button' TRY: Textarea 56 Symbol: Window Value: Error: 6 Type mismatch: wanted String, got Window instead TRY: Textarea 57 Symbol: :Change Value: Error: 11 Unknown symbol ':Change' in class 'Button' TRY: Textarea 58 Symbol: :Cursor Value: Error: 11 Unknown symbol ':Cursor' in class 'Button' TRY: Textarea 59 Symbol: _Family Value: Error: 14 'Button._Family' is static TRY: Textarea 60 Symbol: _Parent Value: Error: 6 Type mismatch: wanted String, got Container instead TRY: Textarea 61 Symbol: Enabled Value: T TRY: Textarea 62 Symbol: Hovered Value: TRY: Textarea 63 Symbol: Refresh Value: Error: 17 'Button.Refresh' is not a property TRY: Textarea 64 Symbol: ScreenX Value: 817 TRY: Textarea 65 Symbol: ScreenY Value: 240 TRY: Textarea 66 Symbol: Tooltip Value: TRY: Textarea 67 Symbol: Visible Value: T TRY: Textarea 68 Symbol: :MouseUp Value: T Error: 17 'Button.:MouseUp' is not a property TRY: Textarea 69 Symbol: _Similar Value: T Error: 11 Unknown symbol '_Similar' in class 'Button' TRY: Textarea 70 Symbol: CursorAt Value: T Error: 11 Unknown symbol 'CursorAt' in class 'Button' TRY: Textarea 71 Symbol: HasFocus Value: TRY: Textarea 72 Symbol: Previous Value: Error: 6 Type mismatch: wanted String, got Control instead TRY: Textarea 73 Symbol: ReadOnly Value: Error: 11 Unknown symbol 'ReadOnly' in class 'Button' TRY: Textarea 74 Symbol: Reparent Value: Error: 17 'Button.Reparent' is not a property TRY: Textarea 75 Symbol: Selected Value: Error: 11 Unknown symbol 'Selected' in class 'Button' TRY: Textarea 76 Symbol: SetFocus Value: Error: 17 'Button.SetFocus' is not a property TRY: Textarea 77 Symbol: ToColumn Value: Error: 11 Unknown symbol 'ToColumn' in class 'Button' TRY: Textarea 78 Symbol: Tracking Value: TRY: Textarea 79 Symbol: Unselect Value: Error: 11 Unknown symbol 'Unselect' in class 'Button' TRY: Textarea 80 Symbol: :DblClick Value: Error: 17 'Button.:DblClick' is not a property TRY: Textarea 81 Symbol: :DragMove Value: Error: 17 'Button.:DragMove' is not a property TRY: Textarea 82 Symbol: :GotFocus Value: Error: 17 'Button.:GotFocus' is not a property TRY: Textarea 83 Symbol: :KeyPress Value: Error: 17 'Button.:KeyPress' is not a property TRY: Textarea 84 Symbol: Alignment Value: Error: 11 Unknown symbol 'Alignment' in class 'Button' TRY: Textarea 85 Symbol: PopupMenu Value: TRY: Textarea 86 Symbol: ScrollBar Value: Error: 11 Unknown symbol 'ScrollBar' in class 'Button' TRY: Textarea 87 Symbol: SelectAll Value: Error: 11 Unknown symbol 'SelectAll' in class 'Button' TRY: Textarea 88 Symbol: Selection Value: Error: 11 Unknown symbol 'Selection' in class 'Button' TRY: Textarea 89 Symbol: :DragLeave Value: Error: 17 'Button.:DragLeave' is not a property TRY: Textarea 90 Symbol: :LostFocus Value: Error: 17 'Button.:LostFocus' is not a property TRY: Textarea 91 Symbol: :MouseDown Value: Error: 17 'Button.:MouseDown' is not a property TRY: Textarea 92 Symbol: :MouseDrag Value: Error: 17 'Button.:MouseDrag' is not a property TRY: Textarea 93 Symbol: :MouseMove Value: Error: 17 'Button.:MouseMove' is not a property TRY: Textarea 94 Symbol: _IsControl Value: Error: 14 'Button._IsControl' is static TRY: Textarea 95 Symbol: Background Value: -1 TRY: Textarea 96 Symbol: Foreground Value: -1 TRY: Textarea 97 Symbol: MoveScaled Value: -1 Error: 17 'Button.MoveScaled' is not a property TRY: Textarea 98 Symbol: NoTabFocus Value: TRY: Textarea 99 Symbol: :KeyRelease Value: Error: 17 'Button.:KeyRelease' is not a property TRY: Textarea 100 Symbol: :MouseWheel Value: Error: 17 'Button.:MouseWheel' is not a property TRY: Textarea 101 Symbol: _Properties Value: Error: 14 'Button._Properties' is static TRY: Textarea 102 Symbol: _DefaultSize Value: Error: 14 'Button._DefaultSize' is static TRY: Textarea 103 Symbol: ResizeScaled Value: Error: 17 'Button.ResizeScaled' is not a property TRY: Textarea 104 Symbol: _DefaultEvent Value: Error: 14 'Button._DefaultEvent' is static TRY: Textarea 105 Symbol: EnsureVisible Value: Error: 11 Unknown symbol 'EnsureVisible' in class 'Button' -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun May 24 01:13:40 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 24 May 2020 08:43:40 +0930 Subject: [Gambas-user] Introspection/Event forwarding feature request In-Reply-To: <56740e1c-a1fa-0e59-3106-a19b8168ecbf@gmail.com> References: <20200523180336.GE2458603@highrise.localdomain> <56740e1c-a1fa-0e59-3106-a19b8168ecbf@gmail.com> Message-ID: On 24/5/20 3:41 am, Beno?t Minisini wrote: > Le 23/05/2020 ?? 20:03, Tobias Boege a ??crit??: >> On Sat, 23 May 2020, Peter Bauer wrote: >>> Hello, >>> I would need a method which gives a reference as a complete name of the >>> currently used (event handling)Sub. Is there already a way for a >>> program to >>> find out in which Sub the code currently runs ? >>> >>> e.g. Public Sub Button1_Click() >>> >>> Print Me.Subname should give something like: >>> Button1_Click() >>> >> >> There is System.Backtrace which contains such information, but I don't >> think >> that its format has any compatibility guarantees. >> > > Morever, it works only if debugging information is put inside the > executable. > Wouldn't the Debug command by itself provide this, viz Public Sub Button1_Click() Debug End From adamnt42 at gmail.com Sun May 24 01:19:46 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 24 May 2020 08:49:46 +0930 Subject: [Gambas-user] Set/GetProperty/Find Method feature request In-Reply-To: References: Message-ID: <340c523d-5796-faae-663b-7b174436adda@gmail.com> On 24/5/20 4:44 am, Peter Bauer wrote: > Query all Properties of a GUI Object, here a Textarea again: > I only would need the Properties, not all symbols. Does not work as > expected. > > For Each string$ In cls.Symbols > Print "\nTRY: "; count; " "; > If Not objname Then Print #rsock, "\nTRY: "; clsname; " "; count; > " "; > Try result = Object.GetProperty(oo, string$) > If result Not Begins ":" 'is an event ! > Print "Symbol: "; string$; " Value: "; result; ""; > If Not objname Then Print #rsock, "Symbol: "; string$; > " Value: "; result; ""; > Endif > If Error Then > Print " Error: "; Error.code; " "; Error.Text; " "; > Print #rsock, " Error: "; Error.code; " "; Error.Text; " "; > Endif > count += 1 > Next > Print #rsock, "\n" > End > TRY/IF Error cant have code in between. From jussi.lahtinen at gmail.com Sun May 24 01:29:35 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 24 May 2020 02:29:35 +0300 Subject: [Gambas-user] Set/GetProperty/Find Method feature request In-Reply-To: <340c523d-5796-faae-663b-7b174436adda@gmail.com> References: <340c523d-5796-faae-663b-7b174436adda@gmail.com> Message-ID: > > TRY/IF Error cant have code in between. > It can, but you might lose info about the initial error. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun May 24 01:42:00 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 24 May 2020 09:12:00 +0930 Subject: [Gambas-user] Set/GetProperty/Find Method feature request In-Reply-To: References: <340c523d-5796-faae-663b-7b174436adda@gmail.com> Message-ID: <30d1ef49-1002-0914-2e5f-fa94f4785733@gmail.com> On 24/5/20 8:59 am, Jussi Lahtinen wrote: >> >> TRY/IF Error cant have code in between. >> > > It can, but you might lose info about the initial error. > Yep, much more correct than I. For example ' Gambas module file Public Sub Main() Try Print 1 / 0 Print Something() If Error Then Print "Error", Error.Code, Error.Text End Private Sub Something() Print "Hello world" End The div0 error is lost. b From brian at westwoodsvcs.com Sun May 24 01:33:15 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 23 May 2020 16:33:15 -0700 (PDT) Subject: [Gambas-user] How to call a function in a startup loaded module from a plugin loaded at runtime? Message-ID: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> Is it possible to call a function from a module at runtime that was not originally linked? I am trying to call a function in a module loaded at application startup from a plugin compiled and loaded at runtime. I can see the modules i want to call the function in, in the list of classes. But if i try to access the function in the class it says not found, how to find the object or such that is the module I want to call the function in? Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun May 24 01:57:38 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 24 May 2020 09:27:38 +0930 Subject: [Gambas-user] How to call a function in a startup loaded module from a plugin loaded at runtime? In-Reply-To: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> References: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <799252bb-91e8-7a08-40d6-c7fcb687bc71@gmail.com> (Inline) On 24/5/20 9:03 am, Brian G wrote: > Is it possible to call a function from a module at runtime that was not originally linked? Yes, I'm pretty sure that this is how the GUI switchers and the database switchers work. > > I am trying to call a function in a module loaded at application startup from a plugin compiled and loaded at runtime. Not quite sure what you mean here. What's a "plugin"? What do you mean by "compiled and loaded"? > > I can see the modules i want to call the function in, in the list of classes. How are you "Seeing" this list of classes? From within the code itself? > > But if i try to access the function in the class it says not found, how to find the object or such that is the module I want to call the function in? What is "it" that is saying "not found"? In fact what is the full message? I can't understand the last half of this sentence at all. We can't guess your code.Which makes it hard to be helpful. rgrds b From isafiur at gmail.com Sun May 24 08:10:06 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Sun, 24 May 2020 11:55:06 +0545 Subject: [Gambas-user] Menu freeze in gb.web.gui Message-ID: Hello When I use a long process under menu in gb.web.gui the menu freezes without busy sign until the process is completed. However when I use WebButton for same process there is busy sign until the process ends. How can I get busy sign while running long processes from menu. Attached project and images -------------- next part -------------- A non-text attachment was scrubbed... Name: button.png Type: image/png Size: 38646 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: menu.png Type: image/png Size: 39237 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Webparent.zip Type: application/zip Size: 14724 bytes Desc: not available URL: From john.aaron.rose at gmail.com Sun May 24 08:24:52 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Sun, 24 May 2020 07:24:52 +0100 Subject: [Gambas-user] Gambas & Android Message-ID: <367b8a65-ad02-89e3-a120-d96aec21cca5@gmail.com> I've developed apps for Android using a RAD tool called Basic 4 Android (AKA B4A). B4A is difficult to install using Linux (as it's a Windows app) with Wine, with the alternative being to run B4A in a Windows VM. I've also found that B4A often changes the install process. B4A runs quite slowly under Ubuntu (either using Wine or a Windows VM) as I only have a Celeron based Barebones PC. B4A does not have the same high quality as Gambas (e.g. its object orientation is poor). B4A creates Java code from code written using B4A. So I got back to thinking about Gambas being used to develop Android apps. Given that many PCs now have touch screens, does Gambas now include facilities for these to be used at Gambas-developed apps at runtime? If so, would there be any way of developing Android apps in Gambas on a Linux (e.g. Ubuntu) PC? From pebauer68 at gmail.com Sun May 24 18:07:36 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sun, 24 May 2020 18:07:36 +0200 Subject: [Gambas-user] Gambas GUI server - bash example Message-ID: Hello, I tried to make Gambas GUI controls usable for bash scripts via TCP/IP sockets Somehow it works ! Bash scripts need socat to talk to Gambas sockets. Simple example App: https://www.bitkistl.com/2020/05/gambas3-gui-server-bash.html https://gambas.one/gambasfarm/?id=823&action=search GUI controls/objects/properties can be queried from a bash script the following way: by classname - eg: textbox by classname.object, instance number and property name - eg: textbox1.text #!/bin/bash gambas() { socat -t 1 tcp:localhost:9090 -; } # connect to gambas GUI while : do var=$(gambas) # wait for gambas event if [ $? -eq 1 ]; then echo "Cannot connect to Gambas App"; exit; fi echo "Event: " $var if [ -z "$var" ]; then echo "Disonnected"; break; fi if [ $var = "Button1_clicked" ]; then var=$(echo "textbox1.text" | gambas ) # read property value echo "Age: " $var if fi done Introspection of Gambas Controls,Classes, and Object instances work fine now. Public Sub full_instrospect(clsname As String) Dim cls As Class Dim count, pos As Integer Dim oo As Object Dim string$, result As String Dim propname, objname, clsn, instance_num As String Print "clsname: "; clsname pos = InStr(clsname, ".") If pos > 0 Then clsn = Left$(clsname, pos - 1) ' button1.foreground\n propname = Trim$(Right$(clsname, Len(clsname) - pos)) ' foreground objname = clsn clsname = Left$(clsn, -1) 'remove number ' button1 Else clsname = Trim$(clsname) If IsNumber(Right$(clsname)) Then instance_num = Right$(clsname) clsname = Left$(clsname, -1) 'remove number ' button1 Endif Endif Try cls = Class.Load(clsname) If Error Then Print "full_instrospect() "; Error.Text Print #rsock, "full_instrospect() "; Error.Text Return Endif If instance_num Then clsname = clsname & instance_num ' button1 Print "Controls: "; Me.Controls.Count ' number of controls For Each oo In Me.Controls If Not propname Then Print #rsock, " "; Trim$(oo.name) If UCase$(oo.name) = UCase$(clsname) ' can we find a class or an instance of a class ? Print "Found cls object: "; clsname Break Else If UCase$(oo.name) = UCase$(objname) Print "Found cls.object object: "; clsname; " "; objname Try result = Object.GetProperty(oo, propname) If Error Then Print #rsock, "full_instrospect() "; Error.Text Return Endif Print #rsock, result Return Else Endif Next Print oo Print oo.Name; ":" count = 0 For Each string$ In cls.Symbols 'iterate over all symbols Print string$; ","; Print #rsock, string$; ","; count += 1 Next Print "\nSymbols found: "; count; "\n" Print #rsock, "\nSymbols found: "; count; "\n" count = 0 For Each string$ In cls.Symbols Print "\nTRY: "; clsname; " "; count; " "; If Not objname Then Print #rsock, "\nTRY: "; clsname; " "; count; " "; Try result = Object.GetProperty(oo, string$) If result Not Begins ":" 'is an event ! Print "Symbol: "; string$; " Value: "; result; ""; If Not objname Then Print #rsock, "Symbol: "; string$; " Value: "; result; ""; Endif If Error Then Print " Error: "; Error.code; " "; Error.Text; " "; Print #rsock, " Error: "; Error.code; " "; Error.Text; " "; Endif count += 1 Next Print #rsock, "\n" End BR, Peter https://www.bitkistl.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sun May 24 18:21:16 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 24 May 2020 09:21:16 -0700 (PDT) Subject: [Gambas-user] How to call a function in a startup loaded module from a plugin loaded at runtime? In-Reply-To: <799252bb-91e8-7a08-40d6-c7fcb687bc71@gmail.com> References: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> <799252bb-91e8-7a08-40d6-c7fcb687bc71@gmail.com> Message-ID: <1930564783.3868.1590337276765.JavaMail.zimbra@westwoodsvcs.com> (Inline) On 24/5/20 9:03 am, Brian G wrote: > Is it possible to call a function from a module at run-time that was not originally linked? >>Yes, I'm pretty sure that this is how the GUI switchers and the database >>switchers work. I have found the answer partly to this question. > > I am trying to call a function in a module loaded at application start-up from a plugin compiled and loaded at run-time. >>Not quite sure what you mean here. What's a "plugin"? What do you mean >>by "compiled and loaded"? In this instance a plugin is a component which is compiled and archived from a Gambas project. The component.load("xx") is used to load the archive into memory then the class.load("xx") is loaded from that. This class I am calling a plugin. The code I am using to do this is evolved from an example I found online.(I can not remember the author's name) I attach the code file maybe the author can speak up. > > I can see the modules i want to call the function in, in the list of classes. >>How are you "Seeing" this list of classes? From within the code itself? classes in a native class that is a collection of all loaded classes, so just list this to see what is loaded. > > But if i try to access the function in the class it says not found, how to find the object or such that is the module I want to call the function in? >>What is "it" that is saying "not found"? In fact what is the full >>message? I can't understand the last half of this sentence at all. OK here is a good example my loaded class xx wants to access a function in the main module of my application, It was not linked as compile time. so the following gives me access to the module lets call it xx dim cxx as class = classes["xx"] ' modules are not really classes but reside in the class table, this class can be used as an object to call the function lets call it yyy ?I need to do. object.call(cxx, "yyy") This calls the function I was trying to use cxx.yyy - but that was never found returns error unknown method and Getproperty and SetProperty don't seem to work for modules... lol don't suppose they should in a module. But would like to use structures and such from main module...... That's where I am having issues >>We can't guess your code.Which makes it hard to be helpful. Work in progress, Would like to figure out how to access tables etc in the module. but for now extra functions seem to work. I have attached an example of the code I am using to create and load a plugin I am trying to access the methods in the main module not class from one of the loaded plugins. rgrds b -------------- next part -------------- A non-text attachment was scrubbed... Name: plugin example Type: application/octet-stream Size: 7606 bytes Desc: not available URL: From pebauer68 at gmail.com Sun May 24 18:34:21 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sun, 24 May 2020 18:34:21 +0200 Subject: [Gambas-user] Please add two properties to gb.form.terminal Message-ID: Hello, Is it possible to please merge this to gambas upstream manually ? https://gitlab.com/gambas/gambas/-/merge_requests/139/diffs?commit_id=5f08dd5912570977f12c3a172a7caa49005214f7 I would like to publish an updated version of the gbterminal App with a colortable editor/configuration tool for all 256 terminal colors. For this to work i need these 2 properties. The colotable editor already works fine in my local Gambas dev environment. https://www.bitkistl.com/2020/03/gambas3-color-editor-for-gbterminal.html Thank You, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun May 24 19:08:24 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 24 May 2020 19:08:24 +0200 Subject: [Gambas-user] Please add two properties to gb.form.terminal In-Reply-To: References: Message-ID: <5e95155d-9960-8c41-154f-c3853949458b@gmail.com> Le 24/05/2020 ? 18:34, Peter Bauer a ?crit?: > Hello, > Is it possible to please merge this to gambas upstream manually ? > https://gitlab.com/gambas/gambas/-/merge_requests/139/diffs?commit_id=5f08dd5912570977f12c3a172a7caa49005214f7 > > I would like to publish an updated version of the gbterminal?App with > a colortable?editor/configuration tool for all 256 terminal colors. For > this to work i need these 2 properties. The colotable editor already > works fine in my local Gambas dev environment. > https://www.bitkistl.com/2020/03/gambas3-color-editor-for-gbterminal.html > > Thank You, > Peter > Not as is. You modify the default color table shared by all terminal view. I'd like to have an optional specific color table for each terminal view. Moreover, you must not trust the array provided by the user, you must check it before accepting it as a color table. And of course you must not return the internal color table array to the user, it may destroy it. You must return a copy or use the immutable array feature. Regards, -- Beno?t Minisini From pebauer68 at gmail.com Sun May 24 20:22:53 2020 From: pebauer68 at gmail.com (Peter Bauer) Date: Sun, 24 May 2020 20:22:53 +0200 Subject: [Gambas-user] Gambas3 does not start on Ubuntu 20.04 Message-ID: Hello, $gambas3 gbr3: unable to load component gb.form.print Version installed: 3.14.3 via apt from ubuntu repo. BR, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon May 25 01:58:29 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 25 May 2020 09:28:29 +0930 Subject: [Gambas-user] How to call a function in a startup loaded module from a plugin loaded at runtime? In-Reply-To: <1930564783.3868.1590337276765.JavaMail.zimbra@westwoodsvcs.com> References: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> <799252bb-91e8-7a08-40d6-c7fcb687bc71@gmail.com> <1930564783.3868.1590337276765.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 25/5/20 1:51 am, Brian G wrote: > > I am trying to access the methods in the main module not class from one of the loaded plugins. > > OK! A couple of points: 1) In you main project the classes you want visible in the plugin must be exported and 2) (Obviously) the methods you want to expose to the plugin must be public. Here's what I think you are trying: MAIN PROGRAM "Main" module -------------------------- ' Gambas module file Export Public Sub Main() Dim hXXX As Object Component.Load("ph.plugin") ' Print Class.IsLoaded("PluginA") hXXX = Object.New("PluginA") Catch Error Subst("&1\nERR: &2 (&3)\n&4\n&1\n", String$(40, "-"), Error.Text, Error.Code, Error.Backtrace.Join("\n")) End Public Function Addup(nums As Integer[]) As Integer Dim iTot As Integer For idx As Integer = 0 To nums.Max iTot += nums[idx] Next Return iTot End PLUGIN COMPONENT "PluginA" class -------------------------------- ' Gambas class file Export Public Sub _new() Dim cxx As Class = classes["Main"] Print object.call(cxx, "Addup", [[1, 5, 2, 5, 9]]) End b From brian at westwoodsvcs.com Mon May 25 03:48:31 2020 From: brian at westwoodsvcs.com (brian at westwoodsvcs.com) Date: Mon, 25 May 2020 04:48:31 +0300 Subject: [Gambas-user] =?utf-8?q?How_to_call_a_function_in_a_startup_load?= =?utf-8?q?ed_module_from_a_plugin_loaded_at_runtime=3F?= In-Reply-To: References: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> <1930564783.3868.1590337276765.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1590371311.471297701@f6.my.com> More interested in how to access structure defs and variables from main module -- Thanks Brian Sunday, 24 May 2020, 04:58PM -07:00 from Bruce adamnt42 at gmail.com : > > >On 25/5/20 1:51 am, Brian G wrote: > > I am trying to access the methods in the main module not class from one of the loaded plugins. > > > >OK! A couple of points: >1) In you main project the classes you want visible in the plugin must >be exported and >2) (Obviously) the methods you want to expose to the plugin must be public. > >Here's what I think you are trying: >MAIN PROGRAM "Main" module >-------------------------- >' Gambas module file > >Export > >Public Sub Main() > >???Dim hXXX As Object > >???Component.Load("ph.plugin") >???' Print Class.IsLoaded("PluginA") > >???hXXX = Object.New("PluginA") > >Catch >???Error Subst("&1\nERR: &2 (&3)\n&4\n&1\n", String$(40, "-"), >Error.Text, Error.Code, Error.Backtrace.Join("\n")) > >End > >Public Function Addup(nums As Integer[]) As Integer >???Dim iTot As Integer >???For idx As Integer = 0 To nums.Max >?????iTot += nums[idx] >???Next >???Return iTot >End > >PLUGIN COMPONENT "PluginA" class >-------------------------------- >' Gambas class file > >Export > >Public Sub _new() > >???Dim cxx As Class = classes["Main"] >???Print object.call(cxx, "Addup", [[1, 5, 2, 5, 9]]) > >End > >b > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon May 25 03:49:09 2020 From: brian at westwoodsvcs.com (brian at westwoodsvcs.com) Date: Mon, 25 May 2020 04:49:09 +0300 Subject: [Gambas-user] =?utf-8?q?How_to_call_a_function_in_a_startup_load?= =?utf-8?q?ed_module_from_a_plugin_loaded_at_runtime=3F?= In-Reply-To: References: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> <1930564783.3868.1590337276765.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1590371349.534834034@f27.my.com> Yes I know this did you see my reply and code -- Thanks Brian Sunday, 24 May 2020, 04:58PM -07:00 from Bruce adamnt42 at gmail.com : > > >On 25/5/20 1:51 am, Brian G wrote: > > I am trying to access the methods in the main module not class from one of the loaded plugins. > > > >OK! A couple of points: >1) In you main project the classes you want visible in the plugin must >be exported and >2) (Obviously) the methods you want to expose to the plugin must be public. > >Here's what I think you are trying: >MAIN PROGRAM "Main" module >-------------------------- >' Gambas module file > >Export > >Public Sub Main() > >???Dim hXXX As Object > >???Component.Load("ph.plugin") >???' Print Class.IsLoaded("PluginA") > >???hXXX = Object.New("PluginA") > >Catch >???Error Subst("&1\nERR: &2 (&3)\n&4\n&1\n", String$(40, "-"), >Error.Text, Error.Code, Error.Backtrace.Join("\n")) > >End > >Public Function Addup(nums As Integer[]) As Integer >???Dim iTot As Integer >???For idx As Integer = 0 To nums.Max >?????iTot += nums[idx] >???Next >???Return iTot >End > >PLUGIN COMPONENT "PluginA" class >-------------------------------- >' Gambas class file > >Export > >Public Sub _new() > >???Dim cxx As Class = classes["Main"] >???Print object.call(cxx, "Addup", [[1, 5, 2, 5, 9]]) > >End > >b > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon May 25 07:33:54 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 24 May 2020 22:33:54 -0700 (PDT) Subject: [Gambas-user] How to call a function in a startup loaded module from a plugin loaded at runtime? In-Reply-To: <1590371349.534834034@f27.my.com> References: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> <1930564783.3868.1590337276765.JavaMail.zimbra@westwoodsvcs.com> <1590371349.534834034@f27.my.com> Message-ID: <1354941950.4084.1590384834889.JavaMail.zimbra@westwoodsvcs.com> (inline) OK! A couple of points: 1) In you main project the classes you want visible in the plugin must be exported and I understand these things BQ_BEGIN 2) (Obviously) the methods you want to expose to the plugin must be public. BQ_END I understand this too. BQ_BEGIN Here's what I think you are trying: MAIN PROGRAM "Main" module BQ_END I am trying to access data and structures BQ_BEGIN -------------------------- ' Gambas module file Export BQ_END 'these are what I am trying to figure out how to access from the plugin Public struct aaa ' this I have no idea how to reference bbb as string ccc as integer end struct Public SymTable as collection ' this I can get thru a getSymTable() function i can add BQ_BEGIN Public Sub Main() Dim hXXX As Object Component.Load("ph.plugin") ' Print Class.IsLoaded("PluginA") hXXX = Object.New("PluginA") Catch Error Subst("&1\nERR: &2 (&3)\n&4\n&1\n", String$(40, "-"), Error.Text, Error.Code, Error.Backtrace.Join("\n")) End Public Function Addup(...) As Integer Dim iTot As Integer = 0 For each idx As Integer in param iTot += idx Next Return iTot End PLUGIN COMPONENT "PluginA" class -------------------------------- ' Gambas class file Export Public Sub _new() Dim cxx As Class = classes["Main"] Print object.call(cxx, "Addup", [1, 5, 2, 5, 9]) End b ----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- BQ_END Do you have any thoughts on this part of problem ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon May 25 09:34:19 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 25 May 2020 17:04:19 +0930 Subject: [Gambas-user] How to call a function in a startup loaded module from a plugin loaded at runtime? In-Reply-To: <1354941950.4084.1590384834889.JavaMail.zimbra@westwoodsvcs.com> References: <495011983.3744.1590276795814.JavaMail.zimbra@westwoodsvcs.com> <1930564783.3868.1590337276765.JavaMail.zimbra@westwoodsvcs.com> <1590371349.534834034@f27.my.com> <1354941950.4084.1590384834889.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <9b3abdc8-d315-d648-59c6-5a07922e1c56@gmail.com> On 25/5/20 3:03 pm, Brian G wrote: > Public struct aaa ' this I have no idea how to reference > bbb as string > ccc as integer > end struct Why not just declare the struct in the plugin again, after all it's only a (although I shudder to use the word) "template" for a class that has only public variables. Re the variables, I haven't tried this because "global" variables in a module are static and I can't see a reason to expose them to non-static objects except with "extremely suicidal attitudes". ymmv b From isafiur at gmail.com Mon May 25 10:10:31 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Mon, 25 May 2020 13:55:31 +0545 Subject: [Gambas-user] Segmentation Fault with latest update Message-ID: Hi After update to latest version from ppa:gambas-team/gambas-daily in Ubuntu 19.10 there is Segmentation Fault when loading any project even a newly created one through IDE. Version: 3.14.90+git6690.cd6a30b+build2d166f8e~ubuntu19.10.1 From g4mba5 at gmail.com Mon May 25 10:17:07 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 25 May 2020 10:17:07 +0200 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: <8def7cb9-405b-10ba-4613-485dd30b6e61@gmail.com> Le 25/05/2020 ? 10:10, Safiur Rahman a ?crit?: > Hi > After update to latest version from ppa:gambas-team/gambas-daily in > Ubuntu 19.10 there is Segmentation Fault when loading any project even > a newly created one through IDE. > > Version: 3.14.90+git6690.cd6a30b+build2d166f8e~ubuntu19.10.1 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Can you get a stack backtrace of the crash with gdb? -- Beno?t Minisini From isafiur at gmail.com Mon May 25 10:19:59 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Mon, 25 May 2020 14:04:59 +0545 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: The problem is with QT4 only. When QT5 is used there is no such problem. On 5/25/20, Safiur Rahman wrote: > Hi > After update to latest version from ppa:gambas-team/gambas-daily in > Ubuntu 19.10 there is Segmentation Fault when loading any project even > a newly created one through IDE. > > Version: 3.14.90+git6690.cd6a30b+build2d166f8e~ubuntu19.10.1 > -- Regards Safiur Rahman From g4mba5 at gmail.com Mon May 25 10:32:27 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 25 May 2020 10:32:27 +0200 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: <56c0f4e4-4014-d4e3-3f83-3c734e9a9ce1@gmail.com> Le 25/05/2020 ? 10:19, Safiur Rahman a ?crit?: > The problem is with QT4 only. When QT5 is used there is no such problem. > > On 5/25/20, Safiur Rahman wrote: >> Hi >> After update to latest version from ppa:gambas-team/gambas-daily in >> Ubuntu 19.10 there is Segmentation Fault when loading any project even >> a newly created one through IDE. >> >> Version: 3.14.90+git6690.cd6a30b+build2d166f8e~ubuntu19.10.1 >> > > OK, but I have no crash at all here, so can you get a stack backtrace of the crash with gdb? -- Beno?t Minisini From vuott at tiscali.it Tue May 26 01:39:44 2020 From: vuott at tiscali.it (vuott at tiscali.it) Date: Tue, 26 May 2020 01:39:44 +0200 Subject: [Gambas-user] Error with master vers. 5004f206 Message-ID: <9a3537b6187214508ad081a7561d85dd@tiscali.it> Hello, by updating my Gambas with Master vers. 5004f206, at end of "make install" I obtain an error: Installing the development environment... Compiling gambas3... FTestSuiteOld.class:3:18: error: Unknown identifier: TestCommand Compiling gbs3... OK Installing gbs3... Installing the scripter... Registering Gambas script mimetype... Registering Gambas server page mimetype... Installing the Gambas appdata file... Installing the Gambas template projects... make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/vuott/gambasdevel/app" make[1]: uscita dalla directory "/home/vuott/gambasdevel/app" Making install in . make[1]: ingresso nella directory "/home/vuott/gambasdevel" make[2]: ingresso nella directory "/home/vuott/gambasdevel" || || Unable to compile gambas3 || make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/vuott/gambasdevel" make[1]: uscita dalla directory "/home/vuott/gambasdevel" Regards Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue May 26 06:02:43 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 25 May 2020 21:02:43 -0700 (PDT) Subject: [Gambas-user] Gambas highlight for Nano & pico rc file Message-ID: <1742110667.4344.1590465763489.JavaMail.zimbra@westwoodsvcs.com> Hi, not sure if anyone is interested but here is a nano and pico rc file for gambas script syntax include 'gambas.nanorc' file into your .nanorc file and add 'set linenumbers' before. First Pass, feed back appreciated Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas.nanorc Type: application/octet-stream Size: 4447 bytes Desc: not available URL: From isafiur at gmail.com Tue May 26 08:18:52 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Tue, 26 May 2020 12:03:52 +0545 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: Hi gdb produces "No stack" However I sent you screen recording video of the problem which is waiting for approval from admin. On 5/25/20, Safiur Rahman wrote: > Hi > gdb produces "No stack" > However I am sending you screen record of the problem. > > On 5/25/20, Safiur Rahman wrote: >> The problem is with QT4 only. When QT5 is used there is no such problem. >> >> On 5/25/20, Safiur Rahman wrote: >>> Hi >>> After update to latest version from ppa:gambas-team/gambas-daily in >>> Ubuntu 19.10 there is Segmentation Fault when loading any project even >>> a newly created one through IDE. >>> >>> Version: 3.14.90+git6690.cd6a30b+build2d166f8e~ubuntu19.10.1 >>> >> >> >> -- >> Regards >> Safiur Rahman >> > > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman From chrisml at deganius.de Tue May 26 10:26:48 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 26 May 2020 10:26:48 +0200 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: <0a2b3c9d-a092-06be-0a23-2acc5869bac2@deganius.de> Am 26.05.20 um 08:18 schrieb Safiur Rahman: > gdb produces "No stack" > However I sent you screen recording video of the problem which is > waiting for approval from admin. We have a size limit that counts, so it will be rejected. If you want to share larger files please use a free binary pastebin like this one: https://paste.c-net.org/ And then post your a link to the mailinglist. 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 isafiur at gmail.com Tue May 26 12:16:45 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Tue, 26 May 2020 16:01:45 +0545 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: Hi gdb produces "No stack" However I am sending you screen record of the problem. https://paste.c-net.org/BackfireChico On 5/26/20, Safiur Rahman wrote: > Hi > gdb produces "No stack" > However I sent you screen recording video of the problem which is > waiting for approval from admin. > > On 5/25/20, Safiur Rahman wrote: >> Hi >> gdb produces "No stack" >> However I am sending you screen record of the problem. >> >> On 5/25/20, Safiur Rahman wrote: >>> The problem is with QT4 only. When QT5 is used there is no such problem. >>> >>> On 5/25/20, Safiur Rahman wrote: >>>> Hi >>>> After update to latest version from ppa:gambas-team/gambas-daily in >>>> Ubuntu 19.10 there is Segmentation Fault when loading any project even >>>> a newly created one through IDE. >>>> >>>> Version: 3.14.90+git6690.cd6a30b+build2d166f8e~ubuntu19.10.1 >>>> >>> >>> >>> -- >>> Regards >>> Safiur Rahman >>> >> >> >> -- >> Regards >> Safiur Rahman >> > > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman From g4mba5 at gmail.com Tue May 26 12:25:40 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 26 May 2020 12:25:40 +0200 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: <301e366f-08f5-31d9-ba93-4c8d5b632926@gmail.com> Le 26/05/2020 ? 12:16, Safiur Rahman a ?crit?: > Hi > gdb produces "No stack" > However I am sending you screen record of the problem. > https://paste.c-net.org/BackfireChico > Of course, this is not the IDE that crashes, but the newly created project. You must run 'gdb gbx3' in the new project directory. Regards, -- Beno?t Minisini From isafiur at gmail.com Tue May 26 16:44:23 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Tue, 26 May 2020 20:29:23 +0545 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: Hi bt output is: [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6df2315 in ?? () from /usr/lib/gambas3/gb.qt4.so (gdb) bt #0 0x00007ffff6df2315 in ?? () from /usr/lib/gambas3/gb.qt4.so #1 0x00007ffff6dc58b7 in GB_INIT () from /usr/lib/gambas3/gb.qt4.so #2 0x00005555555855bd in ?? () #3 0x00005555555ab91b in ?? () #4 0x00005555555abf9e in ?? () #5 0x0000555555584f17 in ?? () #6 0x000055555559c32b in ?? () #7 0x0000555555573c9e in ?? () #8 0x00007ffff7dea1e3 in __libc_start_main (main=0x555555573a60, argc=1, argv=0x7fffffffdf28, init=, fini=, rtld_fini=, stack_end=0x7fffffffdf18) at ../csu/libc-start.c:308 #9 0x000055555557453e in ?? () From g4mba5 at gmail.com Tue May 26 16:52:21 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 26 May 2020 16:52:21 +0200 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: <5a3a2015-023e-46cc-5044-7ef037916a15@gmail.com> Le 26/05/2020 ? 16:44, Safiur Rahman a ?crit?: > Hi > > bt output is: > > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff6df2315 in ?? () from /usr/lib/gambas3/gb.qt4.so > (gdb) bt > #0 0x00007ffff6df2315 in ?? () from /usr/lib/gambas3/gb.qt4.so > #1 0x00007ffff6dc58b7 in GB_INIT () from /usr/lib/gambas3/gb.qt4.so > #2 0x00005555555855bd in ?? () > #3 0x00005555555ab91b in ?? () > #4 0x00005555555abf9e in ?? () > #5 0x0000555555584f17 in ?? () > #6 0x000055555559c32b in ?? () > #7 0x0000555555573c9e in ?? () > #8 0x00007ffff7dea1e3 in __libc_start_main (main=0x555555573a60, argc=1, > argv=0x7fffffffdf28, init=, fini=, > rtld_fini=, stack_end=0x7fffffffdf18) > at ../csu/libc-start.c:308 > #9 0x000055555557453e in ?? () > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Can you recompile Gambas with debugging information enabled? Or at least the QT4 component. To do that: $ cd /gb.qt4 $ make clean $ make "CFLAGS=-O0 -g -fvar-tracking" "CXXFLAGS=-O0 -g -fvar-tracking" -j2 ... $ sudo make install ... Then you can get the backtrace again, and we should have the function names and know exactly where it crashes. Regards, -- Beno?t Minisini From isafiur at gmail.com Tue May 26 18:48:43 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Tue, 26 May 2020 22:33:43 +0545 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: Hi There is entirely no problem with gambas3-gb-qt4 when compiled from source. I compiled and installed and there is no segmentation fault. However the package uploaded in launchpad for gambas-daily repository still produces segmentation fault with latest version. On 5/26/20, Safiur Rahman wrote: > Hi > > bt output is: > > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff6df2315 in ?? () from /usr/lib/gambas3/gb.qt4.so > (gdb) bt > #0 0x00007ffff6df2315 in ?? () from /usr/lib/gambas3/gb.qt4.so > #1 0x00007ffff6dc58b7 in GB_INIT () from /usr/lib/gambas3/gb.qt4.so > #2 0x00005555555855bd in ?? () > #3 0x00005555555ab91b in ?? () > #4 0x00005555555abf9e in ?? () > #5 0x0000555555584f17 in ?? () > #6 0x000055555559c32b in ?? () > #7 0x0000555555573c9e in ?? () > #8 0x00007ffff7dea1e3 in __libc_start_main (main=0x555555573a60, argc=1, > argv=0x7fffffffdf28, init=, fini=, > rtld_fini=, stack_end=0x7fffffffdf18) > at ../csu/libc-start.c:308 > #9 0x000055555557453e in ?? () > -- Regards Safiur Rahman From g4mba5 at gmail.com Tue May 26 19:29:11 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 26 May 2020 19:29:11 +0200 Subject: [Gambas-user] Segmentation Fault with latest update In-Reply-To: References: Message-ID: Le 26/05/2020 ? 18:48, Safiur Rahman a ?crit?: > Hi > There is entirely no problem with gambas3-gb-qt4 when compiled from > source. I compiled and installed and there is no segmentation fault. > However the package uploaded in launchpad for gambas-daily repository > still produces segmentation fault with latest version. > Huh... That's strange and annoying... It's the same code on gambas daily than in GitLab... I checked if valgrind detected a memory corruption (these kind of things can raise errors only on specific machines), but everything was correct... -- Beno?t Minisini From herberthguzman at gmail.com Tue May 26 22:35:20 2020 From: herberthguzman at gmail.com (herberth guzman) Date: Tue, 26 May 2020 14:35:20 -0600 Subject: [Gambas-user] Gambas & Android In-Reply-To: <367b8a65-ad02-89e3-a120-d96aec21cca5@gmail.com> References: <367b8a65-ad02-89e3-a120-d96aec21cca5@gmail.com> Message-ID: It would be great if GB4G existed, the impact that Gambas would have on the world of programming. El dom., 24 may. 2020 12:25 a. m., John Rose escribi?: > I've developed apps for Android using a RAD tool called Basic 4 Android > (AKA B4A). B4A is difficult to install using Linux (as it's a Windows > app) with Wine, with the alternative being to run B4A in a Windows VM. > I've also found that B4A often changes the install process. B4A runs > quite slowly under Ubuntu (either using Wine or a Windows VM) as I only > have a Celeron based Barebones PC. B4A does not have the same high > quality as Gambas (e.g. its object orientation is poor). B4A creates > Java code from code written using B4A. > > So I got back to thinking about Gambas being used to develop Android > apps. Given that many PCs now have touch screens, does Gambas now > include facilities for these to be used at Gambas-developed apps at > runtime? If so, would there be any way of developing Android apps in > Gambas on a Linux (e.g. Ubuntu) PC? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Wed May 27 18:08:28 2020 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Wed, 27 May 2020 17:08:28 +0100 Subject: [Gambas-user] Cipher Message-ID: Hi everyone, I am trying to use ciper with "AES-128-XTS" method but I am always getting an error. hCipherText = Cipher[sAlgorithmus].Encrypt(sPlain, sKey, sInitVector) In my case sPlain is a string with numbers, skey is an uuid ("cbfcc1173b5a4b83ae9a355079aae54c") and no mater the size of sInitVector I always get the error : InitVector length does not match method of FMain in line.... Any help please? Thanks in advance. Regards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From twopilots at interisland.net Wed May 27 20:21:36 2020 From: twopilots at interisland.net (Ed & Clare Kelm) Date: Wed, 27 May 2020 11:21:36 -0700 Subject: [Gambas-user] GridView Problem with left click Message-ID: <890f5e69-26c4-c6e0-95b3-c52911dee4a9@interisland.net> A recent (last few days?) update changed the behavior of gridview when left clicking.? The first click on a cell is ignored, the second and subsequent clicks are recognized and return the row and column as expected.? Clicking on a different cell, the first click is again ignaored.? A sample project is attached.? Click on a cell, and the Row and column should appear in the text area. Gambas version is 3.14.90+git6697.4bad4bb+build4da896c1~ubuntu14.04.1 Ubuntu version is 14.04.6 LTS Thanks! Ed K. -------------- next part -------------- A non-text attachment was scrubbed... Name: GridviewTest.tar.gz Type: application/gzip Size: 12708 bytes Desc: not available URL: From olivier.cruilles at yahoo.fr Wed May 27 20:33:47 2020 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 27 May 2020 14:33:47 -0400 Subject: [Gambas-user] GridView Problem with left click In-Reply-To: <890f5e69-26c4-c6e0-95b3-c52911dee4a9@interisland.net> References: <890f5e69-26c4-c6e0-95b3-c52911dee4a9@interisland.net> Message-ID: <55573197-EC93-4CCC-8881-97254D26953C@yahoo.fr> Hello, Take a look a the BugTracker because I have already notified that and it?s fixed in the last commit of Gambas DEV Olivier > Le 27 mai 2020 ? 14:21, Ed & Clare Kelm a ?crit : > > A recent (last few days?) update changed the behavior of gridview when left clicking. The first click on a cell is ignored, the second and subsequent clicks are recognized and return the row and column as expected. Clicking on a different cell, the first click is again ignaored. A sample project is attached. Click on a cell, and the Row and column should appear in the text area. > > Gambas version is 3.14.90+git6697.4bad4bb+build4da896c1~ubuntu14.04.1 > Ubuntu version is 14.04.6 LTS > > Thanks! > > Ed K. -------------- next part -------------- A non-text attachment was scrubbed... Name: GridviewTest.tar.gz Type: application/gzip Size: 12708 bytes Desc: not available URL: -------------- next part -------------- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Wed May 27 20:34:06 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 May 2020 20:34:06 +0200 Subject: [Gambas-user] GridView Problem with left click In-Reply-To: <890f5e69-26c4-c6e0-95b3-c52911dee4a9@interisland.net> References: <890f5e69-26c4-c6e0-95b3-c52911dee4a9@interisland.net> Message-ID: Le 27/05/2020 ? 20:21, Ed & Clare Kelm a ?crit?: > A recent (last few days?) update changed the behavior of gridview when > left clicking.? The first click on a cell is ignored, the second and > subsequent clicks are recognized and return the row and column as > expected.? Clicking on a different cell, the first click is again > ignaored.? A sample project is attached.? Click on a cell, and the Row > and column should appear in the text area. > > Gambas version is 3.14.90+git6697.4bad4bb+build4da896c1~ubuntu14.04.1 > Ubuntu version is 14.04.6 LTS > > Thanks! > > Ed K. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It has been fixed a few commits after your version. If you are using gambas-daily, it should be available soon. Regards, -- Beno?t Minisini From twopilots at interisland.net Wed May 27 21:58:24 2020 From: twopilots at interisland.net (Ed & Clare Kelm) Date: Wed, 27 May 2020 12:58:24 -0700 Subject: [Gambas-user] GridView Problem with left click In-Reply-To: References: <890f5e69-26c4-c6e0-95b3-c52911dee4a9@interisland.net> Message-ID: On 5/27/20 11:34 AM, Beno?t Minisini wrote: > Le 27/05/2020 ? 20:21, Ed & Clare Kelm a ?crit?: >> A recent (last few days?) update changed the behavior of gridview >> when left clicking.? The first click on a cell is ignored, the second >> and subsequent clicks are recognized and return the row and column as >> expected.? Clicking on a different cell, the first click is again >> ignaored.? A sample project is attached.? Click on a cell, and the >> Row and column should appear in the text area. >> >> Gambas version is 3.14.90+git6697.4bad4bb+build4da896c1~ubuntu14.04.1 >> Ubuntu version is 14.04.6 LTS >> >> Thanks! >> >> Ed K. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > It has been fixed a few commits after your version. If you are using > gambas-daily, it should be available soon. > > Regards, > Benoit: I am using the daily, so I look forward to the fix.? I've registered now on the bug tracker, thanks to Linus's email. Question:? What did I do wrong to cause the Unchecked warning?? Was it the attachment? Thanks! Ed K. From taboege at gmail.com Wed May 27 22:05:03 2020 From: taboege at gmail.com (Tobias Boege) Date: Wed, 27 May 2020 22:05:03 +0200 Subject: [Gambas-user] Cipher In-Reply-To: References: Message-ID: <20200527200503.GA457647@highrise.localdomain> On Wed, 27 May 2020, Antonio Teixeira wrote: > Hi everyone, > > I am trying to use ciper with "AES-128-XTS" method but I am always getting > an error. > > hCipherText = Cipher[sAlgorithmus].Encrypt(sPlain, sKey, sInitVector) > > In my case sPlain is a string with numbers, skey is an uuid > ("cbfcc1173b5a4b83ae9a355079aae54c") and no mater the size of sInitVector I > always get the error : InitVector length does not match method of FMain in > line.... > > Any help please? > The IV length for AES-128-XTS is 16 and I get no problems executing this: #!/usr/bin/env gbs3 Use "gb.openssl" Public Sub Main() Dim sKey As String = "cbfcc1173b5a4b83ae9a355079aae54c" Dim sIV As String = "0123456789abcdef" Dim hCrypt As CipherText Print "KeyLength:", Cipher["AES-128-XTS"].KeyLength == Len(sKey) Print "IvLength:", Cipher["AES-128-XTS"].IvLength == Len(sIV) hCrypt = Cipher["AES-128-XTS"].Encrypt(Format$(Now), sKey, sIV) Print "CipherText:", Base64$(hCrypt.Cipher) Print "Decrypted:", Cipher["AES-128-XTS"].Decrypt(hCrypt) End ========================================================================== KeyLength: True IvLength: True CipherText: 6NuzSxByac+p+DD2qLuRmqpTTw== Decrypted: 05/27/2020 21:59:27 Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From brian at westwoodsvcs.com Thu May 28 01:22:15 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 27 May 2020 16:22:15 -0700 (PDT) Subject: [Gambas-user] vim syntax highlighter files for gambas script Message-ID: <241271015.5341.1590621735410.JavaMail.zimbra@westwoodsvcs.com> gambas.vim syntax file file goes into ~/.vim/syntax/ .vimrc goes in ~/ add it to yours if you have one already First pass feedback would be much appreciated. You must have vim installed not vi Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas.vim Type: application/octet-stream Size: 10057 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: .vimrc Type: application/octet-stream Size: 96 bytes Desc: not available URL: From antonio.j.teixeira at gmail.com Thu May 28 11:41:51 2020 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Thu, 28 May 2020 10:41:51 +0100 Subject: [Gambas-user] Cipher In-Reply-To: References: Message-ID: Solved. Thank you very much Regards Ant?nio Teixeira > Message: 3 > Date: Wed, 27 May 2020 22:05:03 +0200 > From: Tobias Boege > To: Gambas Mailing List > Subject: Re: [Gambas-user] Cipher > Message-ID: <20200527200503.GA457647 at highrise.localdomain> > Content-Type: text/plain; charset=us-ascii > > On Wed, 27 May 2020, Antonio Teixeira wrote: > > Hi everyone, > > > > I am trying to use ciper with "AES-128-XTS" method but I am always > getting > > an error. > > > > hCipherText = Cipher[sAlgorithmus].Encrypt(sPlain, sKey, sInitVector) > > > > In my case sPlain is a string with numbers, skey is an uuid > > ("cbfcc1173b5a4b83ae9a355079aae54c") and no mater the size of > sInitVector I > > always get the error : InitVector length does not match method of FMain > in > > line.... > > > > Any help please? > > > > The IV length for AES-128-XTS is 16 and I get no problems executing this: > > #!/usr/bin/env gbs3 > > Use "gb.openssl" > > Public Sub Main() > Dim sKey As String = "cbfcc1173b5a4b83ae9a355079aae54c" > Dim sIV As String = "0123456789abcdef" > Dim hCrypt As CipherText > > Print "KeyLength:", Cipher["AES-128-XTS"].KeyLength == Len(sKey) > Print "IvLength:", Cipher["AES-128-XTS"].IvLength == Len(sIV) > hCrypt = Cipher["AES-128-XTS"].Encrypt(Format$(Now), sKey, sIV) > Print "CipherText:", Base64$(hCrypt.Cipher) > Print "Decrypted:", Cipher["AES-128-XTS"].Decrypt(hCrypt) > End > > > ========================================================================== > > KeyLength: True > IvLength: True > CipherText: 6NuzSxByac+p+DD2qLuRmqpTTw== > Decrypted: 05/27/2020 21:59:27 > > Regards, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu May 28 18:08:20 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 28 May 2020 12:08:20 -0400 Subject: [Gambas-user] xmlDocument Bug 1336 In-Reply-To: References: Message-ID: <3630a2ad-d944-f5a9-4db6-b86bfce60896@gmail.com> On 5/2/20 1:17 PM, CD wrote: > By re-debugging the code I realized that not only the function > Save of the XmlDocument object truncates the prolog of the xml document, > but that the Open function of the same XmlDocument object also truncates the same prolog. > And in both cases (Open/Save) the Processing Instruction is deleted. > > Moreover, after searching unsuccessfully in the objects of the gb.xml library, > especially in the XmlDocument object, I did not find anywhere a method > to create/modify a Prologue (https://www.w3.org/TR/xml/#sec-prolog-dtd) > or a Processing Instruction (https://www.w3.org/TR/xml/#sec-pi). The Save method cannot save what isn't there. It appears that (in gb.xml/src/document.cpp) the XMLDocument_SetContent method, called by XMLDocument_Open, assumes that a prolog, if it exists, *always* consists entirely of XMLDecl (lines 114-124). It will retain a comment, but detaches it from the prolog. A Processing Instruction is lost. -- Lee From john.aaron.rose at gmail.com Fri May 29 09:08:02 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Fri, 29 May 2020 08:08:02 +0100 Subject: [Gambas-user] Request for new property z-order of the DesktopWindow object Message-ID: Unfortunately I'm not able to include a screenshot of this due to size constraints of messages here. So I'll describe it as best I can. The Temporary window partially covers the Gambas window (i.e. is higher in the windows' stacking order), and the Gambas window is physically above (i.e. on the screen) the Temporary window. As the Gambas DesktopWindow object is returned before the Temporary DesktopWindow object when the FindWindow method is invoked in the FMain form's Form_Open event of my app: each DesktopWindow returned being stored in an array. Thus, the first DesktopWindow in that array (found by coding for the MouseUp event in a DrawingArea of the SelectWindow form (called by the FMain form which has its Expanded property set to true) - when the user clicks on the overlapping area (so that the position of the mouse will be in both desktop windows) - will be the Gambas DesktopWindow: this will be the selected window. I want the Temporary window to be the selected window as it's on top (i.e. higher in the Stacking Order) of the Gambas window; currently the Temporary window is selected as evidenced by the Console at runtime. Obviously I still want the Gambas window to be the selected window when the user clicks on any point in it outside the overlapping area. From the user's point of view, this seems to me to be the logical behaviour of the app. I've attached my app. I've started coding in the MouseUp event using a Shell command to call xprop in order to determine which window is on top. This needs a fair amount of extra coding as the data returned from xprop has to evaluated against the windows data (e.g. stacking order from xprop versus window positions stored in the array). It seems to me that if each DesktopWindow had a z-order property (to determine its priority in the windows' stacking order) then this coding would be much easier. I think that I vaguely remember a z-order property in VB: but this could be wishful thinking! -- John 07476 041418 01902 331266 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri May 29 10:12:26 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 May 2020 10:12:26 +0200 Subject: [Gambas-user] Request for new property z-order of the DesktopWindow object In-Reply-To: References: Message-ID: Am 29.05.20 um 09:08 schrieb John Rose: > Unfortunately I'm not able to include a screenshot of this due to size > constraints of messages here. You can attach a screenshot, but be careful with sizes. If you open it in Gimp, crop it to a size that it can display the necessary information and then save it as PNG (in Gimp 'Save for web') the size is so small that it won't be rejected. See my screenshot attached. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-test-screenshot.png Type: image/png Size: 71435 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From john.aaron.rose at gmail.com Fri May 29 10:47:59 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Fri, 29 May 2020 09:47:59 +0100 Subject: [Gambas-user] Request for new property z-order of the DesktopWindow, object Message-ID: <78919107-03a9-2370-05b3-276cf8e23ce5@gmail.com> Christof said: You can attach a screenshot, but be careful with sizes. If you open it in Gimp, crop it to a size that it can display the necessary information and then save it as PNG (in Gimp 'Save for web') the size is so small that it won't be rejected. Screenshot was already cropped as I saved only part of the screenshot using Ubuntu's Screenshot app. It was smallish i.e. png with size 221kB. I don't use GIMP for simple activities like cropping as I always feel daunted by it! I prefer to use Shotwell (Image) Viewer for cropping as it's so much simpler than GIMP. I've resized the image using the Resize addon to Nautilus. Its 50% of the 'screen' size in pixels at 140kB. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Overlapping Area Screenshot.resized.png Type: image/png Size: 139470 bytes Desc: not available URL: From john.aaron.rose at gmail.com Fri May 29 10:57:40 2020 From: john.aaron.rose at gmail.com (John Rose) Date: Fri, 29 May 2020 09:57:40 +0100 Subject: [Gambas-user] Request for new property z-order of the DesktopWindow object Message-ID: <9437fbcf-5450-e789-ecef-50e599c84839@gmail.com> Bruce said: I doubt whether that would help you, Benoit would have a better grasp on this but depending on the DE and WM involved the z-order handling could be very different. As a quick example, on my DE/WM environment if a widow is rolled up but has its' "Always On Top" feature set the it will always appear on top but "only occasionally" has focus. If there are more than one "AOT" windows then the stacking order and focus is generally in-determinant. Your xprop approach is probably the best solution. Although the stacking order could be considered a property of the window, it is actually in the domain of the WM so ??? WMx counts up/ WMy counts down ??? where would you be. I'm not interested (in my app) in which window has focus. I'm only interested in a window being on top of another window (i.e. its stacking has a higher priority than the other window's stacking) when the user clicks on a point in the overlapping area. Not sure if I understood the last sentence in regard to WMx counts up & WMy counts down. I presume that those terms mean that they're like Gambas Left & Top properties. If so, IMO it doesn't obviate my need for a z-order property. From chrisml at deganius.de Fri May 29 11:34:12 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 May 2020 11:34:12 +0200 Subject: [Gambas-user] Request for new property z-order of the DesktopWindow, object In-Reply-To: <78919107-03a9-2370-05b3-276cf8e23ce5@gmail.com> References: <78919107-03a9-2370-05b3-276cf8e23ce5@gmail.com> Message-ID: <8c7b7ca6-9fc3-59c6-4c3b-84b95ba040d4@deganius.de> Am 29.05.20 um 10:47 schrieb John Rose: > Screenshot was already cropped as I saved only part of the > screenshot using Ubuntu's Screenshot app. It was smallish i.e. png > with size 221kB. I don't use GIMP for simple activities like cropping > as I always feel daunted by it! I prefer to use Shotwell (Image) > Viewer for cropping as it's so much simpler than GIMP. I've resized > the image using the Resize addon to Nautilus. The readability suffers from resizing! Better is to crop it and you also can save it as PNG with smaller color count. With PNG-24 it is quite large, but if you save it as PNG-8 it becomes much smaller so that a screenshot on my computer with 1916x1150 pixel needs about 90kb which I could post to the mailinglist without problems. Look, I've attached a screenshot from Gimp's 'Save-for-Web' dialog, which does that easily. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: gimp-save-for-web-dialog.png Type: image/png Size: 54193 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From claude.dessere at orange.fr Fri May 29 18:44:35 2020 From: claude.dessere at orange.fr (CD) Date: Fri, 29 May 2020 18:44:35 +0200 Subject: [Gambas-user] xmlDocument Bug 1336 (T Lee Davidson) In-Reply-To: References: Message-ID: <448d791aad272bbeb127c0ce8c6d822a7a492b0d.camel@orange.fr> Le vendredi 29 mai 2020 ? 10:13 +0200, user-request at lists.gambas-basic.org a ?crit :Send User mailing list submissions to > user at lists.gambas-basic.org > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/useror, via email, send a message with > subject or body 'help' to user-request at lists.gambas-basic.org > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..." > Today's Topics: > 1. Re: xmlDocument Bug 1336 (T Lee Davidson) 2. Request for new property > z-order of the DesktopWindow object (John Rose) 3. Re: Request for new > property z-order of the DesktopWindow object (Christof Thalhofer) > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- On 5/2/20 1:17 PM, CD wrote: > By re-debugging the code I realized that not only the function > Save of the XmlDocument object truncates the prolog of the xml document, > but that the Open function of the same XmlDocument object also truncates the same prolog. > And in both cases (Open/Save) the Processing Instruction is deleted. > > Moreover, after searching unsuccessfully in the objects of the gb.xml library, > especially in the XmlDocument object, I did not find anywhere a method > to create/modify a Prologue (https://www.w3.org/TR/xml/#sec-prolog-dtd) > or a Processing Instruction (https://www.w3.org/TR/xml/#sec-pi). The Save method cannot save what isn't there. It appears that (in gb.xml/src/document.cpp) the XMLDocument_SetContent method, called by XMLDocument_Open, assumes that a prolog, if it exists, *always* consists entirely of XMLDecl (lines 114-124). It will retain a comment, but detaches it from the prolog. A Processing Instruction is lost. -- Lee I fully agree with what you write! And so, how do we do Claude Desser? -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri May 29 19:46:38 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 May 2020 19:46:38 +0200 Subject: [Gambas-user] xmlDocument Bug 1336 (T Lee Davidson) In-Reply-To: <448d791aad272bbeb127c0ce8c6d822a7a492b0d.camel@orange.fr> References: <448d791aad272bbeb127c0ce8c6d822a7a492b0d.camel@orange.fr> Message-ID: Am 29.05.20 um 18:44 schrieb CD: > I fully agree with what you write! > And so, how do we do If you want to fix things in Gambas you can fork it on Gitlab, then fix the bug and then create a merge request so that it can be merged into the source code of Gambas. If you are doing this right now there are some chances, that it will make it's way into the next release 3.15. As an alternative (or better together with that) you can file a bug in the Gambas bugtracker and hope that it will be fixed by Beno?t or someone else with write access to the Gambas sources. Anyway, if someone fixes it, at first a test should be created, which reports 'ok' after the fix is done so that it won't be destroyed in the future by accident. For that you can use Gambas daily from Launchpad. --- By the way, gb.xml.html has some other bugs that could be fixed as well.For example, if HtmlDocument.Html5 is set True, it still outputs outdated xhtml tags like '
' or '' or '
'. I mean, if you're already in that area, you can nail a few more loose boards ... ;-) Alles Gute Christof Thalhofer -- [x] nail here for new monitor From t.lee.davidson at gmail.com Fri May 29 22:16:48 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 29 May 2020 16:16:48 -0400 Subject: [Gambas-user] xmlDocument Bug 1336 (T Lee Davidson) In-Reply-To: References: <448d791aad272bbeb127c0ce8c6d822a7a492b0d.camel@orange.fr> Message-ID: On 5/29/20 1:46 PM, Christof Thalhofer wrote: > As an alternative (or better together with that) you can file a bug in > the Gambas bugtracker and hope that it will be fixed by Beno?t or > someone else with write access to the Gambas sources. I bug report has already been filed - two years ago; as the subject line intimates: #1336. It was assigned to Adrien Prokopowicz and has had no action on it since 12/06/2018. -- Lee From chrisml at deganius.de Fri May 29 22:28:54 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 May 2020 22:28:54 +0200 Subject: [Gambas-user] xmlDocument Bug 1336 (T Lee Davidson) In-Reply-To: References: <448d791aad272bbeb127c0ce8c6d822a7a492b0d.camel@orange.fr> Message-ID: Am 29.05.20 um 22:16 schrieb T Lee Davidson: > On 5/29/20 1:46 PM, Christof Thalhofer wrote: >> As an alternative (or better together with that) you can file a bug in >> the Gambas bugtracker and hope that it will be fixed by Beno?t or >> someone else with write access to the Gambas sources. > > I bug report has already been filed - two years ago; as the subject line > intimates: #1336. > > It was assigned to Adrien Prokopowicz and has had no action on it since > 12/06/2018. I have no idea why he doesn't answer. Let's hope the best and that he's not interested in Gambas any more and does any other interesting things. Anyway ... things have to be fixed, and if you have a problem with it, why don't you do it? Alles Gute Christof Thalhofer -- [x] nail here for new monitor From t.lee.davidson at gmail.com Sat May 30 07:11:17 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 30 May 2020 01:11:17 -0400 Subject: [Gambas-user] xmlDocument Bug 1336 (T Lee Davidson) In-Reply-To: References: <448d791aad272bbeb127c0ce8c6d822a7a492b0d.camel@orange.fr> Message-ID: <04755c48-ff3b-27ff-3b40-2ed27a997464@gmail.com> On 5/29/20 4:28 PM, Christof Thalhofer wrote: > Anyway ... things have to be fixed, and if you have a problem with it, > why don't you do it? Well, I don't have a problem with it since I don't do XML processing. And, since I'm not a C/++ coder, I'd probably make it worse if I made any attempt. But, you seem to understand it ;-) -- Lee From chrisml at deganius.de Sat May 30 09:29:32 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 May 2020 09:29:32 +0200 Subject: [Gambas-user] xmlDocument Bug 1336 (T Lee Davidson) In-Reply-To: <04755c48-ff3b-27ff-3b40-2ed27a997464@gmail.com> References: <448d791aad272bbeb127c0ce8c6d822a7a492b0d.camel@orange.fr> <04755c48-ff3b-27ff-3b40-2ed27a997464@gmail.com> Message-ID: <7aa95baf-7c85-35e5-3ade-dd3f45c1345f@deganius.de> Am 30.05.20 um 07:11 schrieb T Lee Davidson: > On 5/29/20 4:28 PM, Christof Thalhofer wrote: >> Anyway ... things have to be fixed, and if you have a problem with >> it, why don't you do it? > > Well, I don't have a problem with it since I don't do XML processing. > And, since I'm not a C/++ coder, I'd probably make it worse if I made > any attempt. But, you seem to understand it ;-) 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 brian at westwoodsvcs.com Sat May 30 09:58:41 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 30 May 2020 00:58:41 -0700 (PDT) Subject: [Gambas-user] Is there a possibility to add an edit page for package build Message-ID: <130621678.5766.1590825521893.JavaMail.zimbra@westwoodsvcs.com> Would it be possible to add a page in ide to edit package build info without having to actually go through build process. This would be very helpful when working on correct configuration etc. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat May 30 10:05:39 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 30 May 2020 01:05:39 -0700 (PDT) Subject: [Gambas-user] Thoughts on new debug with command line parameters Message-ID: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> I don't think I am enamored with the new debug with parameters process. When I am working on a module that takes command like parameters and am debugging it. Having to click three times for every round of testing is a little annoying. Why has this been changed. It was great for debugging the old way, set it and just go till done with debug session. Feels more like work the new way..... Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat May 30 10:37:57 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 May 2020 10:37:57 +0200 Subject: [Gambas-user] Thoughts on new debug with command line parameters In-Reply-To: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> References: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1109a71e-3447-4a75-9b74-14d7a067f9f0@deganius.de> Am 30.05.20 um 10:05 schrieb Brian G: > I don't think I am enamored with the new debug with parameters process. > When I am working on a module that takes command like parameters and am > debugging it. Having to click three times for every round of testing is > a little annoying. Why has this been changed. > It was great for debugging the old way, set it and just go till done > with debug session. > > Feels more like work the new way..... I agree. If we were able to select (or deselect) the argument in the form 'Run with arguments' that had to be run automatically when F5 was hit, that would be a lot better. But I find the new dialog to be a great improvement over the old one, with which I despaired a couple of times. Also that it's not in the 'Project' dialog any more is a great improvement for me. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Sat May 30 10:51:34 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 30 May 2020 18:21:34 +0930 Subject: [Gambas-user] Thoughts on new debug with command line parameters In-Reply-To: <1109a71e-3447-4a75-9b74-14d7a067f9f0@deganius.de> References: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> <1109a71e-3447-4a75-9b74-14d7a067f9f0@deganius.de> Message-ID: On 30/5/20 6:07 pm, Christof Thalhofer wrote: > Am 30.05.20 um 10:05 schrieb Brian G: > >> I don't think I am enamored with the new debug with parameters process. >> When I am working on a module that takes command like parameters and am >> debugging it. Having to click three times for every round of testing is >> a little annoying. Why has this been changed. >> It was great for debugging the old way, set it and just go till done >> with debug session. >> >> Feels more like work the new way..... > > I agree. If we were able to select (or deselect) the argument in the > form 'Run with arguments' that had to be run automatically when F5 was > hit, that would be a lot better. > > But I find the new dialog to be a great improvement over the old one, > with which I despaired a couple of times. Also that it's not in the > 'Project' dialog any more is a great improvement for me. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > This is an aside comment! And is not meant to be inflammatory in any way. Linux command line terminology is that a command has "options" and "arguments". Options are indicated by a flag e.g. -p (which can have a value attached e.g. -pH. Arguments are the things parsed after all options have been processed eg cp FileA ~/FileB. The gambas command line parser "gb.args" handles them according to this convention. Please guys it makes it hard to understand exactly what you mean if you mix these terms up. nai bruce From chrisml at deganius.de Sat May 30 13:08:12 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 30 May 2020 13:08:12 +0200 Subject: [Gambas-user] Thoughts on new debug with command line parameters In-Reply-To: References: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> <1109a71e-3447-4a75-9b74-14d7a067f9f0@deganius.de> Message-ID: Am 30.05.20 um 10:51 schrieb Bruce: >>> I don't think I am enamored with the new debug with parameters process. >>> When I am working on a module that takes command like parameters and am >>> debugging it. Having to click three times for every round of testing is >>> a little annoying. Why has this been changed. >>> It was great for debugging the old way, set it and just go till done >>> with debug session. >>> >>> Feels more like work the new way..... >> >> I agree. If we were able to select (or deselect) the argument in the >> form 'Run with arguments' that had to be run automatically when F5 was >> hit, that would be a lot better. >> >> But I find the new dialog to be a great improvement over the old one, >> with which I despaired a couple of times. Also that it's not in the >> 'Project' dialog any more is a great improvement for me. > > This is an aside comment! And is not meant to be inflammatory in any way. > > Linux command line terminology is that a command has "options" and > "arguments". Options are indicated by a flag e.g. -p (which can have a > value attached e.g. -pH. Arguments are the things parsed after all > options have been processed eg cp FileA ~/FileB. > ?The gambas command line parser "gb.args" handles them according to this > convention. > Please guys it makes it hard to understand exactly what you mean if you > mix these terms up. Ok..ok. But please file a bug that it can be fixed before 3.15. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From tmorehen at ajm-software.com Sat May 30 14:47:16 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 30 May 2020 08:47:16 -0400 Subject: [Gambas-user] Is there a possibility to add an edit page for package build In-Reply-To: <130621678.5766.1590825521893.JavaMail.zimbra@westwoodsvcs.com> References: <130621678.5766.1590825521893.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <6b0a5137-48a5-2286-b7e0-bff23c869908@ajm-software.com> This is a great idea!? I would especially like the ability to control more desktopfile parameters like Exec and, especially, the Icon.? I would like the ability to use icons from the system theme. On 2020-05-30 2:58 a.m., Brian G wrote: > Would it be possible to add a page in ide to edit package build info > without having to actually go through build process. > This would be very helpful when working on correct configuration etc. > > Thank You > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Email domain proudly hosted at https://migadu.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Sat May 30 15:49:50 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 30 May 2020 09:49:50 -0400 Subject: [Gambas-user] Thoughts on new debug with command line parameters In-Reply-To: <1109a71e-3447-4a75-9b74-14d7a067f9f0@deganius.de> References: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> <1109a71e-3447-4a75-9b74-14d7a067f9f0@deganius.de> Message-ID: <1401f538-f2b6-5e1b-9c54-91a4086e8a8e@ajm-software.com> On 2020-05-30 3:37 a.m., Christof Thalhofer wrote: > Am 30.05.20 um 10:05 schrieb Brian G: > >> I don't think I am enamored with the new debug with parameters process. >> When I am working on a module that takes command like parameters and am >> debugging it. Having to click three times for every round of testing is >> a little annoying. Why has this been changed. >> It was great for debugging the old way, set it and just go till done >> with debug session. >> >> Feels more like work the new way..... > I agree. If we were able to select (or deselect) the argument in the > form 'Run with arguments' that had to be run automatically when F5 was > hit, that would be a lot better. > > But I find the new dialog to be a great improvement over the old one, > with which I despaired a couple of times. Also that it's not in the > 'Project' dialog any more is a great improvement for me. > > Alles Gute > > Christof Thalhofer > > On 2020-05-30 3:37 a.m., Christof Thalhofer wrote: >> Am 30.05.20 um 10:05 schrieb Brian G: >> >>> I don't think I am enamored with the new debug with parameters process. >>> When I am working on a module that takes command like parameters and am >>> debugging it. Having to click three times for every round of testing is >>> a little annoying. Why has this been changed. >>> It was great for debugging the old way, set it and just go till done >>> with debug session. >>> >>> Feels more like work the new way..... >> I agree. If we were able to select (or deselect) the argument in the >> form 'Run with arguments' that had to be run automatically when F5 was >> hit, that would be a lot better. >> >> But I find the new dialog to be a great improvement over the old one, >> with which I despaired a couple of times. Also that it's not in the >> 'Project' dialog any more is a great improvement for me. >> >> Alles Gute >> >> Christof Thalhofer >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I agree.? Leave the debug dialog where it is but return the run button=2 to its previous menubutton style. Other thoughts: Please make the menu selection mode checked rather than radio. This would let you select multiple commandline parameters, which you can't do now. Say you want a command like: drive --speed 50 --destination "New York".?=2 All you can do now is provide one parameter "--speed 50 --destination \"New York\"", which seems to be treated as Exec ["drive","--speed 50 --destination \"New York\""], not Shell "drive --speed 50 --destination \"New York\"".? A multiple selection approach would let you construct the appropriate Exec command. An alternative, perhaps better, approach, would be to add simple shell-like parsing to the parameter, i.e. treat "--speed 50 --destination \"New York\"" as Exec ["drive","--speed","50","--destination","New York"].? However, this would still miss Shell's wildcard extensions. A third approach would be to abandon the Exec treatment for a Shell treatment. -- Email domain proudly hosted at https://migadu.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Sat May 30 20:03:49 2020 From: claude.dessere at orange.fr (CD) Date: Sat, 30 May 2020 20:03:49 +0200 Subject: [Gambas-user] xmlDocument Bug 1336 In-Reply-To: References: Message-ID: <2c6dfc755fc18a3c443a0aee042d91b8b799e401.camel@orange.fr> Le samedi 30 mai 2020 ? 09:30 +0200, user-request at lists.gambas-basic.org a ?crit : > Send User mailing list submissions to user at lists.gambas-basic.org > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/useror, via email, send a message with > subject or body 'help' to user-request at lists.gambas-basic.org > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..." > Today's Topics: > 1. Re: xmlDocument Bug 1336 (T Lee Davidson) (CD) 2. Re: xmlDocument Bug > 1336 (T Lee Davidson) (Christof Thalhofer) 3. Re: xmlDocument Bug 1336 (T > Lee Davidson) (T Lee Davidson) 4. Re: xmlDocument Bug 1336 (T Lee Davidson) > (Christof Thalhofer) 5. Re: xmlDocument Bug 1336 (T Lee Davidson) (T Lee > Davidson) 6. Re: xmlDocument Bug 1336 (T Lee Davidson) (Christof Thalhofer) > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Am 29.05.20 um 22:16 schrieb T Lee Davidson: > On 5/29/20 1:46 PM, Christof Thalhofer wrote: >> As an alternative (or better together with that) you can file a bug in >> the Gambas bugtracker and hope that it will be fixed by Beno?t or >> someone else with write access to the Gambas sources. > > I bug report has already been filed - two years ago; as the subject line > intimates: #1336. > > It was assigned to Adrien Prokopowicz and has had no action on it since > 12/06/2018. I have no idea why he doesn't answer. Let's hope the best and that he's not interested in Gambas any more and does any other interesting things. Anyway ... things have to be fixed, and if you have a problem with it, why don't you do it? Alles Gute Christof Thalhofer Unlike T Lee Davidson I work a lot with XML/XSL, but like him, I can't fix that in C++. If that were the case it would have been done a long time ago. So we have to wait for a good soul knowing C++, to tackle this fix, as well as bug #1344 ??? Claude Desser? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 30 19:56:27 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 May 2020 19:56:27 +0200 Subject: [Gambas-user] Thoughts on new debug with command line parameters In-Reply-To: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> References: <1680894349.5816.1590825939116.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <4323c2b4-40a4-15a4-f2d7-bdb67df3d2d2@gmail.com> Le 30/05/2020 ? 10:05, Brian G a ?crit?: > I don't think I am enamored with the new debug with parameters process. > When I am working on a module that takes command like parameters and am > debugging it. Having to click three times for every round of testing is > a little annoying. Why has this been changed. > It was great for debugging the old way, set it and just go till done > with debug session. > > Feels more like work the new way..... > > Thank You > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Yes, I'm aware of it, I will fix that to something better. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat May 30 23:44:36 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 31 May 2020 00:44:36 +0300 Subject: [Gambas-user] No mouse event data?? Message-ID: Is this bug in Gambas or has something changed? Run the attached project, click on the alarm on the main form. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GAlarm-0.5.7.tar.gz Type: application/gzip Size: 70905 bytes Desc: not available URL: From adamnt42 at gmail.com Sun May 31 02:17:48 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 31 May 2020 09:47:48 +0930 Subject: [Gambas-user] No mouse event data?? In-Reply-To: References: Message-ID: <7b73acd3-3659-60fb-ea52-06ada0e6219c@gmail.com> On 31/5/20 7:14 am, Jussi Lahtinen wrote: > Is this bug in Gambas or has something changed? > Run the attached project, click on the alarm on the main form. > > > Jussi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > works fine here on 78a969ea (about 2 weeks ago) looks like something changed. b