代码之家  ›  专栏  ›  技术社区  ›  trzczy

IntelliJ中未解析Clojure.io代码

  •  1
  • trzczy  · 技术社区  · 7 年前

    我有一个Clojure和基座的小应用程序,是我从desidel.io教程中获取的。它在航站楼里工作得很好。当我在IntelliJ中打开它时,会出现一些“无法解决”的提示。一些代码部分的背景是米色的。

    enter image description here

    boot repl . 有没有办法通过IntelliJ解析完整代码?如果有,哪些设置?

    更新

    “索引Maven存储库”字段

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  3
  •   Alan Thompson    7 年前

    检查您的设置以确保Clojars和Maven repos都已编制索引:

    IntelliJ IDEA Settings

    导航到:

    File
    -> Settings
       -> Build, Execution, Deployment 
          -> Build Tools
             -> Maven
                -> Repositories
    


    阿尔索 ,这通常是有帮助的

    File 
      -> Invalidate Caches / Restart
    

    然后它将正确解析:

    How Cursive Should Look


    更新#2

    boot 项目我有一个 lein 项目和草书自动填充我的列表(从 project.clj 我猜)。两个前进方向:

    1. 靴子 信息。草书作者对物品的反应非常灵敏 on the mailing list

    2. 如果上述方法无效,可以将其转换为 莱因 项目只是为了让草书/智能快乐。您仍然可以将其作为 靴子 从命令行进行项目(或以通常使用的方式启动)。

    IntelliJ IDEA: "Indexed Maven Repositories" list - how to add remote maven repository in this list?

    参考资料: http://maven.apache.org/settings.html#Repositories


    更新#3:

    好的,刚刚找到这个 草书信息,看起来不错: https://github.com/boot-clj/boot/wiki/For-Cursive-Users