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
What seems to be the problem?
Premake5 raises an error during any project generation:
Building configurations...
Error: attempt to index a function value
stack traceback:
[string "src/base/api.lua"]:309: in field 'checkValue'
[string "src/base/oven.lua"]:255: in local 'base'
(...tail calls...)
[string "src/base/oven.lua"]:197: in field 'bakeConfigs'
[string "src/base/oven.lua"]:44: in field 'bake'
[string "src/base/container.lua"]:61: in field 'bake'
[string "src/base/container.lua"]:69: in field 'bakeChildren'
[string "src/base/global.lua"]:8: in field 'bake'
[string "src/base/container.lua"]:61: in field 'bake'
[string "src/base/oven.lua"]:12: in field 'bake'
[string "src/_premake_main.lua"]:163: in field '?'
[string "src/base/_foundation.lua"]:62: in function 'premake.callArray'
[string "src/_premake_main.lua"]:225: in function '_premake_main'
What version of Premake are you using?
premake 5.0-alpha16
Anything else we should know?
Digging into the code, I've noticed that in the file api.lua, a function type is passed to ipairs() which is not allowed:
-- api.lua, line 661ifnotcanonicalthenfor_, allowinipairs(field.allowed) <---------- heredoiftype(allow) =="function" then...
I did a small patch myself, I'll create a PR that should fix this.
The text was updated successfully, but these errors were encountered:
Have you verified that this is an issue with the beta-1 build? Also, what in your build script is causing the issue? I want to isolate the cause before we dive headfirst into fixing it.
What seems to be the problem?
Premake5 raises an error during any project generation:
What version of Premake are you using?
premake 5.0-alpha16
Anything else we should know?
Digging into the code, I've noticed that in the file
api.lua
, afunction
type is passed toipairs()
which is not allowed:I did a small patch myself, I'll create a PR that should fix this.
The text was updated successfully, but these errors were encountered: