arrow-kt / arrow-integrations

Λrrow Integrations is part of Λrrow, a functional companion to Kotlin's Standard Library
http://arrow-kt.io
Other
27 stars 6 forks source link

DOC: error when integrating 'Revert IO changes (#33)' with the rest of Arrow libraries #34

Closed github-actions[bot] closed 4 years ago

github-actions[bot] commented 4 years ago

Data

Error


arrow-core > Generate and validate doc

warning: runtime JAR files in the classpath should have the same version. These files were found in the classpath: /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.61/e91d61b7cfd9a45566b580fef18bbd5c32d505b5/kotlin-stdlib-jdk8-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.61/2e07c9a84c9e118efb70eede7e579fd663932122/kotlin-reflect-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.61/70dffc5f8ac5ea7c34f30deac5b9d8b1d48af066/kotlin-stdlib-jdk7-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/me.eugeniomarletti.kotlin.metadata/kotlin-compiler-lite/1.0.3-k-1.2.40/a16e967c276379eaf6e1fa03af77664f003db947/kotlin-compiler-lite-1.0.3-k-1.2.40.jar (version 1.2) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.61/4702105e97f7396ae41b113fdbdc180ec1eb1e36/kotlin-stdlib-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.61/65abb71d5afb850b68be03987b08e2c864ca3110/kotlin-stdlib-common-1.3.61.jar (version 1.3) warning: some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath warning: runtime JAR files in the classpath should have the same version. These files were found in the classpath: /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.61/e91d61b7cfd9a45566b580fef18bbd5c32d505b5/kotlin-stdlib-jdk8-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.61/70dffc5f8ac5ea7c34f30deac5b9d8b1d48af066/kotlin-stdlib-jdk7-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.61/2e07c9a84c9e118efb70eede7e579fd663932122/kotlin-reflect-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/me.eugeniomarletti.kotlin.metadata/kotlin-compiler-lite/1.0.3-k-1.2.40/a16e967c276379eaf6e1fa03af77664f003db947/kotlin-compiler-lite-1.0.3-k-1.2.40.jar (version 1.2) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.61/4702105e97f7396ae41b113fdbdc180ec1eb1e36/kotlin-stdlib-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.61/65abb71d5afb850b68be03987b08e2c864ca3110/kotlin-stdlib-common-1.3.61.jar (version 1.3) warning: some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath warning: runtime JAR files in the classpath should have the same version. These files were found in the classpath: /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.3.61/e91d61b7cfd9a45566b580fef18bbd5c32d505b5/kotlin-stdlib-jdk8-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.61/70dffc5f8ac5ea7c34f30deac5b9d8b1d48af066/kotlin-stdlib-jdk7-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.3.61/2e07c9a84c9e118efb70eede7e579fd663932122/kotlin-reflect-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/me.eugeniomarletti.kotlin.metadata/kotlin-compiler-lite/1.0.3-k-1.2.40/a16e967c276379eaf6e1fa03af77664f003db947/kotlin-compiler-lite-1.0.3-k-1.2.40.jar (version 1.2) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.61/4702105e97f7396ae41b113fdbdc180ec1eb1e36/kotlin-stdlib-1.3.61.jar (version 1.3) /Users/runner/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.61/65abb71d5afb850b68be03987b08e2c864ca3110/kotlin-stdlib-common-1.3.61.jar (version 1.3) warning: some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath warning: classpath entry points to a non-existent location: /Users/runner/runners/2.263.0/work/arrow-integrations/arrow-core/arrow-meta-test-models/build/classes/kotlin/main Exception in thread "main"

File located at: /Users/runner/runners/2.263.0/work/arrow-integrations/arrow-core/arrow-docs/build/site/patterns/monadcomprehensions/README.md

import arrow.*
import arrow.fx.*
import arrow.typeclasses.*
import arrow.fx.extensions.fx

IO.fx<Nothing, Unit> {
  1
}.fix().unsafeRunSync()

error: one type argument expected for fun IO.Companion.fx(c: suspend ConcurrentSyntax.() -> A): IO IO.fx<Nothing, Unit> { ^ error: the integer literal does not conform to the expected type Nothing 1 ^ 

File located at: /Users/runner/runners/2.263.0/work/arrow-integrations/arrow-core/arrow-docs/build/site/arrow/typeclasses/applicativeerror/README.md

import arrow.fx.*
import arrow.fx.extensions.io.applicativeError.*

IO.applicativeError<Throwable>().raiseError<Int>(RuntimeException("Paco"))

error: no type arguments expected for inline fun IO.Companion.applicativeError(): IOApplicativeError IO.applicativeError().raiseError(RuntimeException("Paco")) ^ 

File located at: /Users/runner/runners/2.263.0/work/arrow-integrations/arrow-core/arrow-docs/build/site/arrow/typeclasses/monad/README.md

import arrow.fx.extensions.io.monad.*

fun logValue(i: Int): IO<Nothing, Unit> = IO { /* println(i) */ }

IO.just(1).flatTap(::logValue).fix().unsafeRunSync()

error: one type argument expected for class IO fun logValue(i: Int): IO<Nothing, Unit> = IO { / println(i) / } ^ 

File located at: /Users/runner/runners/2.263.0/work/arrow-integrations/arrow-core/arrow-docs/build/site/arrow/typeclasses/monaderror/README.md

import arrow.fx.*
import arrow.fx.extensions.io.applicativeError.*

val ioResult: IO<Nothing, Int> =
  RuntimeException("BOOM!").raiseError()

ioResult.attempt().unsafeRunSync()

error: one type argument expected for class IO val ioResult: IO<Nothing, Int> = ^ 

File located at: /Users/runner/runners/2.263.0/work/arrow-integrations/arrow-core/arrow-docs/build/site/apidocs/arrow-core-data/arrow.typeclasses/-traverse/index.md

import arrow.fx.IO

interface Data

fun writeToStore(data: Data): IO<Nothing, Unit> = TODO("")

error: one type argument expected for class IO fun writeToStore(data: Data): IO<Nothing, Unit> = TODO("") ^ 

FAILURE: Build failed with an exception.

BUILD FAILED in 1m 33s


arrow-optics > Generate and validate doc

Exception in thread "main"

File located at: /Users/runner/runners/2.263.0/work/arrow-integrations/arrow-optics/arrow-docs/build/site/optional/README.md

import arrow.fx.extensions.io.applicative.*
import arrow.fx.fix
import arrow.fx.unsafeRunSync

val liftedFO = ListK.head<Int>().liftF(IO.applicative()) { head ->
    IO.effect { head / 0 }
}
liftedFO(listOf(1, 3, 6).k()).fix().attempt().unsafeRunSync()

error: unresolved reference: unsafeRunSync import arrow.fx.unsafeRunSync ^ 

FAILURE: Build failed with an exception.

BUILD FAILED in 25s

Result

Run Ank Site OK
Local install arrow-core OK
Undo local changes arrow-core OK
Local install arrow-ui OK
Undo local changes arrow-ui OK
Local install arrow-fx OK
Undo local changes arrow-fx OK
Local install arrow-incubator OK
Undo local changes arrow-incubator OK
Local install arrow-optics OK
Undo local changes arrow-optics OK
Local install arrow-ank OK
Undo local changes arrow-ank OK
Local install arrow-integrations OK
Undo local changes arrow-integrations OK
Local install arrow-check OK
Undo local changes arrow-check OK
Generate and validate doc arrow-core KO !!
Generate and validate doc arrow-ui OK
Generate and validate doc arrow-fx OK
Generate and validate doc arrow-incubator OK
Generate and validate doc arrow-optics KO !!
Generate and validate doc arrow-ank OK
Generate and validate doc arrow-integrations OK
Generate and validate doc arrow-check OK