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

Double name qualification #82

Open
AZWN opened this issue Nov 9, 2021 · 0 comments
Open

Double name qualification #82

AZWN opened this issue Nov 9, 2021 · 0 comments

Comments

@AZWN
Copy link
Contributor

AZWN commented Nov 9, 2021

Bug description
Statix qualifies qualified initial constraint names twice.

Versions
Spoofax version: Spoofax 3, 0.16

Steps to reproduce the behavior

  1. In a new project with single-file analysis, move the main statics file to src/statics/statics.stx
  2. In analysis.str, call statix with editor-analyze = stx-editor-analyze(pre-analyze, post-analyze|"statics/statics", "statics/statics!programOk").
  3. 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").

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