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

New project fails to start (lein 2.5.1) #12

Open
neverfox opened this issue Jun 29, 2015 · 9 comments
Open

New project fails to start (lein 2.5.1) #12

neverfox opened this issue Jun 29, 2015 · 9 comments
Assignees

Comments

@neverfox
Copy link

lein new aviary myaviary
cd myaviary
lein repl

#<CompilerException java.lang.RuntimeException: No such var: ana/forms-seq*, compiling:(clojurescript_build/core.clj:48:23)>
Exception in thread "main" java.lang.RuntimeException: No such var: myaviary.dev/start, compiling:(/private/var/folders/br/r1n2vzk15s187n2n6d62g9xr0000gn/T/form-init2708632908198130997.clj:1:5124)
    at clojure.lang.Compiler.analyze(Compiler.java:6464)
    at clojure.lang.Compiler.analyze(Compiler.java:6406)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3665)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6646)
    at clojure.lang.Compiler.analyze(Compiler.java:6445)
    at clojure.lang.Compiler.analyze(Compiler.java:6406)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5217)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3846)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6642)
    at clojure.lang.Compiler.analyze(Compiler.java:6445)
    at clojure.lang.Compiler.eval(Compiler.java:6700)
    at clojure.lang.Compiler.eval(Compiler.java:6693)
    at clojure.lang.Compiler.eval(Compiler.java:6692)
    at clojure.lang.Compiler.load(Compiler.java:7130)
    at clojure.lang.Compiler.loadFile(Compiler.java:7086)
    at clojure.main$load_script.invoke(main.clj:274)
    at clojure.main$init_opt.invoke(main.clj:279)
    at clojure.main$initialize.invoke(main.clj:307)
    at clojure.main$null_opt.invoke(main.clj:342)
    at clojure.main$main.doInvoke(main.clj:420)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: No such var: myaviary.dev/start
    at clojure.lang.Util.runtimeException(Util.java:221)
    at clojure.lang.Compiler.resolveIn(Compiler.java:6914)
    at clojure.lang.Compiler.resolve(Compiler.java:6884)
    at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6845)
    at clojure.lang.Compiler.analyze(Compiler.java:6427)
    ... 25 more
@wkf
Copy link
Owner

wkf commented Jun 29, 2015

That bug is the reason behind: #10

So, for now, you can change the versions in the project.clj file after creating the project:

[org.clojure/clojure "1.7.0-RC2"]
[org.clojure/clojurescript "0.0-3308"]

@wkf
Copy link
Owner

wkf commented Jun 29, 2015

I just pushed a fix, should be better in version 0.1.15.

@neverfox
Copy link
Author

That moved it along but it still errors out:

Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: do in this context, compiling:(/private/var/folders/br/r1n2vzk15s187n2n6d62g9xr0000gn/T/form-init9182511960730186691.clj:1:5124)
    at clojure.lang.Compiler.analyze(Compiler.java:6543)
    at clojure.lang.Compiler.analyze(Compiler.java:6485)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3791)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6725)
    at clojure.lang.Compiler.analyze(Compiler.java:6524)
    at clojure.lang.Compiler.analyze(Compiler.java:6485)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5861)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5296)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3925)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6721)
    at clojure.lang.Compiler.analyze(Compiler.java:6524)
    at clojure.lang.Compiler.eval(Compiler.java:6779)
    at clojure.lang.Compiler.eval(Compiler.java:6772)
    at clojure.lang.Compiler.eval(Compiler.java:6771)
    at clojure.lang.Compiler.load(Compiler.java:7227)
    at clojure.lang.Compiler.loadFile(Compiler.java:7165)
    at clojure.main$load_script.invoke(main.clj:275)
    at clojure.main$init_opt.invoke(main.clj:280)
    at clojure.main$initialize.invoke(main.clj:308)
    at clojure.main$null_opt.invoke(main.clj:343)
    at clojure.main$main.doInvoke(main.clj:421)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve symbol: do in this context
    at clojure.lang.Util.runtimeException(Util.java:221)
    at clojure.lang.Compiler.resolveIn(Compiler.java:7019)
    at clojure.lang.Compiler.resolve(Compiler.java:6963)
    at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6924)
    at clojure.lang.Compiler.analyze(Compiler.java:6506)
    ... 25 more

@wkf
Copy link
Owner

wkf commented Jun 29, 2015

Hmm, I just created a new project with aviary 0.1.15, and I'm having trouble reproducing. Would you mind giving me a walk through of how to reproduce? Thanks!

@wkf
Copy link
Owner

wkf commented Jun 29, 2015

Sorry, I see now that your post started with some instructions. Could you give me more information about your system?

@neverfox
Copy link
Author

It seems it's just not playing well with something in my profiles.clj. Trying to track it down.

@neverfox
Copy link
Author

Very odd. Merely including the [mvxcvi/whidbey "1.0.0"] lein pluging prevents aviary from starting, even though I cannot see any dependency conflicts.

@wkf
Copy link
Owner

wkf commented Jun 29, 2015

Hmmm, that's interesting. Maybe it's related to the way aviary reformats console output. I can try to take a look some time this week.

@wkf wkf assigned wkf and unassigned wkf Aug 2, 2015
@andygibraltar
Copy link

You get this error if the project is a clojure project rather than a clojurescript project. That is at least my experience. So if you create a project with "lein new mies " you do not get the error. But "lein new app " does.

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