tools.analyzer

tools.analyzer(.jvm) throws "Wrong number of args" exception for (= x y)

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

With the latest tools.analyzer(.jvm) and Eastwood as of Dec 30 2013 10:45PM PST, a simple namespace like the following throws an exception when attempting to analyze it:

(ns eastwood.test.testcases.f10)

(defn foo [x y]
  (= x y))

Here are some details from the exception thrown:

Exception thrown during phase :analyze of linting namespace eastwood.test.testcases.f10
Got exception with extra ex-data:
    msg='Wrong number of args to ., had: 4'
    (keys dat)=(:file :line :column :form)
    (:form dat)=
(.
 clojure.lang.Util
 clojure.core/equiv
 ^{:line 4, :column 6, :end-line 4, :end-column 7} x
 ^{:line 4, :column 8, :end-line 4, :end-column 9} y)
ExceptionInfo Wrong number of args to ., had: 4
        clojure.core/ex-info (core.clj:4327)
        clojure.tools.analyzer/eval1729/fn--1731 (analyzer.clj:690)
        clojure.lang.MultiFn.invoke (MultiFn.java:231)
        clojure.tools.analyzer.jvm/eval3179/fn--3180 (jvm.clj:51)
        clojure.lang.MultiFn.invoke (MultiFn.java:231)
        clojure.tools.analyzer/eval1570/fn--1571 (analyzer.clj:227)
        clojure.lang.MultiFn.invoke (MultiFn.java:236)
[ ... rest of stack trace deleted ... ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: