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
Missing property "key_value" with Ansible Set_Fact #340
Comments
Are you using any VSCode extensions that provide the ansible support? If not, you'll have to file an issue on https://github.com/SchemaStore/schemastore since its a schema issue |
I suspect this is VSChina/vscode-ansible#261. [EDIT]Sorry, no. I was wrong. Looks like it's the other way round.[/EDIT] |
@JPinkney could you please clarify what you mean by it's a bug in schemastore? There is neither a definition of YAML nor a definition of Ansible in that repo AFAICT. This is not to say that you're wrong, but can you help explain exactly what we should be opening a bug against? |
The ansible schema in the schemastore just isn't totally correct as far as I can tell. Since we pull in schemas from the schemastore automatically if a schema is wrong there then it will be wrong inside of VSCode as well. I'm not sure which specific ansible schema is being used in the original issue but the schemas for ansible are located here in the repo: https://github.com/SchemaStore/schemastore/tree/master/src/schemas/json. It looks like it contains schemas for ansible 2.0 to 2.9 If you open a bug on the schema store and they end up fixing it then the changes will automatically be propagated to the extension once you restart VSCode |
Odd that searches for ansible in the Github repo didn't return those files :( Thanks! |
Any news? |
First, be sure that you have zbr.vscode-ansible installed and after that report schema bug to ansible-community/schemas repo, if those were used. For sure this repo does not have a schema in it. |
Installing |
Right now while using ansible for example you will get an error of MIssing Property "key_value" when using any format of the set_fact module in yaml. You can reproduce this by taking any example from https://docs.ansible.com/ansible/latest/modules/set_fact_module.html for example:
it shouldn't be throwing that error especially since the syntax is correct.
The text was updated successfully, but these errors were encountered: