When the script is about to run all referenced files are loaded at once and only once. So the whole thing is in memory and line calculation is not a big deal. When the script is edited, either on-line portion or off-line portion (files), at that time line numbers get changed frequently because of the changes (inside and outside). The editor must do a lot more work - monitor changes in externals file, invalidate changes in the on-line portion, basically it must recalculate line numbers all the time accordingly to all changes in all places. When the whole thing is loaded into memory this is not a problem, but anything that involves a file access surely creates certain performance impact. That's why I said that taking into account external files for line enumeration could be problematic from an editor-performance point of view. Again this is just my opinion. Sorry if I wasn't clear in the first message. : This must be possible, because 24x7 does it already, it just doesn't display : it in the editor. : Example: You write a job with 50 lines of code and put an error into line 45. : When you validate the job, a message comes back saying that there is an : error on line 546. You look at your code and only see 50 lines. Then you : realize that 500 lines are being inserted through an @SCRIPT command. : If the error is in the off-line script, the message should contain the line : number inside the off-line script alone and indicate which off-line script : the error was found in. : If the error is in the job itself, there should be some visual display of : which line is in error without having to manually calculate how many lines : are in the off-line scripts. : Does this sound like reasonable modifications that could be done to the : editor?
|