This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Two questions about running kawa.repl
That's odd -- that rogue semicolon isn't there in the Swing REPL. It's
just showing up when I paste its output here.
I should have prefaced all this by saying I was running Kawa on
Cygwin/bash (on a work computer) when all this happened. I tried, just
now, on my Debian laptop, and everything worked as expected. I'll
build 1.12 from source and study this further in the coming days.
== Jesse
-----Original Message-----
From: Per Bothner <per@bothner.com>
To: Jesse Farrell <pingouin21@netscape.net>
Cc: kawa <kawa@sourceware.org>
Sent: Mon, Nov 5, 2012 4:33 pm
Subject: Re: Two questions about running kawa.repl
On 11/05/2012 01:14 PM, Jesse Farrell wrote:
1) It's been a couple of years since I've used Kawa, and, while
starting
up kawa.repl from the command line (I'm using a download of the binary
-- 1.12 -- jar), was greeted by a Swing REPL. Is there any command
option to suppress this, and just use my xterm?
The default should be to use your xterm. Kawa checks if
there a "Console". It creates the Swing REPL java.lang.System.Console()
returns null. Normally it should not do that if you run from xterm and
don't re-direct anything.
If you start up Kawa from the front-end, it does the check in kawa.c,
using isatty.
2) While running the Swing REPL, I got this:
#|kawa:29|# (java.net.URL
"http://feeds.bbci.co.uk/news/england/rss.xml";)
....
(And note that it thinks the String arg doesn't have a closing
double-quote.)
That is because of the semi-colon just before the parenthesis.
These errors are strange, but it looks like someting caused the start
quote
to not be seen. I notice that sometimes readline get confused, and
the visible input line doesn't match the actual input line. If you're
using the Swing REPL then readline woudl not be involved, but something
else could have confused the redisplay in a similar way.
/dev/stdin:29:1: warning - no known slot
'//feeds.bbci.co.uk/news/england/rss.xml' in java.lang.Object
/dev/stdin:29:1: warning - no declaration seen for http
/dev/stdin:29:1: unbound location http
--
--Per Bothner
per@bothner.com http://per.bothner.com/