You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
little disclaimer first: I'm not terribly familiar with go. I'm trying to take a look around how to use lua with go. I've opened a similar issue with Shopify/go-lua#87 because I had the same problem with (missing) tracebacks.
I'm struggling a bit on how to get proper tracebacks for errors.
Hello World
Hello, I'm foo!
lua: hello.lua:5: attempt to call global 'bar' (a nil value)
stack traceback:
hello.lua:5: in function 'foo'
hello.lua:8: in main chunk
[C]: in ?
Hi there!
little disclaimer first: I'm not terribly familiar with go. I'm trying to take a look around how to use lua with go. I've opened a similar issue with Shopify/go-lua#87 because I had the same problem with (missing) tracebacks.
I'm struggling a bit on how to get proper tracebacks for errors.
Giving this
hello.lua
file containing:…run with
lua hello.lua
gives me:With
golua
used infile.go
:…run with
go run file.go
gives me:How can I get a comparable traceback with golua? Something that can be presented to a user. Are there more examples somewhere?
The text was updated successfully, but these errors were encountered: