pixie-lang/dust

Error on invoking (use 'hiccup.core)

jsgrahamus opened this issue · 3 comments

Run on an x64 system with ~ 4GB RAM running Ubuntu 16.04.1 LTS

steve@steve-Satellite-L555D:$ pixie-vm --version
Pixie 0.1
steve@steve-Satellite-L555D:
$ which pixie-vm
/usr/local/bin/pixie-vm
steve@steve-Satellite-L555D:$ echo $PATH
/home/steve/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/unicon/bin
steve@steve-Satellite-L555D:
$ git clone git://github.com/pixie-lang/dust
Cloning into 'dust'...
remote: Counting objects: 360, done.
remote: Total 360 (delta 0), reused 0 (delta 0), pack-reused 360
Receiving objects: 100% (360/360), 53.03 KiB | 0 bytes/s, done.
Resolving deltas: 100% (153/153), done.
Checking connectivity... done.
steve@steve-Satellite-L555D:$ sudo ln -s /home/steve/dust/dust /usr/bin/dust
steve@steve-Satellite-L555D:
$ cd dust
steve@steve-Satellite-L555D:/dust$ vi project.edn
steve@steve-Satellite-L555D:
/dust$ dust get-deps
Downloading heyLu/hiccup.pxi
steve@steve-Satellite-L555D:~/dust$ dust repl
user => (use 'hiccup.core)
ERROR:
in pixie function repl_fn

in pixie/repl.pxi at 27:24
(let [x (eval form)]
^
in internal function eval

in internal function load-ns

in internal function load-file

in internal function load-reader

Running: (def h escape-html)
in deps/heyLu/hiccup.pxi/src/hiccup/core.pxi at 16:1
(def ^{:doc "Alias for hiccup.util/escape-html"}
^
in pixie function toplevel

in deps/heyLu/hiccup.pxi/src/hiccup/core.pxi at 17:5
h escape-html)
^
RuntimeException: :pixie.stdlib/AssertionException Var escape-html is undefined

user =>

A while back ns forms were made to be more like Clojure, that is a keyword is valid and a symbol is not. You may need go through the namespaces and change (ns hiccup.namespace (use ...)) to (ns hiccup.namespace (:user ...)) ditto require and other import forms. I suspect that is why hiccup.core isn't pulling in hiccup.util.

Hope that helps!

A PR would of course be great to make ns related syntax issues throw errors.

Thanks. What's a PR?

pull request