Issue 70215 - Javascript Rhino debugger hides some runtime errors
Summary: Javascript Rhino debugger hides some runtime errors
Status: ACCEPTED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 2.0.3
Hardware: PC Windows XP
: P4 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-09 07:20 UTC by bmarcelly
Modified: 2017-05-20 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2006-10-09 07:20:59 UTC
This is an example of runtime error which is not displayed if the script is run from 
the Rhino debugger:
- in a document, create a new Javascript module. It is created with a Hello World 
example.
- change the last instruction like this:
xTextRange.setString( "Hello World (in JavaScript)", 1 );
- run the script from the debugger : no error message, but no Hello World written.
- run the script from Tools > Macros : a runtime error message is displayed.
Comment 1 Mathias_Bauer 2006-10-30 12:01:23 UTC
Jürgen, please find the right developer for this issue in the Scripting Framework
Comment 2 jsc 2006-10-30 12:08:44 UTC
jsc -> ab: seems to be one for the scripting framework
Comment 3 ab 2006-10-31 10:58:40 UTC
Probably not many user affected -> P4, OOo later
Comment 4 cai_73077 2008-02-05 14:38:33 UTC
The defect is reproduced on OOo V2.3.1 Intel Windows XP, Service Pack II. 

1.Start up OOo writer with a new document
2.Click on Tools > Marcros > Organize Marcros > JavaScript 
3.On the JavaScript Macros panel, click to select My Macros, and then click on 
Create…
4.In the Create Library window, type in a name to create a libary. ie. 
myTestLib, and click Ok.
5.Expand My Macros, and click to select the library, myTestLib, you just 
created. Click on Create… Enter a name for your JavaScript program, ie, 
myTestJS, and click Ok.
6.Next select the JS program that you just created, and click on Edit.
7.A “Hello World†sample program is displayed. You can either write your own 
testing JavaScript program or use it for this test. 
8.Change the last instruction to: (as suggested by the reporter)

	    xTextRange.setString( "Hello World 
	    (in JavaScript)", 1 );

9.Click File > Save
10.Click File > Run [Observe that there’s no error message, nor there’s 
output]
11.Click File > Exit to get out of the Rhino Debugger. 
12.Tools > Macros > Run Macros
13.Select the macro, ie, myTestJS.js, and click Run

The following run time error message is displayed in a prompt. 

A Scripting Framework error occurred while running the JavaScript script 
myTestJS.js.
Message: Can’t find method $Proxy31.setString(string,number). (<stdin>; line31)

Further testing has been performed on another instruction in the test script, 
and the same problem happens. 
Comment 5 Marcus 2017-05-20 11:29:29 UTC
Reset assigne to the default "issues@openoffice.apache.org".