tailrecursion / boot

A Clojure build tool
Eclipse Public License 1.0
111 stars 18 forks source link

AssertionError: Configuration must be a map #5

Closed stevekrouse closed 10 years ago

stevekrouse commented 10 years ago

Trying to install boot from source, I the following error running ./boot after install with make boot.

Exception in thread "main" java.lang.AssertionError: Assert failed: boot.edn (Configuration must be a map) 
(map? p1__403#)
    at tailrecursion.boot.loader$read_config$asrt_m__405.invoke(loader.clj:43)
    at tailrecursion.boot.loader$read_config.invoke(loader.clj:44)
    at tailrecursion.boot.loader$_main.doInvoke(loader.clj:100)
    at clojure.lang.RestFn.invoke(RestFn.java:397)
    at clojure.lang.AFn.applyToHelper(AFn.java:159)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at tailrecursion.boot.loader.main(Unknown Source)`
micha commented 10 years ago

Do you have a boot.edn file in the current directory?

stevekrouse commented 10 years ago

I have boot/test/fixtures/boot.edn. Where should it be?

micha commented 10 years ago

Are you trying to build a Hoplon application? If so you can do lein new hoplon my-project to create a new project directory with a boot.edn file included with the latest versions of everything you need. The test/fixtures file is just something used during testing and not something you'd want to use.

stevekrouse commented 10 years ago

I'm trying to install boot from source and there is no .edn file in the main directory.

micha commented 10 years ago

It looks like you've achieved that already, if make boot succeeded and you moved ./boot to somewhere on your path then you've successfully built it from source and installed it.

micha commented 10 years ago

The boot.edn file is what you need to use boot to build a project.

stevekrouse commented 10 years ago

Ha! Now I get it! I have to run boot in a directory with a .edn file.

But in my defense, the error supplied for running boot in a directory without a .edn file is pretty cryptic. Something like "No .edn file found" would work. I thought something went wrong in the compile process or something having to due with maps (like it says in the error).

micha commented 10 years ago

You're right, the "must be a map" business is confusing :)

stevekrouse commented 10 years ago

Thanks so much!

micha commented 10 years ago

You're welcome, good luck!