microsoft / microsoft/Power-Fx

Better error message on missing field

Open
#389 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
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.

image

In contrast, here's what C# shows:
Foo x = new Foo();
var y = x.MissingField + MissingVar;

  1. '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?)

  2. The name 'MissingVar' does not exist in the current contextt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.