https://kotlinlang.org logo
#arrow-contributors
Title
# arrow-contributors
j

julian

01/20/2023, 8:28 PM
I'm working on changes in
arrow-fx-coroutines
. But I always get
Cannot find declaration to go to
when I try to navigate to a symbol's declaration in IntelliJ. I'm wondering if I set up the project incorrectly. I imported the
build.gradle.kts
that's in the root directory
arrow
into IntelliJ. Should I have done something different? In IntelliJ, I'm also getting compiler errors in
DeadlockTest.kt
,
EitherJvmTest.kt
,
EvalJvmTest.kt
,
NonFatalJvmTest.kt
, and
JvmGenerators.kt
. These are the ones in
DeadlockTest.kt
, for example:
Copy code
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:16:15
Kotlin: Unresolved reference: Validated
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:18:15
Kotlin: Unresolved reference: Validated
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:30:15
Kotlin: Unresolved reference: Either
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:32:15
Kotlin: Unresolved reference: Either
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:44:15
Kotlin: Unresolved reference: None
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:46:15
Kotlin: Unresolved reference: Some
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:58:15
Kotlin: Unresolved reference: Ior
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:60:15
Kotlin: Unresolved reference: Ior
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:72:15
Kotlin: Unresolved reference: Eval
/Users/bayo/dev/arrow_fork_3/arrow-libs/core/arrow-core/src/jvmTest/java/arrow/core/DeadlockTest.kt:74:15
Kotlin: Unresolved reference: Eval
Any suggestions on how to get IntelliJ to behave correctly? I'm flying blind without IDE support as I make changes. Thanks!
r

raulraja

01/22/2023, 11:15 AM
Hi Julian, importing the main build gradle should have worked. I would try again removing everything and importing the root
arrow
folder. Then it will ask you about having found the gradle scripts and if you want to import them.
Regardless of IDEA, what happens if you try to
./gradlew clean test
Do those test compile?
If you are still having issues let me know and we can setup a time to look at it together over meet
j

julian

01/22/2023, 6:48 PM
Thanks so much @raulraja. Yes,
./gradlew clean test
succeeds, and there are no compiler errors. I also installed IDEA EAP and a second instance of the release version IDEA and had the same problem with both as the first instance of IDEA. I noticed that none of the directories in the Project Structure dialog any of the three instances of IDEA are marked as Sources. I've attached a screenshot of one. Then I tried opening the project in Android Studio. The IDE assistance works as expected and hoped for. And the project builds without errors. 🥳 Interestingly, the Modules pane of Android Studio's Project Structure dialog is blank. See the second screenshot. Do any contributors use IDEA? Or is everyone who uses IntelliJ using Android Studio?
r

raulraja

01/22/2023, 7:24 PM
I don't use Android Studio, just IDEA
j

julian

01/22/2023, 7:44 PM
Thanks @raulraja. This isn't an urgent issue anymore, but it's preferable in the long-term for me to use the same setup as other contributors. So I'd like to take you up on the offer to look into the IDEA issue over meet, whenever is convenient for you.
r

raulraja

01/22/2023, 7:48 PM
Sounds good, I'll ping you on DM with times I can meet
5 Views