{"issue":{"user":{"id":434849,"login":"acgetchell","url":"https://api.github.com/users/acgetchell","avatar_url":"https://secure.gravatar.com/avatar/a846d79c80a35b233add8193bc5ef8d3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a846d79c80a35b233add8193bc5ef8d3"},"title":"Exception in thread \"main\" java.lang.RuntimeException:","milestone":null,"created_at":"2011-12-22T07:00:30Z","labels":[],"state":"open","updated_at":"2011-12-22T07:00:30Z","id":2634732,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/fogus/marginalia/issues/77","body":"I managed to produce uberdoc.html before, but now I'm getting java errors:\r\n\r\nHere are my files:\r\n\r\nproject.clj:\r\n\r\n(defproject Newton \"1.0.0-SNAPSHOT\"\r\n  :description \"Newtonian Approximation for Causal Dynamical Triangulations in Clojure\"\r\n  :url \"https://github.com/ucdavis/CDT\"\r\n  :dependencies [[org.clojure/clojure \"1.3.0\"]]\r\n  :marginalia {:javascript[\"mathjax/MathJax.js\"]}\r\n  :test-selectors {:default (fn [v] (not (:utilities v)))\r\n                   :utilities :utilities\r\n                   :all (fn [_] true)}\r\n  :dev-dependencies [[lein-ring \"0.4.5\"]\r\n                     [lein-marginalia \"0.6.1\"]\r\n                     [midje \"1.3.1\"]\r\n                     [lein-midje \"1.0.7\"]])\r\n\r\ncore.clj:\r\n\r\n(ns Newton.core)\r\n\r\nsimplex.clj:\r\n\r\n(ns Newton.simplex\r\n  (:use midje.sweet))\r\n\r\n;; # Load Optional Resources\r\n;; Use external Javascript and CSS in your documentation. For example:\r\n;; To format Latex math equations, download the\r\n;; [MathJax](http://www.mathjax.org/) Javascript library to the docs\r\n;; directory and then add\r\n;;\r\n;;     :marginalia {:javascript [\"mathjax/MathJax.js\"]}\r\n;;\r\n;; to project.clj.\r\n;;\r\n;; When \\\\(a \\ne 0\\\\), there are two solutions to \\\\(ax^2 + bx + c = 0\\\\) and they are\r\n;; $$x = {-b \\pm \\sqrt{b^2-4ac} \\over 2a}.$$\r\n\r\n;; A simplex is a d-dimensional triangle. It has d+1 points and\r\n;; $\\left(\\begin{array}{c}d+1\\\\2\\end{array}\\right)$ edges\r\n\r\nutilities.clj:\r\n\r\n(ns Newton.utilities\r\n;;  (:use [clojure.test])\r\n  (:use midje.sweet))\r\n\r\n;; To keep same name conventions as utilities.lisp\r\n;; In idiomatic clojure, this could be replaced by the anonymous function\r\n;; \\#(apply + %)\r\n(defn sum\r\n  \"Sums the elements of a list or vector\"\r\n  [list]\r\n    (apply + list))\r\n\r\n;; Usage/test of sum[...]\r\n(fact (sum '(1 2 3)) => 6)\r\n(fact (sum [1 2 3 4 5]) => 15)\r\n\r\nHere are my steps to reproduce the problem:\r\n\r\nPS C:\\Projects\\CDT\\Newton> lein jar\r\nNo namespaces to :aot compile listed in project.clj.\r\nCreated C:\\Projects\\CDT\\Newton/Newton-1.0.0-SNAPSHOT.jar\r\nPS C:\\Projects\\CDT\\Newton> lein midje\r\n>>> clojure.test summary:\r\nRan 1 tests containing 2 assertions.\r\n0 failures, 0 errors.\r\n>>> Midje summary:\r\nAll claimed facts (2) have been confirmed.\r\nPS C:\\Projects\\CDT\\Newton> lein marg\r\nGenerating uberdoc for the following source files:\r\n   C:\\Projects\\CDT\\Newton\\.\\src\\Newton\\core.clj\r\n   C:\\Projects\\CDT\\Newton\\.\\src\\Newton\\simplex.clj\r\n   C:\\Projects\\CDT\\Newton\\.\\src\\Newton\\utilities.clj\r\n\r\nException in thread \"main\" java.lang.RuntimeException: java.lang.RuntimeExceptio\r\nn: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.Integer c\r\nannot be cast to clojure.lang.Named (NO_SOURCE_FILE:0)\r\n        at clojure.lang.Compiler.eval(Compiler.java:5440)\r\n        at clojure.lang.Compiler.eval(Compiler.java:5391)\r\n        at clojure.core$eval.invoke(core.clj:2382)\r\n        at clojure.main$eval_opt.invoke(main.clj:235)\r\n        at clojure.main$initialize.invoke(main.clj:254)\r\n        at clojure.main$script_opt.invoke(main.clj:270)\r\n        at clojure.main$main.doInvoke(main.clj:354)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:458)\r\n        at clojure.lang.Var.invoke(Var.java:377)\r\n        at clojure.lang.AFn.applyToHelper(AFn.java:174)\r\n        at clojure.lang.Var.applyTo(Var.java:482)\r\n        at clojure.main.main(main.java:37)\r\nCaused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Run\r\ntimeException: java.lang.ClassCastException: java.lang.Integer cannot be cast to\r\n clojure.lang.Named\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:47)\r\n        at clojure.lang.LazySeq.seq(LazySeq.java:56)\r\n        at clojure.lang.Cons.next(Cons.java:39)\r\n        at clojure.lang.RT.boundedLength(RT.java:1186)\r\n        at clojure.lang.RestFn.applyTo(RestFn.java:131)\r\n        at clojure.core$apply.invoke(core.clj:540)\r\n        at hiccup.core$eval612$fn__613.invoke(core.clj:99)\r\n        at clojure.lang.MultiFn.invoke(MultiFn.java:163)\r\n        at clojure.lang.Var.invoke(Var.java:365)\r\n        at marginalia.html$toc_html.invoke(html.clj:178)\r\n        at marginalia.html$uberdoc_html.invoke(html.clj:390)\r\n        at marginalia.core$uberdoc_BANG_.invoke(core.clj:183)\r\n        at marginalia.core$run_marginalia.invoke(core.clj:235)\r\n        at leiningen.marg$marg.doInvoke(marg.clj:8)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:411)\r\n        at clojure.lang.Var.invoke(Var.java:365)\r\n        at clojure.lang.AFn.applyToHelper(AFn.java:163)\r\n        at clojure.lang.Var.applyTo(Var.java:482)\r\n        at clojure.core$apply.invoke(core.clj:542)\r\n        at leiningen.core$apply_task.invoke(core.clj:259)\r\n        at leiningen.core$_main.doInvoke(core.clj:325)\r\n        at clojure.lang.RestFn.invoke(RestFn.java:411)\r\n        at clojure.lang.AFn.applyToHelper(AFn.java:163)\r\n        at clojure.lang.RestFn.applyTo(RestFn.java:133)\r\n        at clojure.core$apply.invoke(core.clj:542)\r\n        at leiningen.core$_main.invoke(core.clj:328)\r\n        at user$eval42.invoke(NO_SOURCE_FILE:1)\r\n        at clojure.lang.Compiler.eval(Compiler.java:5424)\r\n        ... 11 more\r\nCaused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Cla\r\nssCastException: java.lang.Integer cannot be cast to clojure.lang.Named\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:47)\r\n        at clojure.lang.LazySeq.seq(LazySeq.java:56)\r\n        at clojure.lang.RT.seq(RT.java:450)\r\n        at clojure.core$seq.invoke(core.clj:122)\r\n        at clojure.core$map$fn__3695.invoke(core.clj:2088)\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:42)\r\n        ... 38 more\r\nCaused by: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.I\r\nnteger cannot be cast to clojure.lang.Named\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:47)\r\n        at clojure.lang.LazySeq.seq(LazySeq.java:56)\r\n        at clojure.lang.RT.seq(RT.java:450)\r\n        at clojure.core$seq.invoke(core.clj:122)\r\n        at clojure.core$map$fn__3695.invoke(core.clj:2088)\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:42)\r\n        ... 43 more\r\nCaused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to clo\r\njure.lang.Named\r\n        at clojure.core$name.invoke(core.clj:1245)\r\n        at marginalia.parser$fn__83.invoke(parser.clj:183)\r\n        at clojure.lang.MultiFn.invoke(MultiFn.java:171)\r\n        at marginalia.parser$dispatch_inner_form$fn__77.invoke(parser.clj:164)\r\n        at clojure.core$r.invoke(core.clj:799)\r\n        at marginalia.parser$dispatch_inner_form.invoke(parser.clj:162)\r\n        at marginalia.parser$fn__83.invoke(parser.clj:185)\r\n        at clojure.lang.MultiFn.invoke(MultiFn.java:171)\r\n        at marginalia.parser$dispatch_inner_form$fn__77.invoke(parser.clj:164)\r\n        at clojure.core$r.invoke(core.clj:799)\r\n        at marginalia.parser$dispatch_inner_form.invoke(parser.clj:162)\r\n        at marginalia.parser$fn__83.invoke(parser.clj:185)\r\n        at clojure.lang.MultiFn.invoke(MultiFn.java:171)\r\n        at marginalia.parser$dispatch_inner_form$fn__77.invoke(parser.clj:164)\r\n        at clojure.core$r.invoke(core.clj:799)\r\n        at marginalia.parser$dispatch_inner_form.invoke(parser.clj:162)\r\n        at marginalia.parser$fn__83.invoke(parser.clj:185)\r\n        at clojure.lang.MultiFn.invoke(MultiFn.java:171)\r\n        at marginalia.parser$extract_docstring.invoke(parser.clj:190)\r\n        at marginalia.parser$arrange_in_sections.invoke(parser.clj:237)\r\n        at marginalia.parser$parse.invoke(parser.clj:270)\r\n        at marginalia.parser$parse_file.invoke(parser.clj:276)\r\n        at marginalia.core$path_to_doc.invoke(core.clj:164)\r\n        at clojure.core$map$fn__3695.invoke(core.clj:2096)\r\n        at clojure.lang.LazySeq.sval(LazySeq.java:42)","number":77,"url":"https://api.github.com/repos/fogus/marginalia/issues/77","comments":0,"assignee":null},"action":"opened"}