[Monetdb-developers] clients on windows 32...
Why the option \h - show the readline history mclient.exe -lsql --help Is not available on windows? Is an design feature or a bug? Regards, Romulo
Sjoerd Mullender wrote:
Romulo Goncalves wrote:
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it. This means I can approve the test for windows. How I do a Mapprove for a windows platform keeping the linux one?
Regards, Romulo
Sjoerd Mullender
On Fri, Oct 12, 2007 at 01:22:23PM +0200, Romulo Goncalves wrote:
Sjoerd Mullender wrote:
Romulo Goncalves wrote:
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it. This means I can approve the test for windows. How I do a Mapprove for a windows platform keeping the linux one?
======== $ Mapprove.py --help -------- [...] -x <ext> approve only output files *.<ext><sys> (<ext> = 'out' or 'err') (default: <ext> = 'out' & 'err') -S <sys> approve specific output *.<ext><sys> (<sys> = '[.(<OS>[<RELEASE>]|<DIST>[<VERSION>])][.(32|64)bit][.oid(32|64)][.Five][.STATIC]', (default: longest match for <sys> = '[.(Linux[2.6.20-1.2933.fc6]|Fedora[6])]') [...] ======== or in short: Mapprove.py ... -S.WindowsNT ... Stefan
Regards, Romulo
Sjoerd Mullender
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
Stefan Manegold wrote:
On Fri, Oct 12, 2007 at 01:22:23PM +0200, Romulo Goncalves wrote:
Sjoerd Mullender wrote:
Romulo Goncalves wrote:
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug? There is no readline on Windows, nor a need for it. This means I can approve the test for windows. How I do a Mapprove for a windows platform keeping the linux one?
======== $ Mapprove.py --help -------- [...] -x <ext> approve only output files *.<ext><sys> (<ext> = 'out' or 'err') (default: <ext> = 'out' & 'err') -S <sys> approve specific output *.<ext><sys> (<sys> = '[.(<OS>[<RELEASE>]|<DIST>[<VERSION>])][.(32|64)bit][.oid(32|64)][.Five][.STATIC]', (default: longest match for <sys> = '[.(Linux[2.6.20-1.2933.fc6]|Fedora[6])]') [...] ======== Yes I know I just tried the shortcut (ask by email), but once the answer took more than 10 minutes to arrive a decide to Jump again on the README.
Thanks for the help. Regards, Romulo PS: Windows it would be nicer because NT is gone ;)
or in short: Mapprove.py ... -S.WindowsNT ...
Stefan
Regards, Romulo
Sjoerd Mullender
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On Fri, Oct 12, 2007 at 02:33:37PM +0200, Romulo Goncalves wrote:
Yes I know I just tried the shortcut (ask by email), but once the answer took more than 10 minutes to arrive a decide to Jump again on the README.
Try it the other way, next time ;-)
PS: Windows it would be nicer because NT is gone ;)
"Officially" (internally), "NT" was "WindowsNT 4.*", while Windows2000 was "WindowsNT 5.0", and XT was/is "WindowsNT 5.2" --- at least that's what command `ver` used to say on a Windows command prompt (hence, not my/our decisions but that of the guys from Redmond). Just try yourself. (Don't (want to) know what Vista is ...) Stefan -- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
Hello,
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it.
is \h supposed to work on Linux (Ubuntu feisty)? I get: $ mclient -l mal -d demo -H mal>\h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected However, readline functionality is present: Ctrl-p, Ctrl-n, Ctrl-a, Ctrl-e all work correctly. Kambiz
darabi@web.de wrote:
Hello,
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it.
is \h supposed to work on Linux (Ubuntu feisty)?
I get:
$ mclient -l mal -d demo -H mal>\h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected
However, readline functionality is present: Ctrl-p, Ctrl-n, Ctrl-a, Ctrl-e all work correctly.
Problem NOTconfirmed on Fedora. It works with both empty/non-empty history file. However, '\' should be the first character of the line, otherwise you indeed get the error being mentioned. Please check. If it fails then a deeper analysis of the Ubuntu version is needed. mk@gio::~> mclient -l mal -d demo -H mal>\h mal>io.print(1); [ 1 ] mal>\h 1 \h 2 io.print(1); mal>\h 1 \h 2 io.print(1); 3 \h mal> \h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError: \h !SyntaxException:parseError:^<identifier> expected mal>
Kambiz
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
Hi, in Kambiz' case, the error message is not complaining about an extra space, but about the '\' as first character on the line. Hence, the usual questions: Kambiz, which version of MonetDB are you using, and how did you install it --- if I recall correctly from previous mails, you did install using the monetdb_install.sh script, right, and hence use the super source tarball? But which version? Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB. Finally, do other \* commands work? Stefan On Sat, Oct 13, 2007 at 08:21:01AM +0200, Martin Kersten wrote:
darabi@web.de wrote:
Hello,
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it.
is \h supposed to work on Linux (Ubuntu feisty)?
I get:
$ mclient -l mal -d demo -H mal>\h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected
However, readline functionality is present: Ctrl-p, Ctrl-n, Ctrl-a, Ctrl-e all work correctly.
Problem NOTconfirmed on Fedora. It works with both empty/non-empty history file. However, '\' should be the first character of the line, otherwise you indeed get the error being mentioned. Please check. If it fails then a deeper analysis of the Ubuntu version is needed.
mk@gio::~> mclient -l mal -d demo -H mal>\h mal>io.print(1); [ 1 ] mal>\h 1 \h 2 io.print(1); mal>\h 1 \h 2 io.print(1); 3 \h mal> \h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError: \h !SyntaxException:parseError:^<identifier> expected mal>
Kambiz
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
Stefan Manegold wrote:
Hi,
in Kambiz' case, the error message is not complaining about an extra space, but about the '\' as first character on the line.
No, the error indicates that '\' is sent to the server, where the MAL parser does not recognize it as a legal start. '\' as first characters are already trapped in the basic readClient() function, before the parser takes control. That's why I am suspicious if there is a leading blanc character.
Hence, the usual questions:
Kambiz,
which version of MonetDB are you using, and how did you install it --- if I recall correctly from previous mails, you did install using the monetdb_install.sh script, right, and hence use the super source tarball? But which version?
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Finally, do other \* commands work?
Stefan
On Sat, Oct 13, 2007 at 08:21:01AM +0200, Martin Kersten wrote:
darabi@web.de wrote:
Hello,
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it.
is \h supposed to work on Linux (Ubuntu feisty)?
I get:
$ mclient -l mal -d demo -H mal>\h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected
However, readline functionality is present: Ctrl-p, Ctrl-n, Ctrl-a, Ctrl-e all work correctly.
Problem NOTconfirmed on Fedora. It works with both empty/non-empty history file. However, '\' should be the first character of the line, otherwise you indeed get the error being mentioned. Please check. If it fails then a deeper analysis of the Ubuntu version is needed.
mk@gio::~> mclient -l mal -d demo -H mal>\h mal>io.print(1); [ 1 ] mal>\h 1 \h 2 io.print(1); mal>\h 1 \h 2 io.print(1); 3 \h mal> \h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError: \h !SyntaxException:parseError:^<identifier> expected mal>
Kambiz
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On Sat, Oct 13, 2007 at 09:09:59AM +0200, Martin Kersten wrote:
Stefan Manegold wrote:
Hi,
in Kambiz' case, the error message is not complaining about an extra space, but about the '\' as first character on the line.
No, the error indicates that '\' is sent to the server, where the MAL parser does not recognize it as a legal start. '\' as first characters are already trapped in the basic readClient() function, before the parser takes control. That's why I am suspicious if there is a leading blanc character.
I just compared Kambiz v ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected ^ with Martin v ERROR = !SyntaxException:parseError: \h !SyntaxException:parseError:^<identifier> expected ^ In the second case (Martin) there's indeed a ' ' that the error message complains about, while in the first case (Kambiz) there is no ' ', but the error message complains about the '\' --- at least that's how I read the above error messages. Stefan
Hence, the usual questions:
Kambiz,
which version of MonetDB are you using, and how did you install it --- if I recall correctly from previous mails, you did install using the monetdb_install.sh script, right, and hence use the super source tarball? But which version?
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Finally, do other \* commands work?
Stefan
On Sat, Oct 13, 2007 at 08:21:01AM +0200, Martin Kersten wrote:
darabi@web.de wrote:
Hello,
Why the option \h - show the readline history
mclient.exe -lsql --help
Is not available on windows? Is an design feature or a bug?
There is no readline on Windows, nor a need for it.
is \h supposed to work on Linux (Ubuntu feisty)?
I get:
$ mclient -l mal -d demo -H mal>\h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError:\h !SyntaxException:parseError:^<identifier> expected
However, readline functionality is present: Ctrl-p, Ctrl-n, Ctrl-a, Ctrl-e all work correctly.
Problem NOTconfirmed on Fedora. It works with both empty/non-empty history file. However, '\' should be the first character of the line, otherwise you indeed get the error being mentioned. Please check. If it fails then a deeper analysis of the Ubuntu version is needed.
mk@gio::~> mclient -l mal -d demo -H mal>\h mal>io.print(1); [ 1 ] mal>\h 1 \h 2 io.print(1); mal>\h 1 \h 2 io.print(1); 3 \h mal> \h MAPI = monetdb@localhost:50000 QUERY = \h ERROR = !SyntaxException:parseError: \h !SyntaxException:parseError:^<identifier> expected mal>
Kambiz
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
which version of MonetDB are you using, and how did you install it --- if I recall correctly from previous mails, you did install using the monetdb_install.sh script, right, and hence use the super source tarball? But which version?
MonetDB-Mars-SuperBall-SR3.tar.bz2. I have the impression that something is wrong with the source tarball.
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Do you mean 'mclient -l mal -H' ? Readline works as I mentioned:
However, readline functionality is present: Ctrl-p, Ctrl-n, Ctrl-a, Ctrl-e all work correctly.
And the history is also saved correctly: I can get to the commands of the last session with Ctrl-p.
Finally, do other \* commands work?
\q does. \d doesn't: $ mclient -l sql -d demo -H sql>\d MAPI = monetdb@localhost:50000 QUERY = \d ERROR = !unexpected symbol (\) more> I would like to re-build. Which one would you recommend: --nightly=target download and install a nightly snapshot of the stable or current branch, target must be 'stable' or 'current' --cvs checkout a CVS snapshot of the current branch Thanks Kambiz
On 13-10-2007 10:15:20 +0200, darabi@web.de wrote:
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Do you mean 'mclient -l mal -H' ?
Readline works as I mentioned:
Can you retrieve the installed readline version using Ubuntu's package manager somehow? Also whether you are using GNU readline, or BSD's libedit?
I would like to re-build. Which one would you recommend:
--nightly=target download and install a nightly snapshot of the stable or current branch, target must be 'stable' or 'current' --cvs checkout a CVS snapshot of the current branch
I think --nightly=stable will give you sources similar to the release candidates, so that would be most helpful.
Can you retrieve the installed readline version using Ubuntu's package manager somehow? Also whether you are using GNU readline, or BSD's libedit?
$ ldd /opt/monetdb/bin/MapiClient ... libreadline.so.5 => /lib/libreadline.so.5 (0xb7f6a000) ... which is a link to /lib/libreadline.so.5.2 HTH Kambiz
On Sat, Oct 13, 2007 at 10:15:20AM +0200, darabi@web.de wrote: [...]
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Do you mean 'mclient -l mal -H' ?
nope. I meant what I wrote: `mclient -l mal --help` to get the help message and see whether this lists '\h' or not. Stefan -- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
Stefan.Manegold@cwi.nl wrote:
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Do you mean 'mclient -l mal -H' ?
nope. I meant what I wrote: `mclient -l mal --help` to get the help message and see whether this lists '\h' or not.
After compiling nightly stable, I understand your question. The Mars-SR3 version didn't give such detailed information about which backslash-commands are available. The current stable version does *and* it behaves correctly. Thanks Kambiz
On Sat, Oct 13, 2007 at 11:30:47AM +0200, darabi@web.de wrote:
Stefan.Manegold@cwi.nl wrote:
Further, a simple mclient -l mal --help (with a running mserver5) will reveal whether readline support (and hence \h) is indeed enabled in your build of MonetDB.
Do you mean 'mclient -l mal -H' ?
nope. I meant what I wrote: `mclient -l mal --help` to get the help message and see whether this lists '\h' or not.
After compiling nightly stable, I understand your question.
The Mars-SR3 version didn't give such detailed information about which backslash-commands are available.
The current stable version does *and* it behaves correctly.
That exactly was my intention: get confirmation that the "old" MapiClient used in the Mars-SR3 tarball (in that "MonetDB Clients 1.18" version, mclient is just a tiny script that allowas to call MapiClient as mclient) is significantly different from the new mclient from the latest "MonetDB Clients 1.20" Stable branch that will be distributed with the upcoming release. Next to changing the name (MapiClient -> mclient) the functionallity (in particular help messages and '\'-commands) has been extended, cleaned-up and (most importantly) *fixed* and thus made work (properly) at all. Once again, this shows how impartant it is that both users and developers state clearly which version they are using/talking about ... Stefan -- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
participants (6)
-
darabi@web.de
-
Fabian Groffen
-
Martin Kersten
-
Romulo Goncalves
-
Sjoerd Mullender
-
Stefan Manegold