-
Notifications
You must be signed in to change notification settings - Fork 48
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
set_fact - Missing property "key_value" #261
Comments
I've experienced this problem as well, seems like it would be pretty trivial to fix but it makes my playbook look like it has a lot of errors, it is distracting. Do I have something configured improperly? |
'key_value' is marked as required in the docs. Is Because adding |
I don't think that Proper use example:
If this case, |
Yes that could be a workaround but it is messy and your playbook will end up with |
So, an improvement can be make to parse the key_value requirement as the elements. Right? |
Yes, I think so |
Has this been looked at? Seems like a pretty simple fix...? |
I also noticed this. A fix would be nice! |
I'd love to see this improvement come, too. I thought it was me doing something wrong for too long now 😁 |
I don't have the ansible extension installed and I'm facing the same error message in the problem matcher throughout my playbooks. Is it possible that this issue should be reported over at the YAML extension repository instead? Does anyone know how to trace down the origin (extension) of a problem in the problem matcher? |
The documents say "Or alternatively, accepts complex arguments using the args: statement." Which would indicate that despite "key_value" being marked as required, it's not, and this error only shows because the original developer of this module missed that hint. Just a simple patch to remove key_value as required when there are other arg values should fix this. |
@yungezz @zikalino is this extension/project abandoned? Should we file a report in the YAML extension repo? |
@mybayern1974 to help sharing next step |
As far as I can tell this comes from redhat-developer/vscode-yaml#340 (and ultimately probably from the way Ansible describes it), not this extension.
|
Environment
Summary
VS Code wrongly shows an error where set_fact is properly formatted and it doesn't need a "key_value" property.
Reproduce steps
Expected Results
No problem reported
Actual Results
Problem: Missing property "key_value".
The text was updated successfully, but these errors were encountered: