-
Notifications
You must be signed in to change notification settings - Fork 51
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
No method in method in multimethod 'init-key' for dispatch value: #102
Comments
What does your |
The namespace looks like: (ns redblack-duct.main
(:gen-class)
(:require [duct.core :as duct]))
(duct/load-hierarchy)
(defn -main [& args]
(let [keys (or (duct/parse-keys args) [:duct/daemon])
profiles [:duct.profile/prod]]
(-> (duct/resource "redblack_duct/config.edn")
(duct/read-config)
(duct/exec-config profiles keys)))) |
That seems fine - it loads in |
Dependencies look up to date |
Are you building an uberjar? If so, have you correctly merged the |
Hmm I'm not sure. It's in resources but I'm sure if it's being included. Do you know how I could check? |
If you haven't explicitly written code to account for it, that's probably your issue. When you're combining resources into an uberjar, you need to be careful about resources that share the same path. In the Leiningen plugin, I've added some middleware to merge the |
I think I figured out how to include the duct_hierarchy.edn file but now I'm getting a stranger runtime exception
|
With |
I just had a quick look at Boot. It has a |
That gives me
and without into-merger
|
You probably need to require the namespace for |
Hmm I can't find what package it's in.. |
It's in the |
Oh sweet I didn't know that! Thanks! |
Hi! I'm trying to convert the template project to boot but when I try to build a jar of the main class I get this error on runtime
I did comment out the db stuff from the config.edn temporarily like so
The text was updated successfully, but these errors were encountered: