#Unclear error message

1 messages · Page 1 of 1 (latest)

burnt steeple
#

I was attempting a codecrafters challenge and I forgot to put my args to a print function in a struct (.{}) and I got this error message. I noticed that the error message does not indicate which line in my code is causing the error and I was wondering why this happens.

magic agate
#

That might be a compiler bug. It should give you a compiler error about expeted tuple or struct argument.

#

See if you can make a minrep and file an issue for it

forest fulcrum
#

it does give that error

magic agate
#

If there already is one, take a look at it. Maybe add your minrep to it

forest fulcrum
#

line 4 of this screenshot

#

points to fmt.zig

magic agate
#

Oh it does huh

#

Odd that it doesn't show in color 😄

forest fulcrum
#

trace doesn't go deep enough to show the line in OP's code that called fmt.zig

magic agate
#

You'd need -freference-trace for it to show all the locations

#

Should tell you this