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

vscode datalog: spurious 'unbound variable in head' errors when nested #407

Open
vilterp opened this issue Jun 25, 2023 · 1 comment
Open

Comments

@vilterp
Copy link
Owner

vilterp commented Jun 25, 2023

These errors shouldn't be there:

image

Not sure why this isn't finding them:

function* scopeDefnHeadVar(db: NodesByRule, ruleName: string): Generator<Defn> {
for (const ruleID of ruleNameToID(db, ruleName)) {
for (const record of db.get("record").byParentID.get(ruleID)) {
for (const recordVar of scopeRecordVar(db, record.id)) {

@vilterp
Copy link
Owner Author

vilterp commented Jun 25, 2023

Wait a sec, it's not even finding this?
image
wtf

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

No branches or pull requests

1 participant