User error?
Closed this issue · 1 comments
bherrmann7 commented
I'm just taking it for a spin, and
$ cd odoyle-rules
$ clj -M:dev
100
Query from inside rule: [{:x 20, :y 15}]
[{:x 20, :y 15}]
[{:x 20.1, :y 15}]
[{:x 800, :y 15}]
[{:id :odoyle.readme/player, :x 20, :y 15} {:id :odoyle.readme/enemy, :x 5, :y 5}]
[{:id 0, :x 34, :y 31} {:id 1, :x 46, :y 36} {:id 2, :x 11, :y 5} {:id 3, :x 28, :y 15} {:id 4, :x 28, :y 38}]
All characters: [{:id 0, :x 14, :y 0} {:id 1, :x 9, :y 47} {:id 2, :x 16, :y 4} {:id 3, :x 31, :y 6} {:id 4, :x 2, :y 32}]
All characters: [{:id 0, :x 21, :y 37} {:id 1, :x 45, :y 41} {:id 2, :x 49, :y 14} {:id 3, :x 40, :y 9} {:id 4, :x 14, :y 39}]
All characters: [{:id 1, :x 45, :y 41} {:id 2, :x 49, :y 14} {:id 3, :x 40, :y 9} {:id 4, :x 14, :y 39}]
All characters: [{:id 1, :x 45, :y 41} {:id 2, :x 49, :y 14} {:id 3, :x 40, :y 9} {:id 4, :x 14, :y 39}]
Error when checking attribute :odoyle.readme/width
-- Spec failed --------------------
0
should satisfy
pos?
-- Relevant specs -------
:odoyle.readme/width:
(clojure.spec.alpha/and clojure.core/number? clojure.core/pos?)
-------------------------
Detected 1 error
[{:id :odoyle.readme/player, :x 20.1, :y 15.1} {:id :odoyle.readme/enemy, :x 5.1, :y 5.1}]
2021-02-12 09:02:39.259:INFO::main: Logging initialized @3452ms to org.eclipse.jetty.util.log.StdErrLog
[Figwheel] Cleaning compiler output for build dev
[Figwheel] Deleting: dev-src/public/main.js
[Figwheel] Deleting: dev-src/public/main.out
[Figwheel] Compiling build dev to "dev-src/public/main.js"
[Figwheel] Successfully compiled build dev to "dev-src/public/main.js" in 6.36 seconds.
[Figwheel] Watching paths: ("dev-src") to compile build - dev
[Figwheel] Starting Server at http://localhost:9500
Opening URL http://localhost:9500
But when the browser opens, I get a blank page with:
Do I need to have something else installed?
$ $ cat /etc/issue.net
Ubuntu 20.04.2 LTS
$ java -version
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
$ clj
Clojure 1.10.2
user=>
oakes commented
Running clj -M:dev
just executes all the code from the README to make sure it all works -- that's all you're seeing. If you want to try it in a separate project, here's a small one you could try:
git clone https://gist.github.com/oakes/f2c19782f9b540de4eee09712472d825 glitch
cd glitch
clj -M glitch.clj
Also here's a bigger project you could run that uses o'doyle in a web app: https://github.com/oakes/odoyle-rum-todo