Confusing analyzer error messages referring the test code #1246
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
from-study
Issues are filed from a research study
P2
A bug or feature request we're likely to work on
Milestone
From the previous UX study, we found users typed the wrong code in an exercise, however, the analyzer was complaining about the test code. Therefore, the analyzer message was confusing as it referred to the incorrect line number and the correct hidden test code. As far as we know, exercise author also had no ways to fix now this because custom error message only show up after execution.
Concrete examples:
foo(a, b)
so as to verify the output value . However, users do not define it in the functionfoo()
so the analyzer complains the test codeerror: too many positional arguments: 0 expected, but 1 found
The expression here has a type of void, and therefore cannot be used - line 88
cc: @legalcodes
Status of this issue is also tracked in https://github.com/orgs/flutter/projects/3.
The text was updated successfully, but these errors were encountered: