Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hint to partial path errors if anchor is available. #8380

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

dnwpark
Copy link
Contributor

@dnwpark dnwpark commented Feb 24, 2025

Given the schema:

  type Foo {
    property wow: bool;
    trigger prohibit_queue after insert for each do (
        select assert(.wow, message := "wow!")
    );
  }

The error now comes with a hint:

error: could not resolve partial path 
  │
7 │         select assert(.wow, message := "wow!")
  │                       ^^^^ Did you mean __new__.wow?

Close #8199

@dnwpark dnwpark merged commit 35013d4 into master Feb 25, 2025
23 checks passed
@dnwpark dnwpark deleted the partial-path-hint branch February 25, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error message for triggers when accessing special scope keywords in triggers
2 participants