This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Two questions about running kawa.repl
- From: Per Bothner <per at bothner dot com>
- To: Jesse Farrell <pingouin21 at netscape dot net>
- Cc: kawa at sourceware dot org
- Date: Mon, 05 Nov 2012 13:33:16 -0800
- Subject: Re: Two questions about running kawa.repl
- References: <8CF89B1BF08E4A3-1D3C-1405B@webmail-m049.sysops.aol.com>
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/