Skip to content

YAML autocompletion suggests incorrect 'category' (singular) instead of Quarto's 'categories' (plural); schema type should be array #16524

Open

Description

System details

  • RStudio Edition: Desktop
  • RStudio Version: 2025.09.1+401
  • OS Version: Linux Mint
  • R Version: 4.3.3
  • Quarto Version: 1.7.33

Steps to reproduce the problem

  1. Create a new Quarto document:
    • Open RStudio.
    • Go to File → New File → Quarto Document (any format, e.g., HTML).
  2. Trigger YAML autocompletion:
    • In the YAML frontmatter, type cat and pause to let autocompletion suggest fields.
    • Observe the suggested field: category: (singular, string type).
  3. Verify incorrect behavior:
    • Accept the suggestion (category: "Test").
    • Render the document (e.g., "Render" button or quarto render).
    • Result: Quarto ignores category: (no error, but no effect).
  4. Manual correction:
    • Replace category: "Test" with categories: [Test].
    • Re-render. Result: Works correctly.

Describe the problem in detail

RStudio’s YAML autocompletion suggests the incorrect field category: (singular, string) for Quarto documents (.qmd), but the official Quarto documentation specifies that the correct field is categories: (plural, array).

Root cause:
The schema in RStudio’s internal YAML validator (/opt/quarto/share/editor/tools/yaml/web-worker.js, line ~16457) defines:

{
  "name": "category",
  "schema": "string",
  "description": "The document category."
}

Activity

  1. ghost added on Oct 4, 2025
  2. ghost added
    new
    on Oct 4, 2025
  3. added theissue type on Oct 6, 2025
  4. removed
    new
    on Oct 6, 2025
  5. gtritchie commented on Oct 6, 2025

    @gtritchie
    Member

    Opened issue in Quarto repo: quarto-dev/quarto-cli#13519

  6. added this to the Globemaster Allium milestone on Oct 16, 2025
  7. ronblum commented on Jan 6, 2026

    @ronblum
    Contributor

    Note: This is targeted for Quarto CLI 1.9 which is the current pre-release version. https://quarto.org/docs/download/prerelease.html

  8. ronblum commented on Mar 30, 2026

    @ronblum
    Contributor

    This isn't addressed in Quarto 1.9.36, and the target milestone has been shifted to 1.10, so moving this issue out.

  9. 4 remaining items

  10. added this to the 2026.08 milestone on Jul 7, 2026
  11. gtritchie commented on Jul 20, 2026

    @gtritchie
    Member

    Marking as blocked and moving back to TODO. My understanding is we are waiting for a new version of Quarto in order to test a fix in Quarto.

  12. added
    blocked
    on Jul 20, 2026
  13. gtritchie commented on Aug 4, 2026

    @gtritchie
    Member

    RStudio 2026.09 will bundle Quarto 1.10 per #18355, so we'll see if this is fixed when that happens.

  14. gtritchie commented on Aug 26, 2026

    @gtritchie
    Member

    The Quarto issue got bumped to the 1.11 release, so this is NOT fixed in the RStudio 2026.09 pre-release (with Quarto 1.10). Moving to 2026.10 and will check again. Sigh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedbugexternalquarto

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions