lein-U repl: 스레드 "thread-2"의 이상

4964 단어 leiningen

묘사

추적:
$ lein -U repl
Performing task 'repl' with profile(s): 'update,dev,user,default'
Could not find artifact org.thnetos:cd-client:jar:0.3.6
Could not find artifact org.clojure:tools.nrepl:jar:0.2.1
Could not find artifact clojure-complete:clojure-complete:jar:0.2.2
This could be due to a typo in :dependencies or network issues.
Exception in thread "Thread-2" clojure.lang.ExceptionInfo: Could not resolve dependencies {:exit-code 1, :suppress-msg true}
    at clojure.core$ex_info.invoke(core.clj:4327)
    at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:166)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invoke(core.clj:621)
    at leiningen.core.classpath$resolve_dependencies.doInvoke(classpath.clj:215)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at leiningen.core.eval$prep.invoke(eval.clj:54)
    at leiningen.core.eval$eval_in_project.invoke(eval.clj:282)
    at leiningen.repl$start_server.invoke(repl.clj:104)
    at leiningen.repl$server$fn__6100.invoke(repl.clj:172)
    at clojure.lang.AFn.applyToHelper(AFn.java:159)
    at clojure.lang.AFn.applyTo(AFn.java:151)
    at clojure.core$apply.invoke(core.clj:617)
    at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1788)
    at clojure.lang.RestFn.invoke(RestFn.java:425)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invoke(core.clj:621)
    at clojure.core$bound_fn_STAR_$fn__4102.doInvoke(core.clj:1810)
    at clojure.lang.RestFn.invoke(RestFn.java:397)
    at clojure.lang.AFn.run(AFn.java:24)
    at java.lang.Thread.run(Thread.java:680)
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.thnetos:cd-client:jar:0.3.6, org.clojure:tools.nrepl:jar:0.2.1, clojure-complete:clojure-complete:jar:0.2.2: Could not find artifact org.thnetos:cd-client:jar:0.3.6
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
    at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
    at cemerick.pomegranate.aether$resolve_dependencies_STAR_.doInvoke(aether.clj:585)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:617)
    at cemerick.pomegranate.aether$resolve_dependencies.doInvoke(aether.clj:594)
    at clojure.lang.RestFn.invoke(RestFn.java:2088)
    at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:157)
    ... 22 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.thnetos:cd-client:jar:0.3.6, org.clojure:tools.nrepl:jar:0.2.1, clojure-complete:clojure-complete:jar:0.2.2: Could not find artifact org.thnetos:cd-client:jar:0.3.6
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
    ... 34 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.thnetos:cd-client:jar:0.3.6
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
    ... 36 more
(hangs)
시스템:
$ specs clojure brew os
Specs:

specs 0.3
https://github.com/mcandre/specs#readme

clj -e '(println "Clojure " (clojure-version))'
Clojure  1.4.0

lein --version
Leiningen 2.1.1 on Java 1.6.0_43 Java HotSpot(TM) 64-Bit Server VM

brew --version
0.9.4

system_profiler SPSoftwareDataType | grep 'System Version'
      System Version: OS X 10.8.3 (12D78)

토론 #1

repl 작업에서 개요 파일과 관련된 일련의 문제가 있습니다. @mtopolnik과 @technomancy는reorg repl 지점에서 아주 좋은 것들이 있습니다. 이것은 저에게 매우 유용합니다.
내가 마스터에서 겪은 오류는 java.lang.NoClassDefFoundError: clojure/main인데 의존항이 부족한 것은 아니지만, 이 문제는 covered by that reorg-repl branch as well일 것이다.

토론 #2

이것은 마스터에 고정된 것입니까?

토론 #셋

나는 마스터에서 어떤 오류도 보지 못했다. 나도 마스터가 2.1.3에서 잘 작동하는 것을 보았다.

좋은 웹페이지 즐겨찾기