#playground/play-with-dagger/dagger-inter...
1 messages ยท Page 1 of 1 (latest)
looks like a camel-casing issue
it has a loadCarIcarFromID field, but something is trying to query loadCarICarFromID.
wonder if this is fixed on main with all the DagQL changes
I tried to use dagger from main, same issue unfortunately ๐ฆ
โ error: parse selections: parse field "loadCarICarFromID": Query has no such field: "loadCarICarFromID"
The error is way more verbose tho
huh, I get this:
โฏ with-dev dagger call race
โ dagger call race [2.42s]
โ <nil>
โข Engine: 61eb86cf77e3 (version devel ())
โง 6.51s โ 96
OH
hmm
what binary version?
I'll try to prune everything, compile another dagger binary and retry
@midnight jacinth Idk what is your dagger binary version but I pull from main and tried directly from ./hack/dev, same issue
./hack/dev dagger -m /Users/tomchauveau/Documents/playground/play-with-dagger/dagger-interfaces/race call race
and the error still the same
How is it possible that it works for you ๐ฎ
hmmmmmmmmm maybe try deleting the container + volume?
docker rm -f dagger-engine.dev; docker volume rm dagger-engine.dev is my routine these days
Already did but I'll try one more time
worth noting docker rm -fv never removes the volume for me
always have to do a separate docker volume rm
I do it from the docker desktop haha
I'll record a video of the repro
Oups video too big to be uploaded...
Same issue tho
I'm sooo confused
I also removed the images
โ dagger git:(main) git pull
Already up to date.
โ dagger git:(main) docker volume ls
DRIVER VOLUME NAME
โ dagger git:(main) docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
โ dagger git:(main) docker images ls
REPOSITORY TAG IMAGE ID CREATED SIZE
oh wait it happens to me now
nah im guessing my dev image was out of date somehow
But your dev image was working haha
/opt/homebrew/bin/dagger version
dagger v0.9.6 (registry.dagger.io/engine) darwin/arm64
โ race git:(main) โ /opt/homebrew/bin/dagger call race
โ dagger call race ERROR [1.05s]
โ Error: response from query: input:1: race.race failed to get function output directory: process "/runtime" did not com
โ plete successfully: exit code: 2
โ race ERROR [1.05s]
โ exec /runtime ERROR [1.04s]
โ input:1: car.withCar failed to get function output directory: process "/runtime" did not complete successfully: exit c
โ e: 2
โ withCar(car: "moddata:sha256:bacac5f6a8f7da4de335667c3447ba0ceb3ecc4b15365e7486bb7eeae7e9721f:Audi:eyJDb2xvciI6InJlZCIsIk1vZGVsIjoiQTQiLCJTcGVlZCI6MTAwfQ==") ERROR [0.33s]
โ exec /runtime ERROR [0.32s]
โ json: error calling MarshalJSON for type main.ICar: input:1: Cannot query field "loadCarICarFromID" on type "Query". D
โ you mean "loadServiceFromID", "loadCarIcarFromID", "loadCarFromID", "loadSecretFromID", or "loadTypeDefFromID"?
โข Engine: d2ff46c9dbd3 (version v0.9.6)
0.9.6 broken too yeah
Error is sexier tho
wiping everything and trying again
yeah suggesting other fields like 'did you mean <x>' is a nice touch
ok still fails after a reset
Same for me
It's nice but the field asked is correct xD
Cannot query field "loadCarICarFromID" on type "Quer
โ . Did you mean "loadCarFromID", "loadServiceFromID", "loadCarIcarFromID"
^ loadCarICarFromID exists xD
the c is lowercase tho
loadCarICarFromID vs loadCarIcarFromID
Ok ๐
1 - I need new glasses
2 - Is it fixed on main? Since the error is different?
not fixed, we just have a new custom-built graphql server implementation so the errors coming out are different
(dagql)
Make sense
So something's broken on Go side right?
Because I see the tests are passing, and our Iface test are way more complex than my little example
So I don't really understand why it's breaking :/
it's probably just that none of the tests specifically cover this type of camel casing issue
If it's just a naming issue, I can change my example (I just want it to work so I can work on the TypeScript SDK)
Ok you were right
โ โ [0.36s] exec /runtime
โ โ A blue Bmw model M5 is driving at 120kmh..
โโโโโโโฏ CACHED exec /usr/local/bin/codegen --module . --propagate-logs=true --introspection-json-path /schema.json
โ CACHED exec go build -o /runtime .
โ [0.12s] exec /runtime
โ A red Audi model A4 is driving at 100kmh..
โป
โข Engine: 52abe9205d1a (version v0.9.6)
Issue comes from the case
Funny lol
nice