-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
When running brick breaker, the following panic occurs:
$work:brick-breaker[master] cat README.md
$work:brick-breaker[master] cx .
error: internal/brick.cx:47 'geometry' redeclared
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running, locked to thread]:
github.com/skycoin/cx/cxparser/actions.ProcessSymbolFields(0xc00086e500, 0xc00086e100)
/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:1086 +0x945
github.com/skycoin/cx/cxparser/actions.GiveOffset(0xc00061ee70, 0xc00086e500, 0xc00061ee2c, 0x1)
/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:903 +0x8f
github.com/skycoin/cx/cxparser/actions.ProcessExpressionArguments(0xc00087a1b0, 0xc00061ee40, 0x6, 0x30, {0xc0002c26a0, 0x1, 0x30}, 0xc69c20, 0x0)
/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:374 +0x2b4
github.com/skycoin/cx/cxparser/actions.FunctionDeclaration(0xc000799440, {0xc0002c2618, 0xc0002c2688, 0x0}, {0x0, 0x0, 0xc000191bc8}, {0xc0008312f0, 0x6, 0x6})
/home/work/go/src/github.com/skycoin/cx/cxparser/actions/functions.go:158 +0x3bd
github.com/skycoin/cx/cxparser/cxparsingcompletor.yyParse({0x8f9778, 0xc000822480})
/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsingcompletor/parsingcompletor.go:1698 +0x13ae
github.com/skycoin/cx/cxparser/cxparsingcompletor.Parse(...)
/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsingcompletor/parsingcompletor.go:31
github.com/skycoin/cx/cxparser/cxparsing.Passtwo(0xc00001a540)
/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsing/helpers.go:26 +0x34
github.com/skycoin/cx/cxparser/cxparsing.ParseSourceCode({0xc0000b5300, 0x11, 0x10}, {0xc0000b6400, 0x10, 0x20})
/home/work/go/src/github.com/skycoin/cx/cxparser/cxparsing/cxparsing.go:108 +0x6e5
main.parseProgram({0x0, {0x8f1218, 0x0}, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, {0x0, ...}, ...}, ...)
/home/work/go/src/github.com/skycoin/cx/cmd/cx/helpers.go:54 +0x327
main.Run({0xc000012050, 0x1, 0x1})
/home/work/go/src/github.com/skycoin/cx/cmd/cx/main.go:160 +0x371
main.main()
/home/work/go/src/github.com/skycoin/cx/cmd/cx/main.go:22 +0x45
Cx version used is 0.8.0 and the OS is Arch.
Metadata
Metadata
Assignees
Labels
No labels