cursor
cursor copied to clipboard
Bug Report for Cursor IDE - YAML syntax support problem
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
- 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
- Open the file in Cursor IDE
- 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