首页 > 解决方案 > 如何在 Idea 中加载 kotlin 编译器(kotlin-compiler-embeddable)的源代码?

问题描述

对不起这个愚蠢的问题,答案应该很明显,但我找不到。我有一些家庭失明之王。

我正在尝试加载 Kotlin 编译器的源代码以查看实现,例如: org.jetbrains.kotlin.com.intellij.lang.ASTNode

我正在添加此依赖项:

    <dependency>
        <groupId>org.jetbrains.kotlin</groupId>
        <artifactId>kotlin-compiler-embeddable</artifactId>
        <version>1.3.72</version>
    </dependency>
    </dependencies>

我唯一看到的是Intellij Idea 建议下载源代码,但此按钮没有任何效果:

想法下载源按钮

有谁知道我如何下载和附加这些资源?

UPD:看起来源是空的,IDE 没有处理这种情况......

https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.72/

标签: mavenkotlinintellij-ideajetbrains-ide

解决方案


您可以从 Preferences -> Build, Execution Deployment -> Build Tools -> Maven -> Importing :: Automatically Download 启用下载源代码:Sources

截屏


推荐阅读