简体   繁体   English

当前会话错误,使用CIDER在emacs中打开REPL

[英]current session error opening REPL in emacs with CIDER

I've been following a tutorial and hit an error where there wasn't one in the book. 我一直在关注一个教程,但发现书中没有一个错误。 I have reinstalled leinigen, updated java and reinstalled cider on emacs. 我已经重新安装了leinigen,更新了Java,并在emacs上重新安装了苹果酒。

But doesn't seem to help and I can't find this error message online. 但似乎无济于事,我也无法在线找到此错误消息。 Running Mx "cider-jack-in" to open a REPL gives me the error message: 运行Mx“ cider-jack-in”打开REPL会给我错误消息:

"Symbol's function definition is void: sesman-current-sessions" “符号的函数定义无效:sesman-current-sessions”

and I can't figure out what's causing this, any help is gratefully received. 而且我不知道是什么原因造成的,非常感谢您的帮助。

I ran into the same problem. 我遇到了同样的问题。 It's possible that you're using an old version of the sesman package. 您使用的是sesman软件包的旧版本。 Updating cider for me didn't update the sesman dependency. 对我而言,更新cider并没有更新sesman依赖性。

For example, sesman-20180903.1826 doesn't define sesman-current-sessions while sesman-20181109.1100 does. 例如, sesman-20180903.1826未定义sesman-current-sessionssesman-20181109.1100却定义了。 Updating sesman fixed the issue for me. 更新sesman为我解决了这个问题。

Can you post your project.clj file? 您可以发布project.clj文件吗? Maybe it contains old versions of libraries that are either conflicting with the newest CIDER. 也许它包含的旧版本库可能与最新的CIDER冲突。

A typical minimal project.clj from a fresh new project created with lein new app myapp will look like this: 使用lein new app myapp创建的新项目中的典型最小project.clj如下所示:

(defproject myapp "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
            :url "https://www.eclipse.org/legal/epl-2.0/"}
  :dependencies [[org.clojure/clojure "1.9.0"]]
  :main ^:skip-aot overflow.core
  :target-path "target/%s"
  :profiles {:uberjar {:aot :all}})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM