vilterp/datalog-ts

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

vilterp opened this issue · 1 comments

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)) {

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