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

Ugly error as there is no string formatter for AST #120

Closed
jbeda opened this issue Mar 8, 2016 · 1 comment
Closed

Ugly error as there is no string formatter for AST #120

jbeda opened this issue Mar 8, 2016 · 1 comment
Labels

Comments

@jbeda
Copy link
Contributor

jbeda commented Mar 8, 2016

$ ./jsonnet -e 'function(a, 1)'
STATIC ERROR: <cmdline>:1:13: Not an identifier: 0x7fbd51500350

It looks like, in parseParams, we are trying to output an AST object but there is no string formatter for ASTs. Perhaps unparse the AST there? Or try not to dump the text?

@sparkprime sparkprime added the bug label Mar 8, 2016
@sparkprime
Copy link
Member

Doing what you did on the Go side is probably good enough: "Expected an identifier but got a complex expression"

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

2 participants