Project

General

Profile

Feature #3264

Add position next to line on scripting error

Added by westor (GR) 3 months ago. Updated 3 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
02/04/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

It would be a nice and useful tool especially for starters to add an position tag on the scripting error function.

Example Code:

alias test {
  var %test 1
  if (%test) { echo -a $gettok(%a,1,32) - $gettok(%b,2) - $gettok(%c,3,32) }
}

This code has an scripting error into the second $gettok so when the $error trigger the error message will be like this:

[17:34:26] * $gettok: insufficient parameters (line 3, test.ini)

My suggestion is to change it to display the position that the error occurred, like:

[17:34:26] * $gettok: insufficient parameters (line 5:43, test.ini)
or
[17:34:26] * $gettok: insufficient parameters (line 5, position 43, test.ini)

And after this error that will trigger with error position the scripter will more easy open the script editor and directly go into the specific line-position that the error occurred.

- Thanks!

History

#1 Updated by Per Amundsen 3 months ago

  • Status changed from New to Assigned

Also available in: Atom PDF