#1014 LuaExtension does not provide stack trace on error

Feature_Request
closed-fixed
SciTE (626)
5
2010-09-02
2010-08-23
Anonymous
No

When an error occurs in Lua startup script, the LuaExtension shows only the error code, but it doesn't provide the stack traceback. This is a problem in larger projects built on LuaExtension, like http://lua-users.org/wiki/LuaInspect, where the full traceback would help in debugging errors.

Attached is a patch (for SciTE 2.20, also here: http://gist.github.com/542683\), that replaces 'print' with 'debug.traceback' as an error handler for the Lua pcall function.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-08-23

    Patch that enables stack traceback in LuaExtension

     
  • Neil Hodgson

    Neil Hodgson - 2010-08-24

    Committed.

     
  • Neil Hodgson

    Neil Hodgson - 2010-08-24
    • assigned_to: nobody --> nyamatongwe
    • milestone: --> Feature_Request
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2010-09-02
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks