cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Bug Report for Cursor IDE - YAML syntax support problem

Open sjcn opened this issue 10 months ago • 0 comments

YAML Outline View Fails to Display Anchor and Reference Structure

Description

Cursor IDE's outline view fails to correctly display the structure of YAML files that contain anchors and references. This affects the navigation and understanding of complex YAML configurations.

Steps to Reproduce

  1. Create a YAML file with anchor and reference syntax, for example:
common: &common
  version: 1.0
  environment: production

service1:
  <<: *common
  name: service1

service2:
  <<: *common
  name: service2
  1. Open the file in Cursor IDE
  2. Open the outline view (usually on the left side)

Expected Behavior

The outline view should show the complete structure including:

  • common (with its properties)
  • service1 (with inherited properties from common)
  • service2 (with inherited properties from common)

Actual Behavior

The outline view:

  • Either shows incomplete structure
  • Or fails to properly display the inherited properties from anchors
  • Or shows incorrect nesting levels
  • Or completely misses some sections that use references

Impact

This issue significantly impacts the development experience when working with complex YAML configurations that use anchors and references for code reuse, making it difficult to:

  • Navigate through the file structure
  • Understand the complete configuration hierarchy
  • Verify the correct inheritance of properties

Environment

  • OS: macOS
  • Cursor IDE Version: Latest (0.49.4 (Universal))

Additional Notes

This is particularly problematic for configuration files that heavily rely on YAML's anchor and reference features for DRY (Don't Repeat Yourself) principles, such as:

  • Kubernetes configurations
  • Docker Compose files
  • CI/CD pipeline configurations
  • Infrastructure as Code templates

sjcn avatar Apr 23 '25 13:04 sjcn