Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error on invoking (use 'hiccup.core) #33

Open
jsgrahamus opened this issue Jan 18, 2017 · 3 comments
Open

Error on invoking (use 'hiccup.core) #33

jsgrahamus opened this issue Jan 18, 2017 · 3 comments

Comments

@jsgrahamus
Copy link

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 =>

@thomasmulvaney
Copy link
Member

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.

@jsgrahamus
Copy link
Author

Thanks. What's a PR?

@andrewchambers
Copy link

pull request

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

No branches or pull requests

3 participants