Skip to content

[BUG] The Vmify step fails with "Unresolved Upvalue, this error should not occur!" #64

@britzl

Description

@britzl

Describe the bug
When trying to run Prometheus on mobdebug.lua using the Weak preset the process fails with "Unresolved Upvalue, this error should not occur!"

Expected behavior
Prometheus should successfully process the file.

To Reproduce
Steps to reproduce the behavior:

  • Download mobdebug.lua
  • Run lua cli.lua --preset Weak --out mobdebug.out.lua mobdebug.lua
  • Observe error in the Vmify step:
PROMETHEUS: Applying Step "Vmify" ...
PROMETHEUS: Unresolved Upvalue, this error should not occur!
lua: src/logger.lua:54: Unresolved Upvalue, this error should not occur!
stack traceback:
	[C]: in function 'error'
	src/logger.lua:54: in function 'errorCallback'
	src/logger.lua:57: in function 'error'
	src/prometheus/compiler/compiler.lua:186: in function 'oldGetUpvalueId'
	src/prometheus/compiler/compiler.lua:1043: in function 'getUpvalueId'
	src/prometheus/compiler/compiler.lua:1945: in function 'compileExpression'
	src/prometheus/compiler/compiler.lua:2107: in function 'compileExpression'
	src/prometheus/compiler/compiler.lua:1558: in function 'compileStatement'
	src/prometheus/compiler/compiler.lua:1129: in function 'compileBlock'
	src/prometheus/compiler/compiler.lua:1085: in function 'compileFunction'
	...
	src/prometheus/compiler/compiler.lua:1485: in function 'compileStatement'
	src/prometheus/compiler/compiler.lua:1129: in function 'compileBlock'
	src/prometheus/compiler/compiler.lua:1004: in function 'compileTopNode'
	src/prometheus/compiler/compiler.lua:202: in function <src/prometheus/compiler/compiler.lua:98>
	(tail call): ?
	src/prometheus/pipeline.lua:187: in function 'apply'
	src/cli.lua:132: in main chunk
	[C]: in function 'require'
	cli.lua:12: in main chunk
	[C]: ?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions