pixie-lang / pixie

A small, fast, native lisp with "magical" powers
GNU General Public License v3.0
2.35k stars 124 forks source link

Error running generate-docs.pxi #526

Open jsgrahamus opened 7 years ago

jsgrahamus commented 7 years ago

Installed pixie today (20160113). Version is 1.0. Got the following error. Running an x64 system with ~ 4 GB RAM on Ubuntu 16.04.1 LTS.


steve@steve-Satellite-L555D:~/pixie$ pixie generate-docs.pxi

Error: in internal function load-file

in internal function load-reader

Running: (let [[namespace] program-arguments] (println ==============) (println (name namespace)) (println ==============) (load-ns (symbol namespace)) (println) (doseq [[k v] (ns-map (the-ns namespace))] (println (name k)) (println ====================================) (println) (if-let [m (meta (-deref v))] (do (if-let [doc (:doc m)] (println doc) (println No doc available :()) (println) (when-let (examples (:examples m)) (println Examples:) (doseq [[code _ result] examples] (println) (println code) (println) (when (not (nil? result)) (println => result))) (println)) (when-let (signatures (:signatures m)) (println Signatures:) (println) (doseq [sig signatures] (println (str - sig))) (println)) (when (and (:line-number m) (:file m)) (let [file (str pixie/ (last (string/split (:file m) /)))] (println (str http://github.com/pixie-lang/pixie/blob/master/ file #L (:line-number m)))) (println))) (println No meta data available :()) (println))) in generate-docs.pxi at 5:1 (let [[namespace] program-arguments] ^ in pixie function toplevel

in generate-docs.pxi at 8:12 (println (name namespace)) ^ in internal function name

in polymorphic function -name dispatching on pixie.stdlib.Nil

RuntimeException: :pixie.stdlib/AssertionException No override for pixie.stdlib.Nil on -name in protocol INamed

steve@steve-Satellite-L555D:~/pixie$

thomasmulvaney commented 7 years ago

The script should probably fail with a useful error when no arguments are passed. I believe this is the cause of the above error.

The usage is: pixie-vm generate-docs.pxi some.namespace

And an example:

$ pixie-vm generate-docs.pxi pixie.stdlib
jsgrahamus commented 7 years ago

Thanks so much. Pixie looks like a great language.

What are the plans for Pixie? Will development continue in the future?