Fork me on GitHub
#pathom
<
2022-10-22
>
nivekuil11:10:44

I'm trying the foreign dynamic resolver out again with the latest fixes, but I think there's a new problem: the new attribute-error-resolver is getting registered multiple times

nivekuil11:10:07

ugly stacktrace:

{:com.wsscode.pathom3.error/error-message "Assert failed: Tried to register duplicated resolver: com.wsscode.pathom3.connect.runner/attribute-errors\n(nil? (com.wsscode.pathom3.connect.indexes/resolver indexes op-name))", :com.wsscode.pathom3.error/error-data nil, :com.wsscode.pathom3.error/error-stack "com$wsscode$pathom3$connect$indexes$register_resolver@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.indexes.js:186:8\ncom.wsscode.pathom3.connect.indexes.register.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.indexes.js:330:44\ncom$wsscode$pathom3$connect$runner$setup_root_env@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.runner.js:2182:53\ncom$wsscode$pathom3$connect$runner$run_graph_with_plugins/<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.runner.js:2222:274\ncom.wsscode.pathom3.plugin.run_with_plugins.cljs$core$IFn$_invoke$arity$6@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.plugin.js:310:119\ncom$wsscode$pathom3$connect$runner$run_graph_with_plugins@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.runner.js:2221:52\ncom$wsscode$pathom3$connect$runner$async$run_graph_BANG_/</</<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.runner.async.js:942:70\npromesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2/<@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:58:98\npromise callback*promesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:57:15\npromesa.protocols._bind.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:75:10\npromesa$protocols$_bind@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:60:32\ncom$wsscode$pathom3$connect$runner$async$run_graph_BANG_/</<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.runner.async.js:941:26\npromesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2/<@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:58:98\npromise callback*promesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:57:15\npromesa.protocols._bind.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:75:10\npromesa$protocols$_bind@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:60:32\ncom$wsscode$pathom3$connect$runner$async$run_graph_BANG_/<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.runner.async.js:940:26\npromesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2/<@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:58:98\npromise callback*promesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:57:15\npromesa.protocols._bind.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:75:10\npromesa$protocols$_bind@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:60:32\ncom$wsscode$pathom3$connect$runner$async$run_graph_BANG_@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.connect.runner.async.js:939:26\ncom$wsscode$pathom3$interface$async$eql$process_ast_STAR_/</<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.interface.async.eql.js:5:379\npromesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2/<@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:58:98\npromise callback*promesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:57:15\npromesa.protocols._bind.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:75:10\npromesa$protocols$_bind@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:60:32\ncom$wsscode$pathom3$interface$async$eql$process_ast_STAR_/<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.interface.async.eql.js:4:26\npromesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2/<@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:58:98\npromise callback*promesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:57:15\npromesa.protocols._bind.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:75:10\npromesa$protocols$_bind@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:60:32\ncom$wsscode$pathom3$interface$async$eql$process_ast_STAR_@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.interface.async.eql.js:3:26\ncom.wsscode.pathom3.plugin.run_with_plugins.cljs$core$IFn$_invoke$arity$5@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.plugin.js:305:116\ncom$wsscode$pathom3$interface$async$eql$process_ast/</</<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.interface.async.eql.js:19:79\npromesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2/<@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:58:98\npromise callback*promesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:57:15\npromesa.protocols._bind.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:75:10\npromesa$protocols$_bind@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:60:32\ncom$wsscode$pathom3$interface$async$eql$process_ast/</<@http://192.168.1.159:1234/js/main/cljs-runtime/com.wsscode.pathom3.interface.async.eql.js:18:26\npromesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2/<@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:58:98\npromise callback*promesa$impl$extend_promise_BANG_/t.prototype.promesa$protocols$IPromise$_bind$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.impl.js:57:15\npromesa.protocols._bind.cljs$core$IFn$_invoke$arity$2@http://192.168.1.159:1234/js/main/cljs-runtime/promesa.protocols.js:75:10\n"}

wilkerlucio17:10:16

humm, makes sense, can you please open an issue? I have an idea what that might be about