#playground/play-with-dagger/dagger-inter...

1 messages ยท Page 1 of 1 (latest)

midnight jacinth
#

looks like a camel-casing issue thinkspin it has a loadCarIcarFromID field, but something is trying to query loadCarICarFromID.

#

wonder if this is fixed on main with all the DagQL changes

tardy birch
#

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

midnight jacinth
#

huh, I get this:

โฏ with-dev dagger call race
โœ” dagger call race [2.42s]
โ”ƒ <nil>
โ€ข Engine: 61eb86cf77e3 (version devel ())
โง— 6.51s โœ” 96
tardy birch
#

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 ๐Ÿ˜ฎ

midnight jacinth
#

hmmmmmmmmm maybe try deleting the container + volume?

#

docker rm -f dagger-engine.dev; docker volume rm dagger-engine.dev is my routine these days

tardy birch
#

Already did but I'll try one more time

midnight jacinth
#

worth noting docker rm -fv never removes the volume for me

#

always have to do a separate docker volume rm

tardy birch
#

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
midnight jacinth
#

oh wait it happens to me now

tardy birch
#

Hm

#

Weird

#

So it worked and now it doesn't?

#

Did we break something on main?

midnight jacinth
#

nah im guessing my dev image was out of date somehow

tardy birch
#

But your dev image was working haha

midnight jacinth
#

...true lol

#

forgot it was broken on main/v0.9.6 before

tardy birch
#
/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

midnight jacinth
#

wiping everything and trying again

#

yeah suggesting other fields like 'did you mean <x>' is a nice touch

#

ok still fails after a reset

tardy birch
#

Same for me

tardy birch
#
Cannot query field "loadCarICarFromID" on type "Quer
โ”ƒ . Did you mean "loadCarFromID", "loadServiceFromID", "loadCarIcarFromID"

^ loadCarICarFromID exists xD

midnight jacinth
#

the c is lowercase tho

tardy birch
#

Only

#

Holy*

midnight jacinth
#

loadCarICarFromID vs loadCarIcarFromID

tardy birch
#

Ok ๐Ÿš€
1 - I need new glasses
2 - Is it fixed on main? Since the error is different?

midnight jacinth
#

not fixed, we just have a new custom-built graphql server implementation so the errors coming out are different

#

(dagql)

tardy birch
#

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 :/

midnight jacinth
#

it's probably just that none of the tests specifically cover this type of camel casing issue

tardy birch
#

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)

midnight jacinth
#

yeah that's worth a shot

#

i'm looking into the issue now

tardy birch
#

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

midnight jacinth
#

nice