packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

version 2.9.0 doesn't compile

Open zthrive opened this issue 9 months ago • 11 comments

Describe the bug With version 2.8.0 there are no problems, everything works great! With version 2.9.0, it complains about 'forPrint' parameter

The output of compiling is below: Running Gradle task 'assembleDebug'... e: file:///C:/Users/zoran/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.9.0/android/src/main/kotlin/io/scer/pdfx/Messages.kt:211:98 No value passed for parameter 'forPrint'.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':pdfx:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.

BUILD FAILED in 49s Error: Gradle task assembleDebug failed with exit code 1

To Reproduce include latest (2.9.0) pdfx version to pubspec.yaml file

Expected behavior Compilation without error, like it is with version 2.8.0

zthrive avatar Apr 13 '25 03:04 zthrive

same issue

md-lotfi avatar Apr 14 '25 14:04 md-lotfi

same issue even running on 2.8.0

desmondlee95700 avatar Apr 15 '25 06:04 desmondlee95700

same issue

KChanduu avatar Apr 15 '25 11:04 KChanduu

same issue

anasalhajhasan avatar Apr 15 '25 13:04 anasalhajhasan

I tried dependency override with 2.8.0.

The pubspec.lock does not override to 2.8.0 and showing 2.9.0 .

desmondlee95700 avatar Apr 15 '25 13:04 desmondlee95700

@desmondlee95700 try add it like this pdfx: 2.8.0 in pubspec.yaml under dependencies

anasalhajhasan avatar Apr 15 '25 13:04 anasalhajhasan

I delete the pubspec.lock and use 2.6.0 and it works for me. If the pubspec.yaml still use the 2.9.0 version override the .lock an force the version. This is temporal until the bug persist

SamuelAc1011 avatar Apr 15 '25 18:04 SamuelAc1011

@SergeShkurko, could you please provide further information regarding my issue? The output of compiling is below: Running Gradle task 'assembleDebug'... e: file:///C:/Users/zoran/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.9.0/android/src/main/kotlin/io/scer/pdfx/Messages.kt:211:98 No value passed for parameter 'forPrint'.

FAILURE: Build failed with an exception.

GI-NS avatar Apr 16 '25 04:04 GI-NS

I provided full printout of the failed compilation with version 2.9.0 - when raising the bug report. Not sure what else I can provide?

zthrive avatar Apr 16 '25 06:04 zthrive

same issue

yangxiaoweihn avatar Apr 16 '25 10:04 yangxiaoweihn

same issue

matheusbriotto avatar Oct 02 '25 16:10 matheusbriotto