redhat-developer / redhat-developer/vscode-yaml
Fetch module complains about missing property "path", which has been renamed
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Environment
- Extension version: 0.4.0
- OS Type: Linux, Ubuntu 18.04.2 LTS
Summary
I have role which uses fetch module (documentation is here https://docs.ansible.com/ansible/latest/modules/fetch_module.html), where only required fields are dest and src. When I open yaml file with this module, VSCode is complaining about 'Missing property "path" '. I am using Ansible 2.6.3. I am getting this error while editing role. Also I tried restart VSCode, but the problem persists. When I disabled this module, problem disappeared. Here is the screenshot of mentioned problem

Reproduce steps
Create Ansible role with fetch module with installed VSCode and YAML extension.
Expected Results
Fetch module check looks for the "src" and "dest" properties.
Actual Results
Fetch module check looks only for the "path" property.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the fetch module definition used by the YAML extension and compare its accepted properties with the issue's expected src and dest fields. Reproduce the warning with an Ansible role in VS Code using extension 0.4.0; done when fetch accepts src and dest without reporting missing path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- yaml
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100