Skip to content

Could not resolve reference to Attribute named '@fullText' #2711

@Azzerty23

Description

@Azzerty23

Description

The ZenStack v3 VS Code extension flags the field-level @fullText attribute as an error in .zmodel files:

Could not resolve reference to Attribute named '@fulltext'.

…even though the same schema compiles cleanly with @zenstackhq/cli@3.7.2. The editor diagnostic is a false positive: the published extension's bundled stdlib.zmodel predates the introduction of the field-level @fullText attribute.

Reproduction

schema.zmodel:

model CatalogPrestation {
  id       String @id
  label    String @fullText
  keywords String @fullText @default("")
}
  • zen generate (CLI/ORM @zenstackhq/*@3.7.2) → ✅ succeeds.
  • Open the file in VS Code with the ZenStack v3 extension (v3.6.1) → ❌ red squiggle:
    Could not resolve reference to Attribute named '@fulltext'.

Expected

The editor should resolve @fulltext exactly as the 3.7.x CLI does.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions