oakes / play-clj

A Clojure game library
The Unlicense
939 stars 73 forks source link

-main does not work in repl #110

Open sound2gd opened 7 years ago

sound2gd commented 7 years ago

leiningen version: 2.7.1 cider-nrepl: 0.15 jdk version: 8

I've created a project over lein new play-clj demo,and when using lein repl and switch to ns demo.core.desktop-launcher, nothing happens and returns nil.

sound2gd commented 7 years ago

here is my leining profile:

{:user {:plugins [[cider/cider-nrepl "0.15.0-SNAPSHOT" ]]}}

if I remove cider-nrepl,then I can have my game running, I am a emacs user, nothing could be done with clojure if cider can not be used :(

please give me some advice

oakes commented 7 years ago

Is there anything you need to do to make sure that namespace is AOT compiled? That's the only thing I can think of, as I am not a Cider user.