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

2.0.0-Beta: Illegal use of flexible type deserializer. #3860

Open
colinrtwhite opened this issue Oct 15, 2024 · 2 comments · May be fixed by #3942
Open

2.0.0-Beta: Illegal use of flexible type deserializer. #3860

colinrtwhite opened this issue Oct 15, 2024 · 2 comments · May be fixed by #3942
Labels

Comments

@colinrtwhite
Copy link

colinrtwhite commented Oct 15, 2024

Describe the bug

I'm getting the following exception in my project after updating to 2.0.0-Beta and running ./gradlew dokkaGenerate:

Execution failed for task ':coil-core:dokkaGenerateModuleHtml'.
> A failure occurred while executing org.jetbrains.dokka.gradle.workers.DokkaGeneratorWorker
   > Illegal use of flexible type deserializer.

Expected behaviour
The build to finish successfully.

To Reproduce
Check out this branch and run ./gradlew dokkaGenerate.

Dokka configuration
None: I removed the Dokka configuration on that branch to reduce confounding factors.

Installation

  • Operating system: macOS
  • Build tool: Gradle v8.10.2
  • Dokka version: 2.0.0-Beta

Additional context
I found a similar report from an older Dokka version, however I don’t use the dynamic JS type in my project (maybe a dependency does?).

@vmishenev
Copy link
Member

You can track the issue KT-71784.

@adam-enko
Copy link
Member

Observation: When I comment out the KDoc of the forEachIndices function in collections.kt, the task :coil-core:dokkaGeneratePublicationHtml succeeds.

- /** @see forEach */
+ ///** @see forEach */
  internal inline fun <T> List<T>.forEachIndices(action: (T) -> Unit) {
      for (i in indices) {
          action(get(i))
      }
  }

@adam-enko adam-enko linked a pull request Nov 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants