Questions tagged [codegen]

Use codegen for questions related to language features or tools which facilitate translating code between languages or creating code from metadata

References

242 questions
0
votes
0 answers

Multiple exports with the same name in graphql.ts file after runnig pnpm run codegen

stack using ractjs (typescript) Graphql Problem facing I am trying to generate graphql.ts file using codegen, but when I generate I get duplicate exports. here is my codegen config file. also i (GraphQL Codegen duplicates RegisterDocument with…
ananthu
  • 11
  • 2
0
votes
0 answers

With apollo, i want one component to do a mutation but i need another component to access that mutation's loader. How do this without lifting up state

currently I am doing something like this: Component A calls the delete mutation on click. const ComponentA = () => { const [ deleteAttribute, { loading: deleteAttributeLoading }, // this loading variable does indeed get set to true when…
Embedded_Mugs
  • 2,132
  • 3
  • 21
  • 33
0
votes
1 answer

jibx 1.2.3 modular schema to code generation - binding compilation causes Internal error - cannot modify class

I have a maven multi-module project having hierarchy: parent + ota-module + ota-common + ota-veh-avail-rate OTA2003B ( http://www.opentravel.org/Specifications/SchemaIndex.aspx?FolderName=2003B ) Schemas I am using: Common: …
Jignesh Gohel
  • 6,236
  • 6
  • 53
  • 89
0
votes
1 answer

getting C99CodePrinter to output float literals

I'm trying to get sympy to convert some formulas into code in a language almost identical to C. However this language needs float literals to have the 'f' at the end other wise it promotes it to a double. Even when sympy is provided a literal that…
p . clark
  • 21
  • 2
0
votes
1 answer

dbt docs does not detect column types in SQL Server?

Whenever I run dbt docs generate I am able to successfully generate the default dbt documentation. However, I expect dbt to automatically detect and fill out the column type: I this a problem of the dbt-sqlserver adapter I am using? Is one of the…
Thomas L.
  • 524
  • 1
  • 5
  • 17
0
votes
0 answers

gql codegen generate file within the same folder as in query/mutation file path

Using this guide https://the-guild.dev/graphql/codegen/docs/advanced/generated-files-colocation It works as intended for "operation-types" file, but how about the "types.ts" file itself, is it possible to generate separate type file depending for…
alucard
  • 83
  • 1
  • 2
  • 7
0
votes
0 answers

Axis2 Web service client Code Generation error when generating client code from WSDL

I have been attempting to set up Axis2 within Eclipse and have come across an error when trying to generate client code using the Web Service Client wizard in Eclipse by going to New -> Web Services -> Web Service Client. My current setup…
Vescoci
  • 35
  • 1
  • 1
  • 5
0
votes
0 answers

Problems when following Integrate TVM and NVDLA

I meet a problem while I am following the project from Github https://github.com/shivmgg/tvm about integrating NVDLA and TVM. I run it on centos7. I think whether someone who has used this project might help me with my questions. Hello everyone. I…
Owenz
  • 1
  • 1
0
votes
0 answers

graphqql codegen enums are not found when referenced in resolvers

My schema is defined: export default gql` enum MyCoolEnum { A B C } extend type Mutation { changeValue( valueToChange: MyCoolEnum! ): JSON } `; Which produces the following in the generatedSchema export enum…
Afs35mm
  • 549
  • 2
  • 8
  • 21
0
votes
0 answers

Typescript Codegen GraphQL Query Resource Type

Problem: Is there a way to tell codegen or typescript to remove ? optional chaining. post.attributes?.Title to post.attributes.Title since Title is defined in the getPosts query. Here's the code example. export type Post = { __typename?: 'Post'; …
v0rs4
  • 106
  • 5
0
votes
0 answers

Swagger Python async client, handling exceptions

I have Python REST client generated by Swagger codegen. How to send async requests and handle exceptions in non-blocking way? I came up to something like this but it does not differ from synchronous approach since thread.get() is blocking: thread =…
user3848246
  • 127
  • 1
  • 5
0
votes
0 answers

Call my graphql endpoint through another webapp

I have a backend application(let's call it App A) with a grahql endpoint. It's a NodeJs with Nest framework. The queries on the frontend are generated with codegen (https://the-guild.dev/graphql/codegen). Both frontend and backend are hosted…
Iosif Bujor
  • 89
  • 2
  • 9
0
votes
0 answers

Type and constant generation from a pattern in TypeScript

I have some extremely repetative code in TypeScript where I need to do essentially this dozens and dozens of times: const IdPIdChangedDecoder = D.struct({ newIdpId: UuidDecoder, }) export type IdPIdChangedPayload = D.TypeOf
Lee Hambley
  • 6,270
  • 5
  • 49
  • 81
0
votes
1 answer

Integrate proxy with playwright codegen from command line

I'm trying to access page, more specifically in this case Instagram, with paid and working static proxy with the following in the command line playwright codegen --proxy-server="host:port" --username="user" --password="pass"…
Andrea
  • 328
  • 1
  • 3
  • 14
0
votes
1 answer

SymPy: Replace all ints with floats in expression

Seems like SymPy makes it pretty easy to do the opposite - convert all floats to ints, but I'm curious how to do the reverse? The specific problem I'm running into is with the RustCodeGen spitting out expressions with mixed f64/int types, which…