loke
02/28/2025, 4:23 AMcommonTest
module as not being found. I.e. all classes/functions/etc that reference something outside the module shows up as red. This includes references to classes in other modules that it depends on, and also other dependencies (specifically, kotlin.test.Test
.
And here's the really weird thing: It only happens on this one machine (running Arch linux). On Fedora machine and a Windows machine it all works fine. All other modules work as well. This only happens in commonTest
in one specific module. Classes in jsText
, jvmTest
and linuxTest
works fine, as does commonTest
in other modules.
I have does a full invalidate chaches and restart. I even manually deleted all the IDEA files (everything in $HOME/.cache.JetBrains
) and all the generated project files and reloaded everything, but the problem remains. Does anyone have any suggestion what to check?
Oh, and one more thing: Actually running the tests form gradle works fine.Teodor Irkhin
02/28/2025, 9:50 AMloke
02/28/2025, 9:51 AMBuild #IU-251.23536.34
.loke
02/28/2025, 9:51 AMloke
02/28/2025, 9:53 AMloke
02/28/2025, 9:54 AMloke
02/28/2025, 9:55 AMTeodor Irkhin
02/28/2025, 10:11 AMall the generated project filesDo you mean you also cleaned your build and then built the project again?
loke
02/28/2025, 11:21 AM.idea
directory in the root of the project, as well as all the cache files in $HOME/.cache/JetBrains
. I also deleted $HOME/.gradle
.loke
03/03/2025, 10:00 AMTeodor Irkhin
03/03/2025, 10:23 AMloke
03/03/2025, 10:24 AMloke
03/03/2025, 10:25 AMloke
03/03/2025, 10:25 AMloke
03/03/2025, 10:26 AMloke
03/03/2025, 10:27 AMcommonTest
. For example: array/src/commonTest/kotlin/com/dhsdevelopments/kap/CustomCommandsTest.kt
.loke
03/03/2025, 10:36 AMloke
03/03/2025, 10:36 AMBuild #IU-251.23536.34
.loke
03/03/2025, 2:16 PMloke
03/03/2025, 2:16 PMloke
03/03/2025, 2:38 PMTeodor Irkhin
03/03/2025, 2:48 PMloke
03/03/2025, 4:17 PMloke
03/04/2025, 8:34 AMloke
03/04/2025, 8:41 AMloke
03/05/2025, 5:06 AMtest-tools
as a dependency to array/commonMain
the problem disappeared.
• I then removed that dependency again, and the problem did not reappear.
• I did a full delete cache and restart. The problem did not reappear.
• I brought out my Arch laptop and pulled the latest changes so the code was identical to what I had on the Fedora machine.
• The problem showed up again on my Arch laptop.
• I added test-tools
as a dependency to array/commonMain
on the Arch laptop, the problem disappeared.
• I removed the dependency (i.e. restoring the change made above), and I still don't see the problem.
• Once the problem disappeared, I checked the project settings and commonTest
now has the correct dependecies.
So in summary: When the problem appears, it persists even though I delete all caches and all gradle state, and reparse the configuration. I can make it go away by adding test-tools
as a dependency to comonMain
and then remove it again.
Clearly the problem persists somewhere other than the cache files. So the next step for me is to find out where the state is stored. Where else could it be stored? I'd like to copy all those files, then remove the issue by changing the dependency again and compare the files to see what's different.loke
03/05/2025, 5:18 AMloke
03/05/2025, 5:19 AMTeodor Irkhin
03/05/2025, 8:52 AMloke
03/05/2025, 10:24 AM