Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error running generate-docs.pxi #526

Open
jsgrahamus opened this issue Jan 14, 2017 · 2 comments
Open

Error running generate-docs.pxi #526

jsgrahamus opened this issue Jan 14, 2017 · 2 comments

Comments

@jsgrahamus
Copy link

jsgrahamus commented Jan 14, 2017

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
Copy link
Member

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
Copy link
Author

Thanks so much. Pixie looks like a great language.

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants