-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alt.datum
and alt.value
generates incorrect error messages
#2913
Comments
This seems to have been fixed.partially The error message for The error for the second example also makes sense now:
However, when specifying a property that exists, it still shows an error message which is self-contradictory,
The error message is similar to what we see here #2563 (comment) |
Originally reported in #2883 (comment). When using the datum encoding then the message is incorrect:
'datum'
should not be included above as an incorrect property to the X channel, insteadwrong_name
should be mentioned as an incorrect parameter todatum
. The way to handle this is probably with special error checking inside the datum function (although maybe it needs to also consider which encoding channel it is used for?).Also mentioned in #2568 (comment) for
alt.value
. This can look more confusing now that the error message gives parameter hints:I found one spec that gives an incorrect hint:
It is allowed to use
alt.value()
in this context, but in this case it should be a string and not a number.The text was updated successfully, but these errors were encountered: