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

Could not generate unknown file: Attempt to recreate a file for type #77

Closed
Virtlink opened this issue Oct 5, 2021 · 5 comments
Closed
Labels
C-Bug Category: bug. Not working as expected

Comments

@Virtlink
Copy link
Contributor

Virtlink commented Oct 5, 2021

Summary

After the initial compilation, recompilation of Spoofax 3 fails with a hundred of these errors:

> Task :pie.lang.root:pie.lang.test:compileTestJava
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/toNullable/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.toNullable.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/notFalse/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.notFalse.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^

It also makes the build extremely slow.

What you did

Invoke the build:

./gradlew buildAll --info --stacktrace

What you expected to happen

The build should succeed.

What actually happened

The build fails with a hundred of these errors.

Context

  • Spoofax version: devenv-latest
  • Operating system & version: macOS 11.5.2
  • Java version: AdoptOpenJDK-11.0.11+9
  • Eclipse version: N/A
  • Gradle version: 6.8

Additional information

Apparently this issue sometimes pops up with Dagger, see here and here. Supposedly with Maven (but also Gradle), in both Intellij and Eclipse:

The maven-compiler-plugin adds the generated sources to the sources passed to the compiler, so compilation can only run once without error; afterwards, a file generated by Dagger will be fed as a source (like all your src/main/java) to JavaC, and compilation will fail when Dagger will try to regenerate the file as JavaC will refuse to overwrite a source file.

I suspect there is a problem where something is already generated before the Dagger annotation processor starts to work.

Therefore, a workaround could be to delete the generated files before building. The following command in the pie project deletes all untracked and ignored files and directories, and seems to help:

git clean -fdx

Full Gradle output:


> Task :pie.lang.root:pie.lang.test:compileTestJava
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/toNullable/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.toNullable.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/notFalse/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.notFalse.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/toNonNullableValue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.toNonNullableValue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/notVarFalse/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.notVarFalse.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/toNonNullableNull/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.toNonNullableNull.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/notTrue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.notTrue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/toNullableVar/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.toNullableVar.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/unary/notVarTrue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.unary.notVarTrue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importPartialModulePathForeignJava/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importPartialModulePathForeignJava.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importPartialModulePathRename/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importPartialModulePathRename.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFunctionRename/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFunctionRename.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullModulePathForeignPie/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullModulePathForeignPie.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullModulePath/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullModulePath.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullModulePathDataAssignment/PieTestModule.java:17: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullModulePathDataAssignment.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/multiImportPseudoModule/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.multiImportPseudoModule.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importDataRename/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importDataRename.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFunction/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFunction.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importPartialModulePathData/PieTestModule.java:17: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importPartialModulePathData.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importPartialModulePath/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importPartialModulePath.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullModulePathForeignJava/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullModulePathForeignJava.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importPartialModulePathForeignPie/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importPartialModulePathForeignPie.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullyQualifiedData/PieTestModule.java:17: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullyQualifiedData.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullyQualifiedForeignPie/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullyQualifiedForeignPie.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importPartialModulePathPseudo/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importPartialModulePathPseudo.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullyQualified/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullyQualified.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importData/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importData.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importDataPseudoModule/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importDataPseudoModule.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFunctionPseudoModule/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFunctionPseudoModule.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/multiImport/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.multiImport.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullModulePathData/PieTestModule.java:17: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullModulePathData.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/imports/subModule/importFullyQualifiedForeignJava/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.imports.subModule.importFullyQualifiedForeignJava.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/foreignFunc/constructor/twoParam/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.foreignFunc.constructor.twoParam.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/foreignFunc/constructor/singleParam/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.foreignFunc.constructor.singleParam.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/foreignFunc/constructor/threeParam/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.foreignFunc.constructor.threeParam.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/foreignFunc/constructor/nullary/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.foreignFunc.constructor.nullary.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/createAndGet/typeInt/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.createAndGet.typeInt.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/createAndGet/nested/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.createAndGet.nested.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/createAndGet/typeString/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.createAndGet.typeString.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/inputSupplier/inputFromPiePassAlong/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.inputSupplier.inputFromPiePassAlong.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/inputSupplier/inputFromPieCreate/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.inputSupplier.inputFromPieCreate.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/inputSupplier/inputFromTest/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.inputSupplier.inputFromTest.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/fromTaskAndGet/helloName/PieTestModule.java:17: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.fromTaskAndGet.helloName.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/fromTaskAndGet/foreignTask/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.fromTaskAndGet.foreignTask.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/fromTaskAndGet/tripleInt/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.fromTaskAndGet.tripleInt.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/supplier/fromTaskAndGet/fullyQualifiedSupplier/PieTestModule.java:16: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.supplier.fromTaskAndGet.fullyQualifiedSupplier.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/variables/variableTupleDecompositionMixedType/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.variables.variableTupleDecompositionMixedType.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/variables/variableTupleAssignment/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.variables.variableTupleAssignment.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/variables/variableImplicitType/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.variables.variableImplicitType.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/variables/variableTupleDecompositionImplicitType/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.variables.variableTupleDecompositionImplicitType.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/variables/variableTupleDecompositionExplicitType/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.variables.variableTupleDecompositionExplicitType.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/variables/variableExplicitType/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.variables.variableExplicitType.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/funcDef/oneFunc/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.funcDef.oneFunc.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/funcDef/emptyFile/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.funcDef.emptyFile.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs() {
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/funcDef/twoFuncRecursive/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.funcDef.twoFuncRecursive.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/funcDef/twoFuncLinear/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.funcDef.twoFuncLinear.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/funcDef/twoFuncUnused/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.funcDef.twoFuncUnused.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/land/landFalseFalse/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.land.landFalseFalse.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/land/landTrueTrue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.land.landTrueTrue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/land/landFalseTrue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.land.landFalseTrue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/land/landTrueFalse/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.land.landTrueFalse.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqPathDifferent/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqPathDifferent.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqListEqualEmpty/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqListEqualEmpty.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqStringDifferent/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqStringDifferent.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqTupleDifferent/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqTupleDifferent.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqBoolEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqBoolEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqPathEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqPathEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqTupleEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqTupleEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqDataDifferent/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqDataDifferent.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqNullableIntDifferent/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqNullableIntDifferent.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqBoolDifferent/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqBoolDifferent.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqListDifferentElements/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqListDifferentElements.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqListDifferentSize/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqListDifferentSize.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqNullableIntNull/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqNullableIntNull.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqStringEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqStringEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqIntEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqIntEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqIntDifferent/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqIntDifferent.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqNullableIntEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqNullableIntEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqListEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqListEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/eq/eqDataEqual/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.eq.eqDataEqual.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addIntInt/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addIntInt.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrData/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrData.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addListList/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addListList.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrNullableIntValue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrNullableIntValue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addPathPathRelativeAbsolute/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addPathPathRelativeAbsolute.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrBool/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrBool.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrList/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrList.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrNullableIntNull/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrNullableIntNull.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addPathPathAbsoluteRelative/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addPathPathAbsoluteRelative.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addPathPathRelativeRelative/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addPathPathRelativeRelative.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addListElem/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addListElem.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrPath/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrPath.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrStr/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrStr.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addPathPathAbsoluteAbsolute/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addPathPathAbsoluteAbsolute.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addPathStr/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addPathStr.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrInt/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrInt.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrUnit/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrUnit.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/add/addStrTuple/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.add.addStrTuple.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/lor/lorTrueTrue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.lor.lorTrueTrue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/lor/lorFalseFalse/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.lor.lorFalseFalse.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
/Users/daniel/repos/spoofax3/devenv-cc-sept-21-2/pie/lang/lang.test/src/test/java/mb/pie/lang/test/binary/lor/lorFalseTrue/PieTestModule.java:15: error: Could not generate unknown file: Attempt to recreate a file for type mb.pie.lang.test.binary.lor.lorFalseTrue.PieTestModule_ProvideTaskDefsFactory.
    public static Set<TaskDef<?, ?>> provideTaskDefs(
                                     ^
100 errors

> Task :pie.lang.root:pie.lang.test:compileTestJava FAILED
:pie.lang.root:pie.lang.test:compileTestJava (Thread[included builds Thread 14,5,main]) completed. Took 7.603 secs.
@Virtlink Virtlink added the C-Bug Category: bug. Not working as expected label Oct 5, 2021
@Virtlink
Copy link
Contributor Author

Virtlink commented Oct 5, 2021

I found that Intellij was using Gradle 6.8 whereas ./gradlew is using Gradle 6.9.1. I sometimes compile from the command-line and sometimes from Intellij. It could be that this issue is caused because of this.

@Virtlink
Copy link
Contributor Author

Virtlink commented Oct 5, 2021

Okay, this still happens despite the fact that I'm now very sure that I use the same version.

@Gohla
Copy link
Member

Gohla commented Oct 6, 2021

I have seen this occasionally happening, cleaning that project fixes it for me, but I don't know how to properly fix this. Does it happen every time? Maybe it could be fixed by adding a Gradle task that cleans the generated files before compilation.

@Virtlink
Copy link
Contributor Author

Virtlink commented Oct 6, 2021

It seems to occur when I mix building Spoofax 3 from the command line and from Intellij, even if the versions of Gradle match and the gradle tasks to be executed are the same. I've now resorted to just using Intellij, which seems to avoid the problem mostly, and executing clean -fxd in the pie directory can fix it if it occurs.

@Gohla
Copy link
Member

Gohla commented Oct 6, 2021

metaborg/pie@6ee1c79 should fix it, the issue was that the generated sources were indeed passed as a source path. Fixed by generating the PIE Java sources into a different directory.

@Gohla Gohla closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug Category: bug. Not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants