microsoft / microsoft/Power-Fx
Better error message on missing field
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.4k
- Forks
- 358
- Avg merge
- 10h 34m
- Merged PRs (30d)
- 3
Description
Currently, MissingField and MissngVar give the same error. Would be nice if missing field gave a different eror.

In contrast, here's what C# shows:
Foo x = new Foo();
var y = x.MissingField + MissingVar;
-
'Program.Foo' does not contain a definition for 'MissingField' and no accessible extension method 'MissingField' accepting a first argument of type 'Program.Foo' could be found (are you missing a using directive or an assembly reference?)
-
The name 'MissingVar' does not exist in the current contextt
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the diagnostic handling for MissingField and MissingVar and compare how both errors are produced. Use the C# examples in the issue as the expected distinction, then verify that missing fields and missing variables receive separate messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100