redhat-developer / redhat-developer/vscode-yaml
YAML formatter for Ansible tasks schema fails for long task name
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Type: Bug
Formatter changes this:
- name: Get managed instance details
oracle.oci.oci_os_management_module_stream_profile_on_managed_instance_facts:
auth_type: "{{ auth_type }}"
…to this:
- name: Get managed instance details
? oracle.oci.oci_os_management_module_stream_profile_on_managed_instance_facts
: auth_type: "{{ auth_type }}"
Argh!
If I falsify the task name to oracle.oci.oci_os_management_module_stream_profile_on_managed_instance_fa then it works. Anything longer (any additional letters) and it fails as shown
Extension version: 1.14.0
VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:42:52.765Z)
OS version: Darwin x64 23.4.0
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled |
| Load (avg) | 5, 6, 5 |
| Memory (System) | 16.00GB (1.43GB free) |
| Process Argv | --crash-reporter-id 1132ef6e-da89-47fb-b3b3-410cbbe34225 |
| Screen Reader | no |
| VM | 0% |
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 reproducing the formatter output in VS Code with the Ansible task example and the long task name shown in the report. Trace the YAML formatter's handling of long task names and verify that formatting preserves the normal mapping form instead of introducing the ? and : structure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100