From hans at gambas-buch.de Tue Jan 1 12:26:42 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 1 Jan 2019 12:26:42 +0100 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: References: Message-ID: Am 29.06.18 um 00:41 schrieb Beno?t Minisini: > Hi, > > Here is a few news about the new just-in-compiler... > > ... > > 6) I introduced a new keyword, UNSAFE. You use it with the FAST keyword. > > When a function is declared "FAST UNSAFE", then it is just-in-time > compiled, but all the safety checks are removed (null object, division > by zero, out of array bounds...). > > It allows you to speed up the code a little bit, when you are sure it > won't do illegal things. > > And if it does anyway, you will have memory corruption and/or > segmentation fault. > > Of course, the keyword can be used at the class level. > > Enjoy! > > -- > Beno?t Minisini Hello, short question: Does point 6 still apply? With kind regards Hans From g4mba5 at gmail.com Tue Jan 1 13:25:30 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 1 Jan 2019 13:25:30 +0100 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: References: Message-ID: <01eed182-9782-9066-9ad6-a016170ee689@gmail.com> Le 01/01/2019 ? 12:26, Hans Lehmann a ?crit?: > Am 29.06.18 um 00:41 schrieb Beno?t Minisini: >> Hi, >> >> Here is a few news about the new just-in-compiler... >> >> ... >> >> 6) I introduced a new keyword, UNSAFE. You use it with the FAST keyword. >> >> When a function is declared "FAST UNSAFE", then it is just-in-time >> compiled, but all the safety checks are removed (null object, division >> by zero, out of array bounds...). >> >> It allows you to speed up the code a little bit, when you are sure it >> won't do illegal things. >> >> And if it does anyway, you will have memory corruption and/or >> segmentation fault. >> >> Of course, the keyword can be used at the class level. >> >> Enjoy! >> >> -- >> Beno?t Minisini > > Hello, > > short question: Does point 6 still apply? > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Yes, why? -- Beno?t Minisini From hans at gambas-buch.de Tue Jan 1 13:38:35 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 1 Jan 2019 13:38:35 +0100 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: <01eed182-9782-9066-9ad6-a016170ee689@gmail.com> References: <01eed182-9782-9066-9ad6-a016170ee689@gmail.com> Message-ID: <586a3cc7-a220-0a4a-3d49-a3914af43cff@gambas-buch.de> Am 01.01.19 um 13:25 schrieb Beno?t Minisini: > Yes, why? ... very simple: Because I didn't read anything about it in the documentation on http://gambaswiki.org/wiki/doc/jit ... Or did I overlook it? We are currently revising the corresponding chapter `5.5 Just-In-Time-Compiler` in our Gambas online book. Before weeks go by: I wish you all a good start into the new year 2019. Above all: Stay healthy. Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Wed Jan 2 15:49:32 2019 From: kicking177 at gmail.com (KKing) Date: Wed, 2 Jan 2019 14:49:32 +0000 Subject: [Gambas-user] Debugging Gambas Message-ID: <6b222dc6-a06e-14c7-4ae1-ae6b1ca1796d@gmail.com> any suggestions (or links to) that will help with debugging. Background: I have rather large program that appears to be hanging or looping. If running via the IDE and I click pause (which I'm used to in VB days stopping on the next instruction if it was a loop issue) causes a dialog labeled "this program has stopped unexpectedly!" with content "user defined signal 1 (10)". The program is a Gambas 3.8.4 NCurses based. The problem appears somewhat random, it has occurred the first time through or after multiple iterations (where it is calling the same set of routines for different inputs). If I attempt to repeat the steps exactly (with same inputs) it will stop at different points (get further or sometimes not so far). I've attempted to run as just the compiled program (to rule out IDE specific issue) and it also fails and each time you run it it can be at a different point. What is the "Redirect Standard error output" option meant for and how to use? Is there are any further settings to enhance logging or tracing. Could it be memory related (which I assume not given it's failure sometimes near beginning) but how can you check for a memory related issue? K. From gambas.fr at gmail.com Wed Jan 2 19:29:11 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 2 Jan 2019 19:29:11 +0100 Subject: [Gambas-user] Debugging Gambas In-Reply-To: <6b222dc6-a06e-14c7-4ae1-ae6b1ca1796d@gmail.com> References: <6b222dc6-a06e-14c7-4ae1-ae6b1ca1796d@gmail.com> Message-ID: The Redirect Standard error output option is used to catch the error outside the output terminal. So when you use it the error result is showed in the gambas terminal ... if you start tour program in an external terminal. Le mer. 2 janv. 2019 ? 15:50, KKing a ?crit : > > any suggestions (or links to) that will help with debugging. > > Background: > > I have rather large program that appears to be hanging or looping. If > running via the IDE and I click pause (which I'm used to in VB days > stopping on the next instruction if it was a loop issue) causes a dialog > labeled "this program has stopped unexpectedly!" with content "user > defined signal 1 (10)". > > The program is a Gambas 3.8.4 NCurses based. > > The problem appears somewhat random, it has occurred the first time > through or after multiple iterations (where it is calling the same set > of routines for different inputs). If I attempt to repeat the steps > exactly (with same inputs) it will stop at different points (get further > or sometimes not so far). I've attempted to run as just the compiled > program (to rule out IDE specific issue) and it also fails and each time > you run it it can be at a different point. > > What is the "Redirect Standard error output" option meant for and how to > use? > > Is there are any further settings to enhance logging or tracing. > > Could it be memory related (which I assume not given it's failure > sometimes near beginning) but how can you check for a memory related issue? > > K. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -- Fabien Bodard From tercoide at hotmail.com Wed Jan 2 22:34:05 2019 From: tercoide at hotmail.com (Martin Cristia) Date: Wed, 2 Jan 2019 21:34:05 +0000 Subject: [Gambas-user] JIT Unsafe In-Reply-To: References: Message-ID: Intresting to see how it compares to my pure C functions. Thank you! Have a great year to all -- Saludos Ing. Martin P Cristia From charlie at cogier.com Thu Jan 3 17:34:57 2019 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 3 Jan 2019 16:34:57 +0000 Subject: [Gambas-user] Possible bug in Instr or gb.IgnoreCase in Gambas 3.12.0 Message-ID: Hi Beno?t, Have a look at this thread https://forum.gambas.one/viewtopic.php?f=4&t=648&p=1383#p1383 Charlie From g4mba5 at gmail.com Thu Jan 3 19:59:43 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Jan 2019 19:59:43 +0100 Subject: [Gambas-user] Possible bug in Instr or gb.IgnoreCase in Gambas 3.12.0 In-Reply-To: References: Message-ID: <0a3979b4-979d-c21c-d26d-8922960c176e@gmail.com> Le 03/01/2019 ? 17:34, Charlie Ogier a ?crit?: > Hi Beno?t, > > Have a look at this thread > https://forum.gambas.one/viewtopic.php?f=4&t=648&p=1383#p1383 > > Charlie > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- It has been fixed in the last commit. I will release a 3.12.1 version as soon as possible. Regards, -- Beno?t Minisini From tercoide at hotmail.com Thu Jan 3 23:27:55 2019 From: tercoide at hotmail.com (Martin Cristia) Date: Thu, 3 Jan 2019 22:27:55 +0000 Subject: [Gambas-user] JIT Bug In-Reply-To: References: Message-ID: ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Stack mismatch in JIT function (SP +3) ** ** _GridView_Rows._GetRowHeight.154: #6: Type mismatch: wanted &1, got &2 instead|Integer|Null ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user -- Saludos Ing. Martin P Cristia From buster6seven at gmail.com Fri Jan 4 11:54:47 2019 From: buster6seven at gmail.com (Shane) Date: Fri, 4 Jan 2019 21:54:47 +1100 Subject: [Gambas-user] Sdl2 fonts Message-ID: <6781ffed-c305-1ff0-193d-57c5fa8a9fa2@gmail.com> can someone show me how to change the font with SDL2 cheers Shane. From taboege at gmail.com Fri Jan 4 12:39:34 2019 From: taboege at gmail.com (Tobias Boege) Date: Fri, 4 Jan 2019 12:39:34 +0100 Subject: [Gambas-user] gb.web.feed not stable yet? In-Reply-To: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> References: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> Message-ID: <20190104113934.GA1267@highrise.localdomain> On Wed, 26 Dec 2018, T Lee Davidson wrote: > I am wondering why gb.web.feed is considered to be not yet stable. Are we waiting for anything specific before it is considered > stable (other than perhaps its developer to have more free time)? > There are two "milestones" for the component: (1) Every RSS date must be formatted according to (a minor variant of) RFC 822, which includes a timezone string. I think if you publish e.g. local news, setting a timezone independent of the local one is an important feature. I wanted to do this since the beginning [1] but it *may* break the existing interface [2]: About the incorporation of timezones in gb.web.feed (the last thing before I mark the component as "Unfinished but stable"), my plan is to replace the Date variables in the Rss* classes by an RssDate compound, consisting of a normalised Date and a Timezone string (or constant), with an "apply timezone" method probably. If you have a better idea, please let me know. I also remember issues with the date conversion, some of which got fixed, but others not [3,4]. As I said 20 months ago, when this is done, the component can be marked "Stable". (2) Being called gb.web.feed and not gb.web.rss, there should be an Atom feed generator and then a common set of classes on top of RSS and Atom which allow you to build a single object representation of your feed and export it to both formats. When that is done, the component is "Finished". Regards, Tobi [1] https://lists.gambas-basic.org/pipermail/user/2017-April/059815.html [2] https://lists.gambas-basic.org/pipermail/user/2017-April/059856.html [3] https://lists.gambas-basic.org/pipermail/devel/2017-July/006148.html [4] https://lists.gambas-basic.org/pipermail/user/2017-April/059915.html -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Fri Jan 4 12:49:22 2019 From: taboege at gmail.com (Tobias Boege) Date: Fri, 4 Jan 2019 12:49:22 +0100 Subject: [Gambas-user] Debugging Gambas In-Reply-To: <6b222dc6-a06e-14c7-4ae1-ae6b1ca1796d@gmail.com> References: <6b222dc6-a06e-14c7-4ae1-ae6b1ca1796d@gmail.com> Message-ID: <20190104114922.GB1267@highrise.localdomain> On Wed, 02 Jan 2019, KKing wrote: > any suggestions (or links to) that will help with debugging. > > Background: > > I have rather large program that appears to be hanging or looping. If > running via the IDE and I click pause (which I'm used to in VB days stopping > on the next instruction if it was a loop issue) causes a dialog labeled > "this program has stopped unexpectedly!" with content "user defined signal 1 > (10)". > IIRC the SIGUSR1 that causes the program to die is used by the Gambas debugger to stop the program. Normally it is caught by the interpreter when a program is debugged. This incompatibility could be related to you running the program inside a terminal -- I don't know. > The program is a Gambas 3.8.4 NCurses based. > > The problem appears somewhat random, it has occurred the first time through > or after multiple iterations (where it is calling the same set of routines > for different inputs). If I attempt to repeat the steps exactly (with same > inputs) it will stop at different points (get further or sometimes not so > far). I've attempted to run as just the compiled program (to rule out IDE > specific issue) and it also fails and each time you run it it can be at a > different point. > > What is the "Redirect Standard error output" option meant for and how to > use? > I would advise to enable this. You can then "print debug" your program with the Debug or Error statements. Those send strings to stderr, which is redirected as Fabien said. Otherwise these messages clutter up your ncurs-ified terminal which make them unreadable and can cause visual glitches. [ That is because ncurses, true to its name, reduces the amount of changes sent to the terminal as much as it can. It assumes that you do not print to the terminal but through ncurses functions, so that it has an accurate idea of what is on the screen. ] Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From tercoide at hotmail.com Fri Jan 4 15:25:35 2019 From: tercoide at hotmail.com (Martin Cristia) Date: Fri, 4 Jan 2019 14:25:35 +0000 Subject: [Gambas-user] More JIT errors In-Reply-To: References: Message-ID: Public Struct punto3d ??? x As Float ??? Y As Float ??? z As Float End Struct ?Dim centro As New Punto3d ?Dim p1 As New Punto3d radio = modAlgebra.Distancia(p1, centro) / 8? <---------Error Type mismatch, wanted Number, got Punto3D instead (in modAlgebra) Fast Public Function Distancia(p1 As Punto3d, p2 As Punto3d) As Float ??? 'devuelve la distancia entre los dos puntos ??? Return Sqr((p1.x - p2.x) ^ 2 + (p1.y - p2.y) ^ 2 + (p1.z - p2.z) ^ 2) End -- Saludos Ing. Martin P Cristia From t.lee.davidson at gmail.com Sat Jan 5 01:16:57 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 4 Jan 2019 19:16:57 -0500 Subject: [Gambas-user] gb.web.feed not stable yet? In-Reply-To: <20190104113934.GA1267@highrise.localdomain> References: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> <20190104113934.GA1267@highrise.localdomain> Message-ID: On 1/4/19 6:39 AM, Tobias Boege wrote: > On Wed, 26 Dec 2018, T Lee Davidson wrote: >> I am wondering why gb.web.feed is considered to be not yet stable. Are we waiting for anything specific before it is considered >> stable (other than perhaps its developer to have more free time)? >> Thank you, Tobi, for that refresher with links to the relevant conversations all in one place. > There are two "milestones" for the component: > > (1) Every RSS date must be formatted according to (a minor variant of) > RFC 822, which includes a timezone string. I think if you publish > e.g. local news, setting a timezone independent of the local one > is an important feature. I wanted to do this since the beginning [1] > but it *may* break the existing interface [2]: > > About the incorporation of timezones in gb.web.feed (the last > thing before I mark the component as "Unfinished but stable"), > my plan is to replace the Date variables in the Rss* classes > by an RssDate compound, consisting of a normalised Date and a > Timezone string (or constant), with an "apply timezone" method > probably. If you have a better idea, please let me know. I may be missing a particular need in regards to this, but I would just store dates as either RFC822 strings or rely on the internal UTC representation and convert on retrieval/output (ie. a _get) as needed. > > I also remember issues with the date conversion, some of which got > fixed, but others not [3,4]. As I said 20 months ago, when this > is done, the component can be marked "Stable". I find only one issue (see below *) with the questions you raised at your ref #3. Therefore, I am unsure exactly what needs to be fixed. And, as much as I try, I cannot understand the need to separate the timezone (ref #4). It is available in both a RFC822 date string and in the internal date representation as UTC. In ToRFC822(), a pre-correction with, "System.TimeZone / 86400" is necessary due to the localization adjustment that the subsequent Format() will apply. If this correction were not made prior to passing the date-time's component value to Format, the resulting timezone would be off by -(System.TimeZone / 86400). Regarding FromRFC822() _as I understand it_, since dates are stored internally as UTC [0] and the parameters for the Date() function assume local time [1], "dDate -= Frac(Date(Now))" is necessary to adjust the localized dDate to a correct UTC representation. Then, "dDate += GetRFC822Zone(aDate[6])" adjusts the (now correct UTC) date for the requested timezone (summation is used due to fZone being defined as the appropriate positive or negative offset). * However, there does seem to be an issue with FromRFC822(): [Code] Public Sub Main() Dim sDate As String = "Sun, 21 Apr 2019 05:00:00 GMT" Dim dDate As Date dDate = Date.FromRFC822(sDate) Print CFloat(dDate) Print Frac(dDate) * 24 Print Date.ToRFC822(dDate) Print Date.ToRFC822(dDate, "EST") Print Date.ToRFC822(dDate, "+0200") ' Get timezone From RFC8222 Date string Print Split(sDate, " ").Last End [/Code] [Result] 2490699.20833333 5.00000000372529 Sun, 21 Apr 2019 05:00:00 GMT Sun, 21 Apr 2019 00:00:00 EST Sun, 21 Apr 2019 07:00:00 +0200 GMT [/Result : Correct] With `Dim sDate As String = "Sun, 21 Apr 2019 00:00:00 EST"` [Result] 2490698.79166667 18.9999999962747 Sat, 20 Apr 2019 19:00:00 GMT Sat, 20 Apr 2019 14:00:00 EST Sat, 20 Apr 2019 21:00:00 +0200 EST [/Result : Incorrect] Perhaps my understanding is quite faulty. [snip] > Regards, > Tobi > > [1] https://lists.gambas-basic.org/pipermail/user/2017-April/059815.html > [2] https://lists.gambas-basic.org/pipermail/user/2017-April/059856.html > [3] https://lists.gambas-basic.org/pipermail/devel/2017-July/006148.html > [4] https://lists.gambas-basic.org/pipermail/user/2017-April/059915.html > ___ Lee [0] http://gambaswiki.org/wiki/lang/type/date [1] http://gambaswiki.org/wiki/lang/date From t.lee.davidson at gmail.com Sat Jan 5 02:39:40 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 4 Jan 2019 20:39:40 -0500 Subject: [Gambas-user] gb.web.feed not stable yet? In-Reply-To: References: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> <20190104113934.GA1267@highrise.localdomain> Message-ID: <9522b6f9-46ea-376f-515c-8cf3595adb7d@gmail.com> On 1/4/19 7:16 PM, T Lee Davidson wrote: [snip] > > * However, there does seem to be an issue with FromRFC822(): > > [Code] > Public Sub Main() > > Dim sDate As String = "Sun, 21 Apr 2019 05:00:00 GMT" > Dim dDate As Date > > dDate = Date.FromRFC822(sDate) > Print CFloat(dDate) > Print Frac(dDate) * 24 > Print Date.ToRFC822(dDate) > Print Date.ToRFC822(dDate, "EST") > Print Date.ToRFC822(dDate, "+0200") > ' Get timezone From RFC8222 Date string > Print Split(sDate, " ").Last > > End > [/Code] > > [Result] > 2490699.20833333 > 5.00000000372529 > Sun, 21 Apr 2019 05:00:00 GMT > Sun, 21 Apr 2019 00:00:00 EST > Sun, 21 Apr 2019 07:00:00 +0200 > GMT > [/Result : Correct] > > With `Dim sDate As String = "Sun, 21 Apr 2019 00:00:00 EST"` > [Result] > 2490698.79166667 > 18.9999999962747 > Sat, 20 Apr 2019 19:00:00 GMT > Sat, 20 Apr 2019 14:00:00 EST > Sat, 20 Apr 2019 21:00:00 +0200 > EST > [/Result : Incorrect] > > Perhaps my understanding is quite faulty. > The following in FromRFC822() seems to work. [Code] dDate -= (System.TimeZone / 86400 + GetRFC822Zone(aDate[6])) ' dDate += GetRFC822Zone(aDate[6]) Return dDate [/Code] I may, though, have the order of operands and the operator reversed. Note: As far as I can tell System.TimeZone / 86400 is roughly equivalent to Frac(Date(Now). From buster6seven at gmail.com Sat Jan 5 03:54:42 2019 From: buster6seven at gmail.com (Shane) Date: Sat, 5 Jan 2019 13:54:42 +1100 Subject: [Gambas-user] SDL2 Draw Message-ID: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> Hi I found a mistake in the doc's comp ?? gb.sdl2 ?? draw ?? image Draw.Image (gb.sdl2) Static Sub *Image* ( _Image_ As Image , _X_ As Integer, _Y_ As Integer *[* , _Width_ As Integer, _Height_ As Integer, _Source_ As Rect, _Opacity_ As Float, _Angle_ As Float ) Paint an image on the current drawing device. * _Image_ : the image to paint. * _X_, _Y_ : the top-left position where the image will be drawn. * _Width_, _Height_ : the target dimensions. If it is different from the image dimensions, the image is drawn stretched. * _Source_ : the sub-part of the image to draw, as a rectangle. If |NULL| or not specified, the entire image is drawn. * _Opacity_ : the opacity applied to the drawn image. _By default it is __|1|__(100%)._ _/This is not true it is 0 for 100%/_ * _Angle_ : the rotation angle applied to the image. The image is rotated around is center, and by default the image is not rotated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sat Jan 5 05:15:35 2019 From: buster6seven at gmail.com (Shane) Date: Sat, 5 Jan 2019 15:15:35 +1100 Subject: [Gambas-user] sliderbox bug Message-ID: I think there is a bug in the slider box control if you click the slider bar multipliable times quickly the whole program stops responding and gbx uses 100% cpu [System] Gambas=3.12 OperatingSystem=Linux Kernel=4.15.0-43-generic Architecture=x86_64 Distribution=Linux Mint 18.2 Sonya Desktop=MATE Theme=Gtk Language=en_AU.UTF-8 Memory=7894M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dsX8NyTGjK,guid=25fdd578b912c4659cdc74395c2af86b DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_LANG=en_AU GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=en_AU.UTF-8 LANGUAGE=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/18081,unix/:/tmp/.ICE-unix/18081 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=18216 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/ 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=c3 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From t.lee.davidson at gmail.com Sat Jan 5 06:41:42 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 5 Jan 2019 00:41:42 -0500 Subject: [Gambas-user] sliderbox bug In-Reply-To: References: Message-ID: Well that's obviously the problem. The slider bar can't handle being clicked "multipliable" times. ;-) Joking aside, I cannot confirm the issue. With no event handler or an empty event handler, clicking the slider many times quickly causes no problem. It may be a GTK thing, though, as I use Qt5. Or, it may be your event handler code. ___ Lee On 1/4/19 11:15 PM, Shane wrote: > I think there is a bug in the slider box control > > if you click the slider bar multipliable times quickly the whole program stops responding and gbx uses 100% cpu > > > > [System] [snip] From t.lee.davidson at gmail.com Sat Jan 5 07:10:54 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 5 Jan 2019 01:10:54 -0500 Subject: [Gambas-user] SDL2 Draw In-Reply-To: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> References: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> Message-ID: <1c1dacd6-52b8-6fc3-75ce-a3dc1da23dbd@gmail.com> On 1/4/19 9:54 PM, Shane wrote: > > Hi I found a mistake in the doc's > > > [snip] > > _Opacity_ : the opacity applied to the drawn image. _By default it is __|1|__(100%)._ _/This is not true it is 0 for 100%/_ And, the default appears to actually be 0. Perhaps the parameter should have been named, "transparency". (Ref: http://gambaswiki.org/wiki/comp/gb.sdl2/draw/image) ___ Lee From g4mba5 at gmail.com Sat Jan 5 14:09:47 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 Jan 2019 14:09:47 +0100 Subject: [Gambas-user] sliderbox bug In-Reply-To: References: Message-ID: Le 05/01/2019 ? 05:15, Shane a ?crit?: > I think there is a bug in the slider box control > > if you click the slider bar multipliable times quickly the whole program > stops responding and gbx uses 100% cpu > > [...] Please provide a little project that shows the bug! Thanks. -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 5 14:12:08 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 Jan 2019 14:12:08 +0100 Subject: [Gambas-user] SDL2 Draw In-Reply-To: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> References: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> Message-ID: <79baa51e-c244-257d-e98b-9df74467e090@gmail.com> Le 05/01/2019 ? 03:54, Shane a ?crit?: > > Hi I found a mistake in the doc's > What are you talking about? If you omit the opacity argument, you will have an opaque drawing, i.e. an opacity of 1.0. -- Beno?t Minisini From taboege at gmail.com Sat Jan 5 17:41:37 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 5 Jan 2019 17:41:37 +0100 Subject: [Gambas-user] gb.web.feed not stable yet? In-Reply-To: References: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> <20190104113934.GA1267@highrise.localdomain> Message-ID: <20190105164137.GD1267@highrise.localdomain> On Fri, 04 Jan 2019, T Lee Davidson wrote: > > There are two "milestones" for the component: > > > > (1) Every RSS date must be formatted according to (a minor variant of) > > RFC 822, which includes a timezone string. I think if you publish > > e.g. local news, setting a timezone independent of the local one > > is an important feature. I wanted to do this since the beginning [1] > > but it *may* break the existing interface [2]: > > > > About the incorporation of timezones in gb.web.feed (the last > > thing before I mark the component as "Unfinished but stable"), > > my plan is to replace the Date variables in the Rss* classes > > by an RssDate compound, consisting of a normalised Date and a > > Timezone string (or constant), with an "apply timezone" method > > probably. If you have a better idea, please let me know. > > I may be missing a particular need in regards to this, but I would just store dates as either RFC822 strings or rely on the > internal UTC representation and convert on retrieval/output (ie. a _get) as needed. > > > > > I also remember issues with the date conversion, some of which got > > fixed, but others not [3,4]. As I said 20 months ago, when this > > is done, the component can be marked "Stable". > > I find only one issue (see below *) with the questions you raised at your ref #3. Therefore, I am unsure exactly what needs to > be fixed. And, as much as I try, I cannot understand the need to separate the timezone (ref #4). It is available in both a > RFC822 date string and in the internal date representation as UTC. > The need arises like this: when you read an RSS document, you likely want to get a Date, not a string describing the date. That's how we deal with dates in Gambas. But then, "time is absolute in Gambas", as often repeated by Beno?t, i.e. a Date object points to a point in time, it has no need for a timezone component. The timezone must be dealt with in input/output, as you said. Now imagine I want to run an RSS-based newspaper "Magdeburg Times" for the German city I live in. My server happens to be located in Australia with an Australian locale and timezone. I want the news items to be PubDate'd according to what readers expect (Europe/Berlin), but e.g. the LastBuildDate should be in the local timezone of the server because that's an event actually happening on the server. If that doesn't convince you, consider a feed aggregator service, which reads multiple feeds online (like all Gambas-related forums, blogs and the gitlab repo feed) and provides them as a single feed ("Gambas Today"). All these feeds can have different timezones and the current implementation of gb.web.feed would just forget all of them. The dates displayed in the aggregated feed would point to the same *points in time* but they would all be relative to the timezone of the machine doing the aggregation. My point is: timezones bear meaning and gb.web.feed should be able to preserve them. Thus I want the ability to *independently* set the timezone of every single Date field in the entire feed on output. [ Note that input is already covered by Gambas: it can read a timezone'd date and create a matching (absolute) Date object that we all like to work with, but not so much like to display, as witnessed by this mailing list :-) ] Yes, I know that making every Date into a (Date, TimeZone) compound may be too intrusive for something that people usually don't care about. But what else can I do? It would turn code like $hRssItem.PubDate = Now into $hRssItem.PubDate.Date = Now ' and optionally $hRssItem.PubDate.Zone = "+0100" ' or: $hRssItem.Pub.Date = Now $hRssItem.Pub.Zone = "+0100" If that's too ugly, I could also leave PubDate alone and the compound becomes a second property PubDateTime(?) which takes precedence over the sole PubDate field if it is set or is synchronized with it. That way you could use PubDate if you don't care about timezones but if you read an RSS document, the parser will always fill both fields, so an aggregator would preserve the timezone out-of-the-box. Since you sound like a potential user, what would you like to use? > In ToRFC822(), a pre-correction with, "System.TimeZone / 86400" is necessary due to the localization adjustment that the > subsequent Format() will apply. If this correction were not made prior to passing the date-time's component value to Format, the > resulting timezone would be off by -(System.TimeZone / 86400). > > Regarding FromRFC822() _as I understand it_, since dates are stored internally as UTC [0] and the parameters for the Date() > function assume local time [1], "dDate -= Frac(Date(Now))" is necessary to adjust the localized dDate to a correct UTC > representation. Then, "dDate += GetRFC822Zone(aDate[6])" adjusts the (now correct UTC) date for the requested timezone > (summation is used due to fZone being defined as the appropriate positive or negative offset). > While all of that sounds correct ... > * However, there does seem to be an issue with FromRFC822(): > > [Code] > Public Sub Main() > > Dim sDate As String = "Sun, 21 Apr 2019 05:00:00 GMT" > Dim dDate As Date > > dDate = Date.FromRFC822(sDate) > Print CFloat(dDate) > Print Frac(dDate) * 24 > Print Date.ToRFC822(dDate) > Print Date.ToRFC822(dDate, "EST") > Print Date.ToRFC822(dDate, "+0200") > ' Get timezone From RFC8222 Date string > Print Split(sDate, " ").Last > > End > [/Code] > > [Result] > 2490699.20833333 > 5.00000000372529 > Sun, 21 Apr 2019 05:00:00 GMT > Sun, 21 Apr 2019 00:00:00 EST > Sun, 21 Apr 2019 07:00:00 +0200 > GMT > [/Result : Correct] > > With `Dim sDate As String = "Sun, 21 Apr 2019 00:00:00 EST"` > [Result] > 2490698.79166667 > 18.9999999962747 > Sat, 20 Apr 2019 19:00:00 GMT > Sat, 20 Apr 2019 14:00:00 EST > Sat, 20 Apr 2019 21:00:00 +0200 > EST > [/Result : Incorrect] > > Perhaps my understanding is quite faulty. > ... my understanding is the same. In short: Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0100"), "+0100") > Sat, 20 Apr 2019 07:00:00 +0100 seems to be buggy (look not only at the time, but also at the date!). The bug is in this line right after a local Date object is created from the parsed items: dDate -= Frac(Date(Now)) After digging through Frac and Date documentation, I guess this is supposed to subtract the local timezone. But it is wrong. A Date has a Float represen- tation which is automatically used when you perform direct arithmetic on it, or when you call Frac. This float has the number of days since the epoch in the date as integral part and the fraction milliseconds of the time component of the date divided by 86400000 (all milliseconds in a non-leap-second day) as the fractional part. Date(Now) (or really just the built-in Date function) returns the current date with zeroed out time -- zeroed out *local* time. The internal float will still have the timezone attached to it in some way. Let's see: Print Frac(Date) > 0.95833333348855 This is in +0100. My timezone is what is missing in this number to reach an integral 1.0, which makes sense, I guess, since my timezone must be subtracted to yield UTC. 0.95833 is the time of today midnight a.m. in +0100 when seen in UTC. The crucial point is that Frac(Date) is a *fraction modulo 1.0*. This explains why your tests (I expect you are in EST?) weren't as drastically broken as mine (almost always losing a day): - The Frac(Date) on a system in the EST (-0500) timezone is a small positive number which is what must be subtracted to annihilate the local timezone. - The Frac(Date) on a system in the CET (+0100) timezone is a large number below 1.0 which represents a *negative* fraction. You don't want to subtract 0.95833 (almost always losing a day), but you want to subtract "0.95833 modulo 1.0", which should actually be adding 0.04167 in this case. I pushed some fixes, including this one, to gb.util in 3a16b32ad. The component now does the following, which feels correct to me: Print CStr(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0000")) > 04/21/2019 05:00:00 Because Print(CStr) should display the date in UTC and since the Date was given in UTC, the time should not change. Print Format$(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0000")) > 04/21/2019 06:00:00 5 o'clock in UTC is displayed in my local timezone +0100. Print Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0100") > 04/21/2019 05:00:00 5 o'clock in my local timezone display as you see it in my local timezone. Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0000"), "+0000") > Sun, 21 Apr 2019 05:00:00 +0000 Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0100"), "+0100") > Sun, 21 Apr 2019 05:00:00 +0100 Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0800"), "+0800") > Sun, 21 Apr 2019 05:00:00 +0800 If source and destination timezone are the same, the string shouldn't change. Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0000"), "+0100") > Sun, 21 Apr 2019 06:00:00 +0100 Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0000"), "+0800") > Sun, 21 Apr 2019 13:00:00 +0800 You gain hours when you convert from UTC to a "+" timezone (remember that Sydney celebrates New Year's early). Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0800"), "+0000") > Sat, 20 Apr 2019 21:00:00 +0000 Print Date.ToRFC822(Date.FromRFC822("Sun, 21 Apr 2019 05:00:00 +0800"), "+0100") > Sat, 20 Apr 2019 22:00:00 +0100 Converting from a high "+" timezone to a lower one will lose you hours (again, if you live in Germany, you'll watch Sydney New Year's fireworks on TV in the afternoon of the 31st). Now that this is hopefully out of the way (can you check if you read this, Beno?t?), let me know about your vote on the desired interface for timezones in gb.web.feed and I can mark the component stable today (or tomorrow, depending on your timezone). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Sat Jan 5 17:59:08 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 5 Jan 2019 11:59:08 -0500 Subject: [Gambas-user] SDL2 Draw In-Reply-To: <79baa51e-c244-257d-e98b-9df74467e090@gmail.com> References: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> <79baa51e-c244-257d-e98b-9df74467e090@gmail.com> Message-ID: <51d0feee-e268-bd6b-46cf-cb8bf8ccac59@gmail.com> On 1/5/19 8:12 AM, Beno?t Minisini wrote: > Le 05/01/2019 ? 03:54, Shane a ?crit?: >> >> Hi I found a mistake in the doc's >> > > What are you talking about? If you omit the opacity argument, you will have an opaque drawing, i.e. an opacity of 1.0. > But if you specify an opacity of 1 (eg. "Draw.Image(img, 0, 0,,,, 1)"), the image is invisible. ___ Lee From g4mba5 at gmail.com Sat Jan 5 18:04:48 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 Jan 2019 18:04:48 +0100 Subject: [Gambas-user] SDL2 Draw In-Reply-To: <51d0feee-e268-bd6b-46cf-cb8bf8ccac59@gmail.com> References: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> <79baa51e-c244-257d-e98b-9df74467e090@gmail.com> <51d0feee-e268-bd6b-46cf-cb8bf8ccac59@gmail.com> Message-ID: <82fd0d5a-4105-4add-e0a4-4d8664a9e5b3@gmail.com> Le 05/01/2019 ? 17:59, T Lee Davidson a ?crit?: > On 1/5/19 8:12 AM, Beno?t Minisini wrote: >> Le 05/01/2019 ? 03:54, Shane a ?crit?: >>> >>> Hi I found a mistake in the doc's >>> >> >> What are you talking about? If you omit the opacity argument, you will have an opaque drawing, i.e. an opacity of 1.0. >> > > But if you specify an opacity of 1 (eg. "Draw.Image(img, 0, 0,,,, 1)"), the image is invisible. > > > ___ > Lee > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > OK, I understand now. I will fix that. -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 5 18:14:36 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 Jan 2019 18:14:36 +0100 Subject: [Gambas-user] SDL2 Draw In-Reply-To: <82fd0d5a-4105-4add-e0a4-4d8664a9e5b3@gmail.com> References: <588dc986-3576-4430-32b4-cbdd0c73f923@gmail.com> <79baa51e-c244-257d-e98b-9df74467e090@gmail.com> <51d0feee-e268-bd6b-46cf-cb8bf8ccac59@gmail.com> <82fd0d5a-4105-4add-e0a4-4d8664a9e5b3@gmail.com> Message-ID: Le 05/01/2019 ? 18:04, Beno?t Minisini a ?crit?: > Le 05/01/2019 ? 17:59, T Lee Davidson a ?crit?: >> On 1/5/19 8:12 AM, Beno?t Minisini wrote: >>> Le 05/01/2019 ? 03:54, Shane a ?crit?: >>>> >>>> Hi I found a mistake in the doc's >>>> >>> >>> What are you talking about? If you omit the opacity argument, you >>> will have an opaque drawing, i.e. an opacity of 1.0. >>> >> >> But if you specify an opacity of 1 (eg. "Draw.Image(img, 0, 0,,,, >> 1)"), the image is invisible. >> >> >> ___ >> Lee >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > OK, I understand now. I will fix that. > Done in commit https://gitlab.com/gambas/gambas/commit/d51800f8585d30c126db82bb086f2ab81c613951. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 5 18:43:35 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 5 Jan 2019 18:43:35 +0100 Subject: [Gambas-user] Release of Gambas 3.12.1 Message-ID: Hi, I have just tagged the 3.12.1 version. Here is the source archive link for those who want to test: https://gitlab.com/gambas/gambas/-/archive/3.12.1/gambas-3.12.1.tar.bz2 It includes all the last-minute fixes made since the 3.12.0 release. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Sat Jan 5 19:37:39 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 5 Jan 2019 13:37:39 -0500 Subject: [Gambas-user] gb.web.feed not stable yet? In-Reply-To: <20190105164137.GD1267@highrise.localdomain> References: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> <20190104113934.GA1267@highrise.localdomain> <20190105164137.GD1267@highrise.localdomain> Message-ID: <0c3c7aef-0fb7-febc-a24f-da8bd1c82616@gmail.com> On 1/5/19 11:41 AM, Tobias Boege wrote: [snip] > > The need arises like this: when you read an RSS document, you likely want > to get a Date, not a string describing the date. That's how we deal with > dates in Gambas. But then, "time is absolute in Gambas", as often repeated > by Beno?t, i.e. a Date object points to a point in time, it has no need for > a timezone component. The timezone must be dealt with in input/output, > as you said. Now imagine I want to run an RSS-based newspaper "Magdeburg Times" > for the German city I live in. My server happens to be located in Australia > with an Australian locale and timezone. I want the news items to be PubDate'd > according to what readers expect (Europe/Berlin), but e.g. the LastBuildDate > should be in the local timezone of the server because that's an event actually > happening on the server. Apparently, I'm not understanding the scenario of your specific use example. If, say, subscribers of the "Magdeburg Times" will be reading the feed from the publisher in Australia, it is up to the individual subscriber's feed reader to correctly interpret, act upon, and/or display the appropriate RFC822 date fields LastBuildDate / Pubdate. Is it not? > If that doesn't convince you, consider a feed aggregator service, which > reads multiple feeds online (like all Gambas-related forums, blogs and the > gitlab repo feed) and provides them as a single feed ("Gambas Today"). > All these feeds can have different timezones and the current implementation > of gb.web.feed would just forget all of them. The dates displayed in the > aggregated feed would point to the same *points in time* but they would > all be relative to the timezone of the machine doing the aggregation. Yes. And, again, I must be missing something because I simply don't see how is that a problem. Shouldn't the individual readers convert the RFC822 date-time into a localized representation anyway? (Note: I am not a RSS expert!) > My point is: timezones bear meaning Yes. But they are all relative to UTC; and bear meaning only in the local timezone, IMO. > and gb.web.feed should be able to > preserve them. Thus I want the ability to *independently* set the timezone > of every single Date field in the entire feed on output. The only scenario in which I can imagine the need/desire for this would be in the case of a feed aggregator when the operator wished to 're-feed' the items with PubDate timezone strings as originally published. In that case, I would simply store the PubDate as a string. Thanks to FromRFC822() and ToRFC822(), conversions are painless. > Yes, I know that making every Date into a (Date, TimeZone) compound > may be too intrusive for something that people usually don't care about. > But what else can I do? It would turn code like > > $hRssItem.PubDate = Now > > into > > $hRssItem.PubDate.Date = Now ' and optionally > $hRssItem.PubDate.Zone = "+0100" ' or: > $hRssItem.Pub.Date = Now > $hRssItem.Pub.Zone = "+0100" > [snip] > > Since you sound like a potential user, what would you like to use? My focus on use would be as a feed aggregator. And, no, I don't give a rat's a$$ about timezones as long as the time, in UTC, is correctly preserved. But, if I had to choose, I would have to go with PubDate.Date and PubDate.Zone as long as it is understood that PubDate.Date is a UTC representation and PubDate.Zone is either the original publication tz (in the case of an aggregator) or the desired publication tz (in the case of a feed generator). And, since you have done the work on the component and generously shared it with the community, I'll be happy with whatever you decide :-) > I pushed some fixes, including this one, to gb.util in 3a16b32ad. > The component now does the following, which feels correct to me: The fixes you pushed appear to do essentially the same as I suggested here: https://lists.gambas-basic.org/pipermail/user/2019-January/066131.html And, FromRFC8222() appears to be working correctly. ___ Lee From jussi.lahtinen at gmail.com Sat Jan 5 20:52:13 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 5 Jan 2019 21:52:13 +0200 Subject: [Gambas-user] JIT crash Message-ID: Benoit, I really recommend to run the GambasTester before releasing new version. I know it's ugly as hell, but it really gets the work done. My compiling script runs it always after successful compiling, but I'm not always available to compile/test the newest version. See the attachment. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.15.tar.gz Type: application/gzip Size: 27432 bytes Desc: not available URL: From taboege at gmail.com Sat Jan 5 22:03:58 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 5 Jan 2019 22:03:58 +0100 Subject: [Gambas-user] gb.web.feed not stable yet? In-Reply-To: <0c3c7aef-0fb7-febc-a24f-da8bd1c82616@gmail.com> References: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> <20190104113934.GA1267@highrise.localdomain> <20190105164137.GD1267@highrise.localdomain> <0c3c7aef-0fb7-febc-a24f-da8bd1c82616@gmail.com> Message-ID: <20190105210358.GE1267@highrise.localdomain> On Sat, 05 Jan 2019, T Lee Davidson wrote: > On 1/5/19 11:41 AM, Tobias Boege wrote: > [snip] > > > > The need arises like this: when you read an RSS document, you likely want > > to get a Date, not a string describing the date. That's how we deal with > > dates in Gambas. But then, "time is absolute in Gambas", as often repeated > > by Beno?t, i.e. a Date object points to a point in time, it has no need for > > a timezone component. The timezone must be dealt with in input/output, > > as you said. Now imagine I want to run an RSS-based newspaper "Magdeburg Times" > > for the German city I live in. My server happens to be located in Australia > > with an Australian locale and timezone. I want the news items to be PubDate'd > > according to what readers expect (Europe/Berlin), but e.g. the LastBuildDate > > should be in the local timezone of the server because that's an event actually > > happening on the server. > > Apparently, I'm not understanding the scenario of your specific use example. If, say, subscribers of the "Magdeburg Times" will > be reading the feed from the publisher in Australia, it is up to the individual subscriber's feed reader to correctly interpret, > act upon, and/or display the appropriate RFC822 date fields LastBuildDate / Pubdate. Is it not? > Good point. My feed reader indeed does that (it even stores dates as integers in its database -- although I don't see how it remembers which articles I read during daylight-saving time because some timestamps have +0200). Then, my final appeal is this: the RSS specification requires dates to be strings *with* a timezone component instead of a UNIX timestamp or a UTC date. What can be controlled in a file format should be controllable by an implementation of that format. > > Yes, I know that making every Date into a (Date, TimeZone) compound > > may be too intrusive for something that people usually don't care about. > > But what else can I do? It would turn code like > > > > $hRssItem.PubDate = Now > > > > into > > > > $hRssItem.PubDate.Date = Now ' and optionally > > $hRssItem.PubDate.Zone = "+0100" ' or: > > $hRssItem.Pub.Date = Now > > $hRssItem.Pub.Zone = "+0100" > > > [snip] > > > > Since you sound like a potential user, what would you like to use? > > My focus on use would be as a feed aggregator. And, no, I don't give a rat's a$$ about timezones as long as the time, in UTC, is > correctly preserved. > > But, if I had to choose, I would have to go with PubDate.Date and PubDate.Zone as long as it is understood that PubDate.Date is > a UTC representation and PubDate.Zone is either the original publication tz (in the case of an aggregator) or the desired > publication tz (in the case of a feed generator). > > And, since you have done the work on the component and generously shared it with the community, I'll be happy with whatever you > decide :-) > It's good that you wrote the first and third paragraph because I prefer the shorter Pub.Date and LastBuild.Date ways (it's good that all date-like fields end in "Date" in RSS), which are now in master. The component is marked as "Stable" as well. If you don't care about timezones, all you have to do is, *almost* like before but with an additional dot: $hRssItem.Pub.Date = Now When reading an RSS document, you get the date which points to the correct point in time via $hRssItem.Pub.Date and the timezone it was originally serialised with in $hRssItem.Pub.Zone, which will be used again when you write an XML document from it to create the same string you read. If the date is not given, it defaults to the moment the date is needed (i.e. the XML document is written) and the timezone is the local one by default. In short: if you don't want to set special timezones, you never have to write "Zone". And if you run older code with the now-stable interface one gets an error like "symbol PubDate not found" which hopefully inspires to look into the documentation, which I updated in the sources. Hopefully it makes its way into the online docs shortly. I don't remember if someone has to flip a switch or if there is a cronjob or, meanwhile, git hook which does it. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Sun Jan 6 02:19:48 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 5 Jan 2019 20:19:48 -0500 Subject: [Gambas-user] gb.web.feed not stable yet? In-Reply-To: <20190105210358.GE1267@highrise.localdomain> References: <62244d2c-2cb8-5e26-9570-eb0815d7a17d@gmail.com> <20190104113934.GA1267@highrise.localdomain> <20190105164137.GD1267@highrise.localdomain> <0c3c7aef-0fb7-febc-a24f-da8bd1c82616@gmail.com> <20190105210358.GE1267@highrise.localdomain> Message-ID: On 1/5/19 4:03 PM, Tobias Boege wrote: > The component is marked as > "Stable" as well. > > If you don't care about timezones, all you have to do is, *almost* like before > but with an additional dot: > > $hRssItem.Pub.Date = Now > > When reading an RSS document, you get the date which points to the correct > point in time via $hRssItem.Pub.Date and the timezone it was originally > serialised with in $hRssItem.Pub.Zone, which will be used again when you > write an XML document from it to create the same string you read. If the > date is not given, it defaults to the moment the date is needed (i.e. the > XML document is written) and the timezone is the local one by default. > > In short: if you don't want to set special timezones, you never have to > write "Zone". And if you run older code with the now-stable interface one > gets an error like "symbol PubDate not found" which hopefully inspires to > look into the documentation, which I updated in the sources. Hopefully it > makes its way into the online docs shortly. I don't remember if someone > has to flip a switch or if there is a cronjob or, meanwhile, git hook > which does it. > > Regards, > Tobi That sounds quite sensible, Tobi, and very workable. Thank you! ___ Lee From buster6seven at gmail.com Sun Jan 6 04:04:03 2019 From: buster6seven at gmail.com (Shane) Date: Sun, 6 Jan 2019 14:04:03 +1100 Subject: [Gambas-user] Sdl Font Message-ID: On 04/01/2019 10:54, Shane wrote: can someone show me how to change the font with SDL2 cheers Shane. anyone ?? how do I load a font From buster6seven at gmail.com Sun Jan 6 04:10:12 2019 From: buster6seven at gmail.com (Shane) Date: Sun, 6 Jan 2019 14:10:12 +1100 Subject: [Gambas-user] Sdl Font In-Reply-To: References: Message-ID: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> I see in sdl 1 that fonts are creatable but in SDL2 there not is this correct On 6/1/19 2:04 pm, Shane wrote: > On 04/01/2019 10:54, Shane wrote: > can someone show me how to change the font with SDL2 > > cheers > > Shane. > > anyone ?? > > how do I load a font > From t.lee.davidson at gmail.com Sun Jan 6 17:51:29 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 6 Jan 2019 11:51:29 -0500 Subject: [Gambas-user] Sdl Font In-Reply-To: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> References: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> Message-ID: <06125d49-831d-702c-5083-b79b5986b4d2@gmail.com> Actually, in SDL (1), fonts are not creatable. It is instances of the Font class that are creatable. In SDL2, from my cursory scan of the code, instances of the Font class are not creatable because an instance is created statically. This means you do not need to create an instance in order to use Font. I haven't tested it, but it seems to me that to change the font, you simply load a font from disk, ie: Font.Load( Path As String [ , Name As String ] ) "Load a TTF font from the disk." For example, I have a Philing true-type font file in a "fonts" folder. To load it, I would use: Font.Load(User.Home &/ "fonts/philing.ttf", "Philing") ___ Lee On 1/5/19 10:10 PM, Shane wrote: > I see in sdl 1 that fonts are creatable but in SDL2 there not is this correct > > > On 6/1/19 2:04 pm, Shane wrote: >> On 04/01/2019 10:54, Shane wrote: >> can someone show me how to change the font with SDL2 >> >> cheers >> >> Shane. >> >> anyone ?? >> >> how do I load a font >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From t.lee.davidson at gmail.com Mon Jan 7 00:57:19 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 6 Jan 2019 18:57:19 -0500 Subject: [Gambas-user] Sdl Font In-Reply-To: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> References: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> Message-ID: <2697957d-8e0a-80b3-580a-2d7a63a54ed6@gmail.com> According to the wiki, Font acts like a read-only static array. And, according to [0], we should be able to use ... [Code] Dim hFont As Font hFont = Font[Null] [/Code] ... to have the default font returned. But, when I do that (even with the name of a TTF font I've loaded), I get, "Incorrect font size". The Font methods aren't exposed unless a variable is declared as type Font. But then if I try, "Print hFont.Name", I get, "Null object". Honestly, I don't know how Font is supposed to be used. ___ Lee [0] http://gambaswiki.org/wiki/comp/gb.sdl2/font/_get P.S. Try to ensure you "Reply to List". On 1/5/19 10:10 PM, Shane wrote: > yes that is how i have tried to use it but the font doesn't change so it seems there might be a bug can someone else give this a try > > cheers Shane From gambas.fr at gmail.com Mon Jan 7 07:29:30 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 7 Jan 2019 07:29:30 +0100 Subject: [Gambas-user] Sdl Font In-Reply-To: <2697957d-8e0a-80b3-580a-2d7a63a54ed6@gmail.com> References: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> <2697957d-8e0a-80b3-580a-2d7a63a54ed6@gmail.com> Message-ID: Font.Load (fontpath, "MyFont") Draw.Font = Font!MyFont Print Draw.Font.Size ... if I understand well Font act like Picture Le lun. 7 janv. 2019 00:58, T Lee Davidson a ?crit : > According to the wiki, Font acts like a read-only static array. And, > according to [0], we should be able to use ... > > [Code] > Dim hFont As Font > hFont = Font[Null] > [/Code] > > ... to have the default font returned. > > But, when I do that (even with the name of a TTF font I've loaded), I get, > "Incorrect font size". > > The Font methods aren't exposed unless a variable is declared as type Font. > But then if I try, "Print hFont.Name", I get, "Null object". > > Honestly, I don't know how Font is supposed to be used. > > > ___ > Lee > > [0] http://gambaswiki.org/wiki/comp/gb.sdl2/font/_get > P.S. Try to ensure you "Reply to List". > > > On 1/5/19 10:10 PM, Shane wrote: > > yes that is how i have tried to use it but the font doesn't change so it > seems there might be a bug can someone else give this a try > > > > cheers Shane > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Jan 7 19:26:27 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 7 Jan 2019 13:26:27 -0500 Subject: [Gambas-user] Sdl Font In-Reply-To: References: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> <2697957d-8e0a-80b3-580a-2d7a63a54ed6@gmail.com> Message-ID: As I understand that, Fabien, "Font!MyFont" would be alternate syntax to "Font["MyFont"]. I have tried both ways and still get error, "Incorrect font size". Another look at the code clued me in to how the font name should be specified, ie. with a font size: Font["MyFont,16"] I have been testing with the SDL application that is created by the IDE via the "New project..." dialog. To Main(), I added: Font.Load("/usr/share/fonts/truetype/DejaVuSans.ttf") And in differing locations within the Window_Draw() event, I added: Draw.Font = Font["DejaVuSans,16"] The application now SegFaults. ___ Lee On 1/7/19 1:29 AM, Fabien Bodard wrote: > > Font.Load (fontpath, "MyFont") > > Draw.Font = Font!MyFont > > Print Draw.Font.Size > > > ... if I understand well Font act like Picture > > Le lun. 7 janv. 2019 00:58, T Lee Davidson > a ?crit?: > > According to the wiki, Font acts like a read-only static array. And, according to [0], we should be able to use ... > > [Code] > Dim hFont As Font > hFont = Font[Null] > [/Code] > > ... to have the default font returned. > > But, when I do that (even with the name of a TTF font I've loaded), I get, "Incorrect font size". > > The Font methods aren't exposed unless a variable is declared as type Font. > But then if I try, "Print hFont.Name", I get, "Null object". > > Honestly, I don't know how Font is supposed to be used. > > > ___ > Lee > > [0] http://gambaswiki.org/wiki/comp/gb.sdl2/font/_get > P.S. Try to ensure you "Reply to List". > > > On 1/5/19 10:10 PM, Shane wrote: > > yes that is how i have tried to use it but the font doesn't change so it seems there might be a bug can someone else give > this a try > > > > cheers Shane > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From casper.labuschagne at gmail.com Tue Jan 8 16:49:40 2019 From: casper.labuschagne at gmail.com (Casper) Date: Tue, 8 Jan 2019 17:49:40 +0200 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. Message-ID: Hi, I just did an update of my Ubuntu server and Gambas3 upgraded. After the upgrade, starting gambas3 reports gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component Error: #2: Cannot load class 'HelpView' : Cannot load parent class: Cannot load class 'WebView'': Unable to load class file Uninstalling and installing gambas3 again did not fix the issue. I have deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic main enabled in my /etc/apt/sources.list.d Everything worked previously. Thanks in advance Casper From bagonergi at gmail.com Tue Jan 8 18:02:12 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 8 Jan 2019 18:02:12 +0100 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. In-Reply-To: References: Message-ID: Il giorno mar 8 gen 2019 alle ore 16:50 Casper ha scritto: > Hi, > > I just did an update of my Ubuntu server and Gambas3 upgraded. > > After the upgrade, starting gambas3 reports > > gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component > Error: #2: Cannot load class 'HelpView' : Cannot load parent class: > Cannot load class 'WebView'': Unable to load class file > > Uninstalling and installing gambas3 again did not fix the issue. > > I have deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic > main enabled in my /etc/apt/sources.list.d > > Everything worked previously. > > Thanks in advance > > Casper > > I have Ubuntu Bionic with Gambas Master compiled and QT Webkit works well. You could compile following this wiki [0]. Attention: First clean your Ubuntu from the current Gambas. Regards Gianluigi [0] http://gambaswiki.org/wiki/install/ubuntu#t8 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Tue Jan 8 18:18:48 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 8 Jan 2019 18:18:48 +0100 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. In-Reply-To: References: Message-ID: <9675e0b1-beed-95be-4f76-0a2227c46913@osnanet.de> Am 08.01.19 um 18:02 schrieb Gianluigi: > > > Il giorno mar 8 gen 2019 alle ore 16:50 Casper > > ha > scritto: > > Hi, > > I just did an update of my Ubuntu server and Gambas3 upgraded. > > After the upgrade, starting gambas3 reports > > gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component > Error: #2: Cannot load class 'HelpView' : Cannot load parent class: > Cannot load class 'WebView'': Unable to load class file > > Uninstalling and installing gambas3 again did not fix the issue. > > I have deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic > main enabled in my /etc/apt/sources.list.d > > Everything worked previously. > > Thanks in advance > > Casper > > > I have Ubuntu Bionic with Gambas Master compiled and QT Webkit works well. > You could compile following this wiki [0]. > Attention: First clean your Ubuntu from the current Gambas. > > Regards > Gianluigi > > [0] http://gambaswiki.org/wiki/install/ubuntu#t8 > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > I am relatively new to Ubuntu (Mate) and have 18.04 too. Gambas is from the separate Gambas repo you told me. When I upgrade, will I get the latest Gambas from the Gambas repo automagically, or would I pull that separately? It's important for me to know how it be done safely as this is a server to many people working with it. Thanks for your input! Rolf From hans at gambas-buch.de Tue Jan 8 20:02:07 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 8 Jan 2019 20:02:07 +0100 Subject: [Gambas-user] Questions about the documentation of a component Message-ID: <0e6d64a8-d3fe-ee48-784a-5b02e7825da4@gambas-buch.de> Hello, I'm in the process of writing my first components. They're just small sample projects for our Gambas book. I took the component gb.logger from Sebasti?n Kulesz as an example, because it consists of several classes and modules. Now I want to provide my components with proper documentation. It should look like this component - neat and informative: The following questions arise: - How do I create the heading in (1) ? - How do I create the text in (2) ? - How do I create the text with the tip in (3) ? - How do I create the text and the warning symbol with the inserted links in (4) ? - How were the constants with the matching links inserted in (5) ? Nothing can be found in the source code! - (6) These texts behind the links are probably inserted automatically or ? With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lnmfjopnfdcodbdc.png Type: image/png Size: 59444 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Jan 8 20:36:17 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 8 Jan 2019 20:36:17 +0100 Subject: [Gambas-user] Questions about the documentation of a component In-Reply-To: <0e6d64a8-d3fe-ee48-784a-5b02e7825da4@gambas-buch.de> References: <0e6d64a8-d3fe-ee48-784a-5b02e7825da4@gambas-buch.de> Message-ID: Le 08/01/2019 ? 20:02, Hans Lehmann a ?crit?: > Hello, > > I'm in the process of writing my first components. They're just small > sample projects for our Gambas book. I took the component gb.logger from > Sebasti?n Kulesz as an example, because it consists of several classes > and modules. Now I want to provide my components with proper > documentation. It should look like this component - neat and informative: > > > > The following questions arise: > > - How do I create the heading in (1) ? This it the title of the page, so by hand. > - How do I create the text in (2) ? > - How do I create the text with the tip in (3) ? > - How do I create the text and the warning symbol with the inserted > links in (4) ? By hand. You have to read the wiki syntax documentation to know how. > - How were the constants with the matching links inserted in (5) ? > Nothing can be found in the source code! It's automatic. > - (6) These texts behind the links are probably inserted automatically or ? It's automatic either. Once the component is in the Gambas source code and compiled on my machine, I put the component information files generated by the compiler on the wiki server. Then you can create the documentation pages one by one: - /comp/ - /comp// - /comp/// In these pages, you have access to special wiki commands that automatically insert class or symbol descriptions. See the wiki syntax documentation for the details: http://gambaswiki.org/wiki/doc/wiki Regards, -- Beno?t Minisini From shordi at gmail.com Wed Jan 9 12:27:17 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 9 Jan 2019 12:27:17 +0100 Subject: [Gambas-user] Problem with new JIT Message-ID: Since Gambas3 3.12 release we have a issue with new JIT. In our company we use several version of Linux Mint from 17.1 to 19.1. All computers with versi?n under 18.3 (18.3 not tested yet) after update Gambas 3.12 can't run our gambas applications due a JIT error. (Attached a sample) I don't know if is a bug o is the new Gambas behaviour so I ask it here first. I've added a GB_NO_JIT to user's profile and applications runs again but I feel that is not a valid solution. I can't update Linux Mint easely (several cities and a lot of kilometres involved). Is there a better solution than suppress the JIT? Will help if I recompile all application in our repository with Gambas 3.12 ? Thanks in advance Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenerror.jpg Type: image/jpeg Size: 43066 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Jan 9 12:36:16 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Jan 2019 12:36:16 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: References: Message-ID: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> Le 09/01/2019 ? 12:27, Jorge Carri?n a ?crit?: > Since Gambas3 3.12 release we have a issue with new JIT. > > In our company we use several version of Linux Mint from 17.1 to 19.1. > All computers with versi?n under 18.3 (18.3 not tested yet) after update > Gambas 3.12 can't run our gambas applications due a JIT error. (Attached > a sample) > I don't know if is a bug o is the new Gambas behaviour so I ask it here > first. > > I've added a GB_NO_JIT to user's profile and applications runs again but > I feel that is not a valid solution. I can't update Linux Mint easely > (several cities and a lot of kilometres involved). > Is there a better solution than suppress the JIT? > > Will help if I recompile all application in our repository with Gambas > 3.12 ? > > Thanks in advance > > Best Regards > I have no idea where this error comes from and what it means: don't you have the "stdint.h" include file installed on your system? -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 9 12:37:15 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Jan 2019 12:37:15 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> Message-ID: Le 09/01/2019 ? 12:36, Beno?t Minisini a ?crit?: > Le 09/01/2019 ? 12:27, Jorge Carri?n a ?crit?: >> Since Gambas3 3.12 release we have a issue with new JIT. >> >> In our company we use several version of Linux Mint from 17.1 to 19.1. >> All computers with versi?n under 18.3 (18.3 not tested yet) after >> update Gambas 3.12 can't run our gambas applications due a JIT error. >> (Attached a sample) >> I don't know if is a bug o is the new Gambas behaviour so I ask it >> here first. >> >> I've added a GB_NO_JIT to user's profile and applications runs again >> but I feel that is not a valid solution. I can't update Linux Mint >> easely (several cities and a lot of kilometres involved). >> Is there a better solution than suppress the JIT? >> >> Will help if I recompile all application in our repository with Gambas >> 3.12 ? >> >> Thanks in advance >> >> Best Regards >> > > I have no idea where this error comes from and what it means: don't you > have the "stdint.h" include file installed on your system? > OK, it's not that "stdint.h" does not exist, it's an error inside "stdint.h". -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 9 12:40:44 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Jan 2019 12:40:44 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> Message-ID: <1de648cd-ad7a-b92e-5ea1-6da39b79b88c@gmail.com> Le 09/01/2019 ? 12:37, Beno?t Minisini a ?crit?: > Le 09/01/2019 ? 12:36, Beno?t Minisini a ?crit?: >> Le 09/01/2019 ? 12:27, Jorge Carri?n a ?crit?: >>> Since Gambas3 3.12 release we have a issue with new JIT. >>> >>> In our company we use several version of Linux Mint from 17.1 to 19.1. >>> All computers with versi?n under 18.3 (18.3 not tested yet) after >>> update Gambas 3.12 can't run our gambas applications due a JIT error. >>> (Attached a sample) >>> I don't know if is a bug o is the new Gambas behaviour so I ask it >>> here first. >>> >>> I've added a GB_NO_JIT to user's profile and applications runs again >>> but I feel that is not a valid solution. I can't update Linux Mint >>> easely (several cities and a lot of kilometres involved). >>> Is there a better solution than suppress the JIT? >>> >>> Will help if I recompile all application in our repository with >>> Gambas 3.12 ? >>> >>> Thanks in advance >>> >>> Best Regards >>> >> >> I have no idea where this error comes from and what it means: don't >> you have the "stdint.h" include file installed on your system? >> > > OK, it's not that "stdint.h" does not exist, it's an error inside > "stdint.h". > Try "apt-get install libc6-dev" or something like that. I guess you didn't install the gcc compiler completely. -- Beno?t Minisini From shordi at gmail.com Wed Jan 9 13:37:41 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 9 Jan 2019 13:37:41 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> Message-ID: I have. In my PC, where the .deb file was created the locate stdint.h command result is: ~$ locate stdint.h /usr/include/stdint.h /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h /usr/share/virtualbox/src/vboxhost/vboxdrv/include/iprt/stdint.h /usr/share/virtualbox/src/vboxhost/vboxnetadp/include/iprt/stdint.h /usr/share/virtualbox/src/vboxhost/vboxnetflt/include/iprt/stdint.h /usr/share/virtualbox/src/vboxhost/vboxpci/include/iprt/stdint.h In the machine where doesn't work JIT is: ~$ locate stdint.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h /usr/share/virtualbox/src/vboxhost/vboxdrv/include/iprt/stdint.h /usr/share/virtualbox/src/vboxhost/vboxnetadp/include/iprt/stdint.h /usr/share/virtualbox/src/vboxhost/vboxnetflt/include/iprt/stdint.h /usr/share/virtualbox/src/vboxhost/vboxpci/include/iprt/stdint.h The difference as I can see is the path /usr/lib/gcc/x86_64-linux-gnu/7 or /usr/lib/gcc/x86_64-linux-gnu/5 but I don't know if this means something at all (I don't know nothing of C). Best regards El mi?., 9 ene. 2019 a las 12:37, Beno?t Minisini () escribi?: > Le 09/01/2019 ? 12:27, Jorge Carri?n a ?crit : > > Since Gambas3 3.12 release we have a issue with new JIT. > > > > In our company we use several version of Linux Mint from 17.1 to 19.1. > > All computers with versi?n under 18.3 (18.3 not tested yet) after update > > Gambas 3.12 can't run our gambas applications due a JIT error. (Attached > > a sample) > > I don't know if is a bug o is the new Gambas behaviour so I ask it here > > first. > > > > I've added a GB_NO_JIT to user's profile and applications runs again but > > I feel that is not a valid solution. I can't update Linux Mint easely > > (several cities and a lot of kilometres involved). > > Is there a better solution than suppress the JIT? > > > > Will help if I recompile all application in our repository with Gambas > > 3.12 ? > > > > Thanks in advance > > > > Best Regards > > > > I have no idea where this error comes from and what it means: don't you > have the "stdint.h" include file installed on your system? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Wed Jan 9 13:39:15 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 9 Jan 2019 13:39:15 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> Message-ID: Crossed answers. I'll try. El mi?., 9 ene. 2019 a las 13:37, Jorge Carri?n () escribi?: > I have. In my PC, where the .deb file was created the locate stdint.h > command result is: > ~$ locate stdint.h > /usr/include/stdint.h > /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxdrv/include/iprt/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxnetadp/include/iprt/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxnetflt/include/iprt/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxpci/include/iprt/stdint.h > > In the machine where doesn't work JIT is: > > ~$ locate stdint.h > /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxdrv/include/iprt/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxnetadp/include/iprt/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxnetflt/include/iprt/stdint.h > /usr/share/virtualbox/src/vboxhost/vboxpci/include/iprt/stdint.h > > The difference as I can see is the path /usr/lib/gcc/x86_64-linux-gnu/7 or > /usr/lib/gcc/x86_64-linux-gnu/5 but I don't know if this means something at > all (I don't know nothing of C). > > Best regards > > El mi?., 9 ene. 2019 a las 12:37, Beno?t Minisini () > escribi?: > >> Le 09/01/2019 ? 12:27, Jorge Carri?n a ?crit : >> > Since Gambas3 3.12 release we have a issue with new JIT. >> > >> > In our company we use several version of Linux Mint from 17.1 to 19.1. >> > All computers with versi?n under 18.3 (18.3 not tested yet) after >> update >> > Gambas 3.12 can't run our gambas applications due a JIT error. >> (Attached >> > a sample) >> > I don't know if is a bug o is the new Gambas behaviour so I ask it here >> > first. >> > >> > I've added a GB_NO_JIT to user's profile and applications runs again >> but >> > I feel that is not a valid solution. I can't update Linux Mint easely >> > (several cities and a lot of kilometres involved). >> > Is there a better solution than suppress the JIT? >> > >> > Will help if I recompile all application in our repository with Gambas >> > 3.12 ? >> > >> > Thanks in advance >> > >> > Best Regards >> > >> >> I have no idea where this error comes from and what it means: don't you >> have the "stdint.h" include file installed on your system? >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Wed Jan 9 13:48:12 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 9 Jan 2019 13:48:12 +0100 Subject: [Gambas-user] Questions about the documentation of a component In-Reply-To: References: <0e6d64a8-d3fe-ee48-784a-5b02e7825da4@gambas-buch.de> Message-ID: Hello. Thank you so much for the clues. I have taken a close look at the MarkDown files for http://gambaswiki.org/wiki/comp/gb.logging/logger for example. My problem now is that I also want to use MarkDown files for documentation for a *locally* installed component - if that's possible. In which path do these MarkDown files have to be? Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jan 9 14:36:39 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Jan 2019 14:36:39 +0100 Subject: [Gambas-user] Questions about the documentation of a component In-Reply-To: References: <0e6d64a8-d3fe-ee48-784a-5b02e7825da4@gambas-buch.de> Message-ID: <4930eeee-9edf-74b8-5403-e04bda1e30e1@gmail.com> Le 09/01/2019 ? 13:48, Hans Lehmann a ?crit?: > Hello. > > Thank you so much for the clues. I have taken a close look at the > MarkDown files for http://gambaswiki.org/wiki/comp/gb.logging/logger for > example. My problem now is that I also want to use MarkDown files for > documentation for a *locally* installed component - if that's possible. > In which path do these MarkDown files have to be? > > Yours sincerely > > Hans > > You can't use the wiki for a locally installed component! But you can write your documentation inside the source code of your component (if it is written in Gambas) as explained at http://gambaswiki.org/wiki/doc/helpcomments. That inline help will be taken into account by the IDE. -- Beno?t Minisini From casper.labuschagne at gmail.com Wed Jan 9 14:40:18 2019 From: casper.labuschagne at gmail.com (Casper) Date: Wed, 9 Jan 2019 15:40:18 +0200 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. In-Reply-To: <9675e0b1-beed-95be-4f76-0a2227c46913@osnanet.de> References: <9675e0b1-beed-95be-4f76-0a2227c46913@osnanet.de> Message-ID: Apologies for not reporting back earlier. A quick search reported that the gambas3-bg-qt4-webkit package existed, but was not installed. Installing that package in Ubuntu 18.04 fixed the error. My guess is that it is an error in the Ubuntu install script for the latest version of Gambas On 08/01/2019, Rolf-Werner Eilert wrote: > Am 08.01.19 um 18:02 schrieb Gianluigi: >> >> >> Il giorno mar 8 gen 2019 alle ore 16:50 Casper >> > ha >> scritto: >> >> Hi, >> >> I just did an update of my Ubuntu server and Gambas3 upgraded. >> >> After the upgrade, starting gambas3 reports >> >> gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component >> Error: #2: Cannot load class 'HelpView' : Cannot load parent class: >> Cannot load class 'WebView'': Unable to load class file >> >> Uninstalling and installing gambas3 again did not fix the issue. >> >> I have deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic >> main enabled in my /etc/apt/sources.list.d >> >> Everything worked previously. >> >> Thanks in advance >> >> Casper >> >> >> I have Ubuntu Bionic with Gambas Master compiled and QT Webkit works >> well. >> You could compile following this wiki [0]. >> Attention: First clean your Ubuntu from the current Gambas. >> >> Regards >> Gianluigi >> >> [0] http://gambaswiki.org/wiki/install/ubuntu#t8 >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > I am relatively new to Ubuntu (Mate) and have 18.04 too. Gambas is from > the separate Gambas repo you told me. > > When I upgrade, will I get the latest Gambas from the Gambas repo > automagically, or would I pull that separately? > > It's important for me to know how it be done safely as this is a server > to many people working with it. > > Thanks for your input! > > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From casper.labuschagne at gmail.com Wed Jan 9 14:43:59 2019 From: casper.labuschagne at gmail.com (Casper) Date: Wed, 9 Jan 2019 15:43:59 +0200 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. In-Reply-To: <9675e0b1-beed-95be-4f76-0a2227c46913@osnanet.de> References: <9675e0b1-beed-95be-4f76-0a2227c46913@osnanet.de> Message-ID: > I am relatively new to Ubuntu (Mate) and have 18.04 too. Gambas is from > the separate Gambas repo you told me. > When I upgrade, will I get the latest Gambas from the Gambas repo > automagically, or would I pull that separately? AFAIK, you get the latest stable version of Gambas. > It's important for me to know how it be done safely as this is a server > to many people working with it. It will not affect your server provided you use a proper package management tool. I use aptitude and packages can be installed and uninstalled without affecting the system. Hope this answers your question Casper From casper.labuschagne at gmail.com Wed Jan 9 14:50:07 2019 From: casper.labuschagne at gmail.com (Casper) Date: Wed, 9 Jan 2019 15:50:07 +0200 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. In-Reply-To: References: Message-ID: On 08/01/2019, Gianluigi wrote: > I have Ubuntu Bionic with Gambas Master compiled and QT Webkit works well. > You could compile following this wiki [0]. > Attention: First clean your Ubuntu from the current Gambas. As I reported, for some reason the Ubuntu deb install script for the latest Gambas3 (launchpad repo) does not install the gambas3-gb-qt4-webkit package. Manually installing that fixed the error. Generally I steer away from compiling software myself since life is difficult enough without knowing a thing about compilers, but I will consider doing that for Gambas. From casper.labuschagne at gmail.com Wed Jan 9 15:02:45 2019 From: casper.labuschagne at gmail.com (Casper) Date: Wed, 9 Jan 2019 16:02:45 +0200 Subject: [Gambas-user] Gambas as Snap or Flatpack package? Message-ID: Has anyone considered packaging Gambas for Ubuntu as a Snap of Flatpack package? A quick snap search gambas returned no results. The main advantages for the end user is the ease of installation, automated updating and it is claimed on the snap website to be more stable and secure. The claim is also made that snap packages are universal Linux packages, though I have no experience of this. In my experience it is simply a much easier way of staying up to date with a development tool, I use the snap package for Hugo instead of a custom repo and I can no longer have issues regarding updating. http://snapcraft.io Casper From casper.labuschagne at gmail.com Wed Jan 9 15:09:09 2019 From: casper.labuschagne at gmail.com (Casper) Date: Wed, 9 Jan 2019 16:09:09 +0200 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. In-Reply-To: References: <9675e0b1-beed-95be-4f76-0a2227c46913@osnanet.de> Message-ID: On 09/01/2019, Casper wrote: > A quick search reported that the gambas3-bg-qt4-webkit package > existed, but was not installed. Installing that package in Ubuntu > 18.04 fixed the error. For what it is worth, there are two packages not automatically installed by either upgrading to the latest version of Gambas3 (through the Launchpad repo) or by removing and re-installing Gambas3 from scratch. gambas3-gb-qt4-webkit gambas3-gb-db-sqlite3 All other available Gambas packages seem to be installed by default. thx Casper From sebikul at gmail.com Wed Jan 9 15:28:20 2019 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Wed, 9 Jan 2019 11:28:20 -0300 Subject: [Gambas-user] Latest Ubuntu 18.04 sudo upgrade gambas3 fails. In-Reply-To: References: <9675e0b1-beed-95be-4f76-0a2227c46913@osnanet.de> Message-ID: I will add those packages as dependencies for the gambas3 meta package in that PPA this afternoon and issue an update. Sorry for the issue, and thanks for reporting it. Regards, Sebastian On Wed, Jan 9, 2019, 11:10 Casper wrote: > On 09/01/2019, Casper wrote: > > A quick search reported that the gambas3-bg-qt4-webkit package > > existed, but was not installed. Installing that package in Ubuntu > > 18.04 fixed the error. > > For what it is worth, there are two packages not automatically > installed by either upgrading to the latest version of Gambas3 > (through the Launchpad repo) or by removing and re-installing Gambas3 > from scratch. > > gambas3-gb-qt4-webkit > gambas3-gb-db-sqlite3 > > All other available Gambas packages seem to be installed by default. > > thx > > Casper > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivanwms64 at yahoo.com Wed Jan 9 15:55:52 2019 From: ivanwms64 at yahoo.com (Ivan Williams) Date: Wed, 9 Jan 2019 14:55:52 +0000 (UTC) Subject: [Gambas-user] Gambas blew up while executing - code disappeared References: <1688648079.8722374.1547045752818.ref@mail.yahoo.com> Message-ID: <1688648079.8722374.1547045752818@mail.yahoo.com> Gambas 3.11.90 Ubuntu Release 18.04.1 LTS (Bionic Beaver) 64 bitKernel linux 4.15.0-43-genericX64_64MATE 1.20.162.8 GiBIntel@ Xeon(R) CPU-E5-2650 v4 @ 2.20Ghz x 48 I was executing my program when it aborted and I received the following error message: (gbr3:19408): Pango-WARNING **: 09:04:39.890: scaled_font status is: out of memory (gbr3:19408): Pango-WARNING **: 09:04:39.890: shaping failure, expect ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans 11', text='?' (gbr3:19408): Pango-WARNING **: 09:04:39.894: failed to create cairo scaled font, expect ugly output. the offending font is 'DejaVu Sans 10.9912109375' (gbr3:19408): Pango-WARNING **: 09:04:39.894: font_face status is: (gbr3:19408): Pango-WARNING **: 09:04:39.894: scaled_font status is: out of memory (gbr3:19408): Pango-WARNING **: 09:04:39.894: shaping failure, expect ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans 10.9912109375', text='The quick brown fox jumps over the lazy dog.' Save.Error.44: Save.Error.44: (gbr3:19408): Gtk-WARNING **: 09:04:40.642: Error loading theme icon 'dialog-error' for stock: Error opening file /usr/share/icons/mate/48x48/status/dialog-error.png: Too many open files Save.Error.44: #6: Type mismatch: wanted Stream, got Void instead Save.Error.44 FEditor.Save.227 Project.Save.2599 Project.Application_Error.5834 After I restarted gambas all of my code was missing (Yes I have a backup from last week to recover from - backup backup backup) but I am wondering has anyone else experienced this issue and if so, how did you resolve it. Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Jan 9 16:28:34 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 9 Jan 2019 10:28:34 -0500 Subject: [Gambas-user] Problem with new JIT In-Reply-To: References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> Message-ID: <137ea715-0f6e-865a-1c37-e4f13368732a@gmail.com> On 1/9/19 7:39 AM, Jorge Carri?n wrote: > The difference as I can see is the path /usr/lib/gcc/x86_64-linux-gnu/7 or /usr/lib/gcc/x86_64-linux-gnu/5 but I don't know if > this means something at all (I don't know nothing of C). It probably doesn't help much, but according to what I have on my system, the "5" or the "7" would be the gcc version number. ___ Lee From g4mba5 at gmail.com Wed Jan 9 16:37:02 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Jan 2019 16:37:02 +0100 Subject: [Gambas-user] Gambas blew up while executing - code disappeared In-Reply-To: <1688648079.8722374.1547045752818@mail.yahoo.com> References: <1688648079.8722374.1547045752818.ref@mail.yahoo.com> <1688648079.8722374.1547045752818@mail.yahoo.com> Message-ID: <01a9110a-d549-69e9-708f-95ead3adaacb@gmail.com> Le 09/01/2019 ? 15:55, Ivan Williams via User a ?crit?: > Gambas 3.11.90 > Ubuntu Release 18.04.1 LTS (Bionic Beaver) 64 bit > Kernel linux 4.15.0-43-genericX64_64 > MATE 1.20.1 > 62.8 GiB > Intel@ Xeon(R) CPU-E5-2650 v4 @ 2.20Ghz x 48 > > I was executing my program when it aborted and I received the following > error message: > > (gbr3:19408): Pango-WARNING **: 09:04:39.890: scaled_font status is: out > of memory > > (gbr3:19408): Pango-WARNING **: 09:04:39.890: shaping failure, expect > ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans 11', > text='?' > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: failed to create cairo > scaled font, expect ugly output. the offending font is 'DejaVu Sans > 10.9912109375' > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: font_face status is: > > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: scaled_font status is: out > of memory > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: shaping failure, expect > ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans > 10.9912109375', text='The quick brown fox jumps over the lazy dog.' > Save.Error.44: Save.Error.44: > (gbr3:19408): Gtk-WARNING **: 09:04:40.642: Error loading theme icon > 'dialog-error' for stock: Error opening file > /usr/share/icons/mate/48x48/status/dialog-error.png: Too many open files > Save.Error.44: #6: Type mismatch: wanted Stream, got Void instead > Save.Error.44 FEditor.Save.227 Project.Save.2599 > Project.Application_Error.5834 > > After I restarted gambas all of my code was missing (Yes I have a backup > from last week to recover from - backup backup backup) but I am > wondering has anyone else experienced this issue and if so, how did you > resolve it. > > Ivan > Sorry for the loss. I see "out of memory" and "too many open files" in the messages, so apparently your project ate all the memory. Without the project itself and a way to reproduce the crash, I can't say more. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 9 16:51:45 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Jan 2019 16:51:45 +0100 Subject: [Gambas-user] Sdl Font In-Reply-To: References: <34cbfc34-ee8f-9990-5f91-694eab11a80f@gmail.com> <2697957d-8e0a-80b3-580a-2d7a63a54ed6@gmail.com> Message-ID: Le 07/01/2019 ? 19:26, T Lee Davidson a ?crit?: > As I understand that, Fabien, "Font!MyFont" would be alternate syntax to "Font["MyFont"]. I have tried both ways and still get > error, "Incorrect font size". > > Another look at the code clued me in to how the font name should be specified, ie. with a font size: Font["MyFont,16"] > > > I have been testing with the SDL application that is created by the IDE via the "New project..." dialog. > > To Main(), I added: Font.Load("/usr/share/fonts/truetype/DejaVuSans.ttf") > And in differing locations within the Window_Draw() event, I added: Draw.Font = Font["DejaVuSans,16"] > > The application now SegFaults. > > > ___ > Lee > > It works here. Please provide your project and a way to reproduce the crash. By the way, I will add a default font size to Font[], so that you can write directly Font["DejaVuSans"] without having to specify a font size (required by the TTF library. I don't know why exactly, maybe for the hinter). Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Wed Jan 9 18:16:18 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 9 Jan 2019 18:16:18 +0100 Subject: [Gambas-user] Gambas blew up while executing - code disappeared In-Reply-To: <1688648079.8722374.1547045752818@mail.yahoo.com> References: <1688648079.8722374.1547045752818.ref@mail.yahoo.com> <1688648079.8722374.1547045752818@mail.yahoo.com> Message-ID: Are you sure there is enough space on your disc? No joke, I had similar things when some process suddenly ate up the rest of the disc space in one of the mounted branches and linux ran into severe trouble. The trouble could be even more severe if you use Btrfs instead of ext4. Just for going sure, check with "df -h". Regards Rolf Am 09.01.19 um 15:55 schrieb Ivan Williams via User: > Gambas 3.11.90 > Ubuntu Release 18.04.1 LTS (Bionic Beaver) 64 bit > Kernel linux 4.15.0-43-genericX64_64 > MATE 1.20.1 > 62.8 GiB > Intel@ Xeon(R) CPU-E5-2650 v4 @ 2.20Ghz x 48 > > I was executing my program when it aborted and I received the following > error message: > > (gbr3:19408): Pango-WARNING **: 09:04:39.890: scaled_font status is: out > of memory > > (gbr3:19408): Pango-WARNING **: 09:04:39.890: shaping failure, expect > ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans 11', > text='?' > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: failed to create cairo > scaled font, expect ugly output. the offending font is 'DejaVu Sans > 10.9912109375' > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: font_face status is: > > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: scaled_font status is: out > of memory > > (gbr3:19408): Pango-WARNING **: 09:04:39.894: shaping failure, expect > ugly output. shape-engine='PangoFcShapeEngine', font='DejaVu Sans > 10.9912109375', text='The quick brown fox jumps over the lazy dog.' > Save.Error.44: Save.Error.44: > (gbr3:19408): Gtk-WARNING **: 09:04:40.642: Error loading theme icon > 'dialog-error' for stock: Error opening file > /usr/share/icons/mate/48x48/status/dialog-error.png: Too many open files > Save.Error.44: #6: Type mismatch: wanted Stream, got Void instead > Save.Error.44 FEditor.Save.227 Project.Save.2599 > Project.Application_Error.5834 > > After I restarted gambas all of my code was missing (Yes I have a backup > from last week to recover from - backup backup backup) but I am > wondering has anyone else experienced this issue and if so, how did you > resolve it. > > Ivan > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From hans at gambas-buch.de Wed Jan 9 18:45:04 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 9 Jan 2019 18:45:04 +0100 Subject: [Gambas-user] Questions about the documentation of a component In-Reply-To: <4930eeee-9edf-74b8-5403-e04bda1e30e1@gmail.com> References: <0e6d64a8-d3fe-ee48-784a-5b02e7825da4@gambas-buch.de> <4930eeee-9edf-74b8-5403-e04bda1e30e1@gmail.com> Message-ID: <87b62348-9dca-934c-c323-0d928138bed0@gambas-buch.de> Am 09.01.19 um 14:36 schrieb Beno?t Minisini: > But you can write your documentation inside the source code of your > component (if it is written in Gambas) as explained at > http://gambaswiki.org/wiki/doc/helpcomments. > That inline help will be taken into account by the IDE. Hello. The information in the documentation for help comments must be supplemented for events: Event Finished '' The event is triggered when the TimeoutCountDown has expired Event Tick '' The event is raised each time the CountDown counter is decremented. See property 'Delay'. Result: The last help comment is NOT displayed in the documentation of the component. '' The event is triggered when the TimeoutCountDown has expired Event Finished '' The event is raised each time the CountDown counter is decremented. See property 'Delay'. Event Tick Result: All help comments are displayed in the component documentation. Yours sincerely Hans From t.lee.davidson at gmail.com Wed Jan 9 23:02:11 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 9 Jan 2019 17:02:11 -0500 Subject: [Gambas-user] [CRASH REPORT] SDL Test Message-ID: Hello, Damned, my program crashed Gambas that way : Slightly modified new SDL application - run from the IDE. ___ Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: sdltest-0.0.1-crash-190109-170057.tar.bz2 Type: application/x-bzip Size: 16105 bytes Desc: not available URL: From akrobaticone at gmail.com Thu Jan 10 09:40:33 2019 From: akrobaticone at gmail.com (Michele V.) Date: Thu, 10 Jan 2019 09:40:33 +0100 Subject: [Gambas-user] Return value from message box in webfrom application Message-ID: Hi to all How is possible le to know the selected button in message box used in webform application? No return value is provided by the function Thank you Michele ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Thu Jan 10 11:11:48 2019 From: genbraga1 at gmail.com (gen braga) Date: Thu, 10 Jan 2019 08:11:48 -0200 Subject: [Gambas-user] Binding UdpSocket to specific IP Message-ID: Hi there My dev station's NIC has multiple IP addresses currently assigned. Is there a way to bind Gambas's UdpSocket to a specific IP? The default behavior is to listen to any address (0.0.0.0) Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Jan 10 13:02:46 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 10 Jan 2019 13:02:46 +0100 Subject: [Gambas-user] Landscape printing in PDF goes wrong In-Reply-To: References: Message-ID: Am 19.12.18 um 15:03 schrieb Gianluigi: > > > Il giorno mer 19 dic 2018 alle ore 11:43 Rolf-Werner Eilert > > ha scritto: > > Am 18.12.18 um 16:56 schrieb Rolf-Werner Eilert: > > In one of my programs which ran flawlessly under Suse Leap (KDE > and Qt), > > I have a serious fault of printing functionality under my new > Ubuntu Mate. > > > > Instead of printing Landscape, it prints Portrait, but > landscape-wise on > > the paper, i. e. upright. If I would print it, it would be ok, > but the > > positions on the sheet are wrong. It looks like being measured > for A5 > > instead of A4. > > > > This is Gambas 3.11.4. Have you changed anything in the printing > part > > which would influence measuring positions etc.? Something during > the few > > last versions; on the Suse system I had a bit older version. > > > > Or is there something wrong here? > > > >? ? drucker = New Printer As "drucker" > > > >? ? drucker.Orientation = Printer.Landscape > >? ? drucker.Paper = Printer.A4 > > > >? ? drucker.OutputFile = druckPlanDatei > > > >? ? drucker.FullPage = True > > > >? ? drucker.Print() ' -> drucker_Begin() > > > > Thank you for any input! > > > > Regards > > Rolf > > > > > I have to answer myself as I have found a way to work around the wrong > measurement. Sizes are ok now, but the print is still not turned by 90? > for Landscape. > > The whole thing is somewhat strange as I use the same code in another > program to compute the positions for printing. > > How do you calculate mm to printing pixels? > > Regards > Rolf > > > Sorry but now I have no time, it's something I had done years ago is in > Italian, I hope can help you. > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Happy New Year guys! Just FYI, purely coincidentally I found the solution: It depends on the graphical libraries you bind your project to. In this project, I had gb.gui, and that didn't work out correctly (myPrinter.Resolution delivers a faulty value). In another project, I had gb.qt4 instead, and it runs flawlessly. When I changed to gb.qt4, calculation was correct again. Regards Rolf From t.lee.davidson at gmail.com Thu Jan 10 16:10:17 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 10 Jan 2019 10:10:17 -0500 Subject: [Gambas-user] Cannot run Web Form app Message-ID: <6f172274-9265-0032-6f42-4389f15a4d8c@gmail.com> I created a new Web Form application from the Gambas IDE welcome screen. Without changing anything, I tried to run it. I got "gb.httpd: bind 0.0.0.0 - Address already in use" in the console. And, Konqueror was launched with "error:/?error=124&errText=localhost#http://localhost:8080" in the location bar. Am I missing some configuration setting? ___ Lee From gambas.fr at gmail.com Thu Jan 10 16:11:22 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 10 Jan 2019 16:11:22 +0100 Subject: [Gambas-user] Gambas blew up while executing - code disappeared In-Reply-To: References: <1688648079.8722374.1547045752818.ref@mail.yahoo.com> <1688648079.8722374.1547045752818@mail.yahoo.com> Message-ID: What is surprising is you have lost the code as gambas ide save the code before executing. From genbraga1 at gmail.com Thu Jan 10 16:21:13 2019 From: genbraga1 at gmail.com (gen braga) Date: Thu, 10 Jan 2019 13:21:13 -0200 Subject: [Gambas-user] Gambas blew up while executing - code disappeared In-Reply-To: References: <1688648079.8722374.1547045752818.ref@mail.yahoo.com> <1688648079.8722374.1547045752818@mail.yahoo.com> Message-ID: Check ur code's folder with a file manager. There are backups. Once I spent a morning dealing with them 'cos several power shortages in my area.... Em qui, 10 de jan de 2019 13:12, Fabien Bodard What is surprising is you have lost the code as gambas ide save the > code before executing. > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 10 17:03:08 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 10 Jan 2019 17:03:08 +0100 Subject: [Gambas-user] Cannot run Web Form app In-Reply-To: <6f172274-9265-0032-6f42-4389f15a4d8c@gmail.com> References: <6f172274-9265-0032-6f42-4389f15a4d8c@gmail.com> Message-ID: <9930b5d6-0589-1714-f787-b3e35f9d976e@gmail.com> Le 10/01/2019 ? 16:10, T Lee Davidson a ?crit?: > I created a new Web Form application from the Gambas IDE welcome screen. Without changing anything, I tried to run it. > > I got "gb.httpd: bind 0.0.0.0 - Address already in use" in the console. And, Konqueror was launched with > "error:/?error=124&errText=localhost#http://localhost:8080" in the location bar. > > Am I missing some configuration setting? > > > ___ > Lee > No, the embedded http server does not work anymore. It's under investigation. -- Beno?t Minisini From genbraga1 at gmail.com Thu Jan 10 17:19:21 2019 From: genbraga1 at gmail.com (gen braga) Date: Thu, 10 Jan 2019 14:19:21 -0200 Subject: [Gambas-user] Binding UdpSocket to specific IP In-Reply-To: <32cabd5b-071b-72bf-0588-304429af31fe@gambas-buch.de> References: <32cabd5b-071b-72bf-0588-304429af31fe@gambas-buch.de> Message-ID: Hello Hans Not exactly. For example, my NIC has 2 IP addresses, 10.0.0.50/8 and 192.168.0. 50/24 When I Bind the udp socket to port 4500, i have both 10.0.0.50:4500 and 192.168.0.50:4500 avaiable. What If i need only 10.0.0.50:4500? I could use 192.168.0.50:4500 to something else. I hope I have managed to clarify. Thanks in advance! Em qui, 10 de jan de 2019 11:32, Hans Lehmann Hello, > > can this section of code help? > > CODE: > > ' Gambas class file > > Public UDPClient As UdpSocket > > Public Sub Form_Open() > UDPClient = New UdpSocket As "UDPClient" > > UDPClient.Port = 0 > UDPClient.Bind() > *UDPClient.Targetport = 123 * > * UDPClient.TargetHost = "192.53.103.108" ' German time server: > ptbtime1.ptb.de * > > Write #UDPClient, Chr$(35) & String$(47, Chr$(0)), 48 > > End > Public Sub UDPClient_Read() > Dim sData As String > Dim i As Integer > Dim VSeconds As Long > Dim CurrentDate As Date > Dim iVSeconds As Integer > > Read #UDPClient, sData, Lof(UDPClient) > > For i = 17 To 20 > VSeconds += Asc(Mid$(sData, 37 - i, 1)) * 256 ^ (i - 17) > Next > iVSeconds = VSeconds - 2208988800 - System.TimeZone > CurrentDate = DateAdd("01/01/1970", gb.second, iVSeconds) > Print "Received Time: "; CurrentDate > > End > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 10 17:50:33 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 10 Jan 2019 17:50:33 +0100 Subject: [Gambas-user] Mailing-list and gmail Message-ID: <3d516884-4d6c-e38c-b075-936e7cb43e76@gmail.com> Hi all, Don't worry if recently I didn't answer some mails on the mailing-list. It's gmail that decided to mark most of them as spam... I hope that marking them as ham will make it more clever... -- Beno?t Minisini From bagonergi at gmail.com Thu Jan 10 18:05:38 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 10 Jan 2019 18:05:38 +0100 Subject: [Gambas-user] Mailing-list and gmail In-Reply-To: <3d516884-4d6c-e38c-b075-936e7cb43e76@gmail.com> References: <3d516884-4d6c-e38c-b075-936e7cb43e76@gmail.com> Message-ID: Il giorno gio 10 gen 2019 alle ore 17:51 Beno?t Minisini ha scritto: > Hi all, > > Don't worry if recently I didn't answer some mails on the mailing-list. > It's gmail that decided to mark most of them as spam... > > I hope that marking them as ham will make it more clever... > > -- > Beno?t Minisini > Follow the steps of Lee (and Jussi) [0] and you will not have any more spam :-) Regards Gianluigi [0] https://lists.gambas-basic.org/pipermail/user/2018-December/066082.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 10 19:27:34 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 10 Jan 2019 19:27:34 +0100 Subject: [Gambas-user] JIT crash In-Reply-To: References: Message-ID: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> Le 05/01/2019 ? 20:52, Jussi Lahtinen a ?crit?: > Benoit, I really recommend to run the GambasTester before releasing new > version. I know it's ugly as hell, but it really gets the work done. My > compiling script runs it always after successful compiling, but I'm not > always available to compile/test the newest version. > > See the attachment. > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > OK, but your program already crashes without JIT at mTest.2454. I don't see a bug in Gambas here, but a bug in your program. -- Beno?t Minisini From kicking177 at gmail.com Thu Jan 10 20:23:01 2019 From: kicking177 at gmail.com (KKing) Date: Thu, 10 Jan 2019 19:23:01 +0000 Subject: [Gambas-user] Debugging Gambas Message-ID: Thank you Fabien and Tobias, for some reason your responses did not come through on the user email digests I received, but I found via the archive from website. And this is actually my second attempt to send this as first attempt has never seem appeared in archive on website. << > What is the "Redirect Standard error output" option meant for and how to > use? > I would advise to enable this. You can then "print debug" your program with the Debug or Error statements. Those send strings to stderr, which is redirected as Fabien said. Otherwise these messages clutter up your ncurs-ified terminal which make them unreadable and can cause visual glitches. [ That is because ncurses, true to its name, reduces the amount of changes sent to the terminal as much as it can. It assumes that you do not print to the terminal but through ncurses functions, so that it has an accurate idea of what is on the screen. ] >> I'm probably missing something... if I enable this I don't see any different behaviour. Should I be looking at a particular log generated somewhere or do I need to add (potentially a lot) of debug statements? Is there anyway to check the amount of memory being used and available? Today I was stepping through the code, through a section that gets called repeatedly and it appear to freeze on a simple line setting content of a variable with nothing out of the ordinary. The Pause and Stop are still bold (non greyed) inferring it thinks it is running but F8 or F5 does nothing. If I look in local or current object variables I seem their names but no values completely blank area. If I hit pause I get the crash. I managed to repeat that and it again appeared to freeze in a different section, but again in a function that is (and has been within the session) called repeatedly. I tried compiling and run that and it got a segmentation fault in approximately after the same amount of usage. My next steps are to probably try on another more powerful unit with possibly a newer version of Gambas. K. From jussi.lahtinen at gmail.com Thu Jan 10 20:57:06 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 10 Jan 2019 21:57:06 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> References: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> Message-ID: OK, I didn't get that far. I got to "mTest.Ploo2.0: #6: Type mismatch: wanted Stream, got Void instead". At mTest.2454 there must be some remains of some tests... I fixed it, but I noticed that something has changed in the interpreter. One test fails (function called TheLoop), because essentially for next loop from 10 to 1 (step -1) continues with value 0. See attachment. Jussi On Thu, Jan 10, 2019 at 8:28 PM Beno?t Minisini wrote: > Le 05/01/2019 ? 20:52, Jussi Lahtinen a ?crit : > > Benoit, I really recommend to run the GambasTester before releasing new > > version. I know it's ugly as hell, but it really gets the work done. My > > compiling script runs it always after successful compiling, but I'm not > > always available to compile/test the newest version. > > > > See the attachment. > > > > > > Jussi > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > OK, but your program already crashes without JIT at mTest.2454. I don't > see a bug in Gambas here, but a bug in your program. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.16.tar.gz Type: application/gzip Size: 27434 bytes Desc: not available URL: From g4mba5 at gmail.com Thu Jan 10 23:01:00 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 10 Jan 2019 23:01:00 +0100 Subject: [Gambas-user] JIT crash In-Reply-To: References: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> Message-ID: Le 10/01/2019 ? 20:57, Jussi Lahtinen a ?crit?: > OK, I didn't get that far. I got to "mTest.Ploo2.0: #6: Type mismatch: > wanted Stream, got Void instead". > At mTest.2454 there must be some remains of some tests... I fixed it, > but I noticed that something has changed in the interpreter. > One test fails (function called TheLoop), because essentially for next > loop from 10 to 1 (step -1) continues with value 0. > > See attachment. > > > Jussi > It would be cool and really useful if you could rewrite your test project and make it clean. I suggest that: - Each test must be written in a public function named TestXXXX in a module. This function must return a Boolean to tell if the test is OK. - East test method must start by printing which test is done. - You can have several tests stored in different modules. It will be pratical as some tests will have to share some private code. - The main function will browse the symbols of all modules, and call all public methods whose name starts with "Test" in natural order (Test1...Test9, Test 10...). Then the return value of each method is tested. Then you can break immediately if the test fails, or just print a warning message and continues. - At the end of the program, you write how many tests failes. That way several people will be able to add tests to the project easily. What do you think? -- Beno?t Minisini From t.lee.davidson at gmail.com Thu Jan 10 23:17:11 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 10 Jan 2019 17:17:11 -0500 Subject: [Gambas-user] Debugging Gambas In-Reply-To: References: Message-ID: <3d1255da-d8e5-eba1-cdfe-8be6686c153d@gmail.com> I don't recall exactly what your project is. But, with "Use terminal emulator" and "Redirect standard error output" enabled, Print displays in the terminal and Debug displays in the IDE console. With redirection disabled, both display in the terminal. ___ Lee On 1/10/19 2:23 PM, KKing wrote: > << >>?What?is?the?"Redirect?Standard?error?output"?option?meant?for?and?how?to >>?use? >> > I?would?advise?to?enable?this.?You?can?then?"print?debug"?your?program > with?the?Debug?or?Error?statements.?Those?send?strings?to?stderr,?which > is?redirected?as?Fabien?said.?Otherwise?these?messages?clutter?up?your > ncurs-ified?terminal?which?make?them?unreadable?and?can?cause?visual > glitches.?[?That?is?because?ncurses,?true?to?its?name,?reduces?the?amount > of?changes?sent?to?the?terminal?as?much?as?it?can.?It?assumes?that?you > do?not?print?to?the?terminal?but?through?ncurses?functions,?so?that?it > has?an?accurate?idea?of?what?is?on?the?screen.?] >>> > I'm probably missing something... if I enable this I don't see any different behaviour. Should I be looking at a particular log > generated somewhere?or?do?I?need?to?add?(potentially?a?lot)?of?debug?statements? From taboege at gmail.com Thu Jan 10 23:35:45 2019 From: taboege at gmail.com (Tobias Boege) Date: Thu, 10 Jan 2019 23:35:45 +0100 Subject: [Gambas-user] JIT crash In-Reply-To: References: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> Message-ID: <20190110223545.GG6568@highrise.localdomain> On Thu, 10 Jan 2019, Beno?t Minisini wrote: > Le 10/01/2019 ? 20:57, Jussi Lahtinen a ?crit?: > > OK, I didn't get that far. I got to "mTest.Ploo2.0: #6: Type mismatch: > > wanted Stream, got Void instead". > > At mTest.2454 there must be some remains of some tests... I fixed it, > > but I noticed that something has changed in the interpreter. > > One test fails (function called TheLoop), because essentially for next > > loop from 10 to 1 (step -1) continues with value 0. > > > > See attachment. > > > > > > Jussi > > > > It would be cool and really useful if you could rewrite your test project > and make it clean. > > I suggest that: > > - Each test must be written in a public function named TestXXXX in a module. > This function must return a Boolean to tell if the test is OK. > > - East test method must start by printing which test is done. > > - You can have several tests stored in different modules. It will be > pratical as some tests will have to share some private code. > > - The main function will browse the symbols of all modules, and call all > public methods whose name starts with "Test" in natural order > (Test1...Test9, Test 10...). Then the return value of each method is tested. > Then you can break immediately if the test fails, or just print a warning > message and continues. > > - At the end of the program, you write how many tests failes. > > That way several people will be able to add tests to the project easily. > > What do you think? > I'm very much in favour of this motion. Elsewhere it is completely normal to have an extensive, automated test suite for a programming language which runs before any release. Every bug that you fix can be turned into a regression test to make the test suite better. In this context I want to mention that the gb.test project is still on the table although I lacked the drive to pursue it in the last 7 months (in favour of other programming projects -- it's not that I'm generally lazy). The component in the identically named git branch currently only implements the Test-anything protocol with a common subtests extension and not the abstractions that Christof originally brought to the table, but it can still be used right now, exactly as Beno?t describes above, to execute a bunch of tests which return Boolean. Any TAP processor, like prove(1), can be used to observe the tests and report failures and statistics. [ There are more fine-grained test methods in that component than Boolean "ok" vs. "not ok", and those can add diagnostic messages about why tests fail. ] I mean: a neatly organised public Gambas test suite should be created (and used before every release). Later, when gb.test is usable and has the required tooling, I'd like to see it ported, but in the meantime what Beno?t suggests above is most likely the most adequate step forward. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Fri Jan 11 00:19:37 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 11 Jan 2019 01:19:37 +0200 Subject: [Gambas-user] JIT crash In-Reply-To: References: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> Message-ID: The idea behind the tester is in quick implementation. Every test should be created and left alone without need for maintenance (unless Gambas itself is intentionally changed in syntax, behaviour or so). Don't delete anything in it, just add what you need. It is mess, but mess is good way to catch bugs. When everything is "normal" and good, you will not catch the exceptions that trigger most of the bugs. Some one (I don't remember) here implemented some unit tester framework, which ran each test in separated process and thus preventing the tester from crashing if some test crashes. I initially thought that's neat and clever, but when thinking about it, it's really not good idea. What if some test causes side effects? How you catch them, if all tests are run in different instance? A mess catches them much better. What you suggest would multiply the amount of code at least by three. I agree that it would make it clean, but what for? If that would help you with the debugging, then I think it is good idea, otherwise I'm not at least yet convinced. If other people want to contribute, it's easy. Just download the code (0.10.17 or newer if there is) and add your test to end of the DoTests function in mTest module. Just make sure in case of error line "Errors.Add(System.Backtrace[0])" is executed. If you need variables, classes, etc for your test, create your own and add them to the project. This way there are no conflicts / interference with other tests. Just more of the "beautiful" mess. However, make sure your test is valid to avoid false positives. I attached my script to run the tests (it itself is run by compiling script). Jussi On Fri, Jan 11, 2019 at 12:02 AM Beno?t Minisini wrote: > Le 10/01/2019 ? 20:57, Jussi Lahtinen a ?crit : > > OK, I didn't get that far. I got to "mTest.Ploo2.0: #6: Type mismatch: > > wanted Stream, got Void instead". > > At mTest.2454 there must be some remains of some tests... I fixed it, > > but I noticed that something has changed in the interpreter. > > One test fails (function called TheLoop), because essentially for next > > loop from 10 to 1 (step -1) continues with value 0. > > > > See attachment. > > > > > > Jussi > > > > It would be cool and really useful if you could rewrite your test > project and make it clean. > > I suggest that: > > - Each test must be written in a public function named TestXXXX in a > module. This function must return a Boolean to tell if the test is OK. > > - East test method must start by printing which test is done. > > - You can have several tests stored in different modules. It will be > pratical as some tests will have to share some private code. > > - The main function will browse the symbols of all modules, and call all > public methods whose name starts with "Test" in natural order > (Test1...Test9, Test 10...). Then the return value of each method is > tested. Then you can break immediately if the test fails, or just print > a warning message and continues. > > - At the end of the program, you write how many tests failes. > > That way several people will be able to add tests to the project easily. > > What do you think? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGambas.sh Type: application/x-shellscript Size: 748 bytes Desc: not available URL: From g4mba5 at gmail.com Fri Jan 11 01:16:08 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 01:16:08 +0100 Subject: [Gambas-user] JIT crash In-Reply-To: References: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> Message-ID: Le 10/01/2019 ? 20:57, Jussi Lahtinen a ?crit?: > OK, I didn't get that far. I got to "mTest.Ploo2.0: #6: Type mismatch: > wanted Stream, got Void instead". > At mTest.2454 there must be some remains of some tests... I fixed it, > but I noticed that something has changed in the interpreter. > One test fails (function called TheLoop), because essentially for next > loop from 10 to 1 (step -1) continues with value 0. > > See attachment. > > > Jussi > Loop bug fixed in commit https://gitlab.com/gambas/gambas/commit/634b5c4168dbd3cd2eb4f72df90a892b2b7649b4. -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 11 01:47:39 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 01:47:39 +0100 Subject: [Gambas-user] JIT crash In-Reply-To: References: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> Message-ID: Le 11/01/2019 ? 01:16, Beno?t Minisini a ?crit?: > Le 10/01/2019 ? 20:57, Jussi Lahtinen a ?crit?: >> OK, I didn't get that far. I got to "mTest.Ploo2.0: #6: Type mismatch: >> wanted Stream, got Void instead". >> At mTest.2454 there must be some remains of some tests... I fixed it, >> but I noticed that something has changed in the interpreter. >> One test fails (function called TheLoop), because essentially for next >> loop from 10 to 1 (step -1) continues with value 0. >> >> See attachment. >> >> >> Jussi >> > > Loop bug fixed in commit > https://gitlab.com/gambas/gambas/commit/634b5c4168dbd3cd2eb4f72df90a892b2b7649b4. > > ... And Debug is jit-compiled correctly again in commit https://gitlab.com/gambas/gambas/commit/5c3ce53f61bed45acaeb3c44e75cfdc88ba85335. -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 11 01:56:24 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 01:56:24 +0100 Subject: [Gambas-user] Return value from message box in webfrom application In-Reply-To: References: Message-ID: <81729d34-459a-ea5d-9af1-f4d8b16f92ff@gmail.com> Le 10/01/2019 ? 09:40, Michele V. a ?crit?: > Hi to all > How is possible le to know the selected button in message box used in > webform application? > No return value is provided by the function > > > Thank you > > Michele > ------------------------------------------------------------------------------------------------------------------------------------------- > Io scrivo da UBUNTU GNU/LINUX > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > gb.web.form (obviously?) does not allow any user (i.e. browser) interaction inside a request. The trick is the following: any control raises a "Message" event when a message box has been opened from one of its event handler. It works like that: ----8<------------------------------------------------------------------ ' The remove button Click handler that opens the message box. Public Sub btnRemove_Click() Message.Question(("Do you really want to remove this file?"), ("Cancel"), ("Remove")) ' Execution continues here. The message box will be opened by the ' browser when the request is returned to it. ' You can even open other message boxes. But it's not a good idea. End ' The Message event that gets the message box answer. Public Sub btnRemove_Message((Source) As WebControl, Action As String) If Action = ("Remove") Then ' Remove the thing Endif Catch Message.Error("Unable to remove this thing!") End ----8<------------------------------------------------------------------ You should note that there is another message in the btnRemove_Message() method. It will call the btnRemove_Message() again! So you must be careful to make the difference between the answers of the different message boxes. The last behaviour is not very clean, so if I find a different way to get the message box answer, I will implement it. It could be based on a message box identifier, I don't know yet. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 11 02:15:31 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 02:15:31 +0100 Subject: [Gambas-user] Binding UdpSocket to specific IP In-Reply-To: References: Message-ID: <8ab9220a-466c-5da9-1eff-cc652c13c851@gmail.com> Le 10/01/2019 ? 11:11, gen braga a ?crit?: > Hi there > > My dev station's NIC has multiple IP addresses currently assigned. Is > there a way to bind Gambas's UdpSocket to a specific IP? The default > behavior is to listen to any address (0.0.0.0) > > Thanks in advance. > It's something to add to the gb.net component. Something like new arguments to the Bind method: Bind(address, port) -- Beno?t Minisini From chrisml at deganius.de Fri Jan 11 02:57:21 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 11 Jan 2019 02:57:21 +0100 Subject: [Gambas-user] Gambas hides component as dotfile - why? Message-ID: Hello, I am currently working on a component called gb.unittest and if I create a deb package for installation, it installes the files in /usr/lib/gambas3 as dotfiles: christof at tof-x230 ? ls -a /usr/lib/gambas3 | grep unittest gb.deg.unittest.component gb.deg.unittest.gambas <- this is the old version of the component .gb.unittest.component .gb.unittest.gambas .gb.unittest.gambas is the only component that is installed hidden as dotfile. Why? How can I prevent 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 Fri Jan 11 09:29:55 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 11 Jan 2019 09:29:55 +0100 Subject: [Gambas-user] JIT crash In-Reply-To: <20190110223545.GG6568@highrise.localdomain> References: <81ca8551-a286-f153-7855-6d66990e0ded@gmail.com> <20190110223545.GG6568@highrise.localdomain> Message-ID: Hi Tobi, Am 10.01.19 um 23:35 schrieb Tobias Boege: > In this context I want to mention that the gb.test project is still on > the table although I lacked the drive to pursue it in the last 7 months > (in favour of other programming projects -- it's not that I'm generally > lazy). The component in the identically named git branch currently only > implements the Test-anything protocol with a common subtests extension > and not the abstractions that Christof originally brought to the table, > but it can still be used right now, exactly as Beno?t describes above, > to execute a bunch of tests which return Boolean. Any TAP processor, > like prove(1), can be used to observe the tests and report failures and > statistics. [ There are more fine-grained test methods in that component > than Boolean "ok" vs. "not ok", and those can add diagnostic messages > about why tests fail. ] I am done so far with what we talked about in the german Gambas-Club mailinglist in october. We could coordinate us now. 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 Fri Jan 11 09:46:53 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 11 Jan 2019 09:46:53 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: <137ea715-0f6e-865a-1c37-e4f13368732a@gmail.com> References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> <137ea715-0f6e-865a-1c37-e4f13368732a@gmail.com> Message-ID: Benoit: Installing libc6-dev doesn't work. The only way I can use our applications is using GB_NO_JIT environment variable. If I try to launch the programs from console I got several messages, like this: gb.jit: error: unable to compile JIT code: In file included from /tmp/gambas.1000/4415/jit/gb.report.c:1:0: /tmp/gambas.1000/4415/jit/gb.report.c: In function ?jit_reportunits_2?: /tmp/gambas.1000/4415/jit/jit.h:1403:3: error: ?for? loop initial declarations are only allowed in C99 mode for (int _i = 0; _i < (_n); _i++) \ ^ /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro ?RETURN_f? #define RETURN_f(_val) (GB.ReturnFloat(_val)) ^ /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro ?OPT? RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); ^ /tmp/gambas.1000/4415/jit/jit.h:1403:3: note: use option -std=c99 or -std=gnu99 to compile your code for (int _i = 0; _i < (_n); _i++) \ ^ /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro ?RETURN_f? #define RETURN_f(_val) (GB.ReturnFloat(_val)) ^ /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro ?OPT? RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); ^ ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Unable to compile JIT source file ** ** _ClassStat.GotoNextSection.14: #39: End of file ** _ClassStat.GotoNextSection.14 _ClassStat.Stat.86 Jit._Compile.165 ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user I don't know if this issue is the same fixed in "Jit Crash" thread opened in the mailing list. If is the same, please let me know to avoid duplicities. Best regards. El mi?., 9 ene. 2019 a las 16:29, T Lee Davidson () escribi?: > On 1/9/19 7:39 AM, Jorge Carri?n wrote: > > The difference as I can see is the path /usr/lib/gcc/x86_64-linux-gnu/7 > or /usr/lib/gcc/x86_64-linux-gnu/5 but I don't know if > > this means something at all (I don't know nothing of C). > > It probably doesn't help much, but according to what I have on my system, > the "5" or the "7" would be the gcc version number. > > > ___ > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 11 10:49:37 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 10:49:37 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> <137ea715-0f6e-865a-1c37-e4f13368732a@gmail.com> Message-ID: <8c85351b-d426-da7c-0c66-56365fa8ccc6@gmail.com> Le 11/01/2019 ? 09:46, Jorge Carri?n a ?crit?: > Benoit: > > Installing libc6-dev doesn't work. The only way I can use our > applications is using GB_NO_JIT environment variable. > If I try to launch the programs from console I got several messages, > like this: > > gb.jit: error: unable to compile JIT code: > In file included from /tmp/gambas.1000/4415/jit/gb.report.c:1:0: > /tmp/gambas.1000/4415/jit/gb.report.c: In function ?jit_reportunits_2?: > /tmp/gambas.1000/4415/jit/jit.h:1403:3: error: ?for? loop initial > declarations are only allowed in C99 mode > ?? for (int _i = 0; _i < (_n); _i++) \ > ?? ^ > /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro > ?RETURN_f? > ?#define RETURN_f(_val) (GB.ReturnFloat(_val)) > ??????????????????????????????????????? ^ > /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro > ?OPT? > ?? RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); > ????????????????????????????????????????? ^ > /tmp/gambas.1000/4415/jit/jit.h:1403:3: note: use option -std=c99 or > -std=gnu99 to compile your code > ?? for (int _i = 0; _i < (_n); _i++) \ > ?? ^ > /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro > ?RETURN_f? > ?#define RETURN_f(_val) (GB.ReturnFloat(_val)) > ??????????????????????????????????????? ^ > /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro > ?OPT? > ?? RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); > ????????????????????????????????????????? ^ > > > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Unable to compile JIT source file > ** > ** _ClassStat.GotoNextSection.14: #39: End of file > ** _ClassStat.GotoNextSection.14 _ClassStat.Stat.86 Jit._Compile.165 > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > > I don't know if this issue is the same fixed in "Jit Crash" thread > opened in the mailing list. If is the same, please let me know to avoid > duplicities. > > Best regards. > This bug has been fixed in 3.12.1. I will release a 3.12.2 soon with other JIT fixes. Regards, -- Beno?t Minisini From shordi at gmail.com Fri Jan 11 10:51:26 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 11 Jan 2019 10:51:26 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: <8c85351b-d426-da7c-0c66-56365fa8ccc6@gmail.com> References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> <137ea715-0f6e-865a-1c37-e4f13368732a@gmail.com> <8c85351b-d426-da7c-0c66-56365fa8ccc6@gmail.com> Message-ID: Thank you very much, Benoit. Waiting for 3.12.2 mode on Best regards El vie., 11 ene. 2019 a las 10:50, Beno?t Minisini () escribi?: > Le 11/01/2019 ? 09:46, Jorge Carri?n a ?crit : > > Benoit: > > > > Installing libc6-dev doesn't work. The only way I can use our > > applications is using GB_NO_JIT environment variable. > > If I try to launch the programs from console I got several messages, > > like this: > > > > gb.jit: error: unable to compile JIT code: > > In file included from /tmp/gambas.1000/4415/jit/gb.report.c:1:0: > > /tmp/gambas.1000/4415/jit/gb.report.c: In function ?jit_reportunits_2?: > > /tmp/gambas.1000/4415/jit/jit.h:1403:3: error: ?for? loop initial > > declarations are only allowed in C99 mode > > for (int _i = 0; _i < (_n); _i++) \ > > ^ > > /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro > > ?RETURN_f? > > #define RETURN_f(_val) (GB.ReturnFloat(_val)) > > ^ > > /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro > > ?OPT? > > RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); > > ^ > > /tmp/gambas.1000/4415/jit/jit.h:1403:3: note: use option -std=c99 or > > -std=gnu99 to compile your code > > for (int _i = 0; _i < (_n); _i++) \ > > ^ > > /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro > > ?RETURN_f? > > #define RETURN_f(_val) (GB.ReturnFloat(_val)) > > ^ > > /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of macro > > ?OPT? > > RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); > > ^ > > > > > > ** > > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > > ** Unable to compile JIT source file > > ** > > ** _ClassStat.GotoNextSection.14: #39: End of file > > ** _ClassStat.GotoNextSection.14 _ClassStat.Stat.86 Jit._Compile.165 > > ** > > ** Please send a bug report to the gambas bugtracker [1] or to the > > gambas mailing-list [2]. > > ** [1] http://gambaswiki.org/bugtracker > > ** [2] https://lists.gambas-basic.org/listinfo/user > > > > I don't know if this issue is the same fixed in "Jit Crash" thread > > opened in the mailing list. If is the same, please let me know to avoid > > duplicities. > > > > Best regards. > > > > This bug has been fixed in 3.12.1. I will release a 3.12.2 soon with > other JIT fixes. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Fri Jan 11 12:31:08 2019 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Fri, 11 Jan 2019 11:31:08 +0000 Subject: [Gambas-user] Problem on search in the IDE (version 3.11.4 and 3.12) In-Reply-To: References: Message-ID: Hi everyone, If we actvate the flag in tools/preferences, code formating, "Format on load & save" , the search starts to have a wierd beaviour. If needed I can send an screenshot with an example regards Ant?nio Teixeira > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 11 13:06:28 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 13:06:28 +0100 Subject: [Gambas-user] Problem on search in the IDE (version 3.11.4 and 3.12) In-Reply-To: References: Message-ID: <4f49c406-e271-0c81-b874-355a0015da04@gmail.com> Le 11/01/2019 ? 12:31, Antonio Teixeira a ?crit?: > Hi everyone, > > If we actvate the flag in tools/preferences, code formating, "Format on > load & save" , the search starts to have a wierd beaviour. > If needed I can send an screenshot with an example > > regards > > Ant?nio Teixeira > Yes, and if you can send a project and/or a way to reproduce the problem it would be perfect. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 11 13:08:50 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 13:08:50 +0100 Subject: [Gambas-user] Landscape printing in PDF goes wrong In-Reply-To: References: Message-ID: <4ad79398-50fa-8be5-7e7b-948d7ef204e2@gmail.com> Le 10/01/2019 ? 13:02, Rolf-Werner Eilert a ?crit?: > > Happy New Year guys! > > Just FYI, purely coincidentally I found the solution: It depends on the > graphical libraries you bind your project to. > > In this project, I had gb.gui, and that didn't work out correctly > (myPrinter.Resolution delivers a faulty value). In another project, I > had gb.qt4 instead, and it runs flawlessly. > > When I changed to gb.qt4, calculation was correct again. > > Regards > Rolf > What do you mean exactly by "myPrinter.Resolution delivers a faulty value" ? -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 11 13:25:02 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 13:25:02 +0100 Subject: [Gambas-user] Gambas as Snap or Flatpack package? In-Reply-To: References: Message-ID: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> Le 09/01/2019 ? 15:02, Casper a ?crit?: > Has anyone considered packaging Gambas for Ubuntu as a Snap of Flatpack package? > > A quick snap search gambas returned no results. > > The main advantages for the end user is the ease of installation, > automated updating and it is claimed on the snap website to be more > stable and secure. The claim is also made that snap packages are > universal Linux packages, though I have no experience of this. > > In my experience it is simply a much easier way of staying up to date > with a development tool, I use the snap package for Hugo instead of a > custom repo and I can no longer have issues regarding updating. > > http://snapcraft.io > > Casper > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Creating a snap seems to be relatively simple for "simple" C/C++ programs. The problem is that the entire Gambas requires a lot of packages. Will it be useful if the resulting snap take 600 Mb on the disk because of all these packages ? -- Beno?t Minisini From rwe-sse at osnanet.de Fri Jan 11 13:48:38 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 11 Jan 2019 13:48:38 +0100 Subject: [Gambas-user] Landscape printing in PDF goes wrong In-Reply-To: <4ad79398-50fa-8be5-7e7b-948d7ef204e2@gmail.com> References: <4ad79398-50fa-8be5-7e7b-948d7ef204e2@gmail.com> Message-ID: <6a48619f-834b-1ac4-fd79-bb41328530eb@osnanet.de> Am 11.01.19 um 13:08 schrieb Beno?t Minisini: > Le 10/01/2019 ? 13:02, Rolf-Werner Eilert a ?crit?: >> >> Happy New Year guys! >> >> Just FYI, purely coincidentally I found the solution: It depends on >> the graphical libraries you bind your project to. >> >> In this project, I had gb.gui, and that didn't work out correctly >> (myPrinter.Resolution delivers a faulty value). In another project, I >> had gb.qt4 instead, and it runs flawlessly. >> >> When I changed to gb.qt4, calculation was correct again. >> >> Regards >> Rolf >> > > What do you mean exactly by "myPrinter.Resolution delivers a faulty > value" ? > You are right. Now that I'm thinking about it, it is probably not Printer.Resolution but the way the other functions are calculating their positions such as MoveTo, LineTo etc. For the calculation of mm to printing pixels I use a function based on Printer.Resolution. When I use gb.gui, line drawing etc. goes completely wrong. I had to fake a resolution of "60" to get proper positions here. When I use gb.qt4, all positions are drawn correctly. So yes, it is NOT Printer.Resolution, but the drawing functions. Regards Rolf From akrobaticone at gmail.com Fri Jan 11 14:56:40 2019 From: akrobaticone at gmail.com (Michele V.) Date: Fri, 11 Jan 2019 14:56:40 +0100 Subject: [Gambas-user] Global variable in WebApplication Message-ID: Hi I need to use a global variable (array of string) in WebForm Application I have declared it in at begin of class file as normal gambas program, but sometimes in function and subrutine this variable is empty despite it is popolated by other subrutine 'gambas class file Export public str as new string[10] Public sub WebForm_Open() ........ End . How can it be done? Thank you --------------------------------------------------------------------------------------------- ---------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jan 11 15:48:55 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 11 Jan 2019 15:48:55 +0100 Subject: [Gambas-user] Gambas as Snap or Flatpack package? In-Reply-To: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> References: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> Message-ID: Well 600 MB it's a lot because ide use many dependencies but for gambas produced apps maybe it will be interresting to be able to produce snap from the ide. Le ven. 11 janv. 2019 ? 13:26, Beno?t Minisini a ?crit : > > Le 09/01/2019 ? 15:02, Casper a ?crit : > > Has anyone considered packaging Gambas for Ubuntu as a Snap of Flatpack package? > > > > A quick snap search gambas returned no results. > > > > The main advantages for the end user is the ease of installation, > > automated updating and it is claimed on the snap website to be more > > stable and secure. The claim is also made that snap packages are > > universal Linux packages, though I have no experience of this. > > > > In my experience it is simply a much easier way of staying up to date > > with a development tool, I use the snap package for Hugo instead of a > > custom repo and I can no longer have issues regarding updating. > > > > http://snapcraft.io > > > > Casper > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > Creating a snap seems to be relatively simple for "simple" C/C++ programs. > > The problem is that the entire Gambas requires a lot of packages. Will > it be useful if the resulting snap take 600 Mb on the disk because of > all these packages ? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -- Fabien Bodard From akrobaticone at gmail.com Fri Jan 11 16:00:51 2019 From: akrobaticone at gmail.com (Michele V.) Date: Fri, 11 Jan 2019 16:00:51 +0100 Subject: [Gambas-user] Return value from message box in webfrom application Message-ID: Thank You Benoit Solution that you have proposed work as I need Regards ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Jan 11 16:11:10 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 11 Jan 2019 16:11:10 +0100 Subject: [Gambas-user] Gambas hides component as dotfile - why? In-Reply-To: References: Message-ID: <7057cf03-6a99-2806-7414-1148efb3b321@deganius.de> Am 11.01.19 um 02:57 schrieb Christof Thalhofer: > I am currently working on a component called gb.unittest and if I create > a deb package for installation, it installes the files in > /usr/lib/gambas3 as dotfiles: > > christof at tof-x230 ? ls -a /usr/lib/gambas3 | grep unittest > gb.deg.unittest.component > gb.deg.unittest.gambas <- this is the old version of the component > .gb.unittest.component > .gb.unittest.gambas > > .gb.unittest.gambas is the only component that is installed hidden as > dotfile. > > Why? Now I think it is because I set the vendor name to Null (in the dialog window) when I created the installation package. In the dialog the checkbox to add the vendor name to the package name is checked but also greyed out. Have a look at the screenshot. I cannot change it. Why? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: create-package-vendor-checkbox-grey.png Type: image/png Size: 53439 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 g4mba5 at gmail.com Fri Jan 11 16:15:02 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 16:15:02 +0100 Subject: [Gambas-user] Gambas hides component as dotfile - why? In-Reply-To: <7057cf03-6a99-2806-7414-1148efb3b321@deganius.de> References: <7057cf03-6a99-2806-7414-1148efb3b321@deganius.de> Message-ID: <4db15a06-b2d8-cd80-1c42-513dca65834e@gmail.com> Le 11/01/2019 ? 16:11, Christof Thalhofer a ?crit?: > Am 11.01.19 um 02:57 schrieb Christof Thalhofer: > >> I am currently working on a component called gb.unittest and if I create >> a deb package for installation, it installes the files in >> /usr/lib/gambas3 as dotfiles: >> >> christof at tof-x230 ? ls -a /usr/lib/gambas3 | grep unittest >> gb.deg.unittest.component >> gb.deg.unittest.gambas <- this is the old version of the component >> .gb.unittest.component >> .gb.unittest.gambas >> >> .gb.unittest.gambas is the only component that is installed hidden as >> dotfile. >> >> Why? > > Now I think it is because I set the vendor name to Null (in the dialog > window) when I created the installation package. > > In the dialog the checkbox to add the vendor name to the package name is > checked but also greyed out. Have a look at the screenshot. I cannot > change it. Why? > > > Alles Gute > > Christof Thalhofer > Because a component is always provided with the Gambas source code. -- Beno?t Minisini From sebikul at gmail.com Fri Jan 11 16:15:12 2019 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Fri, 11 Jan 2019 12:15:12 -0300 Subject: [Gambas-user] Gambas as Snap or Flatpack package? In-Reply-To: References: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> Message-ID: I tried to package it a few months ago, but failed constantly to produce a working snap. The documentation is not that great, but someone with more time and understanding will surely get to a working package. I will see If I still have the files in my computer when I get back home so that if anyone wants to try does not have to start from scratch. On Fri, Jan 11, 2019, 11:50 Fabien Bodard wrote: > Well 600 MB it's a lot because ide use many dependencies but for > gambas produced apps maybe it will be interresting to be able to > produce snap from the ide. > > > > Le ven. 11 janv. 2019 ? 13:26, Beno?t Minisini a ?crit > : > > > > Le 09/01/2019 ? 15:02, Casper a ?crit : > > > Has anyone considered packaging Gambas for Ubuntu as a Snap of > Flatpack package? > > > > > > A quick snap search gambas returned no results. > > > > > > The main advantages for the end user is the ease of installation, > > > automated updating and it is claimed on the snap website to be more > > > stable and secure. The claim is also made that snap packages are > > > universal Linux packages, though I have no experience of this. > > > > > > In my experience it is simply a much easier way of staying up to date > > > with a development tool, I use the snap package for Hugo instead of a > > > custom repo and I can no longer have issues regarding updating. > > > > > > http://snapcraft.io > > > > > > Casper > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > Creating a snap seems to be relatively simple for "simple" C/C++ > programs. > > > > The problem is that the entire Gambas requires a lot of packages. Will > > it be useful if the resulting snap take 600 Mb on the disk because of > > all these packages ? > > > > -- > > Beno?t Minisini > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jan 11 18:39:38 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 11 Jan 2019 18:39:38 +0100 Subject: [Gambas-user] Gambas as Snap or Flatpack package? In-Reply-To: References: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> Message-ID: Good ? Le ven. 11 janv. 2019 16:17, Sebasti?n Kulesz a ?crit : > I tried to package it a few months ago, but failed constantly to produce a > working snap. The documentation is not that great, but someone with more > time and understanding will surely get to a working package. > > I will see If I still have the files in my computer when I get back home > so that if anyone wants to try does not have to start from scratch. > > On Fri, Jan 11, 2019, 11:50 Fabien Bodard wrote: > >> Well 600 MB it's a lot because ide use many dependencies but for >> gambas produced apps maybe it will be interresting to be able to >> produce snap from the ide. >> >> >> >> Le ven. 11 janv. 2019 ? 13:26, Beno?t Minisini a >> ?crit : >> > >> > Le 09/01/2019 ? 15:02, Casper a ?crit : >> > > Has anyone considered packaging Gambas for Ubuntu as a Snap of >> Flatpack package? >> > > >> > > A quick snap search gambas returned no results. >> > > >> > > The main advantages for the end user is the ease of installation, >> > > automated updating and it is claimed on the snap website to be more >> > > stable and secure. The claim is also made that snap packages are >> > > universal Linux packages, though I have no experience of this. >> > > >> > > In my experience it is simply a much easier way of staying up to date >> > > with a development tool, I use the snap package for Hugo instead of a >> > > custom repo and I can no longer have issues regarding updating. >> > > >> > > http://snapcraft.io >> > > >> > > Casper >> > > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > > >> > >> > Creating a snap seems to be relatively simple for "simple" C/C++ >> programs. >> > >> > The problem is that the entire Gambas requires a lot of packages. Will >> > it be useful if the resulting snap take 600 Mb on the disk because of >> > all these packages ? >> > >> > -- >> > Beno?t Minisini >> > >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> >> >> >> -- >> Fabien Bodard >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Jan 11 20:05:31 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 11 Jan 2019 20:05:31 +0100 Subject: [Gambas-user] Gambas hides component as dotfile - why? In-Reply-To: <4db15a06-b2d8-cd80-1c42-513dca65834e@gmail.com> References: <7057cf03-6a99-2806-7414-1148efb3b321@deganius.de> <4db15a06-b2d8-cd80-1c42-513dca65834e@gmail.com> Message-ID: <6f4909db-7e45-ea28-5e26-87bc20866bc9@deganius.de> Am 11.01.19 um 16:15 schrieb Beno?t Minisini: >> In the dialog the checkbox to add the vendor name to the package name is >> checked but also greyed out. Have a look at the screenshot. I cannot >> change it. Why? > > Because a component is always provided with the Gambas source code. Ok, thank you. But where comes the leading dot from in the filenames when I install it out of a package? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Fri Jan 11 20:09:44 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 11 Jan 2019 20:09:44 +0100 Subject: [Gambas-user] Gambas hides component as dotfile - why? In-Reply-To: <6f4909db-7e45-ea28-5e26-87bc20866bc9@deganius.de> References: <7057cf03-6a99-2806-7414-1148efb3b321@deganius.de> <4db15a06-b2d8-cd80-1c42-513dca65834e@gmail.com> <6f4909db-7e45-ea28-5e26-87bc20866bc9@deganius.de> Message-ID: <4a7e9131-3194-f9fd-82d8-b45aba181d17@gmail.com> Le 11/01/2019 ? 20:05, Christof Thalhofer a ?crit?: > Am 11.01.19 um 16:15 schrieb Beno?t Minisini: > >>> In the dialog the checkbox to add the vendor name to the package name is >>> checked but also greyed out. Have a look at the screenshot. I cannot >>> change it. Why? >> >> Because a component is always provided with the Gambas source code. > > Ok, thank you. But where comes the leading dot from in the filenames > when I install it out of a package? > > Alles Gute > > Christof Thalhofer > I guess it's a bug. As I never wanted to make package components from the IDE, I never checked that. -- Beno?t Minisini From chrisml at deganius.de Fri Jan 11 22:41:26 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 11 Jan 2019 22:41:26 +0100 Subject: [Gambas-user] Gambas hides component as dotfile - why? In-Reply-To: <4a7e9131-3194-f9fd-82d8-b45aba181d17@gmail.com> References: <7057cf03-6a99-2806-7414-1148efb3b321@deganius.de> <4db15a06-b2d8-cd80-1c42-513dca65834e@gmail.com> <6f4909db-7e45-ea28-5e26-87bc20866bc9@deganius.de> <4a7e9131-3194-f9fd-82d8-b45aba181d17@gmail.com> Message-ID: Am 11.01.19 um 20:09 schrieb Beno?t Minisini: > I guess it's a bug. As I never wanted to make package components from > the IDE, I never checked that. :-) Ok. I'll write a bug. Maybe I can debug it as well. Normally I create my Debian packages with make. But here I needed it to test things. 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 antonio.j.teixeira at gmail.com Fri Jan 11 22:42:05 2019 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Fri, 11 Jan 2019 21:42:05 +0000 Subject: [Gambas-user] Problem on search in the IDE (version 3.11.4 and 3.12) In-Reply-To: References: Message-ID: Hi Benoit, I cant reproduce the problem in small projects. Our main project where we detected the problem has almost 100 classes and more then 50000 lines of code. I attatch to this email a screenshot with the search we have done and where we detected the problem Regards Ant?nio Teixeira > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas search error.png Type: image/png Size: 131141 bytes Desc: not available URL: From sebikul at gmail.com Sat Jan 12 00:46:00 2019 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Fri, 11 Jan 2019 20:46:00 -0300 Subject: [Gambas-user] Gambas as Snap or Flatpack package? In-Reply-To: References: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> Message-ID: As promised, here is the work I did before I abandoned it. I'm not sure how it will work with the current versions of snap, snapcraft, and gambas. On Fri, Jan 11, 2019 at 2:40 PM Fabien Bodard wrote: > Good ? > > Le ven. 11 janv. 2019 16:17, Sebasti?n Kulesz a > ?crit : > >> I tried to package it a few months ago, but failed constantly to produce >> a working snap. The documentation is not that great, but someone with more >> time and understanding will surely get to a working package. >> >> I will see If I still have the files in my computer when I get back home >> so that if anyone wants to try does not have to start from scratch. >> >> On Fri, Jan 11, 2019, 11:50 Fabien Bodard wrote: >> >>> Well 600 MB it's a lot because ide use many dependencies but for >>> gambas produced apps maybe it will be interresting to be able to >>> produce snap from the ide. >>> >>> >>> >>> Le ven. 11 janv. 2019 ? 13:26, Beno?t Minisini a >>> ?crit : >>> > >>> > Le 09/01/2019 ? 15:02, Casper a ?crit : >>> > > Has anyone considered packaging Gambas for Ubuntu as a Snap of >>> Flatpack package? >>> > > >>> > > A quick snap search gambas returned no results. >>> > > >>> > > The main advantages for the end user is the ease of installation, >>> > > automated updating and it is claimed on the snap website to be more >>> > > stable and secure. The claim is also made that snap packages are >>> > > universal Linux packages, though I have no experience of this. >>> > > >>> > > In my experience it is simply a much easier way of staying up to date >>> > > with a development tool, I use the snap package for Hugo instead of a >>> > > custom repo and I can no longer have issues regarding updating. >>> > > >>> > > http://snapcraft.io >>> > > >>> > > Casper >>> > > >>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> > > >>> > >>> > Creating a snap seems to be relatively simple for "simple" C/C++ >>> programs. >>> > >>> > The problem is that the entire Gambas requires a lot of packages. Will >>> > it be useful if the resulting snap take 600 Mb on the disk because of >>> > all these packages ? >>> > >>> > -- >>> > Beno?t Minisini >>> > >>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-snap.tar.gz Type: application/gzip Size: 1358 bytes Desc: not available URL: From sebikul at gmail.com Sat Jan 12 01:18:05 2019 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Fri, 11 Jan 2019 21:18:05 -0300 Subject: [Gambas-user] Gambas as Snap or Flatpack package? In-Reply-To: References: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> Message-ID: Well, I just tested the latest version with this snapcraft file and it worked, I was able to launch the IDE. It seems that very little work is needed to finish the package :) Regards On Fri, Jan 11, 2019 at 8:46 PM Sebasti?n Kulesz wrote: > As promised, here is the work I did before I abandoned it. > > I'm not sure how it will work with the current versions of snap, > snapcraft, and gambas. > > On Fri, Jan 11, 2019 at 2:40 PM Fabien Bodard wrote: > >> Good ? >> >> Le ven. 11 janv. 2019 16:17, Sebasti?n Kulesz a >> ?crit : >> >>> I tried to package it a few months ago, but failed constantly to produce >>> a working snap. The documentation is not that great, but someone with more >>> time and understanding will surely get to a working package. >>> >>> I will see If I still have the files in my computer when I get back home >>> so that if anyone wants to try does not have to start from scratch. >>> >>> On Fri, Jan 11, 2019, 11:50 Fabien Bodard wrote: >>> >>>> Well 600 MB it's a lot because ide use many dependencies but for >>>> gambas produced apps maybe it will be interresting to be able to >>>> produce snap from the ide. >>>> >>>> >>>> >>>> Le ven. 11 janv. 2019 ? 13:26, Beno?t Minisini a >>>> ?crit : >>>> > >>>> > Le 09/01/2019 ? 15:02, Casper a ?crit : >>>> > > Has anyone considered packaging Gambas for Ubuntu as a Snap of >>>> Flatpack package? >>>> > > >>>> > > A quick snap search gambas returned no results. >>>> > > >>>> > > The main advantages for the end user is the ease of installation, >>>> > > automated updating and it is claimed on the snap website to be more >>>> > > stable and secure. The claim is also made that snap packages are >>>> > > universal Linux packages, though I have no experience of this. >>>> > > >>>> > > In my experience it is simply a much easier way of staying up to >>>> date >>>> > > with a development tool, I use the snap package for Hugo instead of >>>> a >>>> > > custom repo and I can no longer have issues regarding updating. >>>> > > >>>> > > http://snapcraft.io >>>> > > >>>> > > Casper >>>> > > >>>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> > > >>>> > >>>> > Creating a snap seems to be relatively simple for "simple" C/C++ >>>> programs. >>>> > >>>> > The problem is that the entire Gambas requires a lot of packages. Will >>>> > it be useful if the resulting snap take 600 Mb on the disk because of >>>> > all these packages ? >>>> > >>>> > -- >>>> > Beno?t Minisini >>>> > >>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>>> >>>> -- >>>> Fabien Bodard >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 12 02:17:38 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Jan 2019 02:17:38 +0100 Subject: [Gambas-user] Gambas as Snap or Flatpack package? In-Reply-To: References: <5149bddd-a41e-c7fa-cb6d-d839c5af3fe3@gmail.com> Message-ID: <61204c85-cee0-d1f5-48ea-7bbd2bfd7ed6@gmail.com> Le 12/01/2019 ? 01:18, Sebasti?n Kulesz a ?crit?: > Well, I just tested the latest version with this snapcraft file and it > worked, I was able to launch the IDE. > It seems that very little work is needed to finish the package :) > > Regards > Cool, but there is something I don't get at the moment: For me, a snap is a program executable bundled with all its dependencies in a big package. When you run it, snap creates a sort of file sandbox so that the program see its libraries without having to installing anything system-wide. It's ok for a classic program that open a file, modify it, and save it. But the Gambas IDE run the project it's edit by calling external programs : the compiler, the interpreter, and so on. In which environment is a project run by the Gambas IDE snap executed? -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 12 16:43:26 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Jan 2019 16:43:26 +0100 Subject: [Gambas-user] Release of Gambas 3.12.2 Message-ID: Hi, I have just release the Gambas 3.12.2 version. It should fix most of the problems (but not all) detected since the release of Gambas 3.12.0 and not fixed in the 3.12.1 release. Release notes are at http://gambaswiki.org/wiki/doc/release/3.12.2 and source package is at https://gitlab.com/gambas/gambas/-/archive/3.12.2/gambas-3.12.2.tar.bz2. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Jan 12 18:24:52 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 12 Jan 2019 18:24:52 +0100 Subject: [Gambas-user] Binding UdpSocket to specific IP In-Reply-To: <8ab9220a-466c-5da9-1eff-cc652c13c851@gmail.com> References: <8ab9220a-466c-5da9-1eff-cc652c13c851@gmail.com> Message-ID: <8023d457-8787-8030-8ed6-e67cbe76e38f@gmail.com> Hi, In commit https://gitlab.com/gambas/gambas/commit/23a8fbc81df4947ac00ea361d22198fc0c33f51f, I have added a new UdpSocket.Host property that allows to define the IP address used by the Bind() method. Can you test it and tell me if it works for you? Le 11/01/2019 ? 02:15, Beno?t Minisini a ?crit?: > Le 10/01/2019 ? 11:11, gen braga a ?crit?: >> Hi there >> >> My dev station's NIC has multiple IP addresses currently assigned. Is >> there a way to bind Gambas's UdpSocket to a specific IP? The default >> behavior is to listen to any address (0.0.0.0) >> >> Thanks in advance. >> > > It's something to add to the gb.net component. > > Something like new arguments to the Bind method: Bind(address, port) > -- Beno?t Minisini From buster6seven at gmail.com Sun Jan 13 01:49:27 2019 From: buster6seven at gmail.com (Shane) Date: Sun, 13 Jan 2019 11:49:27 +1100 Subject: [Gambas-user] [CRASH REPORT] Sdl Font Test Message-ID: Hello, Damned, my program crashed Gambas that way : Public Sub Window_Draw() Dim H As Integer H = Font.DefaultHeight * 4 Print Draw.Font.Name <-------- Seg Fault Here Draw.Clear Draw.Font.Size = H Draw.Text("Gambas", 0, 0) Draw.Text(CStr($hWindow.FrameCount), 0, H) -------------- next part -------------- A non-text attachment was scrubbed... Name: Sdl_Font_Test-0.0.1-crash-190113-114831.tar.bz2 Type: application/x-bzip Size: 25484 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sun Jan 13 07:50:43 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 13 Jan 2019 01:50:43 -0500 Subject: [Gambas-user] [CRASH REPORT] Sdl Font Test In-Reply-To: References: Message-ID: I can get the sample SDL application to print the font name of a system font loaded in Main() with: Font.Load("/usr/share/fonts/truetype/DejaVuSans.ttf") by doing in Window_Draw(): Dim hFont As Font hFont = Font["DejaVuSans"] Print hFont.Name But then if I try either of the following in that same Draw event: Draw.Font = hFont , or Draw.Font = Font["DejaVuSans"] it SegFaults. I sent a project a few days ago [0], but it might have gotten lost thanks to Gmail's 'super-intelligent' spam detection. Or, I think more likely, Beno?t is quietly working on it. ___ Lee [0] https://lists.gambas-basic.org/pipermail/user/2019-January/066178.html On 1/12/19 7:49 PM, Shane wrote: > Hello, > > Damned, my program crashed Gambas that way : > > Public Sub Window_Draw() > > Dim H As Integer > > H = Font.DefaultHeight * 4 > Print Draw.Font.Name <-------- Seg Fault Here > Draw.Clear > Draw.Font.Size = H > Draw.Text("Gambas", 0, 0) > Draw.Text(CStr($hWindow.FrameCount), 0, H) > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From hans at gambas-buch.de Sun Jan 13 14:06:46 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 13 Jan 2019 14:06:46 +0100 Subject: [Gambas-user] Internal link in a Markdown Message-ID: Hello, how do you implement an _internal_ link in a Markdown document? With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 13 15:45:18 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 13 Jan 2019 15:45:18 +0100 Subject: [Gambas-user] Beware of the restriction on global variables. Message-ID: Before the new changes in the declaration of local variables, it was possible, even if I do not understand the reason, to declare a global variable to use it in this way: Private hControl As Control Public Sub Form_Open() For Each hControl In Me.Controls Print hControl.Name Next End Now this code is no longer possible. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jan 13 18:29:08 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 13 Jan 2019 12:29:08 -0500 Subject: [Gambas-user] Internal link in a Markdown In-Reply-To: References: Message-ID: That depends upon what you mean by, "internal". As far as I know, there is no need to use any special syntax to implement an 'internal' link. A link is a link. That being said, on the Gambas Wiki there is the ability to use relative link syntax. It works like this: http://gambaswiki.org/wiki is essentially the document root for the Wiki. So, a link to: http://gambaswiki.org/wiki/doc/markdown can be implemented thus: "Read the documentation for [Gambas Markdown Syntax](/doc/markdown)." ___ Lee On 1/13/19 8:06 AM, Hans Lehmann wrote: > Hello, > > how do you implement an _internal_ link in a Markdown document? > > With kind regards > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From hans at gambas-buch.de Sun Jan 13 18:46:55 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 13 Jan 2019 18:46:55 +0100 Subject: [Gambas-user] Internal link in a Markdown In-Reply-To: References: Message-ID: Hello Lee, I mean a link in the document to a place in the (same) document. I asked for this syntax in MarkDown. Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 13 19:25:25 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 13 Jan 2019 19:25:25 +0100 Subject: [Gambas-user] Internal link in a Markdown In-Reply-To: References: Message-ID: Il giorno dom 13 gen 2019 alle ore 18:47 Hans Lehmann ha scritto: > Hello Lee, > > I mean a link in the document to a place in the (same) document. > I asked for this syntax in MarkDown. > > Yours sincerely > > Hans > > I believe the syntax is this: see [Goofy topic][] <--- link to header in same page see [Goofy topic][.relative/path/other/page] <--- link to header in other page ### [Goofy topic] <--- topic header Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jan 13 21:37:46 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 13 Jan 2019 21:37:46 +0100 Subject: [Gambas-user] Beware of the restriction on global variables. In-Reply-To: References: Message-ID: <74f63e59-4165-9969-4494-476c817ccb72@gmail.com> Le 13/01/2019 ? 15:45, Gianluigi a ?crit?: > Before the new changes in the declaration of local variables, it was > possible, even if I do not understand the reason, to declare a global > variable to use it in this way: > > Private hControl As Control > > Public Sub Form_Open() > > ? For Each hControl In Me.Controls > ??? Print hControl.Name > ? Next > > End > > Now this code is no longer possible. > > Regards > Gianluigi > A loop variable must be local, because of the interpreter and the JIT compiler. It was possible to use any variable with FOR EACH, but that was a mistake. -- Beno?t Minisini From t.lee.davidson at gmail.com Sun Jan 13 23:16:00 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 13 Jan 2019 17:16:00 -0500 Subject: [Gambas-user] Internal link in a Markdown In-Reply-To: References: Message-ID: <89445c41-7c1e-38d4-9b04-a61beabf29f2@gmail.com> I understand now what you were asking. That would be a Reference link. See: http://gambaswiki.org/wiki/doc/markdown#t10 https://daringfireball.net/projects/markdown/syntax#link ___ Lee On 1/13/19 12:46 PM, Hans Lehmann wrote: > Hello Lee, > > I mean a link in the document to a place in the (same) document. > I asked for this syntax in MarkDown. > > Yours sincerely > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From genbraga1 at gmail.com Mon Jan 14 00:28:56 2019 From: genbraga1 at gmail.com (gen braga) Date: Sun, 13 Jan 2019 21:28:56 -0200 Subject: [Gambas-user] Binding UdpSocket to specific IP In-Reply-To: <8023d457-8787-8030-8ed6-e67cbe76e38f@gmail.com> References: <8ab9220a-466c-5da9-1eff-cc652c13c851@gmail.com> <8023d457-8787-8030-8ed6-e67cbe76e38f@gmail.com> Message-ID: Surely. I'll give you a feedback asap. Thanks Em s?b, 12 de jan de 2019 15:27, Beno?t Minisini Hi, > > In commit > > https://gitlab.com/gambas/gambas/commit/23a8fbc81df4947ac00ea361d22198fc0c33f51f, > > I have added a new UdpSocket.Host property that allows to define the IP > address used by the Bind() method. > > Can you test it and tell me if it works for you? > > Le 11/01/2019 ? 02:15, Beno?t Minisini a ?crit : > > Le 10/01/2019 ? 11:11, gen braga a ?crit : > >> Hi there > >> > >> My dev station's NIC has multiple IP addresses currently assigned. Is > >> there a way to bind Gambas's UdpSocket to a specific IP? The default > >> behavior is to listen to any address (0.0.0.0) > >> > >> Thanks in advance. > >> > > > > It's something to add to the gb.net component. > > > > Something like new arguments to the Bind method: Bind(address, port) > > > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Jan 14 08:28:46 2019 From: adamnt42 at gmail.com (Bruce) Date: Mon, 14 Jan 2019 17:58:46 +1030 Subject: [Gambas-user] gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) Message-ID: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> Hi guys, I have a project (*^&*%& [1] ) that uses gb.dbus. It works fine most of the time but lately we have been getting strange hangups, the cause of which I do not know. So I have been trying the DBusExplorer from the farm to see if I can find the oddity. The problem is this, quite simply, when I 2xClick on the relative entry in the Session tab listbox it just goes to sleep. Running in debug mode I see that it gets to FVersiongbXML.ShowPathContent() then tries to execute "sIntr = DBus[sBus & sApplication]._Introspect(sPath)". Which is fine and good I suppose but, there is no public/exported (whatever) "_Introspect()" method in that project. So, please, what do I have to do to implement such a method and what should it do? Neither the component help nor the (^&#^&$) dbus documentation have been any assistance. tia bruce [1] WOOPS, I almost typed "app" there. Talk about embarrassed! [2] I have also tried the qdbusviewer utility and a similar thing happens. From hans at gambas-buch.de Mon Jan 14 09:18:16 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 14 Jan 2019 09:18:16 +0100 Subject: [Gambas-user] Internal link in a Markdown In-Reply-To: <89445c41-7c1e-38d4-9b04-a61beabf29f2@gmail.com> References: <89445c41-7c1e-38d4-9b04-a61beabf29f2@gmail.com> Message-ID: <79e262c8-5866-1c37-688b-4eff930ec887@gambas-buch.de> Am 13.01.19 um 23:16 schrieb T Lee Davidson: > See: > http://gambaswiki.org/wiki/doc/markdown#t10 Hello Lee, in the text behind this link above there is a short description, but no suitable example like in the second link https://daringfireball.net/projects/markdown/syntax#link. Now the answer to my initial question is complete. Thank you says Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Mon Jan 14 09:22:18 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 14 Jan 2019 09:22:18 +0100 Subject: [Gambas-user] gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) In-Reply-To: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> References: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> Message-ID: Hello Bruce. Could a look to https://www.gambas-buch.de/doku.php?id=k24:k24.9:start help? That asks Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Jan 14 09:41:14 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 14 Jan 2019 09:41:14 +0100 Subject: [Gambas-user] Fwd: gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) In-Reply-To: References: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> Message-ID: you can take a look at the DBusExplorer tool too ---------- Forwarded message --------- From: Hans Lehmann Date: lun. 14 janv. 2019 ? 09:23 Subject: Re: [Gambas-user] gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) To: Hello Bruce. Could a look to https://www.gambas-buch.de/doku.php?id=k24:k24.9:start help? That asks Hans ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -- Fabien Bodard From adamnt42 at gmail.com Mon Jan 14 10:05:29 2019 From: adamnt42 at gmail.com (Bruce) Date: Mon, 14 Jan 2019 19:35:29 +1030 Subject: [Gambas-user] gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) In-Reply-To: References: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> Message-ID: <5a1260ee-ee8d-9324-7854-d4d7259fb74d@gmail.com> Oh so close, but no banana. Everything but how to make an "introspectable" method. (Ach so nah, aber keine Banane. Alles au?er wie man eine "introspektierbare" Methode macht. Please excuse google translate!) On 14/1/19 6:52 pm, Hans Lehmann wrote: > Hello Bruce. > > Could a look to https://www.gambas-buch.de/doku.php?id=k24:k24.9:start help? > > That asks > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From g4mba5 at gmail.com Mon Jan 14 10:56:14 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 Jan 2019 10:56:14 +0100 Subject: [Gambas-user] gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) In-Reply-To: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> References: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> Message-ID: <08961a71-dd0b-5b80-d76d-cbbe1182947d@gmail.com> Le 14/01/2019 ? 08:28, Bruce a ?crit?: > Hi guys, > > I have a project (*^&*%& [1] ) that uses gb.dbus. It works fine most of > the time but lately we have been getting strange hangups, the cause of > which I do not know.? So I have been trying the DBusExplorer from the > farm to see if I can find the oddity. > > The problem is this, quite simply, when I 2xClick on the relative entry > in the Session tab listbox it just goes to sleep. Running in debug mode > I see that it gets to FVersiongbXML.ShowPathContent() then tries to > execute "sIntr = DBus[sBus & sApplication]._Introspect(sPath)". Which is > fine and good I suppose but, there is no public/exported (whatever) > "_Introspect()" method in that project. > > So, please, what do I have to do to implement such a method and what > should it do? _Introspect() is a method of the object returned by DBus[sBus & sApplication], it's not a DBus method. YOu don't have to implement anything. This method asks DBus to introspect a DBus object of the specified application. DBus then calls the "Introspect()" DBus method that must be implemented by the DBus object, which is automatic as soon as this DBus object is implemented in Gambas and inherits the DBusObject class. Show your project, and we will tell you what is wrong. -- Beno?t Minisini From adamnt42 at gmail.com Mon Jan 14 11:17:33 2019 From: adamnt42 at gmail.com (Bruce) Date: Mon, 14 Jan 2019 20:47:33 +1030 Subject: [Gambas-user] gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) In-Reply-To: <08961a71-dd0b-5b80-d76d-cbbe1182947d@gmail.com> References: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> <08961a71-dd0b-5b80-d76d-cbbe1182947d@gmail.com> Message-ID: <1c308163-4648-05b2-721c-999ebd86eca3@gmail.com> On 14/1/19 8:26 pm, Beno?t Minisini wrote: > Le 14/01/2019 ? 08:28, Bruce a ?crit?: >> Hi guys, >> >> I have a project (*^&*%& [1] ) that uses gb.dbus. It works fine most >> of the time but lately we have been getting strange hangups, the cause >> of which I do not know.? So I have been trying the DBusExplorer from >> the farm to see if I can find the oddity. >> >> The problem is this, quite simply, when I 2xClick on the relative >> entry in the Session tab listbox it just goes to sleep. Running in >> debug mode I see that it gets to FVersiongbXML.ShowPathContent() then >> tries to execute "sIntr = DBus[sBus & >> sApplication]._Introspect(sPath)". Which is fine and good I suppose >> but, there is no public/exported (whatever) "_Introspect()" method in >> that project. >> >> So, please, what do I have to do to implement such a method and what >> should it do? > > _Introspect() is a method of the object returned by DBus[sBus & > sApplication], it's not a DBus method. YOu don't have to implement > anything. > > This method asks DBus to introspect a DBus object of the specified > application. DBus then calls the "Introspect()" DBus method that must be > implemented by the DBus object, which is automatic as soon as this DBus > object is implemented in Gambas and inherits the DBusObject class. > > Show your project, and we will tell you what is wrong. > Thank you Beno?t, That's what I thought. I'll get back tomorrow. B From shordi at gmail.com Mon Jan 14 12:36:20 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 14 Jan 2019 12:36:20 +0100 Subject: [Gambas-user] Problem with new JIT In-Reply-To: References: <1924a4e3-b9c2-6412-7cbe-e8a8519dd4b6@gmail.com> <137ea715-0f6e-865a-1c37-e4f13368732a@gmail.com> <8c85351b-d426-da7c-0c66-56365fa8ccc6@gmail.com> Message-ID: With 3.12.2 runs ok. Since now I'll have to implement libc6-dev as a dependency of our projects... but that's not a big deal. Thanks again El vie., 11 ene. 2019 a las 10:51, Jorge Carri?n () escribi?: > Thank you very much, Benoit. > > Waiting for 3.12.2 mode on > > Best regards > > El vie., 11 ene. 2019 a las 10:50, Beno?t Minisini () > escribi?: > >> Le 11/01/2019 ? 09:46, Jorge Carri?n a ?crit : >> > Benoit: >> > >> > Installing libc6-dev doesn't work. The only way I can use our >> > applications is using GB_NO_JIT environment variable. >> > If I try to launch the programs from console I got several messages, >> > like this: >> > >> > gb.jit: error: unable to compile JIT code: >> > In file included from /tmp/gambas.1000/4415/jit/gb.report.c:1:0: >> > /tmp/gambas.1000/4415/jit/gb.report.c: In function ?jit_reportunits_2?: >> > /tmp/gambas.1000/4415/jit/jit.h:1403:3: error: ?for? loop initial >> > declarations are only allowed in C99 mode >> > for (int _i = 0; _i < (_n); _i++) \ >> > ^ >> > /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro >> > ?RETURN_f? >> > #define RETURN_f(_val) (GB.ReturnFloat(_val)) >> > ^ >> > /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of >> macro >> > ?OPT? >> > RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); >> > ^ >> > /tmp/gambas.1000/4415/jit/jit.h:1403:3: note: use option -std=c99 or >> > -std=gnu99 to compile your code >> > for (int _i = 0; _i < (_n); _i++) \ >> > ^ >> > /tmp/gambas.1000/4415/jit/jit.h:1418:40: note: in definition of macro >> > ?RETURN_f? >> > #define RETURN_f(_val) (GB.ReturnFloat(_val)) >> > ^ >> > /tmp/gambas.1000/4415/jit/gb.report.c:24:42: note: in expansion of >> macro >> > ?OPT? >> > RETURN_f(jit_reportunits_2_(PARAM_s(0),OPT(1,1),PARAM_OPT_i(1))); >> > ^ >> > >> > >> > ** >> > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( >> > ** Unable to compile JIT source file >> > ** >> > ** _ClassStat.GotoNextSection.14: #39: End of file >> > ** _ClassStat.GotoNextSection.14 _ClassStat.Stat.86 Jit._Compile.165 >> > ** >> > ** Please send a bug report to the gambas bugtracker [1] or to the >> > gambas mailing-list [2]. >> > ** [1] http://gambaswiki.org/bugtracker >> > ** [2] https://lists.gambas-basic.org/listinfo/user >> > >> > I don't know if this issue is the same fixed in "Jit Crash" thread >> > opened in the mailing list. If is the same, please let me know to avoid >> > duplicities. >> > >> > Best regards. >> > >> >> This bug has been fixed in 3.12.1. I will release a 3.12.2 soon with >> other JIT fixes. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Jan 14 13:09:06 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 14 Jan 2019 13:09:06 +0100 Subject: [Gambas-user] Beware of the restriction on global variables. In-Reply-To: <74f63e59-4165-9969-4494-476c817ccb72@gmail.com> References: <74f63e59-4165-9969-4494-476c817ccb72@gmail.com> Message-ID: We lose this ability but won the one of inline declaration For each hControl as Control in MyForm.Children Next Le dim. 13 janv. 2019 21:38, Beno?t Minisini a ?crit : > Le 13/01/2019 ? 15:45, Gianluigi a ?crit : > > Before the new changes in the declaration of local variables, it was > > possible, even if I do not understand the reason, to declare a global > > variable to use it in this way: > > > > Private hControl As Control > > > > Public Sub Form_Open() > > > > For Each hControl In Me.Controls > > Print hControl.Name > > Next > > > > End > > > > Now this code is no longer possible. > > > > Regards > > Gianluigi > > > > A loop variable must be local, because of the interpreter and the JIT > compiler. It was possible to use any variable with FOR EACH, but that > was a mistake. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jan 14 13:16:19 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 Jan 2019 13:16:19 +0100 Subject: [Gambas-user] Beware of the restriction on global variables. In-Reply-To: References: <74f63e59-4165-9969-4494-476c817ccb72@gmail.com> Message-ID: Le 14/01/2019 ? 13:09, Fabien Bodard a ?crit?: > We lose this ability but won the one of inline declaration > > For each hControl as Control in MyForm.Children > > Next > This ability was not intended. It was just there, and broke with the JIT compiler. -- Beno?t Minisini From tercoide at hotmail.com Mon Jan 14 13:41:45 2019 From: tercoide at hotmail.com (Martin Cristia) Date: Mon, 14 Jan 2019 12:41:45 +0000 Subject: [Gambas-user] Release of Gambas 3.12.2 (Beno?t Minisini) In-Reply-To: References: Message-ID: Thank you. When the Fast function contains an argument that is a Struct, an error is raised. "Expected number, got instead" Also, the IDE crashes after that. -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Mon Jan 14 15:10:18 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 Jan 2019 15:10:18 +0100 Subject: [Gambas-user] Release of Gambas 3.12.2 (Beno?t Minisini) In-Reply-To: References: Message-ID: <97ea2bfd-b7ae-644c-5aa9-fb3fd0240792@gmail.com> Le 14/01/2019 ? 13:41, Martin Cristia a ?crit?: > Thank you. > > When the Fast function contains an argument that is a Struct, an error > is raised. > > "Expected number, got instead" > > Also, the IDE crashes after that. > Struct is not supported by the JIT compiler yet. -- Beno?t Minisini From charlie at cogier.com Mon Jan 14 17:29:43 2019 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 14 Jan 2019 16:29:43 +0000 Subject: [Gambas-user] Possible bug in Progressbar Message-ID: <5085a56c-1d14-0f6e-1e68-ecb48b66a16f@cogier.com> Hi Beno?t, Changing the Progressbar foreground colour has no effect. Even changing GTK to QT makes no difference. This issue was raised here https://forum.gambas.one/viewtopic.php?f=4&t=650 Charlie From t.lee.davidson at gmail.com Mon Jan 14 18:23:28 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 14 Jan 2019 12:23:28 -0500 Subject: [Gambas-user] gb.dbus & DBusExplorer : How to implement "_Introspect"? (If necessary??) In-Reply-To: <08961a71-dd0b-5b80-d76d-cbbe1182947d@gmail.com> References: <71ace65a-0bcb-0809-91dc-4ce85e1c402c@gmail.com> <08961a71-dd0b-5b80-d76d-cbbe1182947d@gmail.com> Message-ID: <5b5ed463-aaea-7eeb-3f36-9be3927d8e84@gmail.com> On 1/14/19 4:56 AM, Beno?t Minisini wrote: > Le 14/01/2019 ? 08:28, Bruce a ?crit?: >> Hi guys, >> >> I have a project (*^&*%& [1] ) that uses gb.dbus. It works fine most of the time but lately we have been getting strange >> hangups, the cause of which I do not know.? So I have been trying the DBusExplorer from the farm to see if I can find the oddity. >> >> The problem is this, quite simply, when I 2xClick on the relative entry in the Session tab listbox it just goes to sleep. >> Running in debug mode I see that it gets to FVersiongbXML.ShowPathContent() then tries to execute "sIntr = DBus[sBus & >> sApplication]._Introspect(sPath)". Which is fine and good I suppose but, there is no public/exported (whatever) >> "_Introspect()" method in that project. >> >> So, please, what do I have to do to implement such a method and what should it do? > > _Introspect() is a method of the object returned by DBus[sBus & sApplication], it's not a DBus method. YOu don't have to > implement anything. > > This method asks DBus to introspect a DBus object of the specified application. DBus then calls the "Introspect()" DBus method > that must be implemented by the DBus object, which is automatic as soon as this DBus object is implemented in Gambas and > inherits the DBusObject class. > > Show your project, and we will tell you what is wrong. > I sometimes get a similar behavior with QDBusViewer. It seems that either some applications that expose an interface on the bus do not properly implement the Introspect method, or a security policy blocks the message. For example, when I try to inspect Thunderbird, it seems to hang for a while and then I get: Error: Call to object / at org.mozilla.thunderbird.ZGVmYXVsdA__: org.freedesktop.DBus.Error.NoReply (Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) failed ___ Lee From t.lee.davidson at gmail.com Mon Jan 14 19:16:57 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 14 Jan 2019 13:16:57 -0500 Subject: [Gambas-user] Internal link in a Markdown In-Reply-To: <79e262c8-5866-1c37-688b-4eff930ec887@gambas-buch.de> References: <89445c41-7c1e-38d4-9b04-a61beabf29f2@gmail.com> <79e262c8-5866-1c37-688b-4eff930ec887@gambas-buch.de> Message-ID: On 1/14/19 3:18 AM, Hans Lehmann wrote: > Am 13.01.19 um 23:16 schrieb T Lee Davidson: >> See: >> http://gambaswiki.org/wiki/doc/markdown#t10 > > Hello Lee, > > in the text behind this link above there is a short description, but no suitable example like in the second link > https://daringfireball.net/projects/markdown/syntax#link. Now the answer to my initial question is complete. > > Thank you says > > Hans Upon closer examination, I found that the examples actually were there in the underlying markdown of that Wiki page. But, for some reason weren't being rendered properly as code blocks. Now that they are encapsulated in back-ticks, they display properly. ___ Lee From bagonergi at gmail.com Tue Jan 15 16:46:05 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 15 Jan 2019 16:46:05 +0100 Subject: [Gambas-user] Merge request Italian translation, issue Message-ID: Maybe I was able to commit the Italian translations correctly, can you check please? The translation of gambas-wiki gave this error Pipeline # 43426563 failed with stage, what should I do? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Jan 15 22:38:38 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 15 Jan 2019 22:38:38 +0100 Subject: [Gambas-user] Merge request Italian translation, issue In-Reply-To: References: Message-ID: Il giorno mar 15 gen 2019 alle ore 16:46 Gianluigi ha scritto: > Maybe I was able to commit the Italian translations correctly, can you > check please? > The translation of gambas-wiki gave this error Pipeline # 43426563 failed > with stage, what should I do? > > Regards > Gianluigi > I redid the commit and push and this time it worked. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jan 15 23:12:31 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 15 Jan 2019 23:12:31 +0100 Subject: [Gambas-user] Merge request Italian translation, issue In-Reply-To: References: Message-ID: Le 15/01/2019 ? 22:38, Gianluigi a ?crit?: > > > Il giorno mar 15 gen 2019 alle ore 16:46 Gianluigi > ha scritto: > > Maybe I was able to commit the Italian translations correctly, can > you check please? > The translation of gambas-wiki gave this error Pipeline # 43426563 > failed with stage, what should I do? > > Regards > Gianluigi > > > I redid the commit and push and this time it worked. > > Regards > Gianluigi > Note that all your changelogs do not respect the convention explained in the README.commit file! For example, if you update the italian translation of the 'gb.form' component, your changelog should be: ``` Update Italian translation. [GB.FORM] * NEW: Update Italian translation. ``` -- Beno?t Minisini From akrobaticone at gmail.com Wed Jan 16 09:03:52 2019 From: akrobaticone at gmail.com (Michele V.) Date: Wed, 16 Jan 2019 09:03:52 +0100 Subject: [Gambas-user] Global variable in WebApplication Message-ID: I think I understand that it is not possible to manage global variables in WebApplications I also tried to create a new class, but it also does not keep the data stored the only solution is to rely on external files or a database? Thank you ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jan 16 09:51:49 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 16 Jan 2019 09:51:49 +0100 Subject: [Gambas-user] Merge request Italian translation, issue In-Reply-To: References: Message-ID: Il giorno mar 15 gen 2019 alle ore 23:13 Beno?t Minisini ha scritto: > Le 15/01/2019 ? 22:38, Gianluigi a ?crit : > > Note that all your changelogs do not respect the convention explained in > the README.commit file! > > For example, if you update the italian translation of the 'gb.form' > component, your changelog should be: > > ``` > Update Italian translation. > > [GB.FORM] > * NEW: Update Italian translation. > ``` > > -- > Beno?t Minisini > > Hi Benoit, Here is the sentence that I did not understand! >The slot's name is the one of the component modified (in uppercase), "or"... Instead I understood that those written below were all the SLOTs, I'm sorry. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jan 16 13:09:43 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 Jan 2019 13:09:43 +0100 Subject: [Gambas-user] Global variable in WebApplication In-Reply-To: References: Message-ID: Le 16/01/2019 ? 09:03, Michele V. a ?crit?: > I think I understand that it is not possible to manage global variables > in WebApplications > I also tried to create a new class, but it also does not keep the data > stored > the only solution is to rely on external files or a database? > > Thank you > ------------------------------------------------------------------------------------------------------------------------------------------- > Io scrivo da UBUNTU GNU/LINUX > > Use the Session class. Each connection is associated with a session file identified by a cookie sent to the browser. If you use the 'gb.web.form' component, any WebForm acts like a Collection you can use to store the equivalent of global variables: MyWebForm1["name"] = Value Of course, behind the scene, everything is stored in the session, so you can only use serializable datatypes (those you can use with the WRITE instruction). Regards, -- Beno?t Minisini From tercoide at hotmail.com Wed Jan 16 13:23:02 2019 From: tercoide at hotmail.com (Martin Cristia) Date: Wed, 16 Jan 2019 12:23:02 +0000 Subject: [Gambas-user] Struct in JIT In-Reply-To: References: Message-ID: Are you going to do that anytime soon or it's not in the roadmap? Le 14/01/2019 ? 13:41, Martin Cristia a ?crit?: Thank you. When the Fast function contains an argument that is a Struct, an error is raised. "Expected number, got instead" Also, the IDE crashes after that. Struct is not supported by the JIT compiler yet. -- Beno?t Minisini -- Saludos Ing. Martin P Cristia -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jan 16 13:53:35 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 16 Jan 2019 13:53:35 +0100 Subject: [Gambas-user] Struct in JIT In-Reply-To: References: Message-ID: <4e203475-78b6-50e2-3e5b-308508b2da32@gmail.com> Le 16/01/2019 ? 13:23, Martin Cristia a ?crit?: > Are you going to do that anytime soon or it's not in the roadmap? >> Le 14/01/2019 ? 13:41, Martin Cristia a ?crit?: >>> Thank you. >>> >>> When the Fast function contains an argument that is a Struct, an error >>> is raised. >>> >>> "Expected number, got instead" >>> >>> Also, the IDE crashes after that. >>> >> Struct is not supported by the JIT compiler yet. >> >> -- Beno?t Minisini > > -- > Saludos > > Ing. Martin P Cristia > I said rubbish, structures are supported. Please send me a project that reproduces your bug so that I can fix it. Regards, -- Beno?t Minisini From bagonergi at gmail.com Thu Jan 17 13:17:43 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 17 Jan 2019 13:17:43 +0100 Subject: [Gambas-user] Git: I still do not understand anything Message-ID: Yesterday I was rereading the gambas wiki about the collaboration [0] and I had the stupid idea to try the "git pull upstream master" command. Now I find myself in this situation (look here [1]) and I suppose that if I had to make a merge request for some new translation the old 85 files would be inserted again. How can I get to delete this "Pushed to branch" triggered by the "git pull upstream master" command without doing any damage? [0] http://gambaswiki.org/wiki/howto/contribute#t6 [1] https://gitlab.com/GianluigiOr Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Thu Jan 17 14:09:24 2019 From: tercoide at hotmail.com (Martin Cristia) Date: Thu, 17 Jan 2019 13:09:24 +0000 Subject: [Gambas-user] Struct in JIT In-Reply-To: References: Message-ID: oh, I will re-check my code before wasting your time :) -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Thu Jan 17 15:00:15 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 Jan 2019 15:00:15 +0100 Subject: [Gambas-user] Git: I still do not understand anything In-Reply-To: References: Message-ID: <92ad6516-b46a-5333-b86d-1e39ae63df85@gmail.com> Le 17/01/2019 ? 13:17, Gianluigi a ?crit?: > Yesterday I was rereading the gambas wiki about the collaboration [0] > and I had the stupid idea to try the "git pull upstream master" command. > Now I find myself in this situation (look here [1]) and I suppose that > if I had to make a merge request for some new translation the old 85 > files would be inserted again. > How can I get to delete this "Pushed to branch" triggered by the "git > pull upstream master" command without doing any damage? > > [0] http://gambaswiki.org/wiki/howto/contribute#t6 > [1] https://gitlab.com/GianluigiOr > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > You can delete your projet and recreate it from scratch. You won't loose anything as soon as everything has been merged in the Gambas master. If you have new translations on your local disk, just keep the *.po files, and copy them by hand to your new project. Regards, -- Beno?t Minisini From hans at gambas-buch.de Thu Jan 17 15:11:02 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 17 Jan 2019 15:11:02 +0100 Subject: [Gambas-user] Markdown and CSS Message-ID: <56ff0b73-8d48-67eb-3f0a-713939474571@gambas-buch.de> Hello, how do I include the CSS file `md_style.css` into a markdown document, which is located in a folder `css`? The CSS folder is in the same directory as the Markdown document and the resulting HTML document. Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jan 17 18:14:55 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 17 Jan 2019 12:14:55 -0500 Subject: [Gambas-user] Git: I still do not understand anything In-Reply-To: <92ad6516-b46a-5333-b86d-1e39ae63df85@gmail.com> References: <92ad6516-b46a-5333-b86d-1e39ae63df85@gmail.com> Message-ID: <904ac330-6384-a84b-abc4-5964a9a59b40@gmail.com> On 1/17/19 9:00 AM, Beno?t Minisini wrote: > Le 17/01/2019 ? 13:17, Gianluigi a ?crit?: >> Yesterday I was rereading the gambas wiki about the collaboration [0] and I had the stupid idea to try the "git pull upstream >> master" command. >> Now I find myself in this situation (look here [1]) and I suppose that if I had to make a merge request for some new >> translation the old 85 files would be inserted again. >> How can I get to delete this "Pushed to branch" triggered by the "git pull upstream master" command without doing any damage? >> >> [0] http://gambaswiki.org/wiki/howto/contribute#t6 >> [1] https://gitlab.com/GianluigiOr >> >> Regards >> Gianluigi >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > You can delete your projet and recreate it from scratch. You won't loose anything as soon as everything has been merged in the > Gambas master. > > If you have new translations on your local disk, just keep the *.po files, and copy them by hand to your new project. > > Regards, > You should also be able to roll back to a previous state by doing a hard reset. It involves resetting your local copy and then pushing the new, reset state back to Gitlab. I've done it; always wondering if I was going to mess something up. But, it worked just fine. https://stackoverflow.com/questions/1616957/how-do-you-roll-back-reset-a-git-repository-to-a-particular-commit https://stackoverflow.com/questions/1223354/undo-git-pull-how-to-bring-repos-to-old-state https://stackoverflow.com/questions/10196668/git-rollback-1-pull General Git tips: http://rogerdudler.github.io/git-guide/ However, probably the simplest and least stressful solution is to just do as Beno?t suggested. ___ Lee From bagonergi at gmail.com Thu Jan 17 20:08:05 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 17 Jan 2019 20:08:05 +0100 Subject: [Gambas-user] Git: I still do not understand anything In-Reply-To: <904ac330-6384-a84b-abc4-5964a9a59b40@gmail.com> References: <92ad6516-b46a-5333-b86d-1e39ae63df85@gmail.com> <904ac330-6384-a84b-abc4-5964a9a59b40@gmail.com> Message-ID: Il giorno gio 17 gen 2019 alle ore 18:15 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > > On 1/17/19 9:00 AM, Beno?t Minisini wrote: > > Le 17/01/2019 ? 13:17, Gianluigi a ?crit : > >> Yesterday I was rereading the gambas wiki about the collaboration [0] > and I had the stupid idea to try the "git pull upstream > >> master" command. > >> Now I find myself in this situation (look here [1]) and I suppose that > if I had to make a merge request for some new > >> translation the old 85 files would be inserted again. > >> How can I get to delete this "Pushed to branch" triggered by the "git > pull upstream master" command without doing any damage? > >> > >> [0] http://gambaswiki.org/wiki/howto/contribute#t6 > >> [1] https://gitlab.com/GianluigiOr > >> > >> Regards > >> Gianluigi > >> > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > >> > > > > You can delete your projet and recreate it from scratch. You won't loose > anything as soon as everything has been merged in the > > Gambas master. > > > > If you have new translations on your local disk, just keep the *.po > files, and copy them by hand to your new project. > > > > Regards, > > > > You should also be able to roll back to a previous state by doing a hard > reset. It involves resetting your local copy and then > pushing the new, reset state back to Gitlab. I've done it; always > wondering if I was going to mess something up. But, it worked > just fine. > > > https://stackoverflow.com/questions/1616957/how-do-you-roll-back-reset-a-git-repository-to-a-particular-commit > > https://stackoverflow.com/questions/1223354/undo-git-pull-how-to-bring-repos-to-old-state > https://stackoverflow.com/questions/10196668/git-rollback-1-pull > > General Git tips: http://rogerdudler.github.io/git-guide/ > > > However, probably the simplest and least stressful solution is to just do > as Beno?t suggested. > > > ___ > Lee > > Thank you both for the suggestions. Lee forgive me but, having already created too many trouble, I chose the suggestion of Benoit and now I feel lighter. :-) I think I'll have to change the avatar with a crying goat. :-( Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jan 17 21:23:29 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 17 Jan 2019 15:23:29 -0500 Subject: [Gambas-user] Markdown and CSS In-Reply-To: <56ff0b73-8d48-67eb-3f0a-713939474571@gambas-buch.de> References: <56ff0b73-8d48-67eb-3f0a-713939474571@gambas-buch.de> Message-ID: How you do that, if it is even possible, depends on which Markdown rendering engine you are using. If you are using Gambas Markdown, it does not appear possible to include *any* style sheet. A workaround is to include your style definitions directly in the markdown document wrapped in the HTML