This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-01
Channels
- # 100-days-of-code (2)
- # beginners (83)
- # calva (3)
- # cider (98)
- # clara (3)
- # clj-kondo (2)
- # clojure (84)
- # clojure-dev (59)
- # clojure-europe (11)
- # clojure-italy (22)
- # clojure-madison (4)
- # clojure-nl (3)
- # clojure-spec (24)
- # clojure-uk (80)
- # clojurescript (33)
- # clr (3)
- # datomic (59)
- # events (2)
- # fulcro (20)
- # interop (35)
- # jobs (6)
- # jobs-rus (1)
- # joker (3)
- # kaocha (2)
- # luminus (3)
- # off-topic (16)
- # other-languages (2)
- # pathom (17)
- # planck (2)
- # reagent (1)
- # shadow-cljs (1)
- # test-check (1)
- # tools-deps (49)
- # vim (16)
I'm getting some errors like this {:clojure.spec.alpha/problems ({:path [:app :com.wsscode.pathom.connect/plan], :pred clojure.core/vector?, :val :my-app/some-key-from-query...
Is it a know issue?
not known, but I guess it may happen as part of a change I did recently, are you on the latest?
but could also be a legit detection, can you tell me more about this case?
(let [register [(pc/resolver `foo
{::pc/output [::foo]}
(fn [env _]
(s/explain (s/keys) env)
{::foo 33}))]
plugins [(pc/connect-plugin {::pc/register register})]
parser (p/parallel-parser {::p/plugins plugins})]
(async/<!! (parser {::p/reader [p/map-reader pc/parallel-reader]}
[::foo])))
In "real world" it occours when my-function
is instrumented
(fn [env _]
{::foo (http/my-function env ..)}
that seems a bug in the specs, let me debug that here, should be simple to fix
yeah, I think I get it, the problem I'm using ::pc/plan
improperly... the ::pc/plan
is supposed to be a collection of paths to follow, in this case I'm using ::pc/plan
as a single path (instead of a collection)
I'll see if its easy to replace the usage to ::pc/plan-path
, which is the correct name for it
I started to run things instrumented only recently, thanks for pointing the bad spec
please let me know if you find any other issues with [2.2.17]
already running 2.2.17 in homolog
env 😅
also removed some random (dissoc ::pc/plan)
from code
hey, I just opened a ticket for a potential improvement for Pathom: https://github.com/wilkerlucio/pathom/issues/98 any1 interested?
https://medium.com/@den.isidoro/writing-multi-module-monolithic-apps-with-graph-apis-1c095cdaccdf
[com.wsscode/pathom "2.2.17"]
is out!
Library Changes:
- Looser spec on ::pc/transform
- Use contains?
instead of find
in map reader to support wider range of custom maps
- BREAKING: Fixed specs, when processing a plan path, use ::pc/plan-path
instead of ::pc/plan
in the env, which is the correct name
that breaking, you are only affected if you happen to use ::pc/plan
from the env for any custom extension