我无法在Kotlin Jupyter笔记本中添加软件包名称。我已经尝试过Kotlin文档https://kotlinlang.org/docs/reference/packages.html
中的示例代码
package org.example
fun printMessage() { /*...*/ }
class Message { /*...*/ }
异常详细信息
Front-end Internal error: Failed to analyze declaration Line_66_jupyter
File being compiled: (1,20) in Line_66.jupyter.kts
The root cause org.jetbrains.kotlin.resolve.lazy.NoDescriptorForDeclarationException was thrown at: org.jetbrains.kotlin.resolve.lazy.BasicAbsentDescriptorHandler.diagnoseDescriptorNotFound(AbsentDescriptorHandler.kt:18)
从上述例外情况来看,我的理解是Kotlin Jupyter笔记本
代码