technomancy / slamhound

Slamhound rips your namespace form apart and reconstructs it.
Other
473 stars 38 forks source link

Unable to generate ns clause: prefix cannot be nil #1

Closed dakrone closed 13 years ago

dakrone commented 13 years ago
(ns corpus.core
  (:use [opennlp.nlp :only [make-sentence-detector make-tokenizer
                            make-detokenizer]]
        [opennlp.tools.lazy :only [sentence-seq]]
        [clojure.java.io :only [file]]
        [clojure.contrib.seq :only [indexed]])
  (:require [clojure.string :as string]))
‹ ~/src/clj/corpus master› ∴ lein slamhound src/corpus/core.clj 
Exception in thread "main" java.lang.Exception: prefix cannot be nil (NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5440)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5391)
        at clojure.core$eval.invoke(core.clj:2382)
        at slam.hound.regrow$check_for_failure.invoke(regrow.clj:31)
        at slam.hound.regrow$regrow.invoke(regrow.clj:72)
        at slam.hound.regrow$regrow.invoke(regrow.clj:70)
        at slam.hound$reconstruct.invoke(hound.clj:10)
        at user$eval368.invoke(NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5424)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5415)
        at clojure.lang.Compiler.eval(Compiler.java:5391)
        at clojure.core$eval.invoke(core.clj:2382)
        at clojure.main$eval_opt.invoke(main.clj:235)
        at clojure.main$initialize.invoke(main.clj:254)
        at clojure.main$null_opt.invoke(main.clj:279)
        at clojure.main$main.doInvoke(main.clj:354)
        at clojure.lang.RestFn.invoke(RestFn.java:421)
        at clojure.lang.Var.invoke(Var.java:369)
        at clojure.lang.AFn.applyToHelper(AFn.java:163)
        at clojure.lang.Var.applyTo(Var.java:482)
        at clojure.main.main(main.java:37)
Caused by: java.lang.Exception: prefix cannot be nil
        at clojure.core$load_libs.doInvoke(core.clj:4802)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.core$apply.invoke(core.clj:544)
        at clojure.core$use.doInvoke(core.clj:4892)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at corpus.core$eval380$loading__4414__auto____381.invoke(NO_SOURCE_FILE:1)
        at corpus.core$eval380.invoke(NO_SOURCE_FILE:1)
        at clojure.lang.Compiler.eval(Compiler.java:5424)
        ... 22 more
lein slamhound src/corpus/core.clj  15.84s user 0.86s system 228% cpu 7.310 total

Project here: https://github.com/dakrone/corpus

technomancy commented 13 years ago

Also fixed in 1.1.0; thanks.