【问题标题】:Why i'm i not able start noir server in intelli idea ID..?为什么我无法在 intellij IDEA 中启动 noir 服务器 ..?
【发布时间】:2012-02-28 05:21:37
【问题描述】:

我对 clojure 完全陌生......这就是我所做的

 (use 'Yuhuru.server) // works fine, i mean gives nil

(def mysrv (noir.server/start 8080)) //now it gives 

Server@9bfee2 失败:java.net.SocketException:无法识别的 Windows 套接字错误:10106:创建 java.net.SocketException:无法识别 Windows 套接字错误:10106:创建 (NO_SOURCE_FILE:2)

但是使用命令行我可以启动服务器..我在 ID 中是否缺少任何设置..请说明一下..

提前致谢

【问题讨论】:

    标签: clojure intellij-idea leiningen


    【解决方案1】:

    听起来像这样:https://forums.oracle.com/forums/thread.jspa?messageID=9457989

    去这里:http://plugins.intellij.net/plugin/?idea&id=4050;在 2010-06-08 20:39:35 向下滚动到 cmets,这听起来像是 LaClojure 的问题(我假设您正在使用它......)

    【讨论】:

      【解决方案2】:

      IntelliJ REPL 无法在 Windows 下创建套接字的问题过去来自未传播到子 JVM REPL 进程的系统环境变量。没有这些 Windows 将无法创建套接字。

      要测试您的 IntelliJ 是否遇到此问题,请从 IntelliJ 中的 REPL 执行 (System/getenv),您会看到您得到一个空映射,而不是像使用 REPL 从命令行。

      这是各种版本的 IntelliJ/LaClojure 中反复出现的问题。它已在较早的 IntelliJ 10 / LaClojure 版本 (0.3.92) 中修复,但 IntelliJ 10 (0.3.102) broke it 的最后一次 LaClojure 更新。

      我验证它应该在当前 IntelliJ idea 11.0.2 #IC-111.277 和 LaClojure 0.4.30 组合中得到修复。如果您必须保留 IntelliJ 10,则将 LaClojure 降级到 0.3.92 应该也可以。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-01-20
        • 1970-01-01
        • 2015-10-21
        • 1970-01-01
        • 1970-01-01
        • 2022-12-22
        • 1970-01-01
        • 2021-08-10
        相关资源
        最近更新 更多