Hi, I'm just getting started with arrow and I hope...
# arrow
m
Hi, I'm just getting started with arrow and I hope this is the right place to ask. First of all I'm using Iatest IntellIJ 2019.3.3 Whenver I add any arrow dependencies via gradle auto completion within IntelliJ becomes unusable and will be stuck in a constant loop of reloading ( see attached gif). Removing everything related to arrow from gradle will allow autocomplete to work normally again. Tried the obvious stuff in invalidating cache and checking the logs for anything out of the ordinary. Any ideas what might be the issue here?
r
Hi @Manuel Roblek! Welcome to Arrow! Please, just to know about the version you're including. Latest release or latest snapshot?
m
It's the latest release 10.4
p
try clearing the IJ cache and restart!
b
a) Disable the ML plugin
but I have noticed that bizarre behavior as well at times
r
Arrow is regular Kotlin. The Kotlin plugin or idea shouldn't choke with a few type args. Everything you find is worth reporting as a bug if it's reproducible in the Kotlin issue tracker
m
@Bob Glamm sadly that did not help @pakoito I already did as written in the original post I tried it now in a very basic gradle build setup and still no luck. If I find the time I might set up IntelliJ in a fresh environment and see if I can reproduce the issue
b
Unfortunately the IJ Kotlin tooling is terrible when any sort of Typed FP is included
I'm currently staring at an IJ screen with two source windows open that (a) have no errors, (b) should be showing deprecation warnings on
ApplicativeError.catch
, and (c) enabling a runnable
object.main
that is doing none of those things
t
@Manuel Roblek have you managed to solve this issue? I am also experiencing this on a new project with the following arrow dependencies:
Copy code
val arrowVersion = "0.10.4"

compile ("io.arrow-kt:arrow-fx:$arrowVersion")
compile ("io.arrow-kt:arrow-syntax:$arrowVersion")
kapt("io.arrow-kt:arrow-meta:$arrowVersion")
m
I'm afraid I haven't. Still haven't gotten around to test it in a clean environment though. Will post an update if i I do.
p
Have you reported it to the Jetbrains tracker? We can add more likes and ask them directly to take a lookie 😄
t
switching arrow's version back and forth with a cache invalidating restart a few times made it behave correctly again ¯\_(ツ)_/¯
😱 1
👏 1
🙈 1
p
maybe something wrong on the maven cache?
m
Have reported on the issue tracker: KT-37144 The issue seems to be only happening in 0.10.4. 0.10.3 works fine for me. @Tadas Giniotis Are you using 0.10.4 now? Maybe during your version switches you stayed on a lower one?
t
apparently I spoke too soon last time. It does not work again. Intellij behaves as follows: Switching the version from 0.10.4 to 0.10.3 -> does not work, the autocomplete toggles then invalidating the cache with restart -> works then switching the version to 0.10.4 -> works then invalidating the cache with restart -> no longer works, toggles as in the OP gif