[Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option
http://gambaswiki.org/bugtracker/edit?object=BUG.1091=L21haW4- Benoît MINISINI changed the state of the bug to: NeedsInfo. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1118: Button copy report does not work, at the end of creating packages.
http://gambaswiki.org/bugtracker/edit?object=BUG.1118=L21haW4- Comment #2 by Benoît MINISINI: I have just tested on Mint 17.3 Mate + Cinnamon, and the Mate text editor cannot paste the copied. But LibreOffice (for example) can. So I guess the problem is in the Mate text editor. Benoît MINISINI changed the state of the bug to: Upstream. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1118: Button copy report does not work, at the end of creating packages.
http://gambaswiki.org/bugtracker/edit?object=BUG.1118=L21haW4- Comment #1 by Benoît MINISINI: It works perfectly there, on KDE / Ubuntu 17.04. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them
http://gambaswiki.org/bugtracker/edit?object=BUG.1119=L21haW4- Benoît MINISINI changed the state of the bug to: Accepted. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete
http://gambaswiki.org/bugtracker/edit?object=BUG.1110=L21haW4- Benoît MINISINI changed the state of the bug to: NeedsInfo. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Strange behaviour of File.Read
Perhaps more clear this way, maybe your file contains line: "/home/bill/Pictures/Family/Visits/2000-07-29" instead of /home/bill/Pictures/Family/Visits/2000-07-29 . So, the quote marks shouldn't be there... Jussi On Wed, Jun 21, 2017 at 10:47 PM, Jussi Lahtinenwrote: > Is that the literal output? > Because if there really are quote marks, then the command is equal to: > > Print IsDir("\"/home/bill/Pictures/Family/Visits/2000-07-29\"") > > Which is clearly false. > > However if it is not literal output, then it is impossible to say what is > read from the file to the string... > > > > Jussi > > > > > > On Wed, Jun 21, 2017 at 4:36 PM, bill-lancaster via Gambas-user < > gambas-user@lists.sourceforge.net> wrote: > >> I must be missing something - any ideas? >> Gambas3.9.2 >> Components, gb.form, gb,gui, gb.image >> >> This is the code:- >> >> Public Sub Button1_Click() >> Dim s As String >> s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt") >> Print s >> Print IsDir(s) >> Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29") >> End >> >> This is the output:- >> >> "/home/bill/Pictures/Family/Visits/2000-07-29" >> >> False >> True >> >> >> >> >> >> -- >> View this message in context: http://gambas.8142.n7.nabble.c >> om/Strange-behaviour-of-File-Read-tp59467.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Strange behaviour of File.Read
Is that the literal output? Because if there really are quote marks, then the command is equal to: Print IsDir("\"/home/bill/Pictures/Family/Visits/2000-07-29\"") Which is clearly false. However if it is not literal output, then it is impossible to say what is read from the file to the string... Jussi On Wed, Jun 21, 2017 at 4:36 PM, bill-lancaster via Gambas-user < gambas-user@lists.sourceforge.net> wrote: > I must be missing something - any ideas? > Gambas3.9.2 > Components, gb.form, gb,gui, gb.image > > This is the code:- > > Public Sub Button1_Click() > Dim s As String > s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt") > Print s > Print IsDir(s) > Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29") > End > > This is the output:- > > "/home/bill/Pictures/Family/Visits/2000-07-29" > > False > True > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Strange-behaviour-of-File-Read-tp59467.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] comment docs generatino for class like for variables?
discovered: after the firs commen "Ǵambas class file" put the class comment documentation, as: ' Gambas class file > '' lorem ipsum doc class for generation lorem ipsum doc class... > Export > Inherits GridView > Public Const _Group As String = "Data" > ... and its done.. great! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-21 11:35 GMT-04:30 PICCORO McKAY Lenz: > in gambas when i put double quote in a variable and added a comment this > generate a docs for : > > Public var1 AS String = "variable1" '' public var1 with default string > 'variable1' > > that code in the ide generates me that: > > Ftest.var1 >> PUBLIC var1 as STRING >> variable1" '' public var1 with default string 'variable1' > > > How can i do the same for a hole class file > > PD: NOTE: if you use [var2] inside that comment will automatically > generate link to the var2 delared doc from comment, if var2 has it > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas preprocesor can also work in forms?
2017-06-21 11:53 GMT-04:30 adamn...@gmail.com: > > Unknown symbol 'Editor' in class 'FForm' it the error with your test > > attached > > Now you have me confused very. There is no reference to an Editor or > indeed a FForm in the file I attached? > its quite extrange.. i must clean every time i moved to another ide the sources.. that why i ask for preprocesor on forms > > ??? > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas preprocesor can also work in forms?
(Seeing as we are going`to perpetually top post) On Wed, 21 Jun 2017 10:22:47 -0430 PICCORO McKAY Lenzwrote: > nono..no in the respective class of the form.. i mean specifically for the > form.. I don't understand, a form is just a class with a special metadata file that describes its' layout. Are you are talking about the xxx.form file? If so, then it is that metadata file. It is not code. So it cannot have preprocessor commands in it. ??? > this due sometimes i get errors in forms when i moved to thoer gambas in > other computer: Again, what errors? Where? When? What is different about one computer to the next. And what exactly are you moving? Source, executable archives, installable packages??? > Unknown symbol 'Editor' in class 'FForm' it the error with your test > attached Now you have me confused very. There is no reference to an Editor or indeed a FForm in the file I attached? ??? -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] comment docs generatino for class like for variables?
in gambas when i put double quote in a variable and added a comment this generate a docs for : Public var1 AS String = "variable1" '' public var1 with default string 'variable1' that code in the ide generates me that: Ftest.var1 > PUBLIC var1 as STRING > variable1" '' public var1 with default string 'variable1' How can i do the same for a hole class file PD: NOTE: if you use [var2] inside that comment will automatically generate link to the var2 delared doc from comment, if var2 has it Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Strange behaviour of File.Read
Thanks so much for the insight. IsDir(Trim(s)) still produced False, but I tried saving the path with a Variant instead of a string and now I get True Thanks again -- View this message in context: http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59481.html Sent from the gambas-user mailing list archive at Nabble.com. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas preprocesor can also work in forms?
nono..no in the respective class of the form.. i mean specifically for the form.. this due sometimes i get errors in forms when i moved to thoer gambas in other computer: Unknown symbol 'Editor' in class 'FForm' it the error with your test attached Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-21 10:10 GMT-04:30 adamn...@gmail.com: > On Wed, 21 Jun 2017 09:45:27 -0430 > PICCORO McKAY Lenz wrote: > > > the preprocesor are great http://gambaswiki.org/wiki/lang/.if but also > can > > be used in forms? > > > > currently i get work in class files, but for forms how can i do that > > verifications? > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > -- > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Test attached > b > -- > B Bruen > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Strange behaviour of File.Read
bill-lancaster wrote > I must be missing something - any ideas Try changing the line *Print IsDir(s) * to *Print IsDir(Trim(s)) * It worked for me. - Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59479.html Sent from the gambas-user mailing list archive at Nabble.com. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] gambas preprocesor can also work in forms?
On Wed, 21 Jun 2017 09:45:27 -0430 PICCORO McKAY Lenzwrote: > the preprocesor are great http://gambaswiki.org/wiki/lang/.if but also can > be used in forms? > > currently i get work in class files, but for forms how can i do that > verifications? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Test attached b -- B Bruen cond-0.0.2.tar.gz Description: Binary data -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] "get from VERSION file", where its or where i must put this?
Le 21/06/2017 à 16:03, PICCORO McKAY Lenz a écrit : in project, i just chekc project "get from VERSION file" option for version numbering, where its or where i must put this file? directly in DATA, its not getting the value! In a parent directory of the project. -- Benoît Minisini -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] gambas preprocesor can also work in forms?
the preprocesor are great http://gambaswiki.org/wiki/lang/.if but also can be used in forms? currently i get work in class files, but for forms how can i do that verifications? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] "get from VERSION file", where its or where i must put this?
in project, i just chekc project "get from VERSION file" option for version numbering, where its or where i must put this file? directly in DATA, its not getting the value! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
2017-06-21 8:30 GMT-04:30 Tobias Boege: > I have a very unpleasant memories [1] about the last time I changed the > configure.ac of gb.openssl. Please make sure first that the openssl > development packages are installed. > well without these "unpleasant" commits gambas not work in many embebed devices .. that could be upgraded to use newer openssl due own vendors mantain the 0.X releases.. and due very low space, its not good idead put more libs either compiling by me if something fail.. due vendor will said "its your faul" in any case, i see again a last change that again make incompatible my compilation.. i remenber that my path works with olders and newers and works perfectly without problems or bugs.. i tested with the openssl-test attached project in the bug reported (now closed) i have my own GPS client connected to my manpowers for notifications.. more cheap rather pay network connections and related, here in my countrie money changes are no good... > > Regards, > Tobi > > [1] https://sourceforge.net/p/gambas/mailman/gambas-user/thread/BUG984: > 20160829225438...@gambaswiki.org/ > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query
Cris, the mail was generated from bugtracker, so you must answer here to better follow up of.. and basically u are agree that the patch its "not so ugly", due acepted that if no sql negative return was, can be treated as success and the patch for me are very good way to manage that.. 2017-06-21 9:11 GMT-04:30 Cristiano Guadagnino: > This is in no way "bad behavior of the ODBC and SQL standard", nor a > problem of Microsoft. It is standard practice (I have encountered it in ALL > the dbms with which I have been working through the years) that when a SQL > query returns no data the engine return a SQLCODE 100. > Negative SQLCODES always mean some kind of error has happened. Positive > SQLCODES are warnings. > SQLCODE 100 is one such warning, and rightly so. It means: your query has > returned no data. It there was no such warning, who could know if the query > returned no data because there's no data to be returned or because, for > example, you lost connectivity mid-way through the query? > So, SQLCODE 100 is a perfectly legal return code and should be treated as > success, at least if the program logic admits that there could be no data > to return. > > Cris > > > > On Wed, Jun 21, 2017 at 4:36 AM, wrote: > > > http://gambaswiki.org/bugtracker/edit?object=BUG.1113=L21haW4- > > > > Comment #13 by PICCORO LENZ MCKAY: > > > > i think your patch are not so "ugly" due relies on the bad behaviour of > > the ODBC and SQL standar, i mean umm jajaja its very confusing that the > > ODBC paper said after a "susessfull sql ddl" return SQL_NO_DATA event > > SQL_SUCCESS, but with M$ behind scenes.. no surprises.. > > > > analizing, if the SQL running was successfully and its no a SQL DML must > > retrieve as response SQL_SUCCESS, the problem maybe are on that cases: > > > > UPDATE, DELETE and INSERT does not retrieve any rows, only notifies was > > afected rows.. so return a SQL_NO_DATA, but are DML, so the only case > that > > return data its the SELECT case... so we can assume that any other > > statement will no return never some data.. only "affected rows" so for > any > > SQL query made, we can assumed SQL_SUCCESS if no problem was happened.. > the > > only exception will be SELECT and for those are not usefully due we not > > have proper CURSOR, only a FORWARD ONLY cursor... > > > > due that explanation, i think the only you can do its to assume that > > behaviour of the "ugly patch", so or SQL_SUCCESS or not... > > > > > > as a informative for others, SQL querys can be divided into two parts: > The > > Data Manipulation Language (DML) querys and the Data Definition Language > > (DDL) querys > > > > CAUTION: in the stupid mysql and sqlite, the ALTER query has a "afected > > rows" behavior due some info are stored on tables... > > > > EXAMPLES OF SQL DML: > > > > SELECT – this retriebve data always or not > > UPDATE – not retrieve data, only "affected rows" > > DELETE – not retrieve data, only "affected rows" > > INSERT INTO – not retrieve data, only "affected rows" > > > > EXAMPLES OF SQL DDL: > > > > CREATE DATABASE – no any data, only "succesfull or not" > > ALTER DATABASE – no any data, only "succesfull or not" > > CREATE TABLE – no any data, only "succesfull or not" > > ALTER TABLE – no any data, only "succesfull or not" > > DROP TABLE – no any data, only "succesfull or not" > > CREATE INDEX – crea un índice. > > DROP INDEX – borra un índice. > > > > PICCORO LENZ MCKAY changed the state of the bug to: Accepted. > > > > > > > > > > -- > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > ___ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query
This is in no way "bad behavior of the ODBC and SQL standard", nor a problem of Microsoft. It is standard practice (I have encountered it in ALL the dbms with which I have been working through the years) that when a SQL query returns no data the engine return a SQLCODE 100. Negative SQLCODES always mean some kind of error has happened. Positive SQLCODES are warnings. SQLCODE 100 is one such warning, and rightly so. It means: your query has returned no data. It there was no such warning, who could know if the query returned no data because there's no data to be returned or because, for example, you lost connectivity mid-way through the query? So, SQLCODE 100 is a perfectly legal return code and should be treated as success, at least if the program logic admits that there could be no data to return. Cris On Wed, Jun 21, 2017 at 4:36 AM,wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1113=L21haW4- > > Comment #13 by PICCORO LENZ MCKAY: > > i think your patch are not so "ugly" due relies on the bad behaviour of > the ODBC and SQL standar, i mean umm jajaja its very confusing that the > ODBC paper said after a "susessfull sql ddl" return SQL_NO_DATA event > SQL_SUCCESS, but with M$ behind scenes.. no surprises.. > > analizing, if the SQL running was successfully and its no a SQL DML must > retrieve as response SQL_SUCCESS, the problem maybe are on that cases: > > UPDATE, DELETE and INSERT does not retrieve any rows, only notifies was > afected rows.. so return a SQL_NO_DATA, but are DML, so the only case that > return data its the SELECT case... so we can assume that any other > statement will no return never some data.. only "affected rows" so for any > SQL query made, we can assumed SQL_SUCCESS if no problem was happened.. the > only exception will be SELECT and for those are not usefully due we not > have proper CURSOR, only a FORWARD ONLY cursor... > > due that explanation, i think the only you can do its to assume that > behaviour of the "ugly patch", so or SQL_SUCCESS or not... > > > as a informative for others, SQL querys can be divided into two parts: The > Data Manipulation Language (DML) querys and the Data Definition Language > (DDL) querys > > CAUTION: in the stupid mysql and sqlite, the ALTER query has a "afected > rows" behavior due some info are stored on tables... > > EXAMPLES OF SQL DML: > > SELECT – this retriebve data always or not > UPDATE – not retrieve data, only "affected rows" > DELETE – not retrieve data, only "affected rows" > INSERT INTO – not retrieve data, only "affected rows" > > EXAMPLES OF SQL DDL: > > CREATE DATABASE – no any data, only "succesfull or not" > ALTER DATABASE – no any data, only "succesfull or not" > CREATE TABLE – no any data, only "succesfull or not" > ALTER TABLE – no any data, only "succesfull or not" > DROP TABLE – no any data, only "succesfull or not" > CREATE INDEX – crea un índice. > DROP INDEX – borra un índice. > > PICCORO LENZ MCKAY changed the state of the bug to: Accepted. > > > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
Thanks Benoit, I'm going to try and I'll tell you Regards Gianluigi 2017-06-21 15:32 GMT+02:00 Benoît Minisini: > Le 21/06/2017 à 15:29, Benoît Minisini a écrit : > >> Le 21/06/2017 à 15:25, Gianluigi a écrit : >> >>> The libreries you have indicated are the last 5 of the command I >>> suggested, which is not wrong. >>> So I just have to let him to add libssl-dev, but I do not think his >>> problem stems from this, right? >>> Why he can not run Gambas and get these errors from the terminal? >>> Settings.WriteWindow.393: #20: Bad argument >>> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 >>> FMain.Form_Open.78 Project.Main.366 >>> >>> Regards >>> Gianluigi >>> >>> >> I don't know. I'm working on Kubuntu 17.04, and I have no problem with >> compiling Gambas, except the missing llvm 3.5. >> >> > Can you try to recompile the very latest revision? I added some code that > should avoid the specific crash you have. > > -- > Benoît Minisini > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
I then attached the log files. I understand, the library is missing Regards Gianluigi 2017-06-21 15:00 GMT+02:00 Tobias Boege: > On Wed, 21 Jun 2017, Gianluigi wrote: > > After the configuration he gets this result: > > || > > || THESE COMPONENTS ARE DISABLED: > > || - gb.jit > > || - gb.openssl > > || > > expected for gb.jit but not for gb.openssl. > > Gambas installs but he continues to be unable to use it either by > clicking > > on the icon or with the gambas3 command from the terminal. > > Any suggestions? > > At follow the final output of the installation > > > > The stuff you give is not relevant to gb.openssl. You only showed the > installation phase of the components written in Gambas, which doesn't > include gb.openssl. > > I have a very unpleasant memories [1] about the last time I changed the > configure.ac of gb.openssl. Please make sure first that the openssl > development packages are installed. > > Regards, > Tobi > > [1] https://sourceforge.net/p/gambas/mailman/gambas-user/thread/BUG984: > 20160829225438...@gambaswiki.org/ > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Strange behaviour of File.Read
I must be missing something - any ideas? Gambas3.9.2 Components, gb.form, gb,gui, gb.image This is the code:- Public Sub Button1_Click() Dim s As String s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt") Print s Print IsDir(s) Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29") End This is the output:- "/home/bill/Pictures/Family/Visits/2000-07-29" False True -- View this message in context: http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467.html Sent from the gambas-user mailing list archive at Nabble.com. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
Le 21/06/2017 à 15:29, Benoît Minisini a écrit : Le 21/06/2017 à 15:25, Gianluigi a écrit : The libreries you have indicated are the last 5 of the command I suggested, which is not wrong. So I just have to let him to add libssl-dev, but I do not think his problem stems from this, right? Why he can not run Gambas and get these errors from the terminal? Settings.WriteWindow.393: #20: Bad argument Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 FMain.Form_Open.78 Project.Main.366 Regards Gianluigi I don't know. I'm working on Kubuntu 17.04, and I have no problem with compiling Gambas, except the missing llvm 3.5. Can you try to recompile the very latest revision? I added some code that should avoid the specific crash you have. -- Benoît Minisini -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
Le 21/06/2017 à 15:25, Gianluigi a écrit : The libreries you have indicated are the last 5 of the command I suggested, which is not wrong. So I just have to let him to add libssl-dev, but I do not think his problem stems from this, right? Why he can not run Gambas and get these errors from the terminal? Settings.WriteWindow.393: #20: Bad argument Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 FMain.Form_Open.78 Project.Main.366 Regards Gianluigi I don't know. I'm working on Kubuntu 17.04, and I have no problem with compiling Gambas, except the missing llvm 3.5. -- Benoît Minisini -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
The libreries you have indicated are the last 5 of the command I suggested, which is not wrong. So I just have to let him to add libssl-dev, but I do not think his problem stems from this, right? Why he can not run Gambas and get these errors from the terminal? Settings.WriteWindow.393: #20: Bad argument Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 FMain.Form_Open.78 Project.Main.366 Regards Gianluigi 2017-06-21 15:00 GMT+02:00 Benoît Minisini: > Le 21/06/2017 à 14:58, Benoît Minisini a écrit : > >> Le 21/06/2017 à 14:56, Gianluigi a écrit : >> >>> He should have followed this path I suggested: >>> >>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >>> sudo rm -rf /usr/local/lib/gambas3 >>> sudo rm -rf /usr/local/share/gambas3 >>> sudo rm -f /usr/local/bin/gambas3 >>> sudo rm -f /usr/local/bin/gambas3.gambas >>> >>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >>> /usr/local/bin/gbs3 >>> sudo rm -rf /usr/lib/gambas3 >>> sudo rm -rf /usr/share/gambas3 >>> sudo rm -f /usr/bin/gambas3 >>> sudo rm -f /usr/bin/gambas3.gambas >>> >>> sudo apt update >>> >>> sudo apt install build-essential g++ automake autoconf libtool >>> libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev >>> postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev >>> libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev >>> libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev >>> libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev >>> libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev >>> libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev >>> libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev >>> libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev >>> libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev >>> libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev >>> libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev >>> libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev >>> libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev >>> >> >> This is not the development packages specified on the wiki page I told >> you. >> >> > It is written: > > $ sudo apt-get install build-essential g++ automake autoconf libtool > libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev > postgresql-server-dev-9.3 libsqlite0-dev libsqlite3-dev libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev > libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev llvm libalure-dev > libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > libsdl2-image-dev sane-utils libdumb1-dev libssl-dev > > For version on /trunk and 3.8 or higher add: > > $ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev > libqt5x11extras5-dev qtbase5-dev > > I think just libssl-dev is missing. > > -- > Benoît Minisini > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Logging errors in apps running as Application.Daemon
On Wed, 21 Jun 2017 13:51:11 +0200 Tobias Boegewrote: > On Wed, 21 Jun 2017, adamn...@gmail.com wrote: > > On Wed, 21 Jun 2017 02:17:27 -0700 (MST) > > alexchernoff wrote: > > > > > Peace to all, > > > > > > I have some Gb projects that are in Application.Daemon mode. But sometimes > > > if process dies for whatever reason, I can't see what the last error was. > > > I > > > have to run it in a console without daemonizing and wait for it to die and > > > show last reason (like "#13: Null object" or something). > > > > > > Can this be logged to a file? So at least the last output the interpreter > > > spits out is logged... > > > > > > Cheers! > > > > > > > > > > > > > > > > > or now that I think of it, you could just: > > > > $ yourdeamonstarter > output.txt 2>&1 > > > > :-) > > > > (Oh where might I have seen that somewhere before ???) > > B > > > > I doubt this works, because Application.Daemon = True calls daemon(3) which > redirects stdout and stderr (which were previously set by the shell to your > log files) to /dev/null, so you won't find anything in your files. Weird. I just tried it quickly here and it works. Then again, here there is no man 3 daemon, which is weirder. So I looked it up on the web: " int daemon(int nochdir, int noclose); ... If noclose is zero, daemon() redirects standard input, standard output and standard error to /dev/null; otherwise, no changes are made to these file descriptors." (So, maybe, I think this might be a distro or kernel scheduling thing, but...) (Further quick reading... SysV vs systemd ) "New-Style Daemons Modern services for Linux should be implemented as new-style daemons." ...none of the initialization steps recommended for SysV daemons need to be implemented. New-style init systems such as systemd make all of them redundant. ... it is guaranteed that the environment block is sanitized, that the signal handlers and mask is reset and that no left-over file descriptors are passed. Daemons will be executed in their own session, with standard input connected to /dev/null and standard output/error connected to the systemd-journald.service(8) logging service, unless otherwise... It's still not clear to me why it works on my machine. But now I'll have to go and check on the others here at paddys-hill and the damned customer VM's* to see if we might run into that problem if I tried it in the future. Well, every day a new thing learned. But then again, didn't someone say "There's an old saying: Don't change anything... ever!" -- Mr. Monk b (* The VM's cause me grief not the customers) -- B Bruen -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
Le 21/06/2017 à 14:58, Benoît Minisini a écrit : Le 21/06/2017 à 14:56, Gianluigi a écrit : He should have followed this path I suggested: sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas sudo apt update sudo apt install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev This is not the development packages specified on the wiki page I told you. It is written: $ sudo apt-get install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.3 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev llvm libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev For version on /trunk and 3.8 or higher add: $ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev I think just libssl-dev is missing. -- Benoît Minisini -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
On Wed, 21 Jun 2017, Gianluigi wrote: > After the configuration he gets this result: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.openssl > || > expected for gb.jit but not for gb.openssl. > Gambas installs but he continues to be unable to use it either by clicking > on the icon or with the gambas3 command from the terminal. > Any suggestions? > At follow the final output of the installation > The stuff you give is not relevant to gb.openssl. You only showed the installation phase of the components written in Gambas, which doesn't include gb.openssl. I have a very unpleasant memories [1] about the last time I changed the configure.ac of gb.openssl. Please make sure first that the openssl development packages are installed. Regards, Tobi [1] https://sourceforge.net/p/gambas/mailman/gambas-user/thread/BUG984:20160829225438...@gambaswiki.org/ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
Le 21/06/2017 à 14:56, Gianluigi a écrit : He should have followed this path I suggested: sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas sudo apt update sudo apt install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev This is not the development packages specified on the wiki page I told you. -- Benoît Minisini -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
He should have followed this path I suggested: sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas sudo apt update sudo apt install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev sudo apt install subversion svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk cd trunk ( ./reconf-all && ./configure -C ) > ~/Scrivania/R_conf-Trunk.log 2>&1 ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk.log 2>&1 I attach the two log files Regards Gianluigi 2017-06-21 14:47 GMT+02:00 Benoît Minisini: > Le 21/06/2017 à 14:41, Gianluigi a écrit : > >> After the configuration he gets this result: >> || >> || THESE COMPONENTS ARE DISABLED: >> || - gb.jit >> || - gb.openssl >> || >> expected for gb.jit but not for gb.openssl. >> Gambas installs but he continues to be unable to use it either by clicking >> on the icon or with the gambas3 command from the terminal. >> Any suggestions? >> At follow the final output of the installation >> >> Regards >> Gianluigi >> >> Installing the components... >> Compiling gb.eval.highlight... >> OK >> Installing gb.eval.highlight... >> Compiling gb.args... >> OK >> Installing gb.args... >> Compiling gb.settings... >> OK >> Installing gb.settings... >> Compiling gb.gui.base... >> OK >> Installing gb.gui.base... >> Compiling gb.form... >> OK >> Installing gb.form... >> Compiling gb.form.stock... >> OK >> Installing gb.form.stock... >> Compiling gb.form.dialog... >> OK >> Installing gb.form.dialog... >> Compiling gb.form.mdi... >> OK >> Installing gb.form.mdi... >> Compiling gb.db.form... >> OK >> Installing gb.db.form... >> Compiling gb.desktop... >> OK >> Installing gb.desktop... >> Compiling gb.web... >> OK >> Installing gb.web... >> Compiling gb.report... >> OK >> Installing gb.report... >> Compiling gb.report2... >> OK >> Installing gb.report2... >> Compiling gb.chart... >> OK >> Installing gb.chart... >> Compiling gb.mysql... >> OK >> Installing gb.mysql... >> Compiling gb.net.smtp... >> OK >> Installing gb.net.smtp... >> Compiling gb.net.pop3... >> OK >> Installing gb.net.pop3... >> Compiling gb.memcached... >> OK >> Installing gb.memcached... >> Compiling gb.map... >> OK >> Installing gb.map... >> Compiling gb.logging... >> OK >> Installing gb.logging... >> Compiling gb.markdown... >> OK >> Installing gb.markdown... >> Compiling gb.media.form... >> OK >> Installing gb.media.form... >> Compiling gb.scanner... >> OK >> Installing gb.scanner... >> Compiling gb.util... >> OK >> Installing gb.util... >> Compiling gb.util.web... >> OK >> Installing gb.util.web... >> Compiling gb.form.editor... >> OK >> Installing gb.form.editor... >> Compiling gb.dbus.trayicon... >> OK >> Installing gb.dbus.trayicon... >> Compiling gb.web.form... >> OK >> Installing gb.web.form... >> Compiling gb.form.terminal... >> OK >> Installing gb.form.terminal... >> Compiling gb.term.form... >> OK >> Installing gb.term.form... >> Compiling gb.web.feed... >> OK >> Installing gb.web.feed... >> make[2]: Nessuna operazione da eseguire per "install-data-am". >> make[2]: uscita dalla directory "/home/luca/trunk/comp" >> make[1]: uscita dalla directory "/home/luca/trunk/comp" >> Making install in app >> make[1]: ingresso nella directory "/home/luca/trunk/app" >> make[2]: ingresso nella directory "/home/luca/trunk/app" >> Installing the development environment... >> Compiling gambas3... >> OK >> Installing gambas3... >> Compiling gbs3... >> OK >> Installing gbs3... >> Installing the scripter... >> Registering Gambas script mimetype >> Registering Gambas server page mimetype >> Installing the Gambas appdata file >> Installing the Gambas template projects >> /usr/bin/install -c -d
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
Now the terminal has given this error; Settings.WriteWindow.393: #20: Bad argument Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 FMain.Form_Open.78 Project.Main.366 Regards Gianluigi 2017-06-21 14:41 GMT+02:00 Gianluigi: > After the configuration he gets this result: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.openssl > || > expected for gb.jit but not for gb.openssl. > Gambas installs but he continues to be unable to use it either by clicking > on the icon or with the gambas3 command from the terminal. > Any suggestions? > At follow the final output of the installation > > Regards > Gianluigi > > Installing the components... > Compiling gb.eval.highlight... > OK > Installing gb.eval.highlight... > Compiling gb.args... > OK > Installing gb.args... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.gui.base... > OK > Installing gb.gui.base... > Compiling gb.form... > OK > Installing gb.form... > Compiling gb.form.stock... > OK > Installing gb.form.stock... > Compiling gb.form.dialog... > OK > Installing gb.form.dialog... > Compiling gb.form.mdi... > OK > Installing gb.form.mdi... > Compiling gb.db.form... > OK > Installing gb.db.form... > Compiling gb.desktop... > OK > Installing gb.desktop... > Compiling gb.web... > OK > Installing gb.web... > Compiling gb.report... > OK > Installing gb.report... > Compiling gb.report2... > OK > Installing gb.report2... > Compiling gb.chart... > OK > Installing gb.chart... > Compiling gb.mysql... > OK > Installing gb.mysql... > Compiling gb.net.smtp... > OK > Installing gb.net.smtp... > Compiling gb.net.pop3... > OK > Installing gb.net.pop3... > Compiling gb.memcached... > OK > Installing gb.memcached... > Compiling gb.map... > OK > Installing gb.map... > Compiling gb.logging... > OK > Installing gb.logging... > Compiling gb.markdown... > OK > Installing gb.markdown... > Compiling gb.media.form... > OK > Installing gb.media.form... > Compiling gb.scanner... > OK > Installing gb.scanner... > Compiling gb.util... > OK > Installing gb.util... > Compiling gb.util.web... > OK > Installing gb.util.web... > Compiling gb.form.editor... > OK > Installing gb.form.editor... > Compiling gb.dbus.trayicon... > OK > Installing gb.dbus.trayicon... > Compiling gb.web.form... > OK > Installing gb.web.form... > Compiling gb.form.terminal... > OK > Installing gb.form.terminal... > Compiling gb.term.form... > OK > Installing gb.term.form... > Compiling gb.web.feed... > OK > Installing gb.web.feed... > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk/comp" > make[1]: uscita dalla directory "/home/luca/trunk/comp" > Making install in app > make[1]: ingresso nella directory "/home/luca/trunk/app" > make[2]: ingresso nella directory "/home/luca/trunk/app" > Installing the development environment... > Compiling gambas3... > OK > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > Installing the scripter... > Registering Gambas script mimetype > Registering Gambas server page mimetype > Installing the Gambas appdata file > Installing the Gambas template projects > /usr/bin/install -c -d /usr/share/gambas3/template; > cp -R ./template/* /usr/share/gambas3/template; > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk/app" > make[1]: uscita dalla directory "/home/luca/trunk/app" > Making install in . > make[1]: ingresso nella directory "/home/luca/trunk" > make[2]: ingresso nella directory "/home/luca/trunk" > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk" > make[1]: uscita dalla directory "/home/luca/trunk" > > 2017-06-20 22:43 GMT+02:00 Gianluigi : > >> I had immediately answered to the mail of Benoit but here [0] not appear, >> what am I doing wrong? >> >> Regards >> Gianluigi >> >> [0] http://gambas.8142.n7.nabble.com/Errors-compiling-on-Ubuntu- >> 17-04-zesty-td59433.html >> >> 2017-06-20 17:38 GMT+02:00 Gianluigi : >> >>> A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling >>> Gambas gets error of Impossible to find package for libsage-dev and >>> llvm-3.5-dev. >>> I searched on https://packages.ubuntu.com/ and concerning llvm the >>> oldest library available in zesty is 3.7, while concerning libsage I get >>> nothing, but looking in descriptions for Supports OpenGL in SDL >>> applications, I seemed to understand that gambas3-gb-opengl-sge should >>> replace it. >>> How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no >>> 3.5? >>> Can you help me? >>> >>> Regards >>> >>> Gianluigi >>> >> >> > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty
After the configuration he gets this result: || || THESE COMPONENTS ARE DISABLED: || - gb.jit || - gb.openssl || expected for gb.jit but not for gb.openssl. Gambas installs but he continues to be unable to use it either by clicking on the icon or with the gambas3 command from the terminal. Any suggestions? At follow the final output of the installation Regards Gianluigi Installing the components... Compiling gb.eval.highlight... OK Installing gb.eval.highlight... Compiling gb.args... OK Installing gb.args... Compiling gb.settings... OK Installing gb.settings... Compiling gb.gui.base... OK Installing gb.gui.base... Compiling gb.form... OK Installing gb.form... Compiling gb.form.stock... OK Installing gb.form.stock... Compiling gb.form.dialog... OK Installing gb.form.dialog... Compiling gb.form.mdi... OK Installing gb.form.mdi... Compiling gb.db.form... OK Installing gb.db.form... Compiling gb.desktop... OK Installing gb.desktop... Compiling gb.web... OK Installing gb.web... Compiling gb.report... OK Installing gb.report... Compiling gb.report2... OK Installing gb.report2... Compiling gb.chart... OK Installing gb.chart... Compiling gb.mysql... OK Installing gb.mysql... Compiling gb.net.smtp... OK Installing gb.net.smtp... Compiling gb.net.pop3... OK Installing gb.net.pop3... Compiling gb.memcached... OK Installing gb.memcached... Compiling gb.map... OK Installing gb.map... Compiling gb.logging... OK Installing gb.logging... Compiling gb.markdown... OK Installing gb.markdown... Compiling gb.media.form... OK Installing gb.media.form... Compiling gb.scanner... OK Installing gb.scanner... Compiling gb.util... OK Installing gb.util... Compiling gb.util.web... OK Installing gb.util.web... Compiling gb.form.editor... OK Installing gb.form.editor... Compiling gb.dbus.trayicon... OK Installing gb.dbus.trayicon... Compiling gb.web.form... OK Installing gb.web.form... Compiling gb.form.terminal... OK Installing gb.form.terminal... Compiling gb.term.form... OK Installing gb.term.form... Compiling gb.web.feed... OK Installing gb.web.feed... make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/luca/trunk/comp" make[1]: uscita dalla directory "/home/luca/trunk/comp" Making install in app make[1]: ingresso nella directory "/home/luca/trunk/app" make[2]: ingresso nella directory "/home/luca/trunk/app" Installing the development environment... Compiling gambas3... OK Installing gambas3... Compiling gbs3... OK Installing gbs3... Installing the scripter... Registering Gambas script mimetype Registering Gambas server page mimetype Installing the Gambas appdata file Installing the Gambas template projects /usr/bin/install -c -d /usr/share/gambas3/template; cp -R ./template/* /usr/share/gambas3/template; make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/luca/trunk/app" make[1]: uscita dalla directory "/home/luca/trunk/app" Making install in . make[1]: ingresso nella directory "/home/luca/trunk" make[2]: ingresso nella directory "/home/luca/trunk" make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/luca/trunk" make[1]: uscita dalla directory "/home/luca/trunk" 2017-06-20 22:43 GMT+02:00 Gianluigi: > I had immediately answered to the mail of Benoit but here [0] not appear, > what am I doing wrong? > > Regards > Gianluigi > > [0] http://gambas.8142.n7.nabble.com/Errors-compiling-on- > Ubuntu-17-04-zesty-td59433.html > > 2017-06-20 17:38 GMT+02:00 Gianluigi : > >> A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling >> Gambas gets error of Impossible to find package for libsage-dev and >> llvm-3.5-dev. >> I searched on https://packages.ubuntu.com/ and concerning llvm the >> oldest library available in zesty is 3.7, while concerning libsage I get >> nothing, but looking in descriptions for Supports OpenGL in SDL >> applications, I seemed to understand that gambas3-gb-opengl-sge should >> replace it. >> How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no >> 3.5? >> Can you help me? >> >> Regards >> >> Gianluigi >> > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Logging errors in apps running as Application.Daemon
in the case of deamon redirection, for those using Devuan, Debian and VenenuX the correct way to always see what happened to their daemons process it to strting run by the command "start-stop-daemon" as good choice with proper flags to redirect output... this will heppl to redirect the ouptu and see what happened... in other cases, will happened that tobias said... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-21 7:26 GMT-04:30 Tobias Boege: > On Wed, 21 Jun 2017, Tobias Boege wrote: > > Attached are two scripts > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Logging errors in apps running as Application.Daemon
On Wed, 21 Jun 2017, Tobias Boege wrote: > Attached are two scripts -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk #!/usr/bin/gbs3 Public Sub Main() Print "a" Application.Daemon = True Wait 0.1 ' ensure we daemon'd(?) Print "b" Print 1 / 0 Print "c" End #!/usr/bin/gbs3 Public Sub Main() Dim h, g As File h = Open "/tmp/log" For Write Create Output To #h g = Open "/tmp/log2" For Write Create Error To #g Print "a" Application.Daemon = True Wait 0.1 ' ensure we daemon'd(?) Print "b" Print 1 / 0 Print "c" Close #h Close #g End -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Logging errors in apps running as Application.Daemon
On Wed, 21 Jun 2017, adamn...@gmail.com wrote: > On Wed, 21 Jun 2017 02:17:27 -0700 (MST) > alexchernoffwrote: > > > Peace to all, > > > > I have some Gb projects that are in Application.Daemon mode. But sometimes > > if process dies for whatever reason, I can't see what the last error was. I > > have to run it in a console without daemonizing and wait for it to die and > > show last reason (like "#13: Null object" or something). > > > > Can this be logged to a file? So at least the last output the interpreter > > spits out is logged... > > > > Cheers! > > > > > > > > > > > or now that I think of it, you could just: > > $ yourdeamonstarter > output.txt 2>&1 > > :-) > > (Oh where might I have seen that somewhere before ???) > B > I doubt this works, because Application.Daemon = True calls daemon(3) which redirects stdout and stderr (which were previously set by the shell to your log files) to /dev/null, so you won't find anything in your files. Output To and Error To should still work because they don't replace stdout and stderr (which are killed by daemon()) but change the default file the Print and Error statements operate on, at the Gambas level. I don't know if it's possible to capture interpreter errors this way though. Generally the interpreter would use fprintf(stderr, ...) to report errors (fixed on stderr which, again, is sent to /dev/null after daemon()). Attached are two scripts which showcase these reflections. Both scripts have three stages: (1) print something, (2) daemonise and print something, and (3) raise an error and then print something. daemon1.gbs3 uses normal Print and relies on the shell redirection: $ ./daemon1.gbs3 a $ ./daemon1.gbs3 >/tmp/log 2>&1 $ cat /tmp/log Of course, only the output after the first stage is shown as stdout is closed after daemonising. The interpreter error is not shown. Curiously the shell redirection results in an empty file, so not even the first stage output arrives(?) Whereas daemon2 creates its own log files (one for stdout and stderr each) and uses Output To and Error To: $ ./daemon2.gbs3 $ cat /tmp/log* a b It can at least store its output after the daemonisation (the "b"), but the interpreter error is not logged. To get this, you could look into using the global error handler Static Public Sub Application_Error() [1] in your startup class or using the C library via Extern to force your log files into the standard fds again (this latter one would be the least intrusive for the code you may have already written). Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb/application -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Logging errors in apps running as Application.Daemon
On Wed, 21 Jun 2017 02:17:27 -0700 (MST) alexchernoffwrote: > Peace to all, > > I have some Gb projects that are in Application.Daemon mode. But sometimes > if process dies for whatever reason, I can't see what the last error was. I > have to run it in a console without daemonizing and wait for it to die and > show last reason (like "#13: Null object" or something). > > Can this be logged to a file? So at least the last output the interpreter > spits out is logged... > > Cheers! > > > > > or now that I think of it, you could just: $ yourdeamonstarter > output.txt 2>&1 :-) (Oh where might I have seen that somewhere before ???) B -- B Bruen -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Logging errors in apps running as Application.Daemon
On Wed, 21 Jun 2017 02:17:27 -0700 (MST) alexchernoffwrote: > Peace to all, > > I have some Gb projects that are in Application.Daemon mode. But sometimes > if process dies for whatever reason, I can't see what the last error was. I > have to run it in a console without daemonizing and wait for it to die and > show last reason (like "#13: Null object" or something). > > Can this be logged to a file? So at least the last output the interpreter > spits out is logged... > > Cheers! > > > In this case, probably the easiest is to redirect stdout and stderr to a file somewhere. The commands you should look at are: OUTPUT TO and ERROR TO (and you'll have to write the necessary guff to set up the file, etc etc of course) hth bruce -- B Bruen -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Logging errors in apps running as Application.Daemon
Peace to all, I have some Gb projects that are in Application.Daemon mode. But sometimes if process dies for whatever reason, I can't see what the last error was. I have to run it in a console without daemonizing and wait for it to die and show last reason (like "#13: Null object" or something). Can this be logged to a file? So at least the last output the interpreter spits out is logged... Cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450.html Sent from the gambas-user mailing list archive at Nabble.com. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user