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

Not enough information from format error #87

Open
mottosso opened this issue Aug 7, 2019 · 0 comments
Open

Not enough information from format error #87

mottosso opened this issue Aug 7, 2019 · 0 comments
Labels

Comments

@mottosso
Copy link
Owner

mottosso commented Aug 7, 2019

Related

Reproducible

name = "test"
version = "0.0"
build_command = False

def commands():
  global env
  env["PATH"].append("{root}/{this/is/bad"))
rez build --install  # ok
rez env test
07:55:01 ERROR    PackageCommandError: Error in commands in package 'C:\\Users\\marcus\\packages\\test\\1.1\\package.py[]':
expected '}' before end of string

Where? If there's a line number provided, that line number is related the commands() function, rather than the actual Python module, due to how Rez doesn't actually import and maintain reference to the file, but does so "manually", throwing away that kind of information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant