Jesse Wilson

Results 562 comments of Jesse Wilson

* [x] Follow Redwood’s lead and expose the API dump stuff in a CLI, then get the Gradle task to call that. That ensures it gets its own classpath and...

* [ ] Run the check task for every target, not just `compileKotlinJvm`. Perhaps write it out on the first target? (We're not guaranteed to have a JVM target).

I looked into supporting checks on arbitrary compile tasks: JS, Native, etc., and I ran into a pretty ugly snag. The KotlinFirLoader API I stole from Retrofit only works for...

Uh oh, I think it’s broken for Java stdlib types. ``` java.lang.IllegalStateException: Class symbol with classId java/io/IOException was not found at org.jetbrains.kotlin.util.AnalysisExceptionsKt.wrapIntoFileAnalysisExceptionIfNeeded(AnalysisExceptions.kt:53) at org.jetbrains.kotlin.fir.FirCliExceptionHandler.handleExceptionOnFileAnalysis(Utils.kt:172) at org.jetbrains.kotlin.fir.resolve.transformers.FirTotalResolveProcessor.process(FirTotalResolveProcessor.kt:97) at org.jetbrains.kotlin.fir.pipeline.AnalyseKt.runResolution(analyse.kt:18) at org.jetbrains.kotlin.cli.jvm.compiler.pipeline.CompilerPipelineKt.buildResolveAndCheckFir(compilerPipeline.kt:449)...

There’s a function called `dealloc` on iOS that can do it. Not sure if/how this is bridged to Kotlin/Native. https://developer.apple.com/documentation/objectivec/nsobject/1571947-dealloc

Discussed today. Decision is to try to use `WeakReference`. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.ref/#:~:text=WeakReference

API sketch: ``` /** * Closes this instance when all its services are closed. It is an error to call * [bind] or [take] after calling close, but bound services...

@JakeWharton do you like close/closeImmediately or would you prefer say, closeLater/close ? In particular I’m trying to decide whether `close()` should be the one that takes effect immediately or not.