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
Notice the verbosity level is dropped. Run DSLX formatter and get a parse error:
Formatting failed: Error: INVALID_ARGUMENT: ParseError: foo.x:3:16-3:31 vtrace_fmt! macro must have at least 2 arguments.
=== Source Location Trace: ===
xls/dslx/frontend/bindings.h:59
xls/dslx/frontend/parser.cc:2062
xls/dslx/frontend/parser.cc:2227
xls/dslx/frontend/parser.cc:2487
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:1434
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:1328
xls/dslx/frontend/parser.cc:706
xls/dslx/frontend/parser.cc:3535
xls/dslx/frontend/parser.cc:1752
xls/dslx/frontend/parser.cc:224
xls/dslx/frontend/parser.cc:473
xls/dslx/parse_and_typecheck.cc:71
xls/dslx/dslx_fmt.cc:102
xls/dslx/dslx_fmt.cc:206
Expected behavior
The formatter shouldn't drop args in vtrace_fmt!.
The text was updated successfully, but these errors were encountered:
mikex-oss
added
bug
Something isn't working or is incorrect
dslx
DSLX (domain specific language) implementation / front-end
dslx:fmt
DSLX auto-formatter
labels
Feb 21, 2025
Describe the bug
I am unable to use
vtrace_fmt!
(introduced in 0af7633) due to interactions with the autoformatter.To Reproduce
Write some code:
Run DSLX formatter and get:
Notice the verbosity level is dropped. Run DSLX formatter and get a parse error:
Expected behavior
The formatter shouldn't drop args in
vtrace_fmt!
.The text was updated successfully, but these errors were encountered: