https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
arrow-contributors
  • k

    kioba

    12/20/2019, 5:50 PM
    I am currently working on the
    Functor instance Queue
    ticket. I know this should be a fairly simple task sorry if I ask something obbvious :S , I have no previous experience with the
    Queue
    solution so I looked into the mentioned
    ZIO Queue
    (to be precise the
    trait ZQueue[-RA, +EA, -RB, +EB, -A, +B]
    ) implementation. If I understand correctly we currently dont have a
    ZQueue
    equivalent implementation in :arrow:, our queue is representing a general
    zio.internal.MutableConcurrentQueue
    . To be able to implement the
    Functor
    we have to make sure the Queue captures the previous queue reference and the f function to be able to deplete the original queue. TL;DR: we have to create a
    ZQueue
    equivalent in :arrow: and implement
    Functor
    on it instead of Queue. I believe it is a slightly more work than a simple typeclass. I would be super happy to implement it, but before that I just want to make sure I am on the right path here 🙂 @simon.vergauwen
    s
    • 2
    • 14
  • i

    Imran/Malic

    12/20/2019, 6:13 PM
    May someone help me out here with Contravariant 🙂 . The Prelude looks like this:
    class ForOp private constructor() {
      companion object
    }
    typealias OpOf<A, X> = arrow.Kind2<ForOp, A, X>
    typealias OpPartialOf<A> = arrow.Kind<ForEither, A>
    
    @Suppress("UNCHECKED_CAST", "NOTHING_TO_INLINE")
    inline fun <A, X> OpOf<A, X>.fix(): Op<A, X> =
      this as Op<A, X>
    
    
    @higherkind
    data class Op<A, X>(val f: (X) -> A) {
      fun <B> compose(other: Op<B, A>): Op<B, X> =
        Op(other.f compose f)
    
      fun <B> compose(g: (A) -> B): Op<B, X> =
        compose(Op(g))
    }
    
    inline fun <A, X> Op<A, X>.k(): Kind2<ForOp, A, X> = TODO() // does that make sense?
    now I want to define:
    interface OpContravariant<C> : Contravariant<Conested<ForOp, C>>
    How does that look like. I tried it, but I could not find something tangible. cc @Ariostonj
    j
    • 2
    • 11
  • j

    Jannis

    12/22/2019, 10:48 PM
    Is there a reason
    StateT<F, S, A>
    is defined with
    Kind<F, (S) -> Kind<F, Tuple2<S, A>>>
    ? The double
    Kind<F, *>
    are weird. I am currently rewriting some tests for higher coverage and noticed a bunch of failures with monad-applicative-consistency (monad derived ap doing different things than normal ap) and
    StateT
    is the last one that still fails.
    r
    s
    • 3
    • 8
  • a

    Attila Domokos

    12/24/2019, 4:52 PM
    I've just tried building arrow locally. Everything but one test passed:
    > Task :arrow-free-data:test FAILED
    with latest commit. Using Mac OS 10.14.6, using Java
    8.0.232.j9-adpt
    . I tried to look at the build server, but couldn't find the latest build. Is this expected? If not, what could I do to make this test pass?
    r
    j
    • 3
    • 13
  • i

    Imran/Malic

    12/31/2019, 9:49 AM
    I finally got this done. I’d appreciate reviews https://github.com/arrow-kt/arrow/pull/1534 🙂
    👏 1
    • 1
    • 1
  • j

    Jannis

    01/09/2020, 6:32 PM
    Is it just me or are code blocks on next.arrow-kt.io broken? Happens on both chrome and brave on linux
    r
    • 2
    • 2
  • i

    Imran/Malic

    01/10/2020, 11:28 AM
    Is there a way to use terms with an internal modifier in tests. That has been changes in 1.3.61 AFAIK. https://github.com/arrow-kt/arrow/pull/1920 Most of them are in ArrowFx
    a
    s
    j
    • 4
    • 9
  • i

    Imran/Malic

    01/10/2020, 6:03 PM
    Does mtl has flaky tests? If I run the tests on
    mtl-data
    they’re fine locally, but not in CI. https://github.com/arrow-kt/arrow/pull/1921/checks?check_run_id=383792628 Or am I doing something wrong.
    j
    • 2
    • 2
  • p

    pakoito

    01/14/2020, 11:51 PM
    @simon.vergauwen @raulraja are we at a point where we can go for 0.11?
    s
    j
    • 3
    • 7
  • c

    calvellido

    01/15/2020, 11:05 AM
    Hello! There have been a couple of weeks since I last ran the Arrow project, but now suddenly I'm not able to compile/build it:
    ./gradlew dokka
    Gives me:
    > Task :arrow-core:kaptKotlin FAILED
    e: [kapt] An exception occurred: java.lang.StackOverflowError
            at arrow.meta.encoder.jvm.KotlinPoetEncoder$DefaultImpls.toMeta(KotlinPoetEncoder.kt:88)
    (...)
    Tried several things already, like increasing the Java heap size, starting from a fresh repo, and even removing all of
    ~/.gradle/
    directory with no luck 😢, and I'm not able to overcome that yet. Has anybody faced something like this recently? Might this be related to this issue: https://github.com/arrow-kt/arrow/issues/1927?
    r
    j
    • 3
    • 7
  • r

    Rachel

    01/21/2020, 10:26 AM
    Proposal to improve Arrow.pdf
    👏 2
    s
    s
    • 3
    • 13
  • t

    thanerian

    01/21/2020, 10:35 AM
    I like the idea of segregate modules into repository, but not at that low level, some modules could be stored into the same git repository as they are related, arrow-ank and arrow-ank-gradle could be in the same git repo for instance same for those with arrow-xxx-yyy structure that share the same
    xxx
    , WDYT? there is a technical issue about structure in that way?
    👍 7
    r
    s
    • 3
    • 5
  • j

    Jannis

    01/21/2020, 10:41 AM
    I should read the whole thing before thinking too much ^^
    😄 1
    🤗 1
    r
    • 2
    • 1
  • p

    PhBastiani

    01/27/2020, 10:53 AM
    Hi, the build linked to my PR is in error ! Maybe linked to https://github.com/arrow-kt/arrow/pull/1968 My PR only adds fx syntax to Free monads... a side effect ! In local, I also noted that from time to time the fx tests fail.
    2020-01-27T10:24:35.4063911Z arrow.fx.IOTest > IORacePair should be stack safe FAILED
    2020-01-27T10:24:35.4064309Z     java.lang.StackOverflowError
    2020-01-27T10:24:35.4064546Z         at <http://arrow.fx.IO|arrow.fx.IO>$Companion.racePair(IO.kt:53)
    
    2020-01-27T10:24:35.4727789Z arrow.fx.IOTest > IORaceTriple should be stack safe FAILED
    2020-01-27T10:24:35.4727909Z     java.lang.StackOverflowError
    2020-01-27T10:24:35.4728010Z         at <http://arrow.fx.IO|arrow.fx.IO>$Companion.raceTriple(IO.kt:53)
    ...
    a
    • 2
    • 1
  • p

    PhBastiani

    01/30/2020, 12:22 PM
    Hi, I prepared a PR with additional tests for the Free package; and, I added a new benchmarking project for the trampoline part... Interesting: for calculations of the Fibonacci sequence, there is approximately 30% difference between the Trampoline/Eval approaches.
    👏 1
    p
    j
    r
    • 4
    • 12
  • h

    Hiosdra

    01/30/2020, 7:01 PM
    When writing test for new(0.11.0)
    toIO()
    (mentioned today in #arrow), I saw that
    attempt
    is like:
    fun attempt(): IO<E, Either<Throwable, A>>
    While in Scala Cats there is:
    val x: IO[Either[Int, String]] = IO[Either[Int, String]] { Left(1) }
    val y: IO[Either[Throwable, Either[Int, String]]] = x.attempt
    def attempt: IO[Either[Throwable, A]]
    Won’t be more intuitive to type it like this? Also in actual form I am unable to call
    IO.attempt().unsafeRunSync()
    , because
    unsafeRunSync
    is like:
    fun <A> IOOf<Nothing, A>.unsafeRunSync(): A
    b
    j
    • 3
    • 7
  • a

    Arkadii Ivanov

    02/03/2020, 11:05 AM
    Hello guys. I started implementing an interop module for Reaktive. Checked existing implementations for RxJava2 and Reactor. The CororutineContext->Scheduler converter appears to be implemented incorrectly. E.g. "tasks scheduled on a Worker are guaranteed to be executed sequentially and in a non-overlapping fashion", but here they are being executed in parallel: https://github.com/arrow-kt/arrow/blob/397b84f1366662c8a0f4c3ea02717e1c74ccc990/modules/fx/arrow-fx-rx2/src/main/kotlin/arrow/fx/rx2/CoroutineContextRx2Scheduler.kt#L29. And I believe same issue in Reactor module. So I'm wondering is there any reason of such an implementation or it's just a bug?
    s
    • 2
    • 29
  • a

    Arkadii Ivanov

    02/07/2020, 10:40 AM
    So I did pretty much everything, stuck with
    racePair
    implementation for
    Maybe
    . I implemented
    CoroutineContext
    ->`Scheduler` interop properly and now race conditions affect tests more often. Already spend ~8h of debugging, ended up with a different implementation that works. So what is going on (will explain in terms of the existing
    RxJava2
    implementation and the
    racePairCanJoinLeft
    test):
    override fun <A, B> CoroutineContext.racePair(fa: MaybeKOf<A>, fb: MaybeKOf<B>): MaybeK<RacePair<ForMaybeK, A, B>> =
        asScheduler().let { scheduler ->
          Maybe.create<RacePair<ForMaybeK, A, B>> { emitter ->
            val sa = ReplaySubject.create<A>()
            val sb = ReplaySubject.create<B>()
            val dda = fa.value()
              /*
              * 1:
              * We subscribe to "fa".
              * This has "subscribeOn" operator somewhere in the upstream.
              * So the subscription is asynchronous.
               */
              .subscribe(sa::onNext, sa::onError)
            val ddb = fb.value().subscribe(sb::onNext, sb::onError)
            emitter.setCancellable { 
              /*
               * 3:
               * This is called after emission in Step 2 is done.
               * Here is the race condition.
               * If this is called BEFORE Step 1 is actually subscribed
               * and value is delivered to "sa", then test fails with timeout.
               */
              dda.dispose(); ddb.dispose() 
            }
            val ffa = Fiber(sa.firstElement().k(), MaybeK { dda.dispose() })
            val ffb = Fiber(sb.firstElement().k(), MaybeK { ddb.dispose() })
            sa.subscribe({
              emitter.onSuccess(RacePair.First(it, ffb))
            }, { e -> emitter.tryOnError(e) }, emitter::onComplete)
            sb.subscribe({
              /*
               * 2:
               * We receive a value here and emit it to downstream.
               * This eventually disposes this Maybe after emission is done. 
               */
              emitter.onSuccess(RacePair.Second(ffa, it))
            }, { e -> emitter.tryOnError(e) }, emitter::onComplete)
          }.subscribeOn(scheduler).observeOn(Schedulers.trampoline()).k()
        }
    So I ended up with the following implementation:
    override fun <A, B> CoroutineContext.racePair(fa: Kind<ForMaybeK, A>, fb: Kind<ForMaybeK, B>): Kind<ForMaybeK, RacePair<ForMaybeK, A, B>> {
        val scheduler = asScheduler()
        val coa: ConnectableObservable<A> = fa.value().subscribeOn(scheduler).asObservable().replay(bufferSize = 1)
        val cob: ConnectableObservable<B> = fb.value().subscribeOn(scheduler).asObservable().replay(bufferSize = 1)
        lateinit var da: RxDisposable
        coa.connect { da = it }
        lateinit var db: RxDisposable
        cob.connect { db = it }
        val ma = coa.firstOrComplete()
        val mb = cob.firstOrComplete()
    
        return merge(
          ma.map { RacePairResult.First(it) },
          mb.map { RacePairResult.Second(it) }
        )
          .firstOrComplete()
          .map {
            when (it) {
              is RacePairResult.First -> RacePair.First(winner = it.value, fiberB = Fiber(join = mb.k(), cancel = MaybeK(db::dispose)))
              is RacePairResult.Second -> RacePair.Second(fiberA = Fiber(join = ma.k(), cancel = MaybeK(da::dispose)), winner = it.value)
            }
          }
          .k()
      }
    
      private sealed class RacePairResult<out A, out B> {
        class First<A>(val value: A) : RacePairResult<A, Nothing>()
        class Second<B>(val value: B) : RacePairResult<Nothing, B>()
      }
    s
    • 2
    • 4
  • p

    pakoito

    02/07/2020, 11:06 AM
    The 47deg people are on a retreat, I may have time to take a look later today or Sunday
    a
    • 2
    • 1
  • a

    Arkadii Ivanov

    02/07/2020, 4:40 PM
    Ok here is another problem: In
    maybek.kt
    we have the following function:
    override fun <A, B> CoroutineContext.racePair(fa: MaybeKOf<A>, fb: MaybeKOf<B>): MaybeK<RacePair<ForMaybeK, A, B>> =
        asScheduler().let { scheduler ->
          Maybe.create<RacePair<ForMaybeK, A, B>> { emitter ->
            val sa = ReplaySubject.create<A>()
            val sb = ReplaySubject.create<B>()
            val dda = fa.value().subscribe(sa::onNext, sa::onError)
            val ddb = fb.value().subscribe(sb::onNext, sb::onError)
            emitter.setCancellable { dda.dispose(); ddb.dispose() } // <-- This is the line in question
            val ffa = Fiber(sa.firstElement().k(), MaybeK { dda.dispose() })
            val ffb = Fiber(sb.firstElement().k(), MaybeK { ddb.dispose() })
            sa.subscribe({
              emitter.onSuccess(RacePair.First(it, ffb))
            }, { e -> emitter.tryOnError(e) }, emitter::onComplete)
            sb.subscribe({
              emitter.onSuccess(RacePair.Second(ffa, it))
            }, { e -> emitter.tryOnError(e) }, emitter::onComplete)
          }.subscribeOn(scheduler).observeOn(Schedulers.trampoline()).k()
        }
    I pointed the line that I would like to discuss. I don't think this is correct to dispose BOTH subscriptions when the main stream is succeeded. If a
    Winner
    produced a value then the main
    Maybe
    completes and this callback gets executed. So the
    Loser
    terminates as well. In my
    Reaktive
    implementation I fixed this but now
    racePairCanCancelsLoser
    fails since:
    val loser = s.release().bracket(use = { never<String>() }, release = { p.complete(i) })
    The
    Loser
    never completes because no one cancels it and it is
    never
    completes by itself. Such a change fixes the test and looks. What do you think?
    • 1
    • 1
  • a

    addamsson

    02/12/2020, 12:17 PM
    @Rachel @raulraja I had a discussion with @simon.vergauwen the other day about helping with the Arrow MPP effort. Please feel free to send me a PM / mention me if you think there is something I can contribute to in this topic.
    r
    r
    s
    • 4
    • 19
  • r

    Rachel

    02/12/2020, 1:53 PM
    Untitled.txt
    a
    s
    +2
    • 5
    • 37
  • r

    Rachel

    02/14/2020, 5:48 PM
    We're creating the new repositories
    a
    • 2
    • 5
  • r

    Rachel

    02/14/2020, 5:48 PM
    We'll provide the details before
    a
    • 2
    • 1
  • s

    simon.vergauwen

    02/18/2020, 1:24 PM
    Hey @Richard Gibson @Scott Christopher @kioba, I rewrote the internals of
    Queue
    which was based on
    ZIO
    to how
    MVar
    is build in Arrow and Cats-effects which uses lower level constructs such as
    atomic
    with
    tailrec
    instead of
    Ref
    . You can find the PR here, https://github.com/arrow-kt/arrow/pull/2081, there is some impact on the API. Since we can offer a more powerful API but 2 use-cases are removed. Dropping and bounded queue with capacity 0. Looking forward to your feedback on the PR 🙂
    ❤️ 3
    s
    k
    • 3
    • 4
  • r

    Rachel

    02/19/2020, 8:08 PM
    Hi fellow contributors, this move will be done tomorrow Thursday at 10.00 am GMT. The contributions will be blocked at that time during 1 hour (or maybe less time). We'll publish messages before and after the move. Please, find details here: https://github.com/arrow-kt/arrow/tree/starting-point/docs/move-to-multi-repo (it's located in a branch, so the URL will change after the move; that documentation will remain in arrow repository). If there are pending PRs at that time, don't worry, branches will be moved to the correspondent repositories. If you're working in a forked repository, find the steps to follow after the move: https://github.com/arrow-kt/arrow/blob/starting-point/docs/move-to-multi-repo/how-to-move-a-pr.md Thanks for your collaboration!!
    🙌 4
    p
    s
    • 3
    • 5
  • r

    Rachel

    02/20/2020, 2:30 PM
    The move is finished!! We're going to follow with the next steps (closing PRs, move issues, etc), however, contributions are open again 🎉
    👏 6
    🎉 10
    p
    • 2
    • 3
  • a

    AdrianRaFo

    02/20/2020, 3:45 PM
    The readme icons are broken I think?
    r
    • 2
    • 3
  • a

    AdrianRaFo

    02/20/2020, 3:45 PM
    Could I suggest to refresh the pinned items in the org github page?
    👍 2
    r
    • 2
    • 5
  • a

    Arkadii Ivanov

    02/20/2020, 5:48 PM
    I'm trying to move my PR to the new
    arrow-fx
    repo. I can't add the Reaktive dependencies because of the following error:
    A problem occurred configuring project ':arrow-fx-reaktive'.
    > Could not resolve all files for configuration ':arrow-fx-reaktive:runtimeClasspath'.
       > Could not resolve com.badoo.reaktive:reaktive-jvm:"1.1.10".
         Required by:
             project :arrow-fx-reaktive
          > Could not resolve com.badoo.reaktive:reaktive-jvm:"1.1.10".
             > Could not get resource '<https://oss.jfrog.org/artifactory/oss-snapshot-local/com/badoo/reaktive/reaktive-jvm/%221.1.10%22/reaktive-jvm-%221.1.10%22.pom>'.
                > Could not GET '<https://oss.jfrog.org/artifactory/oss-snapshot-local/com/badoo/reaktive/reaktive-jvm/%221.1.10%22/reaktive-jvm-%221.1.10%22.pom>'. Received status code 409 from server:
    In the old repo it is resolved fine. Changing order of the declared maven repositories does not help. The following trick does not help as well:
    maven {
                url "<https://oss.jfrog.org/artifactory/oss-snapshot-local/>"
                content {
                    excludeGroup "com.badoo.reaktive"
                }
            }
    Do someone have any suggestions?
    r
    • 2
    • 35
Powered by Linen
Title
a

Arkadii Ivanov

02/20/2020, 5:48 PM
I'm trying to move my PR to the new
arrow-fx
repo. I can't add the Reaktive dependencies because of the following error:
A problem occurred configuring project ':arrow-fx-reaktive'.
> Could not resolve all files for configuration ':arrow-fx-reaktive:runtimeClasspath'.
   > Could not resolve com.badoo.reaktive:reaktive-jvm:"1.1.10".
     Required by:
         project :arrow-fx-reaktive
      > Could not resolve com.badoo.reaktive:reaktive-jvm:"1.1.10".
         > Could not get resource '<https://oss.jfrog.org/artifactory/oss-snapshot-local/com/badoo/reaktive/reaktive-jvm/%221.1.10%22/reaktive-jvm-%221.1.10%22.pom>'.
            > Could not GET '<https://oss.jfrog.org/artifactory/oss-snapshot-local/com/badoo/reaktive/reaktive-jvm/%221.1.10%22/reaktive-jvm-%221.1.10%22.pom>'. Received status code 409 from server:
In the old repo it is resolved fine. Changing order of the declared maven repositories does not help. The following trick does not help as well:
maven {
            url "<https://oss.jfrog.org/artifactory/oss-snapshot-local/>"
            content {
                excludeGroup "com.badoo.reaktive"
            }
        }
Do someone have any suggestions?
r

Rachel

02/20/2020, 6:06 PM
Hi @Arkadii Ivanov, that's a new dependency for
arrow-fx-reaktive
so a
repositories
section should be added in the
arrow-fx-reaktive/build.gradle
For instance:
arrow-benchmarks-fx
it uses a dependency that requires JitPack.io
So it includes
repositories
section with that repository:
https://github.com/arrow-kt/arrow-fx/blob/master/arrow-benchmarks-fx/build.gradle
a

Arkadii Ivanov

02/20/2020, 6:08 PM
Yeah, tried this. The error is same
r

Rachel

02/20/2020, 6:09 PM
Please, could you share the repository? And I can take a look at it
Or the branch...
a

Arkadii Ivanov

02/20/2020, 6:10 PM
Looks like there is a problem with the
<https://oss.jfrog.org/artifactory/oss-snapshot-local/>
repository
Previous arrow repo did not use this and it worked fine
r

Rachel

02/20/2020, 6:11 PM
However, now we should use it because of finding the external arrow dependencies
Please, where can I find your source code?
a

Arkadii Ivanov

02/20/2020, 6:12 PM
I understand. Then I can't add the Reaktive module. Can't find a way to add the dependency.
r

Rachel

02/20/2020, 6:12 PM
We'll find the way! Please, where can I find your source code?
I can help you
a

Arkadii Ivanov

02/20/2020, 6:15 PM
It is here: https://github.com/arkivanov/arrow-fx/tree/add-reaktive-module
r

Rachel

02/20/2020, 6:15 PM
Great, thank you!!
👍 1
I think it's a problem with the way of indicating the version
Look at the error:
Could not resolve com.badoo.reaktive:reaktive-jvm:"1.1.10"
instead of:
Could not resolve com.badoo.reaktive:reaktive-jvm:1.1.10
and the same with:
...com/badoo/reaktive/reaktive-jvm/%221.1.10%22/reaktive-jvm-%221.1.10%22.pom'
Please, change:
REAKTIVE_VERSION = "1.1.10"
by:
REAKTIVE_VERSION=1.1.10
a

Arkadii Ivanov

02/20/2020, 6:29 PM
Arghh
r

Rachel

02/20/2020, 6:29 PM
It should fix it
a

Arkadii Ivanov

02/20/2020, 6:29 PM
Thanks, my fault
r

Rachel

02/20/2020, 6:29 PM
Don't worry @Arkadii Ivanov
👍 1
Happy to help you
Thanks for your contributions!!
View count: 4