redhat-developer / redhat-developer/vscode-yaml

Incorrect string behaviour if symbol ':' apears

Open
#1,006 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

In .gitlab-ci.yaml files string literal value parsing is broken for some reason. I have a string "Version: [$VERSION] BUID [$CI_PIPELINE_IID]" which contains sybmol :. The part Version: is treated not as part of string but common yaml.

I don't exactly sure if the problem related with this repo or gitlab's.

Expected Behavior

String literal value treats as just string

Current Behavior

Part of string treats as part of yaml

image

Steps to Reproduce

  1. Create a .gitlab-ci.yaml file
  2. Set schema to gitlab-ci
  3. Add script - echo "Build number: $CI_PIPELINE_IID"

Environment

  • Windows
  • Mac
  • Linux

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 issue in a .gitlab-ci.yaml file with the GitLab CI schema and the reported echo command containing a colon. First determine whether the incorrect parsing comes from this repository or GitLab integration; done means the quoted value remains a single string. No source file or test is named in the report.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.