Skip to content
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

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

Open
britzl opened this issue Jun 29, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@britzl
Copy link
Contributor

britzl commented Jun 29, 2022

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]: ?
@britzl britzl added the bug Something isn't working label Jun 29, 2022
@levno-710 levno-710 self-assigned this Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants