kittinunf / Result

The modelling for success/failure of operations in Kotlin and KMM (Kotlin Multiplatform Mobile)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Studio always tried to import kotlin.Result

alexzaitsev opened this issue · comments

This is more a question.
Probably somebody figured out how to tell to Android Studio that I'm using com.github.kittinunf.result.Result instead of the default one.
There is no issue if I'm typing Result symbol by symbol - then I can just choose appropriate import.
However, if I insert code from browser or other place (not AS), then AS always uses default Result.
Is there a way to substitute it for all the cases by com.github.kittinunf.result.Result?

I am not really what the best way to approach this but do you think we can add the kotlin.Result from the auto-import?

Editor > General > Auto Import > Exclude from auto-import and completion:

@kittinunf doesn't help unfortunately.
Screenshot 2022-11-24 at 12 16 39
Screenshot 2022-11-24 at 12 18 20

I guess you gotta manually import it for now. 😓. Sorry for inconveniences.