|
From: Slava P. <sp...@gj...> - 2000-09-30 00:54:08
|
Peter, jEdit overrides BSH's 'print()' method with one that prints to the current Console plugin instance (so that you can invoke print() from the Console plugin and see the output there). However, the 'execute' commands are not assiciated with a console, so the error occurs. To dump text to the activity log, try: Log.log(Log.<one of DEBUG, MESSAGE, NOTICE, WARNING, ERROR>,source,msg); Where source is a class or object, and msg is a string or exception. Slava "Peter N. Harbo" wrote: > > Using jEdit-2.6pre7 and the BeanShell plugin 0.3.1, I created a buffer > "test.bsh" with the single line > > print( 5 ); > > and using the BeanShell plugin (either 'execute buffer' or 'execute > selection') I get the following > > A BeanShell execution error has occurred: > bsh.EvalError: Line 1: sourced file: <inline eval> > bsh.EvalError: bsh.EvalError: bsh.EvalError: Method invocation on void: > output.printPlain: : output.printPlain (String.valueOf ( arg )) : print(5) > > I am able to give the command 'print(5)' when I run the bean shell > using the same bsh-1.0.jar that comes with the bean shell plugin using > the Interpreter object. I think I must be making an obvious mistake. > > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > http://lists.sourceforge.net/mailman/listinfo/jedit-users |