You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a new project with single-file analysis, move the main statics file to src/statics/statics.stx
In analysis.str, call statix with editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics/statics", "statics/statics!programOk").
Open an arbitrary example file.
Observed behavior
A error statics/statics!statics/programOk(Program([FuncDef2Definition(…)],[IfElse(…,…,…)])).
The error is caused by incorrect name qualification (statics after !).
Expected behavior
Correct initial constraint (statics/statics!programOk) called by statix runtime.
Additional context
Workaround: use unqualified predicate names, such as editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics/statics", "programOk").
The text was updated successfully, but these errors were encountered:
Bug description
Statix qualifies qualified initial constraint names twice.
Versions
Spoofax version: Spoofax 3, 0.16
Steps to reproduce the behavior
src/statics/statics.stx
analysis.str
, call statix witheditor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics/statics", "statics/statics!programOk")
.Observed behavior
A error
statics/statics!statics/programOk(Program([FuncDef2Definition(…)],[IfElse(…,…,…)]))
.The error is caused by incorrect name qualification (
statics
after!
).Expected behavior
Correct initial constraint (
statics/statics!programOk
) called by statix runtime.Additional context
Workaround: use unqualified predicate names, such as
editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics/statics", "programOk")
.The text was updated successfully, but these errors were encountered: