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
-
Run gradle testClasses
-
Make a change in an imported grammar file. This needs to resolve into a compiler error.
-
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
Description
The Gradle task of parser generation for the
KeYJavaParseris 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:
Introduced by #3822
Reproducible
always
Steps to reproduce
Run
gradle testClassesMake a change in an imported grammar file. This needs to resolve into a compiler error.
Run
gradle testClassesObserve that it still compiles.
Compile error.
Additional information
Branch:
main75f0a04