microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.16k stars 309 forks source link

PAD - Invalid identifier/variable Name #1579

Open LucGenetier opened 1 year ago

LucGenetier commented 1 year ago

PAD team would like to get the name of the variable or identifier itself store in a dedicate field of the error as they cannot parse the error message (could be localized) ETA Sept 23

MikeStall commented 6 months ago

We need to understand the e2e here - errors can be very volatile.

MikeStall commented 2 weeks ago

fyi - there is structured error info: https://github.com/microsoft/Power-Fx/blob/main/src/libraries/Microsoft.PowerFx.Core/Public/ExpressionError.cs

In particuarly, the resource key and messageArgs.

But this is not considered part of the language spec and these can change at any time. So if there is a dependency, we should call it out.