redhat-developer / redhat-developer/vscode-yaml
Incorrect string behaviour if symbol ':' apears
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
Steps to Reproduce
- Create a .gitlab-ci.yaml file
- Set schema to gitlab-ci
- Add script
- echo "Build number: $CI_PIPELINE_IID"
Environment
- Windows
- Mac
- Linux
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
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