redhat-developer / redhat-developer/vscode-yaml

Fetch module complains about missing property "path", which has been renamed

Open
#181 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug schema_issue upstream
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
Screenshot from 2019-04-16 12-20-33

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.