Error stack tracebacks?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
Línea de trabajo
The report compares the lua CLI traceback with the error printed by the README example lua-test.go, which shows only runtime error: hello.lua:6: attempt to call a nil value. Start by running lua-test.go with the hello.lua script from the issue to reproduce that output. Done would mean either a documented way to get a stack traceback from go-lua or a clear statement that this is not supported. The thread has no maintainer reply, so confirm the intended behaviour before writing code.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi there!
(little disclaimer first: I'm not terribly familiar with go)
I'm struggling a bit on how to get proper tracebacks for errors using go-lua.
Giving this hello.lua file, containing:
print("Hello World")
function foo()
print("Hello, I'm foo!")
bar()
end
foo()
…run with lua hello.lua gives me:
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 ?
If I run this with the example provided in the README, I get:
go run lua-test.go
Hello World
Hello, I'm foo!
2017/08/03 11:38:42 runtime error: hello.lua:6: attempt to call a nil value
How can I get a comparable traceback with go-lua? Something that can be presented to a user. Are there more examples somewhere?
- Lenguaje dominante
- Go
- Estrellas
- 3.5k
- Forks
- 217
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Shopify/go-lua
-
Numeric modulo fast path disagrees with Lua 5.2 and the library fallback for negative operandsPosiblemente ocupada @efegokdemir la tomó hace 35 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
io.write discards spaces after trailing numbersPosiblemente ocupada @flynn-eye la tomó hace 25 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
State.close leaves closed upvalues in the open list, so calls get slower without boundPosiblemente ocupada @efegokdemir la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Todos los issues de Shopify/go-lua
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
limitlessprojects/Go-Hybrid#4764 ·
Los mantenedores suelen responder en 1 día
-
[bug]: lint fails on main, generated CLI docs out of datePosiblemente ocupada @bupd la tomó hoy. Abiertobug documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
goharbor/harbor-cli#1180 ·
Los mantenedores suelen responder en 1 día
-
crane: mutate --env adds duplicate PATH on Windows images when key case differsPosiblemente ocupada @aad1tyaaaaa la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
google/go-containerregistry#2523 ·
Los mantenedores suelen responder en 4 días
-
bosh_io_stemcell_type: regular does not work for noble and resolute as it adds -go_agent as suffixAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
cloudfoundry/bosh-deployment-resource#138 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100