Repository navigation
Local tests failing #1485
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Activity
For the time being, we (my students and I) have figured out how to run individual tests using IntelliJ so we're ok to keep moving despite this.
Reacted by Raphaël de CourvilleSame family error.
Editor : VS Code
Computer : Mac Book Pro M5 max➜ processing4 git:(main) ✗ ./gradlew build > Task :core:compileJava Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :java:preprocessor:generateGrammarSource warning(109): JavaParser.g4:37:0: options ignored in imported grammar JavaParser > Task :java:libraries:io:compileJava Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :java:libraries:serial:compileJava Note: /Users/stan/EN COURS/CODE/PERSO/PROCESSING/processing4/java/libraries/serial/src/processing/serial/Serial.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :app:compileKotlin w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/Messages.kt:236:21 Condition is always 'true'. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:85:31 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:292:45 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:312:45 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:328:45 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:385:34 'static fun getContentFile(name: String!): File!' is deprecated. Deprecated in Java. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:386:34 'static fun getContentFile(name: String!): File!' is deprecated. Deprecated in Java. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:387:34 'static fun getContentFile(name: String!): File!' is deprecated. Deprecated in Java. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:388:34 'static fun getContentFile(name: String!): File!' is deprecated. Deprecated in Java. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/PDEWelcome.kt:474:27 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/Start.kt:85:39 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/WelcomeSurvey.kt:43:23 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/WelcomeToBeta.kt:58:31 'fun painterResource(resourcePath: String): Painter' is deprecated. Migrate to the Compose resources library. See https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html If you need to load resources specificly from Java classpath, you should still use the new resource library and use a snippet from https://github.com/JetBrains/compose-multiplatform-core/pull/1457. w: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/ui/theme/Locale.kt:50:45 'fun getProperty(key: String?, default: String): String' is deprecated. Use get instead. > Task :app:compileJava /Users/stan/EN COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/Base.java:2212: warning: [dep-ann] deprecated item is not annotated with @Deprecated static public File getSettingsFolder() { ^ /Users/stan/EN COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/syntax/JEditTextArea.java:243: warning: [dep-ann] deprecated item is not annotated with @Deprecated public int getScrollPosition() { ^ /Users/stan/EN COURS/CODE/PERSO/PROCESSING/processing4/app/src/processing/app/syntax/JEditTextArea.java:252: warning: [dep-ann] deprecated item is not annotated with @Deprecated public void setScrollPosition(int what) { ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 warnings > Task :java:compileJava Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :java:compileTestJava Note: /Users/stan/EN COURS/CODE/PERSO/PROCESSING/processing4/java/test/processing/mode/java/ParserTests.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Command line edition for Processing unspecified (Java Mode) --help Show this help text. Congratulations. --sketch=<name> Specify the sketch folder (required) --output=<name> Specify the output folder (optional and cannot be the same as the sketch folder.) --force The sketch will not build if the output folder already exists, because the contents will be replaced. This option erases the folder first. Use with extreme caution! --build Preprocess and compile a sketch into .class files. --run Preprocess, compile, and run a sketch. --present Preprocess, compile, and run a sketch in presentation mode. --export Export an application. --variant Specify the platform and architecture (Export only). --no-java Do not embed Java. Starting with 4.0, the --platform option has been removed because of the variety of platforms and architectures now available. Use the --variant option instead, for instance: variant platform ------------- --------------------------- macos-x86_64 macOS (Intel 64-bit) macos-aarch64 macOS (Apple Silicon) windows-amd64 Windows (Intel 64-bit) linux-amd64 Linux (Intel 64-bit) linux-arm Linux (Raspberry Pi 32-bit) linux-aarch64 Linux (Raspberry Pi 64-bit) The --build, --run, --present, or --export must be the final parameter passed to Processing. Arguments passed following one of those four will be passed through to the sketch itself, and therefore available to the sketch via the 'args' field. To pass options understood by PApplet.main(), write a custom main() method so that the preprocessor does not add one. https://github.com/processing/processing4/wiki/Command-Line Finished. > Task :app:test LocaleKtTest > testLocale() FAILED java.lang.AssertionError at Assertions.kt:264 Caused by: java.lang.AssertionError at LocaleKtTest.kt:16 OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended > Task :app:test FAILED 19 tests completed, 1 failed [Incubating] Problems report is available at: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/.build/reports/problems/problems-report.html FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:test'. > There were failing tests. See the report at: file:///Users/stan/EN%20COURS/CODE/PERSO/PROCESSING/processing4/app/build/reports/tests/test/index.html * Try: > Run with --scan to get full insights. BUILD FAILED in 1m 42s 55 actionable tasks: 51 executed, 4 up-to-date ➜ processing4 git:(main) ✗the local tests are running now
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Most appropriate sub-area of Processing 4?
Unit testing
Processing version
4.3.4
Operating system
MacOS, Windows, Linux
Bug description
Local testing is broken, creating a classpath issue with an an "undefined" module in gradle. Surprisingly, this does not fail on github CI. It does fail on windows, macos, (tested by me and my students) and linux (as tested by @catilac )
The issue was introduced in PR #1423
The issue appears to stem from Github changing their gradle version and @moon is working on a long-term solution to bring local testing into parity with PR #1459 (if I understood all this right)
Steps to reproduce this
Check out main branch. Try to run tests:
Will see:
Diving into the report link, you'll find the modules all fail:
Clicking into their reports, they fail with the same core issue in the middle:
Could not resolve all files for configuration ':compileClasspath'. Could not find org.processing:core:unspecified.Here's one full report:
Thanks to
git bisectI've isolated this as the offending commit, merged in PR #1423 :This was written by @Stefterv . I'll reproduce the conversation from the discord below.
snippet
No response
Additional context
This was discussed in the Discord devs-chat channel. Reproduced here to not be forgotten!
@Stefterv
@Stefterv
Would you like to work on the issue?
I’m not sure yet