{"action":"created","issue":{"url":"https://api.github.com/repos/thheller/shadow-cljs/issues/38","repository_url":"https://api.github.com/repos/thheller/shadow-cljs","labels_url":"https://api.github.com/repos/thheller/shadow-cljs/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/thheller/shadow-cljs/issues/38/comments","events_url":"https://api.github.com/repos/thheller/shadow-cljs/issues/38/events","html_url":"https://github.com/thheller/shadow-cljs/issues/38","id":233766233,"number":38,"title":"shadow-cljs.edn Does not work","user":{"login":"tjscollins","id":507777,"avatar_url":"https://avatars3.githubusercontent.com/u/507777?v=3","gravatar_id":"","url":"https://api.github.com/users/tjscollins","html_url":"https://github.com/tjscollins","followers_url":"https://api.github.com/users/tjscollins/followers","following_url":"https://api.github.com/users/tjscollins/following{/other_user}","gists_url":"https://api.github.com/users/tjscollins/gists{/gist_id}","starred_url":"https://api.github.com/users/tjscollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjscollins/subscriptions","organizations_url":"https://api.github.com/users/tjscollins/orgs","repos_url":"https://api.github.com/users/tjscollins/repos","events_url":"https://api.github.com/users/tjscollins/events{/privacy}","received_events_url":"https://api.github.com/users/tjscollins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-06T03:01:55Z","updated_at":"2017-06-06T05:44:15Z","closed_at":"2017-06-06T05:40:10Z","body":"Trying to run `$ shadow-cljs --once` fails if shadow-cljs.edn exists.  Even if using the default config from node_modules/shadow-cljs/bin/default-config.edn, the same error is produced:\r\n\r\n```\r\n$ shadow-cljs --once\r\nshadow-cljs - using package.json 1.0.20170601\r\nshadow-cljs - loading dependencies\r\nshadow-cljs - starting\r\nException in thread \"main\" clojure.lang.ExceptionInfo: invalid config {:clojure.spec.alpha/problems [{:path [], :pred clojure.core/vector?, :val {:source-paths [\"src\"], :dependencies [], :builds {}}, :via [:shadow.cljs.devtools.config/config], :in []}], :clojure.spec.alpha/spec :shadow.cljs.devtools.config/config, :clojure.spec.alpha/value {:source-paths [\"src\"], :dependencies [], :builds {}}}\r\n\tat clojure.core$ex_info.invokeStatic(core.clj:4725)\r\n\tat clojure.core$ex_info.invoke(core.clj:4725)\r\n\tat shadow.cljs.devtools.config$load_cljs_edn_BANG_.invokeStatic(config.clj:41)\r\n\tat shadow.cljs.devtools.config$load_cljs_edn_BANG_.invoke(config.clj:37)\r\n\tat shadow.cljs.devtools.config$get_build.invokeStatic(config.clj:47)\r\n\tat shadow.cljs.devtools.config$get_build.invoke(config.clj:45)\r\n\tat shadow.cljs.devtools.cli$load_npm_config.invokeStatic(cli.clj:69)\r\n\tat shadow.cljs.devtools.cli$load_npm_config.invoke(cli.clj:64)\r\n\tat shadow.cljs.devtools.cli$main.invokeStatic(cli.clj:124)\r\n\tat shadow.cljs.devtools.cli$main.doInvoke(cli.clj:100)\r\n\tat clojure.lang.RestFn.applyTo(RestFn.java:137)\r\n\tat clojure.lang.Var.applyTo(Var.java:702)\r\n\tat clojure.core$apply.invokeStatic(core.clj:657)\r\n\tat clojure.core$apply.invoke(core.clj:652)\r\n\tat shadow.cljs.cli$_main.invokeStatic(cli.clj:77)\r\n\tat shadow.cljs.cli$_main.doInvoke(cli.clj:34)\r\n\tat clojure.lang.RestFn.applyTo(RestFn.java:139)\r\n\tat shadow.cljs.cli.main(Unknown Source)\r\n```\r\n\r\nThe spec seems to be expecting a vector and not a map from shadow-cljs.edn.  I'm assuming this is not the intended behavior."},"comment":{"url":"https://api.github.com/repos/thheller/shadow-cljs/issues/comments/306387881","html_url":"https://github.com/thheller/shadow-cljs/issues/38#issuecomment-306387881","issue_url":"https://api.github.com/repos/thheller/shadow-cljs/issues/38","id":306387881,"user":{"login":"jiyinyiyong","id":449224,"avatar_url":"https://avatars3.githubusercontent.com/u/449224?v=3","gravatar_id":"","url":"https://api.github.com/users/jiyinyiyong","html_url":"https://github.com/jiyinyiyong","followers_url":"https://api.github.com/users/jiyinyiyong/followers","following_url":"https://api.github.com/users/jiyinyiyong/following{/other_user}","gists_url":"https://api.github.com/users/jiyinyiyong/gists{/gist_id}","starred_url":"https://api.github.com/users/jiyinyiyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiyinyiyong/subscriptions","organizations_url":"https://api.github.com/users/jiyinyiyong/orgs","repos_url":"https://api.github.com/users/jiyinyiyong/repos","events_url":"https://api.github.com/users/jiyinyiyong/events{/privacy}","received_events_url":"https://api.github.com/users/jiyinyiyong/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T05:44:15Z","updated_at":"2017-06-06T05:44:15Z","body":"I always feel confused when clojure.spec throws error messages at me. 😆 "}}
{"actor":{"display_login":"jiyinyiyong"}}