Skip to content

Gradle task runAntlrKey does not declare its dependencies correctly #3915

Description

@wadoon

Description

The Gradle task of parser generation for the KeYJavaParser is not correctly set-up, especially, the imported grammars are not declared as inputs.

This leads to the problem, that this task is not correctly re-executed. Leading to annyoing exceptions:

* What went wrong:
Execution failed for task ':key.core:compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Compilation failed; see the compiler output below.
  /home/weigl/work/key-main/key.core/src/main/java/de/uka/ilkd/key/nparser/builder/TacletPBuilder.java:196: error: cannot find symbol
          if (!ctx.IGNOREUPDATELEVEL().isEmpty() && !ctx.SAMEUPDATELEVEL().isEmpty()) {
                  ^
    symbol:   method IGNOREUPDATELEVEL()
    location: variable ctx of type TacletContext
  4 errors

Introduced by #3822

Reproducible

always

Steps to reproduce

  1. Run gradle testClasses

  2. Make a change in an imported grammar file. This needs to resolve into a compiler error.

  3. Run gradle testClasses

    Observe that it still compiles.

What is your expected behavior and what was the actual behavior?

Compile error.

Additional information

Branch: main 75f0a04


Metadata

Metadata

Assignees

Labels

🐞 BugInfrastructureChanges to the Github configurations, repository or other non-source stuff

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions