-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to report lua errors? #64
Comments
I stumbled across http://erlang.org/pipermail/erlang-questions/2015-January/082696.html and https://groups.google.com/d/msg/luerl/9p5LS14LX8Y/OALhHx_89Q4J and I was wondering if there is any change to the status quo on this particular issue. |
No, there have been no changes on that issue. The problem is that we have a combination of erlang stack and lua stack so when we call a lua function we end up calling the erlang function which evaluates all lua functions. The lua stack is used for temporary arguments and values. The lua VM would need to be changed to fix this. It is in the pipeline. |
I'm currently evaluating what the "best" way is to run user provided bits of logic in Elixir/Erlang. Lua seems to be a good fit, but without error reports I can present to the user is a pretty big deal breaker. I think I begin to understand the issue, at least a little bit. This sounds like a pretty substantial change to add this kind of tracing information to be able to construct something comparable to the lua backtrace. I'd love to help out, but I think I lack the required Erlang fu and I'm got lost a couple of times trying to understand how luerl actually works :-/ |
Hopefully I will get time to do this when I fix Lua 5.3. It will make other things easier and possible as well, for example the coroutines discussed in #62. |
Any updates on this one? Any pointers where to help? |
Yes, I am attacking this in the This may backwards incompatible changes. |
I'm trying to figure out, how to report errors caused by lua to the user.
Using this script (notice that
foo
is not defined):and run it via
State
will contain something aboutundef_function
, but I'm having a hard time to build a understandable error message out of it I can present my user.Using C-lua I get
And I would like to present a similar error message. I could not find an example on how to deal with and report errors. Is there something I'm missing?
[0]
State
is…The text was updated successfully, but these errors were encountered: