rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Resolve #1168 by way of a makeshift, in absence of better isolation of the ksp environment.

Open cgruber opened this issue 9 months ago • 1 comments

Guava is used in a lot of different environments. This causes classloader problems at times, in that parts of guava get loaded early, but other parts are loaded late, in other classloaders, and you end up with conflicts around the boundary.

In #1168 @xinzhengzhang suggested a fix (implemented here) to preload guava, so it is fully loaded and can be resolved without crossing classloader boundaries.

While better classloader isolation is preferable, this at least unblocks folks while a more robust isolation scheme is explored.

cgruber avatar Mar 14 '25 19:03 cgruber

Note - this makeshift isn't working, regrettably. It may require a full fix to the isolation. (I'm also talking to the Dagger project about better isolation of their deps via shading - the dagger-compiler should be shaded, so I'm not sure what's up there).

cgruber avatar Mar 17 '25 22:03 cgruber