redhat-developer / redhat-developer/vscode-yaml

incorrect error with regex in ansible

Open
#372 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

schema_issue
Dominant language
TypeScript
Stars
829
Forks
260
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Hi,

I'm using vscode and this extension (version 0.11.1) and I'm using it on a project using ansible yaml files.

Some configuration are supposed to get regex strings as values (for instance insertafter from lineinfile ) and I get an error there
image

I'm not sure how to remove these

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

Reproduce the error in the VS Code YAML extension using the reported version, an Ansible YAML file, and a regex value such as lineinfile's insertafter. Compare the diagnostic with the screenshot and verify that valid regex strings no longer produce an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode, yaml
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.