From gambas at ...1... Mon Jun 2 00:18:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jun 2008 00:18:51 +0200 Subject: [Gambas-devel] Error in "Update all forms" In-Reply-To: <275917.7908.qm@...600...> References: <275917.7908.qm@...600...> Message-ID: <200806020018.51622.gambas@...1...> On mardi 27 mai 2008, David Villalobos Cambronero wrote: > Hi, > > Here is the example. I happened with the Gambas Database example. > OK. The bug should have been fixed in revision #1397. Regards, -- Benoit Minisini From david_villalobos_c at ...7... Tue Jun 3 16:15:43 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 3 Jun 2008 07:15:43 -0700 (PDT) Subject: [Gambas-devel] MySQLBrowser Message-ID: <835282.73739.qm@...588...> Hi attached is an update. Degards David ----- Original Message ---- From: David Villalobos Cambronero To: Gambas-devel Sent: Monday, May 26, 2008 6:14:33 AM Subject: [Gambas-devel] MySQLBrowser Hi Benoit: Attached is an example of something that I call MySQLBrowser. Its goal is to retrieve information form an specific database. Most of my applications has database access, and many times I needed a "quick" access to the database I'm currently using, so MySQLBrowser solve most of the problems. Some features are: Runs querys and show its output. Database backup. Table backup. You can specify the connection parameters in the "Properties" section. Retrieves: tables, views, indexes and fields info. Shows output in different formats (-v, -vv, -vvv, -t). Highlights most of MySQL keywords. It is gb.db.mysql independent but MySQL specific since most of information is retrived from information_schema. I think it will be a good complement for the gb.db.mysql component, but it uses some other gambas components wish mean that gb.db.mysql will need gb.form, gb.qt, and gb.qt.ext. I see no problem since all these components are normally compiled but I want to know your opinion. If MySQLBrowser can't be part of gb.db.mysql I think we can create something like gb.mysqlbrowser, gb.db.mysql.form, gb.db.mysql.browser. But any way please take a look at its and please let me know your comments. Best regards David -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.David-0.0.83.tar.gz Type: application/x-gzip Size: 57517 bytes Desc: not available URL: From chintanraoh at ...176... Tue Jun 3 16:46:26 2008 From: chintanraoh at ...176... (chintan rao) Date: Tue, 3 Jun 2008 20:16:26 +0530 Subject: [Gambas-devel] please, need help with gb.option In-Reply-To: <200806031111.03199.rospolosco@...176...> References: <200806031111.03199.rospolosco@...176...> Message-ID: Hi, Documentation for this is not currently available. Currently I don't have time as I am not involved in some other project. But I will be writing one as soon as I am free. i hope I will be free soon. Tell me if you find this interface annoying. I will change it when I have time to do so I think I must make the thing simpler. You declare the opt object as DIM opt AS NEW GetOptions("la:b:c:") At this point you may really feel that GetOptions must be static class ( I don't remember why made no static. This component right now is in beta stage :) . ) if colon (ie ":") is specified after a character c, it means that that option must be be followed by an argument opt[c] will be the argument. if ":" is not specified it will be a opt[c] will 0 or 1 also opt["?"] is 1 if there is an error in specifying the command line arguments PUBLIC SUB Main() DIM opt AS NEW GetOptions("la:b:c:") IF opt["?"] = 1 PRINT "error parsing the arguments" ENDIF IF opt["l"] = 1 PRINT "found option l" ENDIF IF opt["a"] <> 1 AND opt["a"] <> 0 PRINT opt["a"] ENDIF IF opt["b"] <> 1 AND opt["a"] <> 0 PRINT opt["b"] ENDIF IF opt["c"] <> 1 AND opt["c"] <> 0 PRINT opt["c"] ENDIF END Also there is a way in which you can list the opts one by one. ' Gambas module file PUBLIC SUB Main() DIM opt AS NEW GetOptions("h:elo") DIM c AS String PRINT "command line args:\"" & opt.CommandLineArgs.Join(" ") & "\"" WHILE TRUE c = opt.NextValidOption() PRINT opt.OptionArgument() IF c = "" BREAK ENDIF SELECT CASE c CASE "h" PRINT "option h" & " the corresponding argument is\"" & opt.OptionArgument() & "\"" CASE "e" PRINT "option e" CASE "l" PRINT "option l" CASE "o" PRINT "option o" CASE "?" PRINT "error parsing the arguments" PRINT "invalid option " & opt.GetErrorOption() BREAK CASE ":" PRINT "error parsing the arguments" PRINT "no arguments to option " & opt.GetErrorOption() END SELECT WEND IF opt.RestOfArgs().Count <> 0 PRINT "Rest of the arguments are \"" & opt.RestOfArgs().Join(" ")& "\"" ENDIF END On Tue, Jun 3, 2008 at 2:41 PM, wrote: > Hi Chintan > > Please, could you provide a little code to show me > how to use gb.option component of Gambas. > > I need an example application that accepts options > "-a -b -c" and print their arguments. I mean: > > example.gambas -a test -b foo -c bar > > result on console: > > "-a" argument is "test" > "-b" argument is "foo" > "-c" argument is "bar" > > Then, I would like to know if with gb.option an option > could take multiple args. i.e: -a foo bar -b test > > I googled a lot and searched in the Gambas documentation, > but I can't find any example. Thanks. > > Regards, > > Stefano > From chintanraoh at ...176... Tue Jun 3 17:03:21 2008 From: chintanraoh at ...176... (chintan rao) Date: Tue, 3 Jun 2008 20:33:21 +0530 Subject: [Gambas-devel] please, need help with gb.option In-Reply-To: References: <200806031111.03199.rospolosco@...176...> Message-ID: hi, On Tue, Jun 3, 2008 at 8:16 PM, chintan rao wrote: > Hi, > Documentation for this is not currently available. Currently I don't > have time as I am not involved in some other project. But I will be correction= Currently I don't have time as I am involved in some other project. stupid error. Regards, Chintan Rao H From andrew.james.barr at ...176... Thu Jun 5 03:17:05 2008 From: andrew.james.barr at ...176... (Andrew Barr) Date: Wed, 04 Jun 2008 21:17:05 -0400 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux Message-ID: <1212628625.31692.7.camel@...602...> I am having some issues cross-compiling Gambas for ARM Linux, using the OpenEmbedded toolchain. My build log is attached. It looks like Gambas' build system is messing up the include paths in this case? Or is this something wrong with OE specifically? Thanks for any help. -- Andrew Barr andrew.james.barr at ...176... -------------- next part -------------- NOTE: make make all-recursive make[1]: Entering directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0' Making all in main make[2]: Entering directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main' make all-recursive make[3]: Entering directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main' Making all in libltdl make[4]: Entering directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main/libltdl' make all-am make[5]: Entering directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main/libltdl' /bin/sh ./libtool --tag=CC --mode=compile ccache arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I. -I. -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -c -o ltdl.lo ltdl.c mkdir .libs ccache arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I. -I. -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -c ltdl.c -fPIC -DPIC -o .libs/ltdl.o ccache arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I. -I. -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -c ltdl.c -o ltdl.o >/dev/null 2>&1 /bin/sh ./libtool --tag=CC --mode=link ccache arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -L/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/lib -Wl,-rpath-link,/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/lib -Wl,-O1 -o libltdlc.la ltdl.lo -ldl arm-angstrom-linux-gnueabi-ar cru .libs/libltdlc.a .libs/ltdl.o arm-angstrom-linux-gnueabi-ranlib .libs/libltdlc.a creating libltdlc.la (cd .libs && rm -f libltdlc.la && ln -s ../libltdlc.la libltdlc.la) make[5]: Leaving directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main/libltdl' make[4]: Leaving directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main/libltdl' Making all in gbx make[4]: Entering directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main/gbx' if /bin/sh ../libtool --tag=CC --mode=compile ccache ccache arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl -I/usr/include/x86_64-linux-gnu/ -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF ".deps/gb_la-gbx_c_class.Tpo" -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c; \ then mv -f ".deps/gb_la-gbx_c_class.Tpo" ".deps/gb_la-gbx_c_class.Plo"; else rm -f ".deps/gb_la-gbx_c_class.Tpo"; exit 1; fi mkdir .libs ccache ccache arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=xscale -DHAVE_CONFIG_H -I. -I. -I.. -I../share -I../libltdl -I/usr/include/x86_64-linux-gnu/ -isystem/media/usbdisk/oe/tmp/staging/arm-angstrom-linux-gnueabi/include -DGBX_INFO -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c gbx_c_class.c -fPIC -DPIC -o .libs/gb_la-gbx_c_class.o CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/x86_64-linux-gnu/ cc1: internal compiler error: in add_path, at c-incpath.c:362 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[4]: *** [gb_la-gbx_c_class.lo] Error 1 make[4]: Leaving directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/media/usbdisk/oe/tmp/work/armv5te-angstrom-linux-gnueabi/gambas2-2.6.0-r0/gambas2-2.6.0' make: *** [all] Error 2 FATAL: oe_runmake failed From gambas at ...1... Fri Jun 6 12:33:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jun 2008 12:33:47 +0200 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux In-Reply-To: <1212628625.31692.7.camel@...602...> References: <1212628625.31692.7.camel@...602...> Message-ID: <200806061233.47944.gambas@...1...> On jeudi 05 juin 2008, Andrew Barr wrote: > I am having some issues cross-compiling Gambas for ARM Linux, using the > OpenEmbedded toolchain. My build log is attached. It looks like Gambas' > build system is messing up the include paths in this case? Or is this > something wrong with OE specifically? > > Thanks for any help. The error message seems clear: you have encountered a bug in gcc, and it asks you to submit a bug report! Anyway, it is strange that the compiler has a x86_64 include in its path when compiling for arm. It is really a compiler bug or did you do something weird in your cross-compile environment? I can't tell you more, I've never made a cross-compile in my life... Regards, -- Benoit Minisini From andrew.james.barr at ...176... Fri Jun 6 23:07:22 2008 From: andrew.james.barr at ...176... (Andrew Barr) Date: Fri, 06 Jun 2008 17:07:22 -0400 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux In-Reply-To: <200806061233.47944.gambas@...1...> References: <1212628625.31692.7.camel@...602...> <200806061233.47944.gambas@...1...> Message-ID: <1212786442.22237.6.camel@...602...> On Fri, 2008-06-06 at 12:33 +0200, Benoit Minisini wrote: > The error message seems clear: you have encountered a bug in gcc, and it asks > you to submit a bug report! I did some further investigation, and this appears to be happening because an x86_64 version of the software is available in the build system, but the ARM version is not. I'm not entirely clear on what the problem is but it does appear to be triggered by missing dependencies. The internal compiler error message is because the toolchain is specially patched with OpenEmbedded/Angstrom QA checks, one of which is no /usr/include in includepaths. From what I understand of OE mailing list messages, removing insane.bbclass (QA checks) from my build and rebuilding the toolchain should eliminate the CROSS COMPILE badness messages. It is no matter, because I have a new problem. Working around the CC badness messages by disabling components missing dependencies, I have built a partial install of Gambas for ARM, but the install phase fails when generating the component information files, because the build system tries to run gbi2, which is an ARM Linux binary, on x86_64. I am not sure how to fix this problem other than to use QEMU or some more elegant solution like Scratchbox. I think that QEMU can be configured, along with the binfmt_misc feature of the Linux kernel, to automatically run when binaries for other CPUs are executed, so maybe that is worth trying. I don't think there's any problem with the Gambas build system at this point, I am just writing this up in case someone else tries this. Hopefully I will have a Gambas runtime for embedded Linux soon, because I would like to be able to run my Gambas apps on my handheld computer(s). -- Andrew Barr andrew.james.barr at ...176... From gbadmin at ...601... Sat Jun 7 00:49:21 2008 From: gbadmin at ...601... (e wright) Date: Fri, 6 Jun 2008 19:49:21 -0300 Subject: [Gambas-devel] component on aspell Message-ID: <77219d860806061549g46e5cdd5ga7f8e150cd194011@...178...> I have a new component that lets you work with aspell. See at: https://sourceforge.net/projects/cppdictspell -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sat Jun 7 15:45:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 7 Jun 2008 15:45:02 +0200 Subject: [Gambas-devel] gb.db.mysql example In-Reply-To: <344713.86614.qm@...588...> References: <344713.86614.qm@...588...> Message-ID: <200806071545.02913.gambas@...1...> On lundi 26 mai 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > Attached is a simple example to show the way gb.db.mysql works. I think is > a good idea to add it to the gambas examples. > > Please take a look at it and tell me if it's OK to add it or if I have to > make some changes. > > Best regards. > > David I looked at the example. I see only one problem: it is a GUI application that has no feedback to the user. Maybe you can just put the table creation code in the gb.db.mysql documentation on the wiki? -- Benoit Minisini From gambas at ...1... Sat Jun 7 21:07:53 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 7 Jun 2008 21:07:53 +0200 Subject: [Gambas-devel] component on aspell In-Reply-To: <77219d860806061549g46e5cdd5ga7f8e150cd194011@...178...> References: <77219d860806061549g46e5cdd5ga7f8e150cd194011@...178...> Message-ID: <200806072107.53884.gambas@...1...> On samedi 07 juin 2008, e wright wrote: > I have a new component that lets you work with aspell. > > See at: > https://sourceforge.net/projects/cppdictspell Do gb.aspell and gb.dict have the same goal? Is it possible that these two components have the same interface? -- Benoit Minisini From andrew.james.barr at ...176... Mon Jun 9 18:33:01 2008 From: andrew.james.barr at ...176... (Andrew Barr) Date: Mon, 09 Jun 2008 12:33:01 -0400 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux In-Reply-To: <1212786442.22237.6.camel@...602...> References: <1212628625.31692.7.camel@...602...> <200806061233.47944.gambas@...1...> <1212786442.22237.6.camel@...602...> Message-ID: <1213029181.13948.6.camel@...602...> On Fri, 2008-06-06 at 17:07 -0400, Andrew Barr wrote: > It is no matter, because I have a new problem. Working around the CC > badness messages by disabling components missing dependencies, I have > built a partial install of Gambas for ARM, but the install phase fails > when generating the component information files, because the build > system tries to run gbi2, which is an ARM Linux binary, on x86_64. I am > not sure how to fix this problem other than to use QEMU or some more > elegant solution like Scratchbox. I think that QEMU can be configured, > along with the binfmt_misc feature of the Linux kernel, to automatically > run when binaries for other CPUs are executed, so maybe that is worth > trying. Using the Scratchbox build system, which integrates QEMU for cases like this, I have been able to successfully compile Gambas plus some components for ARM Linux. However, now it is failing to run programs, saying it cannot load the class file for "Balloon", which is in gb.form. Now, the gb.qt component is disabled, as both my handheld devices use GTK+, is it possible that this is the cause of the problem, or am I dealing with some library loading error and need to dig deeper? Thanks in advance. -- Andrew Barr andrew.james.barr at ...176... (614) 581-3537 (Verizon Wireless) From david_villalobos_c at ...7... Mon Jun 9 18:37:23 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 9 Jun 2008 09:37:23 -0700 (PDT) Subject: [Gambas-devel] gb.db.mysql example Message-ID: <391583.34700.qm@...555...> mmm has sense, on june 23 I will be on vacations, so I planned to use the first week to make gambas related staff, so, I'll add this example to the wiki. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Saturday, June 7, 2008 7:45:02 AM Subject: Re: [Gambas-devel] gb.db.mysql example On lundi 26 mai 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > Attached is a simple example to show the way gb.db.mysql works. I think is > a good idea to add it to the gambas examples. > > Please take a look at it and tell me if it's OK to add it or if I have to > make some changes. > > Best regards. > > David I looked at the example. I see only one problem: it is a GUI application that has no feedback to the user. Maybe you can just put the table creation code in the gb.db.mysql documentation on the wiki? -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Mon Jun 9 18:45:18 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 9 Jun 2008 09:45:18 -0700 (PDT) Subject: [Gambas-devel] SVN confirmation mails Message-ID: <669875.25603.qm@...586...> Hi all, Is there a problem with the svn mails? I made a commit early in the morning and do not get the mail yet? Regards David From gambas at ...1... Tue Jun 10 10:07:15 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jun 2008 10:07:15 +0200 Subject: [Gambas-devel] SVN confirmation mails In-Reply-To: <669875.25603.qm@...586...> References: <669875.25603.qm@...586...> Message-ID: <200806101007.15246.gambas@...1...> On lundi 09 juin 2008, David Villalobos Cambronero wrote: > Hi all, > > Is there a problem with the svn mails? I made a commit early in the morning > and do not get the mail yet? > > Regards > > David > There is a problem. It happens frequently... -- Benoit Minisini From gambas at ...1... Sat Jun 14 00:06:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jun 2008 00:06:46 +0200 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux In-Reply-To: <1213029181.13948.6.camel@...602...> References: <1212628625.31692.7.camel@...602...> <1212786442.22237.6.camel@...602...> <1213029181.13948.6.camel@...602...> Message-ID: <200806140006.46847.gambas@...1...> On lundi 09 juin 2008, Andrew Barr wrote: > On Fri, 2008-06-06 at 17:07 -0400, Andrew Barr wrote: > > It is no matter, because I have a new problem. Working around the CC > > badness messages by disabling components missing dependencies, I have > > built a partial install of Gambas for ARM, but the install phase fails > > when generating the component information files, because the build > > system tries to run gbi2, which is an ARM Linux binary, on x86_64. I am > > not sure how to fix this problem other than to use QEMU or some more > > elegant solution like Scratchbox. I think that QEMU can be configured, > > along with the binfmt_misc feature of the Linux kernel, to automatically > > run when binaries for other CPUs are executed, so maybe that is worth > > trying. > > Using the Scratchbox build system, which integrates QEMU for cases like > this, I have been able to successfully compile Gambas plus some > components for ARM Linux. However, now it is failing to run programs, > saying it cannot load the class file for "Balloon", which is in gb.form. > Now, the gb.qt component is disabled, as both my handheld devices use > GTK+, is it possible that this is the cause of the problem, or am I > dealing with some library loading error and need to dig deeper? > > Thanks in advance. Did you check the output of "make" and "make install"? No warning or errors? Is ARM a little endian or big endian CPU? -- Benoit Minisini From andrew.james.barr at ...176... Sat Jun 14 06:42:04 2008 From: andrew.james.barr at ...176... (Andrew Barr) Date: Sat, 14 Jun 2008 00:42:04 -0400 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux In-Reply-To: <200806140006.46847.gambas@...1...> References: <1212628625.31692.7.camel@...602...> <1212786442.22237.6.camel@...602...> <1213029181.13948.6.camel@...602...> <200806140006.46847.gambas@...1...> Message-ID: <1213418524.14593.29.camel@...602...> On Sat, 2008-06-14 at 00:06 +0200, Benoit Minisini wrote: > Did you check the output of "make" and "make install"? No warning or errors? No, as long as you use Scratchbox (which integrates QEMU and allows the execution of ARM binaries during the compile and install process), there are no problems during the build. FWIW, Debian has an ARM EABI port (called "armel") and they appear to have Gambas binaries, which I imagine are autobuilt by a buildd. Since one of the advantages of the EABI ("Embedded ABI") is that all ARM embedded binaries are compatible across Linux distributions, I decided to try those. It still appears to have problems finding symbols in class files, and I haven't had the chance to dig into the Gambas source code and figure out if there are any symbols missing from the gb.gtk component that might be causing this. I did notice that the gb.form component, which is what holds "Balloon" (it also complained about "Action" once), directly depends on gb.qt in the Debian armel build. The devices in question use X11, so installing Qt 3.x/4.x on the device is not impossible, just undesirable given storage and memory constraints. So really, it's a question of if Gambas can be made, either at build time or run time, not to depend on Qt at all. Mind you there is no use for the IDE, which I know has to have Qt, on an embedded device. I have not tested a non-GUI program, yet. > Is ARM a little endian or big endian CPU? It can be either but for the devices and distribution I am using it is little endian. -- Andrew Barr andrew.james.barr at ...176... (614) 581-3537 (Verizon Wireless) From sourceforge-raindog2 at ...19... Sat Jun 14 06:51:34 2008 From: sourceforge-raindog2 at ...19... (Rob) Date: Sat, 14 Jun 2008 00:51:34 -0400 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux In-Reply-To: <1213418524.14593.29.camel@...602...> References: <1212628625.31692.7.camel@...602...> <200806140006.46847.gambas@...1...> <1213418524.14593.29.camel@...602...> Message-ID: <200806140051.34453.sourceforge-raindog2@...19...> On Saturday 14 June 2008 00:42, Andrew Barr wrote: > So really, it's a question of if Gambas can be made, either at > build time or run time, not to depend on Qt at all. Mind you there > is no use for the IDE, which I know has to have Qt, on an embedded > device. You can definitely install and run Gambas without Qt (at least up to the last 2.x release I deployed on a server.) You may even be able to build it without Qt, though I've never tried (I usually build packages on a development machine and deploy just the packages I want on a target machine with the same distro and version.) Rob From gambas at ...1... Sat Jun 14 12:44:57 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jun 2008 12:44:57 +0200 Subject: [Gambas-devel] Problems compiling Gambas for ARM Linux In-Reply-To: <1213418524.14593.29.camel@...602...> References: <1212628625.31692.7.camel@...602...> <200806140006.46847.gambas@...1...> <1213418524.14593.29.camel@...602...> Message-ID: <200806141244.57318.gambas@...1...> On samedi 14 juin 2008, Andrew Barr wrote: > On Sat, 2008-06-14 at 00:06 +0200, Benoit Minisini wrote: > > Did you check the output of "make" and "make install"? No warning or > > errors? > > No, as long as you use Scratchbox (which integrates QEMU and allows the > execution of ARM binaries during the compile and install process), there > are no problems during the build. > > FWIW, Debian has an ARM EABI port (called "armel") and they appear to > have Gambas binaries, which I imagine are autobuilt by a buildd. Since > one of the advantages of the EABI ("Embedded ABI") is that all ARM > embedded binaries are compatible across Linux distributions, I decided > to try those. It still appears to have problems finding symbols in class > files, and I haven't had the chance to dig into the Gambas source code > and figure out if there are any symbols missing from the gb.gtk > component that might be causing this. I did notice that the gb.form > component, which is what holds "Balloon" (it also complained about > "Action" once), directly depends on gb.qt in the Debian armel build. The > devices in question use X11, so installing Qt 3.x/4.x on the device is > not impossible, just undesirable given storage and memory constraints. > > So really, it's a question of if Gambas can be made, either at build > time or run time, not to depend on Qt at all. Mind you there is no use > for the IDE, which I know has to have Qt, on an embedded device. > > I have not tested a non-GUI program, yet. > > > Is ARM a little endian or big endian CPU? > > It can be either but for the devices and distribution I am using it is > little endian. gb.form does not depend on gb.qt, but on gb.gui, a component that chooses between gb.qt or gb.gtk according to the current running desktop: gb.qt is chosen if you are running KDE, gb.gtk in the other cases. Regards, -- Benoit Minisini From gbv at ...580... Sat Jun 14 21:33:47 2008 From: gbv at ...580... (Guillermo Ballester Valor) Date: Sat, 14 Jun 2008 19:33:47 +0000 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server Message-ID: <200806141933.48280.gbv@...580...> Hello, As some of you know, I build gambas2 rpms using Opensuse Build Server (OBS). Since a few days ago, the rpms for latest 'opensuse 11.0' and 'opensuse factory' cannot be built because a extrange problem. After the rpm package is built in OBS, a program called 'rpmlint' inspect carefully a lot of things in the recent built rpm. If the 'badness' is over a threshold then the rpms are rejected. The problem here is that there is a lot of files in the examples tree directories (all in '.gambas' subdirectories) which references to the complete path of files at compile time, and of course wrong path when installed. And rpmlint says this is a bad thing, and add 10000 points of badness every time it find these files. As a result the rpms are over threshold and failed. :( Any hint to avoid this?. Are necessary all these files under '.gambas' directory? Thanks in advance Guillermo -- Guillermo Ballester Valor gbv at ...580... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From gambas at ...1... Sat Jun 14 23:42:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jun 2008 23:42:51 +0200 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server In-Reply-To: <200806141933.48280.gbv@...580...> References: <200806141933.48280.gbv@...580...> Message-ID: <200806142342.51954.gambas@...1...> On samedi 14 juin 2008, Guillermo Ballester Valor wrote: > Hello, > > As some of you know, I build gambas2 rpms using Opensuse Build Server > (OBS). Since a few days ago, the rpms for latest 'opensuse 11.0' and > 'opensuse factory' cannot be built because a extrange problem. > > After the rpm package is built in OBS, a program called 'rpmlint' inspect > carefully a lot of things in the recent built rpm. If the 'badness' is over > a threshold then the rpms are rejected. > > The problem here is that there is a lot of files in the examples tree > directories (all in '.gambas' subdirectories) which references to the > complete path of files at compile time, and of course wrong path when > installed. And rpmlint says this is a bad thing, and add 10000 points of > badness every time it find these files. As a result the rpms are over > threshold and failed. :( > > Any hint to avoid this?. Are necessary all these files under '.gambas' > directory? > > Thanks in advance > > Guillermo The .gambas directory is the result of the compilation of the project. The contents is a list of bytecode files, one for each class file. How can these binary files reference anything? Or I didn't understand what you wrote. -- Benoit Minisini From gbv at ...580... Sun Jun 15 09:33:13 2008 From: gbv at ...580... (Guillermo Ballester Valor) Date: Sun, 15 Jun 2008 07:33:13 +0000 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server In-Reply-To: <200806142342.51954.gambas@...1...> References: <200806141933.48280.gbv@...580...> <200806142342.51954.gambas@...1...> Message-ID: <200806150733.17160.gbv@...580...> Hello, El Saturday 14 June 2008 21:42:51 Benoit Minisini escribi?: > On samedi 14 juin 2008, Guillermo Ballester Valor wrote: > > Hello, > > > > As some of you know, I build gambas2 rpms using Opensuse Build Server > > (OBS). Since a few days ago, the rpms for latest 'opensuse 11.0' and > > 'opensuse factory' cannot be built because a extrange problem. > > > > After the rpm package is built in OBS, a program called 'rpmlint' inspect > > carefully a lot of things in the recent built rpm. If the 'badness' is > > over a threshold then the rpms are rejected. > > > > The problem here is that there is a lot of files in the examples tree > > directories (all in '.gambas' subdirectories) which references to the > > complete path of files at compile time, and of course wrong path when > > installed. And rpmlint says this is a bad thing, and add 10000 points of > > badness every time it find these files. As a result the rpms are over > > threshold and failed. :( > > > > Any hint to avoid this?. Are necessary all these files under '.gambas' > > directory? > > > > Thanks in advance > > > > Guillermo > > The .gambas directory is the result of the compilation of the project. The > contents is a list of bytecode files, one for each class file. > > How can these binary files reference anything? Or I didn't understand what > you wrote. Yes, some of these files have strings with complete path of files at compile time. And rpmlint doesn't like it. Well, see some lines of rpmlint complain: gambas2-runtime.i586: E: file-contains-buildroot (Badness: 10000) /usr/share/gambas2/examples/Networking/HTTPPost/.gambas/F gambas2-runtime.i586: E: file-contains-buildroot (Badness: 10000) /usr/share/gambas2/examples/Drawing/Gravity/.gambas/FABOUT Lets see the latest file 'FABOUT' with hexdump. I show only the interesting lines #hexdump -C FABOUT ... 00000500 3c 00 42 00 46 00 46 00 4b 00 4d 00 55 00 59 00 |<.B.F.F.K.M.U.Y.| 00000510 59 00 5e 00 60 00 68 00 6c 00 6c 00 71 00 73 00 |Y.^.`.h.l.l.q.s.| 00000520 7b 00 7f 00 7f 00 84 00 86 00 8e 00 92 00 92 00 |{...............| 00000530 97 00 99 00 a1 00 a7 00 ab 00 b1 00 b1 00 b1 00 |................| 00000540 b1 00 b2 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000550 00 00 00 00 54 00 00 00 2f 76 61 72 2f 74 6d 70 |....T.../var/tmp| 00000560 2f 67 61 6d 62 61 73 32 2d 32 2e 37 2e 30 2d 62 |/gambas2-2.7.0-b| 00000570 75 69 6c 64 2f 75 73 72 2f 73 68 61 72 65 2f 67 |uild/usr/share/g| 00000580 61 6d 62 61 73 32 2f 65 78 61 6d 70 6c 65 73 2f |ambas2/examples/| 00000590 44 72 61 77 69 6e 67 2f 47 72 61 76 69 74 79 2f |Drawing/Gravity/| 000005a0 46 41 62 6f 75 74 2e 63 6c 61 73 73 54 01 00 00 |FAbout.classT...| 000005b0 46 41 62 6f 75 74 00 24 6c 6f 61 64 00 42 75 74 |FAbout.$load.But| 000005c0 74 6f 6e 31 5f 43 6c 69 63 6b 00 41 62 6f 75 74 |ton1_Click.About| ..... Can you see the string '/var/tmp/gambas2-2.7.0-build/' ?. This is what rpmlint dislike, because is the buildroot directory at rpm construction time. One have to admit that if this complete string points to a needed file, it will not be found at run time, because that root directory does not exist. But actually I've just run this gravity example ant it works. Any light?. Guillermo -- Guillermo Ballester Valor gbv at ...580... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From gbv at ...580... Sun Jun 15 09:52:58 2008 From: gbv at ...580... (Guillermo Ballester Valor) Date: Sun, 15 Jun 2008 07:52:58 +0000 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server In-Reply-To: <200806142342.51954.gambas@...1...> References: <200806141933.48280.gbv@...580...> <200806142342.51954.gambas@...1...> Message-ID: <200806150752.59024.gbv@...580...> Hello again, As a workaround, and I will create the subpackage 'examples' . I think all examples in a package is a nice thing and it also permit to avoid these blocking problems not building it in some cases, as 'opensuse 11.0' and 'opensuse factory'. Guillermo -- Guillermo Ballester Valor gbv at ...580... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From patrik at ...603... Sun Jun 15 10:13:47 2008 From: patrik at ...603... (Patrik Karlsson) Date: Sun, 15 Jun 2008 10:13:47 +0200 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server In-Reply-To: <200806150752.59024.gbv@...580...> References: <200806141933.48280.gbv@...580...> <200806142342.51954.gambas@...1...> <200806150752.59024.gbv@...580...> Message-ID: <577069a50806150113rce037d3t424d2cb60bd9194a@...178...> May I suggest to place (for all distro packages) the examples in a directory where the user can write too. When loading an example, there is an alert about permits. -- Patrik Karlsson From gambas at ...1... Sun Jun 15 19:50:47 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 15 Jun 2008 19:50:47 +0200 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server In-Reply-To: <200806150752.59024.gbv@...580...> References: <200806141933.48280.gbv@...580...> <200806142342.51954.gambas@...1...> <200806150752.59024.gbv@...580...> Message-ID: <200806151950.47763.gambas@...1...> On dimanche 15 juin 2008, Guillermo Ballester Valor wrote: > Hello again, > > As a workaround, and I will create the subpackage 'examples' . I think all > examples in a package is a nice thing and it also permit to avoid these > blocking problems not building it in some cases, as 'opensuse 11.0' > and 'opensuse factory'. > > Guillermo These paths are the path of class at compile time, and are not used at all by the interpreter. So I think they could be safely ignored. I will remove them in the future. -- Benoit Minisini From gambas at ...1... Sun Jun 15 19:51:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 15 Jun 2008 19:51:43 +0200 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server In-Reply-To: <577069a50806150113rce037d3t424d2cb60bd9194a@...178...> References: <200806141933.48280.gbv@...580...> <200806150752.59024.gbv@...580...> <577069a50806150113rce037d3t424d2cb60bd9194a@...178...> Message-ID: <200806151951.43051.gambas@...1...> On dimanche 15 juin 2008, Patrik Karlsson wrote: > May I suggest to place (for all distro packages) the examples in a > directory where the user can write too. When loading an example, there > is an alert about permits. The examples are installed globally, so it is logical that only root can write them. If you need to modify an example, you can easily make a copy of them in your home directory by using the "save as" menu in the IDE. Regards, -- Benoit Minisini From gbv at ...580... Sun Jun 15 22:59:05 2008 From: gbv at ...580... (Guillermo Ballester Valor) Date: Sun, 15 Jun 2008 20:59:05 +0000 Subject: [Gambas-devel] Compiling gambas2 in Opensuse Build Server In-Reply-To: <200806151950.47763.gambas@...1...> References: <200806141933.48280.gbv@...580...> <200806150752.59024.gbv@...580...> <200806151950.47763.gambas@...1...> Message-ID: <200806152059.06120.gbv@...580...> El Sunday 15 June 2008 17:50:47 Benoit Minisini escribi?: > On dimanche 15 juin 2008, Guillermo Ballester Valor wrote: > > Hello again, > > > > As a workaround, and I will create the subpackage 'examples' . I think > > all examples in a package is a nice thing and it also permit to avoid > > these blocking problems not building it in some cases, as 'opensuse 11.0' > > and 'opensuse factory'. > > > > Guillermo > > These paths are the path of class at compile time, and are not used at all > by the interpreter. So I think they could be safely ignored. I will remove > them in the future. OK, I've already built the 'examples' packages in all but opensuse 11.0 and factory. This trick works and now there are 2.7.0 packages for all opensuse distros. I'm thinking about to compress the 'examples' tree directory after install stage when building rpm, and then to uncompress the tar.bz2 file in postinstall stage. I don't know whether it can work and whether rpmlint will be clever enough to detect the trick. I think I must try Guillermo -- Guillermo Ballester Valor gbv at ...580... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From gbadmin at ...601... Mon Jun 16 05:15:55 2008 From: gbadmin at ...601... (e wright) Date: Mon, 16 Jun 2008 00:15:55 -0300 Subject: [Gambas-devel] an explantion components e wright Message-ID: <77219d860806152015y12806adav81cc5055ce3bd749@...178...> The components are gbdict: an interface with dict.org which has two parts first give definitions, second give a list of words that have a similar definition. gbaspell: an interface with aspell spell-checker. One checkers a word to see if it in the aspell word list. The second gives you a list of sound alike words. ( you must have aspell on your system) Both Dict server and aspell can be setup for different Natural languages; if, you wish. Both of these components explain how to work with them in there: README file and Release Notes. ( second/third time I have listed this ) See at: https://sourceforge.net/projects/cppdictspell Will add an explanation of the interfaces in the "How to" section of Gambas; if, you like. This component is not totally like Gambas; it passes an index as a parameter( round brackets; insted of, square brackets). string array would be better and be more like Gambas; but do not know how arrays works through C; plus, is less work for the memory management. ( I was afraid of making a memory management error. That could, lead to a strange run-time error; with someone, who used it often. ) From david_villalobos_c at ...7... Mon Jun 16 14:32:38 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 16 Jun 2008 05:32:38 -0700 (PDT) Subject: [Gambas-devel] Error in gb.db.form Message-ID: <324283.99094.qm@...596...> Hi all, I found an error in the gb.db.form component. When the Control property es set to True, the DataBrowser is not shown, attached is an example, can someone validate please? By the way I use Mandriva 2008.1 64Bits, KDE and Gambas 3. Regards David From gambas at ...1... Mon Jun 16 14:42:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jun 2008 14:42:52 +0200 Subject: [Gambas-devel] an explantion components e wright In-Reply-To: <77219d860806152015y12806adav81cc5055ce3bd749@...178...> References: <77219d860806152015y12806adav81cc5055ce3bd749@...178...> Message-ID: <200806161442.52920.gambas@...1...> On lundi 16 juin 2008, e wright wrote: > The components are > > gbdict: > > an interface with dict.org which has two parts first give > definitions, second give a list of words that have a similar > definition. > > gbaspell: > an interface with aspell spell-checker. One checkers a word to see > if it in the aspell word list. The second gives you a list of sound > alike words. ( you must have aspell on your system) > > Both Dict server and aspell can be setup for different Natural > languages; if, you wish. > > > Both of these components explain how to work with them in there: > README file and Release Notes. > > ( second/third time I have listed this ) > > See at: > https://sourceforge.net/projects/cppdictspell > > > Will add an explanation of the interfaces in the "How to" section of > Gambas; if, you like. > > This component is not totally like Gambas; it passes an index as a > parameter( round brackets; insted of, square brackets). > > > string array would be better and be more like Gambas; but do not know > how arrays works through C; plus, is less work for the memory > management. ( I was afraid of making a memory management error. That > could, lead to a strange run-time error; with someone, who used it > often. ) > First point: you should really enhance your interface so that it follows the same design as the rest of Gambas (or most of...). I will of course help you and answer all your questions. I can tell you: * When making a property, when making a method. And how. * How a class can be used like an array. * How to make "virtual" sub-properties, like System.User.Home for example, so that your interface is better organized. * How to return a Gambas array from a property. * How to make a class enumerable, i.e. that can be enumerate with a for each instruction. And many other things! Just write the better design you can imagine on a paper and ask me... I can help you on that too, but I usually find the design the most "funny" part of making a component, so I prefer let you explore that yourself. :-) Regards, -- Benoit Minisini From david_villalobos_c at ...7... Tue Jun 17 18:46:27 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 17 Jun 2008 09:46:27 -0700 (PDT) Subject: [Gambas-devel] Problems with the gb.db.mysql component Message-ID: <841098.85610.qm@...584...> Hi Benoit: Yesterday I had some problems with the gb.db.mysql component, that is what I found: 1.I had to install Mandriva 2008.1 64Bits on my computer, then install Gambas 3 dependencies, then compile Gambas as usual, everything went fine. 2.But when I try to compile one of my application that uses gb.db.mysql got ab error telling me that ?modMain? can't be loaded. modMain is the Startup method in the gb.db.mysql component. 3.The very first thing I tried to do was execute: ?./configure -C; make; su -c "make install"? in the ../trunk/gb.db.mysql/ directory and then my application runs fine. 4.Seems that there is a problem during the compilation in Gambas, so I made it again and save all the output to a file and look for gb.db.mysql, and seems that everything is OK. So, do you have any idea about that, why in the first compilation doesn't work? Best regards David From david_villalobos_c at ...7... Tue Jun 17 18:48:00 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 17 Jun 2008 09:48:00 -0700 (PDT) Subject: [Gambas-devel] Delete files in /tmp/gambas.[user.id] Message-ID: <577764.97751.qm@...557...> Hi Benoit I think there is a problem in the way Gambas (I refer to version 3) handles the /tmp/gambas.[user.id] directory. Some times when I am debugging an application I stop the running it and the files and directories created in the /tmp dir are not deleted, I noticed this some day ago and find almost 10 MB of undeleted files. I know most of times is my fault, since I stop suddenly my program or the IDE, but don't you think is a good idea to avoid this? Maybe by adding something like this to the Form_Close() event in FMain (Gambas IDE): TRY SHELL ?cd /tmp/gambas.[user.id]; rm -rf *? Please let me know your comments. Regards David From david_villalobos_c at ...7... Tue Jun 17 18:48:24 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 17 Jun 2008 09:48:24 -0700 (PDT) Subject: [Gambas-devel] Location for Gambas 3 installed files Message-ID: <793442.87256.qm@...584...> Hi Benoit & All: I would like to know where are stored all files, symlinks, executables, etc, for Gambas3, some days ago I need to ?uninstall? Gambas and I realize that I don't know where are stored those files. Any help will be appreciated. Best regards David. From david_villalobos_c at ...7... Fri Jun 20 14:32:22 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Fri, 20 Jun 2008 05:32:22 -0700 (PDT) Subject: [Gambas-devel] Location for Gambas 3 installed files Message-ID: <24704.12704.qm@...596...> Hi, I suppose the attached file solve the issue. Must be run as root. Regards David ----- Original Message ---- From: David Villalobos Cambronero To: Gambas-devel Sent: Tuesday, June 17, 2008 10:48:24 AM Subject: [Gambas-devel] Location for Gambas 3 installed files Hi Benoit & All: I would like to know where are stored all files, symlinks, executables, etc, for Gambas3, some days ago I need to ?uninstall? Gambas and I realize that I don't know where are stored those files. Any help will be appreciated. Best regards David. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: uninstall-gambas3.sh Type: application/octet-stream Size: 400 bytes Desc: not available URL: From gambas at ...1... Fri Jun 20 14:40:28 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 14:40:28 +0200 Subject: [Gambas-devel] Location for Gambas 3 installed files In-Reply-To: <24704.12704.qm@...596...> References: <24704.12704.qm@...596...> Message-ID: <200806201440.28564.gambas@...1...> On vendredi 20 juin 2008, David Villalobos Cambronero wrote: > Hi, > > I suppose the attached file solve the issue. Must be run as root. > > Regards > > David > > ----- Original Message ---- > From: David Villalobos Cambronero > To: Gambas-devel > Sent: Tuesday, June 17, 2008 10:48:24 AM > Subject: [Gambas-devel] Location for Gambas 3 installed files > > Hi Benoit & All: > > I would like to know where are stored all files, symlinks, executables, > etc, for Gambas3, some days ago I need to ?uninstall? Gambas and I realize > that I don't know where are stored those files. > > Any help will be appreciated. > > Best regards > > David. > If you compiled from sources, "make uninstall" should do the job too! -- Benoit Minisini From gambas at ...1... Fri Jun 20 14:43:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 14:43:43 +0200 Subject: [Gambas-devel] Delete files in /tmp/gambas.[user.id] In-Reply-To: <577764.97751.qm@...557...> References: <577764.97751.qm@...557...> Message-ID: <200806201443.43693.gambas@...1...> On mardi 17 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit > > I think there is a problem in the way Gambas (I refer to version 3) > handles the /tmp/gambas.[user.id] directory. Some times when I am debugging > an application I stop the running it and the files and directories created > in the /tmp dir are not deleted, I noticed this some day ago and find > almost 10 MB of undeleted files. I know most of times is my fault, since I > stop suddenly my program or the IDE, but don't you think is a good idea to > avoid this? Maybe by adding something like this to the Form_Close() event > in FMain (Gambas IDE): > > TRY SHELL ?cd /tmp/gambas.[user.id]; rm -rf *? > > Please let me know your comments. > > Regards > > David > Actually temporary files are automatically deleted at program ends, but not when a signal stops the program. It is just a matter of deleting them when catching a SIGSTOP or a SIGKILL. Something to be done, for sure... -- Benoit Minisini From gambas at ...1... Fri Jun 20 14:44:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 14:44:07 +0200 Subject: [Gambas-devel] Error in gb.db.form In-Reply-To: <324283.99094.qm@...596...> References: <324283.99094.qm@...596...> Message-ID: <200806201444.07860.gambas@...1...> On lundi 16 juin 2008, David Villalobos Cambronero wrote: > Hi all, > > I found an error in the gb.db.form component. When the Control property es > set to True, the DataBrowser is not shown, attached is an example, can > someone validate please? > > By the way I use Mandriva 2008.1 64Bits, KDE and Gambas 3. > > Regards > > David > Where is the example? -- Benoit Minisini From gambas at ...1... Fri Jun 20 14:46:29 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jun 2008 14:46:29 +0200 Subject: [Gambas-devel] Problems with the gb.db.mysql component In-Reply-To: <841098.85610.qm@...584...> References: <841098.85610.qm@...584...> Message-ID: <200806201446.29510.gambas@...1...> On mardi 17 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > Yesterday I had some problems with the gb.db.mysql component, that is what > I found: 1.I had to install Mandriva 2008.1 64Bits on my computer, then > install Gambas 3 dependencies, then compile Gambas as usual, everything > went fine. 2.But when I try to compile one of my application that uses > gb.db.mysql got ab error telling me that ?modMain? can't be loaded. modMain > is the Startup method in the gb.db.mysql component. 3.The very first thing > I tried to do was execute: ?./configure -C; make; su -c "make install"? in > the ../trunk/gb.db.mysql/ directory and then my application runs fine. > 4.Seems that there is a problem during the compilation in Gambas, so I made > it again and save all the output to a file and look for gb.db.mysql, and > seems that everything is OK. > > So, do you have any idea about that, why in the first compilation doesn't > work? > > Best regards > > David > If you take the sources from the svn repository, you have to do a "./reconf" before "./configure". Maybe it is the source of the problem? And are you sure that everything went fine? I can't say if I don't see the full output of the compilation and install process... -- Benoit Minisini From david_villalobos_c at ...7... Fri Jun 20 15:50:03 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Fri, 20 Jun 2008 06:50:03 -0700 (PDT) Subject: [Gambas-devel] Location for Gambas 3 installed files Message-ID: <72004.21123.qm@...556...> Jejejejejeje, I feel stupid.... but thanks ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Friday, June 20, 2008 6:40:28 AM Subject: Re: [Gambas-devel] Location for Gambas 3 installed files On vendredi 20 juin 2008, David Villalobos Cambronero wrote: > Hi, > > I suppose the attached file solve the issue. Must be run as root. > > Regards > > David > > ----- Original Message ---- > From: David Villalobos Cambronero > To: Gambas-devel > Sent: Tuesday, June 17, 2008 10:48:24 AM > Subject: [Gambas-devel] Location for Gambas 3 installed files > > Hi Benoit & All: > > I would like to know where are stored all files, symlinks, executables, > etc, for Gambas3, some days ago I need to ?uninstall? Gambas and I realize > that I don't know where are stored those files. > > Any help will be appreciated. > > Best regards > > David. > If you compiled from sources, "make uninstall" should do the job too! -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Fri Jun 20 16:04:36 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Fri, 20 Jun 2008 07:04:36 -0700 (PDT) Subject: [Gambas-devel] Problems with the gb.db.mysql component Message-ID: <444787.33423.qm@...556...> Yes, I do a ./reconf-all, and I'm sure everythings is fine since if I compile the component againg it works, I'll send you the entire output. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Friday, June 20, 2008 6:46:29 AM Subject: Re: [Gambas-devel] Problems with the gb.db.mysql component On mardi 17 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > Yesterday I had some problems with the gb.db.mysql component, that is what > I found: 1.I had to install Mandriva 2008.1 64Bits on my computer, then > install Gambas 3 dependencies, then compile Gambas as usual, everything > went fine. 2.But when I try to compile one of my application that uses > gb.db.mysql got ab error telling me that ?modMain? can't be loaded. modMain > is the Startup method in the gb.db.mysql component. 3.The very first thing > I tried to do was execute: ?./configure -C; make; su -c "make install"? in > the ../trunk/gb.db.mysql/ directory and then my application runs fine. > 4.Seems that there is a problem during the compilation in Gambas, so I made > it again and save all the output to a file and look for gb.db.mysql, and > seems that everything is OK. > > So, do you have any idea about that, why in the first compilation doesn't > work? > > Best regards > > David > If you take the sources from the svn repository, you have to do a "./reconf" before "./configure". Maybe it is the source of the problem? And are you sure that everything went fine? I can't say if I don't see the full output of the compilation and install process... -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From ron at ...572... Fri Jun 20 20:29:08 2008 From: ron at ...572... (Ron) Date: Fri, 20 Jun 2008 20:29:08 +0200 Subject: [Gambas-devel] Better error message suggestion Message-ID: <485BF6F4.9070704@...572...> Hi, If you return a value within a subroutine where you forgot to specify the return value type for, you get the following error: "Cannot return a value in a procedure.." -- PUBLIC SUB GetDeviceType() ... RETURN something END -- It's maybe more clear to give something like "Return type not specified for subroutine at line 123 ... My 2ct Regards, Ron From ron at ...572... Fri Jun 20 21:24:40 2008 From: ron at ...572... (Ron) Date: Fri, 20 Jun 2008 21:24:40 +0200 Subject: [Gambas-devel] Bug in database manager Message-ID: <485C03F8.3080405@...572...> If you have defined a field type string lenght say 32. And you click on the length cell and fill in 256, you get an error "The lenght must be greater than 1 and lower than 255" That fine, but you end up in a loop where you can't get out to correct your mistake. Regards, Ron. From patrik at ...603... Sat Jun 21 14:58:23 2008 From: patrik at ...603... (Patrik Karlsson) Date: Sat, 21 Jun 2008 14:58:23 +0200 Subject: [Gambas-devel] Possible bug in Menu Editor In-Reply-To: <577069a50806201603y763f8efau968bc41d6e63ab0@...178...> References: <577069a50806201603y763f8efau968bc41d6e63ab0@...178...> Message-ID: <577069a50806210558y3e88885eu647299e9179160e0@...178...> 2008/6/21 Patrik Karlsson : > Hi, would it not be nice if when you toggle a CheckBox with the mouse > in the Menu Editor, that CheckBox should gain focus? (So you can > continue from there on with TAB key.) Ok, this is great, thank you for writing the IDE in Gambas! I just fixed it by myself, not too complicated. :) One more thing regarding the Menu Editor, but that applies to all read-only components I guess. A TabStop [true|false] property on GUI objects could be useful, or just skip read-only once while tabing. I discovered this when tabing over txtPicture TextBox. -- Patrik Karlsson From david_villalobos_c at ...7... Sat Jun 21 17:51:56 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 21 Jun 2008 08:51:56 -0700 (PDT) Subject: [Gambas-devel] Problems with the gb.db.mysql component Message-ID: <780022.5680.qm@...588...> Hi, I found the error, it was my mistake. I add the component gb.qt to gb.db.mysql because I add a procedure that ask to execute or not every statement, but I forgot to add the dependence to the correct file, so gb.db.mysql compiles without gb.qt being present, so I got that error. I decide to eliminate this feature since we can do it in our program (I mean ask to confirm the execution of every query), and this way gb.db.mysql denpends only of gb.db Regards David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Friday, June 20, 2008 8:04:36 AM Subject: Re: [Gambas-devel] Problems with the gb.db.mysql component Yes, I do a ./reconf-all, and I'm sure everythings is fine since if I compile the component againg it works, I'll send you the entire output. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Friday, June 20, 2008 6:46:29 AM Subject: Re: [Gambas-devel] Problems with the gb.db.mysql component On mardi 17 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > Yesterday I had some problems with the gb.db.mysql component, that is what > I found: 1.I had to install Mandriva 2008.1 64Bits on my computer, then > install Gambas 3 dependencies, then compile Gambas as usual, everything > went fine. 2.But when I try to compile one of my application that uses > gb.db.mysql got ab error telling me that ?modMain? can't be loaded. modMain > is the Startup method in the gb.db.mysql component. 3.The very first thing > I tried to do was execute: ?./configure -C; make; su -c "make install"? in > the ../trunk/gb.db.mysql/ directory and then my application runs fine. > 4.Seems that there is a problem during the compilation in Gambas, so I made > it again and save all the output to a file and look for gb.db.mysql, and > seems that everything is OK. > > So, do you have any idea about that, why in the first compilation doesn't > work? > > Best regards > > David > If you take the sources from the svn repository, you have to do a "./reconf" before "./configure". Maybe it is the source of the problem? And are you sure that everything went fine? I can't say if I don't see the full output of the compilation and install process... -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Sat Jun 21 17:42:17 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 21 Jun 2008 08:42:17 -0700 (PDT) Subject: [Gambas-devel] Error in gb.db.form Message-ID: <836663.35219.qm@...556...> Hi here it is David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Friday, June 20, 2008 6:44:07 AM Subject: Re: [Gambas-devel] Error in gb.db.form On lundi 16 juin 2008, David Villalobos Cambronero wrote: > Hi all, > > I found an error in the gb.db.form component. When the Control property es > set to True, the DataBrowser is not shown, attached is an example, can > someone validate please? > > By the way I use Mandriva 2008.1 64Bits, KDE and Gambas 3. > > Regards > > David > Where is the example? -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.gb.db.form-0.0.1.tar.gz Type: application/x-gzip Size: 8053 bytes Desc: not available URL: From david_villalobos_c at ...7... Sat Jun 21 17:44:48 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 21 Jun 2008 08:44:48 -0700 (PDT) Subject: [Gambas-devel] Update projects in Gambas 3 Message-ID: <254885.52298.qm@...584...> Hi Benoit: I want to ask for permission to do the following: 1. Some projects (examples & Components) in Gambas 3 still has the old ?Fix? property, Can I run ?Update All forms? to those projects? I think is a good idea. 2 Some components take its version from Gambas 3 (gbx2 -V) , Can I update it to take the version from Gambas 3? Best regards David From patrik at ...603... Sat Jun 21 01:03:17 2008 From: patrik at ...603... (Patrik Karlsson) Date: Sat, 21 Jun 2008 01:03:17 +0200 Subject: [Gambas-devel] Possible bug in Menu Editor Message-ID: <577069a50806201603y763f8efau968bc41d6e63ab0@...178...> Hi, would it not be nice if when you toggle a CheckBox with the mouse in the Menu Editor, that CheckBox should gain focus? (So you can continue from there on with TAB key.) I'm using last stable version 2.7.0. -- Patrik Karlsson From ron at ...572... Sun Jun 22 13:06:39 2008 From: ron at ...572... (Ron) Date: Sun, 22 Jun 2008 13:06:39 +0200 Subject: [Gambas-devel] Bug in expander Message-ID: <485E323F.9010202@...572...> Hi Benoit, If you doubleclick on an expander in editor mode gambas will crash with an error, see attachment. Not very userfriendly :) Like the rest of Gambas IDE! Simple create a new project with qt graphics place an expander on FMain and doubleclick it. (gb.qt, gb.qt.ext and gb.form) At least thats the way I can reproduce it here. Gambas 2.7.0 Debian 4.0 Regards, Ron the 2nd -------------- next part -------------- A non-text attachment was scrubbed... Name: expanderbug.JPG Type: image/jpeg Size: 13304 bytes Desc: not available URL: From ron at ...572... Sun Jun 22 13:08:16 2008 From: ron at ...572... (Ron) Date: Sun, 22 Jun 2008 13:08:16 +0200 Subject: [Gambas-devel] Bug in expander In-Reply-To: <485E323F.9010202@...572...> References: <485E323F.9010202@...572...> Message-ID: <485E32A0.7020501@...572...> Ron schreef: > Hi Benoit, > > If you doubleclick on an expander in editor mode gambas will crash > with an error, see attachment. > Not very userfriendly :) Like the rest of Gambas IDE! I mean it's not like the rest of Gambas IDE, which IS very user friendly... oops :) > Simple create a new project with qt graphics place an expander on > FMain and doubleclick it. > (gb.qt, gb.qt.ext and gb.form) > > At least thats the way I can reproduce it here. > > Gambas 2.7.0 > Debian 4.0 > > Regards, > Ron the 2nd > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From wdahn at ...604... Sun Jun 22 13:29:48 2008 From: wdahn at ...604... (Werner) Date: Sun, 22 Jun 2008 19:29:48 +0800 Subject: [Gambas-devel] Bug in expander In-Reply-To: <485E323F.9010202@...572...> References: <485E323F.9010202@...572...> Message-ID: <485E37AC.20108@...604...> It doesn't seem to do that with 2.6 on SuSE 10.3 Werner I From ron at ...572... Sun Jun 22 13:38:23 2008 From: ron at ...572... (Ron) Date: Sun, 22 Jun 2008 13:38:23 +0200 Subject: [Gambas-devel] Bug in expander In-Reply-To: <485E37AC.20108@...604...> References: <485E323F.9010202@...572...> <485E37AC.20108@...604...> Message-ID: <485E39AF.8000506@...572...> Werner, Just to be sure, I mean doubleclicking somewhere on the expander area/box, not the expander text line (to make it expand or shrink) But it can be gambas version/linux version or user dependant of course. Regards, Ron > It doesn't seem to do that with 2.6 on SuSE 10.3 > > Werner I > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From gambas at ...1... Mon Jun 23 20:41:05 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Jun 2008 20:41:05 +0200 Subject: [Gambas-devel] Bug in expander In-Reply-To: <485E323F.9010202@...572...> References: <485E323F.9010202@...572...> Message-ID: <200806232041.05072.gambas@...1...> On dimanche 22 juin 2008, Ron wrote: > Hi Benoit, > > If you doubleclick on an expander in editor mode gambas will crash with > an error, see attachment. > Not very userfriendly :) Like the rest of Gambas IDE! > > Simple create a new project with qt graphics place an expander on FMain > and doubleclick it. > (gb.qt, gb.qt.ext and gb.form) > > At least thats the way I can reproduce it here. > > Gambas 2.7.0 > Debian 4.0 > > Regards, > Ron the 2nd Fixed in revision #1427. Regards, -- Benoit Minisini From gambas at ...1... Mon Jun 23 20:41:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Jun 2008 20:41:46 +0200 Subject: [Gambas-devel] Update projects in Gambas 3 In-Reply-To: <254885.52298.qm@...584...> References: <254885.52298.qm@...584...> Message-ID: <200806232041.46640.gambas@...1...> On samedi 21 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > I want to ask for permission to do the following: > > 1. Some projects (examples & Components) in Gambas 3 still has the old > ?Fix? property, Can I run ?Update All forms? to those projects? I think is > a good idea. You can. > > 2 Some components take its version from Gambas 3 (gbx2 -V) , Can I update > it to take the version from Gambas 3? Of course! :-) > > Best regards > > David > Regards, -- Benoit Minisini From david_villalobos_c at ...7... Tue Jun 24 17:25:07 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 24 Jun 2008 08:25:07 -0700 (PDT) Subject: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 Message-ID: <161091.52917.qm@...566...> Error in gb.form (ValueBox) I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox does not works. Can someone validate? Attached an example. Best regards David -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.valuebox-0.0.1.tar.gz Type: application/x-gzip Size: 7674 bytes Desc: not available URL: From david_villalobos_c at ...7... Tue Jun 24 17:26:08 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 24 Jun 2008 08:26:08 -0700 (PDT) Subject: [Gambas-devel] Gambas 3 enhancements Message-ID: <96868.65787.qm@...600...> Hi Benoit and All: I made some enhancements (or at least I think so) to the Gambas 3 IDE, I'm asking you for permission to apply them, here is a explanation: 1. Add a contextual menu to the FWelcome and FOpenProject to clear the history. 2. Add a warning message in FCommit when the user exceed the maximum quantity of character per line (76 standardized by Benoit). 3. Add basic highlight for ChanLog (NEW, OPT, BUG) in FCommit. 4. Add a toolbutton in FCommit to clear the editor contents. From gambas at ...1... Tue Jun 24 18:37:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 18:37:46 +0200 Subject: [Gambas-devel] Gambas 3 enhancements In-Reply-To: <96868.65787.qm@...600...> References: <96868.65787.qm@...600...> Message-ID: <200806241837.46998.gambas@...1...> On mardi 24 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit and All: > > I made some enhancements (or at least I think so) to the Gambas 3 IDE, I'm > asking you for permission to apply them, here is a explanation: > > 1. Add a contextual menu to the FWelcome and FOpenProject to clear the > history. A contextual menu with only one entry? No, thanks. Why do you need to clear the history while opening a project? > 2. Add a warning message in FCommit when the user exceed the > maximum quantity of character per line (76 standardized by Benoit). 3. Add > basic highlight for ChanLog (NEW, OPT, BUG) in FCommit. 2 & 3 are not really a good idea, because they use a convention that exists only for the Gambas project. But you can implement some sort of automatic word wrapping at a defined line length that the user would enter directly in the FCommit dialog box. The word wrap would be done when clicking on the commit button, or with a dedicated button. > 4. Add a toolbutton in FCommit to clear the editor contents. OK for that. Regards, -- Benoit Minisini From gambas at ...1... Tue Jun 24 18:41:06 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 18:41:06 +0200 Subject: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 In-Reply-To: <161091.52917.qm@...566...> References: <161091.52917.qm@...566...> Message-ID: <200806241841.06634.gambas@...1...> On mardi 24 juin 2008, David Villalobos Cambronero wrote: > Error in gb.form (ValueBox) > > I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox does > not works. Can someone validate? > > Attached an example. > > Best regards > > David It is not really a bug, as ValueBox is actually a container that embeds other controls. So it cannot get nor lost the focus! I don't know if it is possible to fix that, because we need to let the ValueBox raises the LostFocus or GotFocus event by itself when one of its children gets the event. I don't know if redeclaring the LostFocus and GotFocus event in the inherited class work... I will check and think abour that. -- Benoit Minisini From david_villalobos_c at ...7... Tue Jun 24 18:49:07 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 24 Jun 2008 09:49:07 -0700 (PDT) Subject: [Gambas-devel] Update projects in Gambas 3 Message-ID: <53688.27815.qm@...600...> Done ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Monday, June 23, 2008 12:41:46 PM Subject: Re: [Gambas-devel] Update projects in Gambas 3 On samedi 21 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > I want to ask for permission to do the following: > > 1. Some projects (examples & Components) in Gambas 3 still has the old > ?Fix? property, Can I run ?Update All forms? to those projects? I think is > a good idea. You can. > > 2 Some components take its version from Gambas 3 (gbx2 -V) , Can I update > it to take the version from Gambas 3? Of course! :-) > > Best regards > > David > Regards, -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Tue Jun 24 18:51:23 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 24 Jun 2008 09:51:23 -0700 (PDT) Subject: [Gambas-devel] Gambas 3 enhancements Message-ID: <774688.45206.qm@...594...> OK, got it. ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Tuesday, June 24, 2008 10:37:46 AM Subject: Re: [Gambas-devel] Gambas 3 enhancements On mardi 24 juin 2008, David Villalobos Cambronero wrote: > Hi Benoit and All: > > I made some enhancements (or at least I think so) to the Gambas 3 IDE, I'm > asking you for permission to apply them, here is a explanation: > > 1. Add a contextual menu to the FWelcome and FOpenProject to clear the > history. A contextual menu with only one entry? No, thanks. Why do you need to clear the history while opening a project? > 2. Add a warning message in FCommit when the user exceed the > maximum quantity of character per line (76 standardized by Benoit). 3. Add > basic highlight for ChanLog (NEW, OPT, BUG) in FCommit. 2 & 3 are not really a good idea, because they use a convention that exists only for the Gambas project. But you can implement some sort of automatic word wrapping at a defined line length that the user would enter directly in the FCommit dialog box. The word wrap would be done when clicking on the commit button, or with a dedicated button. > 4. Add a toolbutton in FCommit to clear the editor contents. OK for that. Regards, -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...1... Tue Jun 24 20:20:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 20:20:39 +0200 Subject: [Gambas-devel] Better error message suggestion In-Reply-To: <485BF6F4.9070704@...572...> References: <485BF6F4.9070704@...572...> Message-ID: <200806242020.39483.gambas@...1...> On vendredi 20 juin 2008, Ron wrote: > Hi, > > If you return a value within a subroutine where you forgot to specify > the return value type for, you get the following error: > > "Cannot return a value in a procedure.." > -- > PUBLIC SUB GetDeviceType() > > ... > RETURN something > > END > -- > > It's maybe more clear to give something like "Return type not specified > for subroutine at line 123 ... > > My 2ct > > Regards, > Ron > Done in revision #1430. But it won't tell you the line number of the function declaration. Regards, -- Benoit Minisini From gambas at ...1... Tue Jun 24 20:23:31 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 20:23:31 +0200 Subject: [Gambas-devel] Bug in database manager In-Reply-To: <485C03F8.3080405@...572...> References: <485C03F8.3080405@...572...> Message-ID: <200806242023.31387.gambas@...1...> On vendredi 20 juin 2008, Ron wrote: > If you have defined a field type string lenght say 32. > And you click on the length cell and fill in 256, you get an error "The > lenght must be greater than 1 and lower than 255" > That fine, but you end up in a loop where you can't get out to correct > your mistake. > > Regards, > Ron. > This is a bug in gb.gtk. I will investigate... -- Benoit Minisini From gambas at ...1... Tue Jun 24 22:39:46 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 22:39:46 +0200 Subject: [Gambas-devel] Bug in database manager In-Reply-To: <485C03F8.3080405@...572...> References: <485C03F8.3080405@...572...> Message-ID: <200806242239.46334.gambas@...1...> On vendredi 20 juin 2008, Ron wrote: > If you have defined a field type string lenght say 32. > And you click on the length cell and fill in 256, you get an error "The > lenght must be greater than 1 and lower than 255" > That fine, but you end up in a loop where you can't get out to correct > your mistake. > > Regards, > Ron. > The bug has been fixed in revision #1431 Regards, -- Benoit Minisini From gambas at ...1... Tue Jun 24 22:42:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 22:42:03 +0200 Subject: [Gambas-devel] Gambas 3 enhancements In-Reply-To: <774688.45206.qm@...594...> References: <774688.45206.qm@...594...> Message-ID: <200806242242.03550.gambas@...1...> On mardi 24 juin 2008, David Villalobos Cambronero wrote: > OK, got it. > You should backport your change in FCommit to the 2.0 version, so that this part of the IDE keeps being the same between 2.0 and 3.0. Regards, -- Benoit Minisini From gambas at ...1... Tue Jun 24 23:27:50 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jun 2008 23:27:50 +0200 Subject: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 In-Reply-To: <200806241841.06634.gambas@...1...> References: <161091.52917.qm@...566...> <200806241841.06634.gambas@...1...> Message-ID: <200806242327.50114.gambas@...1...> On mardi 24 juin 2008, Benoit Minisini wrote: > On mardi 24 juin 2008, David Villalobos Cambronero wrote: > > Error in gb.form (ValueBox) > > > > I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox > > does not works. Can someone validate? > > > > Attached an example. > > > > Best regards > > > > David > > It is not really a bug, as ValueBox is actually a container that embeds > other controls. So it cannot get nor lost the focus! > > I don't know if it is possible to fix that, because we need to let the > ValueBox raises the LostFocus or GotFocus event by itself when one of its > children gets the event. > > I don't know if redeclaring the LostFocus and GotFocus event in the > inherited class work... I will check and think abour that. I said rubbish... ValueBox inherits TextBox, so LostFocus should work. Which problem do you have exactly? -- Benoit Minisini From david_villalobos_c at ...7... Tue Jun 24 23:35:58 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 24 Jun 2008 14:35:58 -0700 (PDT) Subject: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 Message-ID: <247065.27358.qm@...600...> The event is never reached. See the attached example. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Tuesday, June 24, 2008 3:27:50 PM Subject: Re: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 On mardi 24 juin 2008, Benoit Minisini wrote: > On mardi 24 juin 2008, David Villalobos Cambronero wrote: > > Error in gb.form (ValueBox) > > > > I found an error in gb.form (Gambas 3) the event LostFocus in ValueBox > > does not works. Can someone validate? > > > > Attached an example. > > > > Best regards > > > > David > > It is not really a bug, as ValueBox is actually a container that embeds > other controls. So it cannot get nor lost the focus! > > I don't know if it is possible to fix that, because we need to let the > ValueBox raises the LostFocus or GotFocus event by itself when one of its > children gets the event. > > I don't know if redeclaring the LostFocus and GotFocus event in the > inherited class work... I will check and think abour that. I said rubbish... ValueBox inherits TextBox, so LostFocus should work. Which problem do you have exactly? -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.valuebox-0.0.1.tar.gz Type: application/x-gzip Size: 7674 bytes Desc: not available URL: From ron at ...572... Wed Jun 25 11:48:51 2008 From: ron at ...572... (Ron) Date: Wed, 25 Jun 2008 11:48:51 +0200 Subject: [Gambas-devel] Bug in database manager In-Reply-To: <200806242239.46334.gambas@...1...> References: <485C03F8.3080405@...572...> <200806242239.46334.gambas@...1...> Message-ID: <48621483.1060105@...572...> Benoit Minisini schreef: > On vendredi 20 juin 2008, Ron wrote: > >> If you have defined a field type string lenght say 32. >> And you click on the length cell and fill in 256, you get an error "The >> lenght must be greater than 1 and lower than 255" >> That fine, but you end up in a loop where you can't get out to correct >> your mistake. >> >> Regards, >> Ron. >> >> > > The bug has been fixed in revision #1431 > > Regards, > > Works fine now! Thanks. Regards, Ron the 2nd From david_villalobos_c at ...7... Wed Jun 25 18:01:26 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 25 Jun 2008 09:01:26 -0700 (PDT) Subject: [Gambas-devel] Gambas 3 enhancements Message-ID: <23924.85813.qm@...557...> Hi, it is done Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Tuesday, June 24, 2008 2:42:03 PM Subject: Re: [Gambas-devel] Gambas 3 enhancements On mardi 24 juin 2008, David Villalobos Cambronero wrote: > OK, got it. > You should backport your change in FCommit to the 2.0 version, so that this part of the IDE keeps being the same between 2.0 and 3.0. Regards, -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...1... Wed Jun 25 22:35:30 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 25 Jun 2008 22:35:30 +0200 Subject: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 In-Reply-To: <247065.27358.qm@...600...> References: <247065.27358.qm@...600...> Message-ID: <200806252235.30765.gambas@...1...> On mardi 24 juin 2008, David Villalobos Cambronero wrote: > The event is never reached. > > See the attached example. > > Regards > > David > I understand: the changes made by Robert Rowe made the ValueBox inherits UserControl and not TextBox anymore, and so its LostFocus event is not raised anymore. As I told in my first explanation! Alas I have no good solution at the moment... -- Benoit Minisini From patrik at ...603... Thu Jun 26 14:58:44 2008 From: patrik at ...603... (Patrik Karlsson) Date: Thu, 26 Jun 2008 14:58:44 +0200 Subject: [Gambas-devel] BUG (in gb.qt?) Button.Background Message-ID: <577069a50806260558k7037e32eqa8a2c3f69cf99f59@...178...> _Gambas 2.7_ Hello, I have noticed a problem when trying to change the color of a button in run time. When I place a button on a form at design time, I'm able to change its color, but trying to change during run time will not work. I added this PUBLIC SUB Form_Open() DIM hBut AS NEW Button(ME) hBut.BackColor = Color.Red END At program start, I can see the button flash in red, and after that, return to default color. The button made with design gets to keep its color. { Button1 Button MoveScaled(5,15,16,3) Background = &HFF21C4& Text = ("Button1") } When I make this project a gb.gtk, it is all ok. -- Patrik Karlsson From gambas at ...1... Thu Jun 26 15:02:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jun 2008 15:02:41 +0200 Subject: [Gambas-devel] BUG (in gb.qt?) Button.Background In-Reply-To: <577069a50806260558k7037e32eqa8a2c3f69cf99f59@...178...> References: <577069a50806260558k7037e32eqa8a2c3f69cf99f59@...178...> Message-ID: <200806261502.41700.gambas@...1...> On jeudi 26 juin 2008, Patrik Karlsson wrote: > _Gambas 2.7_ > > Hello, > I have noticed a problem when trying to change the color of a button > in run time. > > When I place a button on a form at design time, I'm able to change its > color, but trying to change during run time will not work. > I added this > > PUBLIC SUB Form_Open() > DIM hBut AS NEW Button(ME) > hBut.BackColor = Color.Red > END > > At program start, I can see the button flash in red, and after that, > return to default color. > The button made with design gets to keep its color. > > { Button1 Button > MoveScaled(5,15,16,3) > Background = &HFF21C4& > Text = ("Button1") > } > > When I make this project a gb.gtk, it is all ok. Which KDE widget style do you use? Can you check that you have the same behaviour with another KDE widget style? -- Benoit Minisini From patrik at ...603... Thu Jun 26 15:24:06 2008 From: patrik at ...603... (Patrik Karlsson) Date: Thu, 26 Jun 2008 15:24:06 +0200 Subject: [Gambas-devel] BUG (in gb.qt?) Button.Background In-Reply-To: <200806261502.41700.gambas@...1...> References: <577069a50806260558k7037e32eqa8a2c3f69cf99f59@...178...> <200806261502.41700.gambas@...1...> Message-ID: <577069a50806260624u791f9ee5q4c2b3b9c125882b1@...178...> 2008/6/26 Benoit Minisini : > On jeudi 26 juin 2008, Patrik Karlsson wrote: >> _Gambas 2.7_ >> >> Hello, >> I have noticed a problem when trying to change the color of a button >> in run time. >> >> When I place a button on a form at design time, I'm able to change its >> color, but trying to change during run time will not work. >> I added this >> >> PUBLIC SUB Form_Open() >> DIM hBut AS NEW Button(ME) >> hBut.BackColor = Color.Red >> END >> >> At program start, I can see the button flash in red, and after that, >> return to default color. >> The button made with design gets to keep its color. >> >> { Button1 Button >> MoveScaled(5,15,16,3) >> Background = &HFF21C4& >> Text = ("Button1") >> } >> >> When I make this project a gb.gtk, it is all ok. > > Which KDE widget style do you use? Can you check that you have the same > behaviour with another KDE widget style? > > -- > Benoit Minisini > This is interesting. I had the defalut QtCurve in Kubuntu Hardy. I got somewhat different behaviour when change between other styles. Plastic was thes best, a clicked red button became dark red. What does this mean? Is the problem outside of Gambas? If so, how come setting the color in design mode works, and run time does not? -- Patrik Karlsson From david_villalobos_c at ...7... Thu Jun 26 19:44:23 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Thu, 26 Jun 2008 10:44:23 -0700 (PDT) Subject: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 Message-ID: <237397.73207.qm@...594...> Well, always is good to know... regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, June 25, 2008 2:35:30 PM Subject: Re: [Gambas-devel] Error in gb.form (ValueBox) in Gambas 3 On mardi 24 juin 2008, David Villalobos Cambronero wrote: > The event is never reached. > > See the attached example. > > Regards > > David > I understand: the changes made by Robert Rowe made the ValueBox inherits UserControl and not TextBox anymore, and so its LostFocus event is not raised anymore. As I told in my first explanation! Alas I have no good solution at the moment... -- Benoit Minisini ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Fri Jun 27 19:31:48 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Fri, 27 Jun 2008 10:31:48 -0700 (PDT) Subject: [Gambas-devel] Error in GridView in Gambas3 Message-ID: <250173.19327.qm@...556...> Hi All, I found a bug in the gb.qt the GridView.Clear() does not clears the grid, for TableView happens the same thing. But it works for gb.gtk, I didn't try it in Gambas 2. Attached is an exmple. Can someone validate, plese? By the way, I use Mandriva 2008.1 64bits and Ubuntu 8.04 32bits. Best regards David -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.GridView-0.0.1.tar.gz Type: application/x-gzip Size: 7670 bytes Desc: not available URL: From david_villalobos_c at ...7... Sat Jun 28 19:13:03 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 28 Jun 2008 10:13:03 -0700 (PDT) Subject: [Gambas-devel] Error in Default Event for ValueBox Message-ID: <918561.5881.qm@...588...> Hi all, There is an error in the default event for ValueBox, when you DblClick into it the IDE crash, to reproduce the error just place a ValueBox in a form and DblClick it. I use Mandriva 2008.1 64bits and Ubuntu 8.04 32bits. Can someone validate? Regards David From patrik at ...603... Sat Jun 28 20:12:15 2008 From: patrik at ...603... (Patrik Karlsson) Date: Sat, 28 Jun 2008 20:12:15 +0200 Subject: [Gambas-devel] Error in Default Event for ValueBox In-Reply-To: <918561.5881.qm@...588...> References: <918561.5881.qm@...588...> Message-ID: <577069a50806281112o48f67537g94e24d776f18da2e@...178...> 2008/6/28 David Villalobos Cambronero : > Hi all, > > There is an error in the default event for ValueBox, when you DblClick into it the IDE crash, to reproduce the error just place a ValueBox in a form and DblClick it. > > I use Mandriva 2008.1 64bits and Ubuntu 8.04 32bits. > > Can someone validate? > > Regards > > David > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > It is working just fine for me. Kubuntu 8.04 i386 Gambas 2.7.0 -- Patrik Karlsson