franks42 / clj-ns-browser

Smalltalk-like namespace/class/var/function browser for clojure docs and source-code based on seesaw
Eclipse Public License 1.0
175 stars 11 forks source link

NoSuchMethodError when trying to use #53

Open asampal opened 11 years ago

asampal commented 11 years ago

I used the browser successfully some time ago, but now when I try to run it, I get

C:\Users\adi> lein repl
Retrieving clj-ns-browser/clj-ns-browser/1.3.1/clj-ns-browser-1.3.1.pom from clojars
Retrieving org/clojure/clojure/1.5.0/clojure-1.5.0.pom from central
Retrieving seesaw/seesaw/1.4.3/seesaw-1.4.3.pom from clojars
Retrieving org/fife/ui/rsyntaxtextarea/2.0.4.1/rsyntaxtextarea-2.0.4.1.pom from clojars
Retrieving clj-info/clj-info/0.3.1/clj-info-0.3.1.pom from clojars
Retrieving org/clojure/clojure/1.5.0/clojure-1.5.0.jar from central
Retrieving clj-ns-browser/clj-ns-browser/1.3.1/clj-ns-browser-1.3.1.jar from clojars
Retrieving org/fife/ui/rsyntaxtextarea/2.0.4.1/rsyntaxtextarea-2.0.4.1.jar from clojars
RetrievingRetrieving  seesaw/seesaw/1.4.3/seesaw-1.4.3.jarclj-info/clj-info/0.3.1/clj-info-0.3.1.jar  fromfrom  clojarsclojars

nREPL server started on port 31539
REPL-y 0.1.9
Clojure 1.4.0
    Exit: Control+D or (exit) or (quit)
Commands: (user/help)
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
          (user/sourcery function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
Examples from clojuredocs.org: [clojuredocs or cdoc]
          (user/clojuredocs name-here)
          (user/clojuredocs "ns-here" "name-here")
user=> (use 'clj-ns-browser.sdoc)
NoSuchMethodError clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;  clj-ns-browser.sdoc/loading--4920--auto-- (sdoc.clj:9)

This is with lein 2.0.0 under Windows 7, with the browser added to my profiles.clj. Any advice?

jafingerhut commented 11 years ago

Parts of clj-ns-browser are AOT compiler (Ahead Of TIme) in the released jar file, and thus depend upon particular versions of Clojure.

clj-ns-browser 1.3.1 requires Clojure 1.5.0 or later, and will give the error you show when attempting to use it with earlier versions of Clojure.

If you want to continue using Clojure 1.4.0, clj-ns-browser 1.3.0 should still work with it.

Andy 

On Mar 20, 2013, at 10:26 AM, asampal notifications@github.com wrote:

I used the browser successfully some time ago, but now when I try to run it, I get C:\Users\adi> lein repl Retrieving clj-ns-browser/clj-ns-browser/1.3.1/clj-ns-browser-1.3.1.pom from clojars Retrieving org/clojure/clojure/1.5.0/clojure-1.5.0.pom from central Retrieving seesaw/seesaw/1.4.3/seesaw-1.4.3.pom from clojars Retrieving org/fife/ui/rsyntaxtextarea/2.0.4.1/rsyntaxtextarea-2.0.4.1.pom from clojars Retrieving clj-info/clj-info/0.3.1/clj-info-0.3.1.pom from clojars Retrieving org/clojure/clojure/1.5.0/clojure-1.5.0.jar from central Retrieving clj-ns-browser/clj-ns-browser/1.3.1/clj-ns-browser-1.3.1.jar from clojars Retrieving org/fife/ui/rsyntaxtextarea/2.0.4.1/rsyntaxtextarea-2.0.4.1.jar from clojars RetrievingRetrieving seesaw/seesaw/1.4.3/seesaw-1.4.3.jarclj-info/clj-info/0.3.1/clj-info-0.3.1.jar fromfrom clojarsclojars nREPL server started on port 31539 REPL-y 0.1.9 Clojure 1.4.0 Exit: Control+D or (exit) or (quit) Commands: (user/help) Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source function-name-here) (user/sourcery function-name-here) Javadoc: (javadoc java-object-or-class-here) Examples from clojuredocs.org: [clojuredocs or cdoc](user/clojuredocs name-here) (user/clojuredocs "ns-here" "name-here") user=> (use 'clj-ns-browser.sdoc) NoSuchMethodError clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap; clj-ns-browser.sdoc/loading--4920--auto-- (sdoc.clj:9)

This is with lein 2.0.0 under Windows 7, with the browser added to my profiles.clj. Any advice?

— Reply to this email directly or view it on GitHub.