Closed Siilwyn closed 4 weeks ago
Just realized there is a newer version, we are using v0.6.6 but unsure if we'll have to time to update. That said, this issue could be fixed.
Thanks for opening the issue, @Siilwyn! I'll have a look at it.
I've found the issue. It's in one of libqasm's dependencies, in tree-gen. When a field is empty, we are indeed writing "[]"
instead of []
.
I'll create a new tree-gen release with the fix, and try to use it in the next libqasm release.
This bug should be fixed in libqasm/0.6.8.
When the AST has no variables in the
Program
root we expectvariables
to an empty array[]
. Instead a string is given containing an empty array:"[]"
.(Using
analyze_string_to_json
).