clj-ns-browser icon indicating copy to clipboard operation
clj-ns-browser copied to clipboard

NoSuchMethodError when trying to use

Open asampal opened this issue 11 years ago • 1 comments

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?

asampal avatar Mar 20 '13 17:03 asampal

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 [email protected] 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.

jafingerhut avatar Mar 20 '13 20:03 jafingerhut