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

161 questions
0
votes
1 answer

Generator of C code for Bluez

I'm about to develop my program bluetooth in C on ARM platform, which is supposed to be able to exchange information with bluez via dbus interface. I have succeeded in cross-compiling the Bluez, but the part of "client" in C is always a big work…
0
votes
1 answer

sympy codegen: force uniform signature

I am creating a series of parametric sympy functions dependent on x,y variables. Some of the functions turn out to be only dependent on some of the variables. therefore, when I call 'codegen', the interface of the created functions varies (sometimes…
zuuz
  • 799
  • 1
  • 9
  • 22
0
votes
0 answers

Slick custom codegen output empty?

I have previously used the codegen for slick like this: scala.slick.codegen.SourceCodeGenerator.main( Array("com.typesafe.slick.driver.ms.SQLServerDriver", "net.sourceforge.jtds.jdbc.Driver", …
user568109
  • 43,824
  • 15
  • 87
  • 118
0
votes
1 answer

Swagger Codegen does not generate generic List

In my api model I have: @JsonProperty("repriceItems") private List items; swagger (I think correct): "repriceItems": { "items": { "type": "RepriceItem" }, "required": false, "type": "List" } But when I run swagger codegen for Java or…
komo
  • 209
  • 3
  • 10
0
votes
1 answer

Getting two parameters from c function in matlab

i had a code that c send back 1 number (mex) the matlab code was vMsg=unit32(Gateway_test_app(2)) now i added 1 more return value to Gateway_test_app(2) which is s STRING what i need to do to get the two values back i was thinking about something…
JohnnyF
  • 953
  • 2
  • 13
  • 30
0
votes
1 answer

java.lang.UnsatisfiedLinkError: Couldn't load echoprint-jni from loader dalvik.system.PathClassLoader

I am using Echoprint in my android project as explained here and it works ok. However, when I try to add the metaioSDK library to the project (just add it, not even use it), I can't run Echoprint anymore. I get: 07-17 14:20:34.194:…
KKO
  • 1,723
  • 3
  • 23
  • 34
0
votes
0 answers

How to eliminate duplicated classes generated from XSD imported schemes?

I need to generate csharp classes from a bunch of XSD files, the problem I'm coming across now is there're lots duplicated classes generated from the imported schemes, this is quite annoying. I tried wscf.blue, xsd2code, but cannot solve it. For…
Elaine
  • 1,210
  • 5
  • 17
  • 33
0
votes
1 answer

keep around a piece of context built during compile-time for later use in runtime?

I'm aware this might be a broad question (there's no specific code for you to look at), but I'm hoping I'd get some insights as to what to do, or how to approach the problem. To keep things simple, suppose the compiler that I'm writing performs…
One Two Three
  • 18,931
  • 22
  • 63
  • 100
0
votes
2 answers

Qcodo/Qcube gen model error "syntax error, unexpected ')' in"

I'm using a framework called Qcube. before it was known for the name Qcodo. It has this feature called codegen where it generated model for all of your database table including their relations if any. The problem is that its generated files have…
Ikoy
  • 82
  • 1
  • 7
0
votes
2 answers

One XSD, two code generation tools, two namespaces

I have a XSD file, from which I want to generate C# and Java classes as well. I first set the namespace in the XSD according to my C# namespace where my classes resides. The generation (with the Microsoft tools) works fine and also the serialisation…
DerApe
  • 2,881
  • 2
  • 31
  • 48
-1
votes
1 answer

From where takes swagger codegen maven plugin the naming for the ApiController etc?

I cant figure out from where the swagger codegen takes the naming for the RestApiController, RestApi Interface and RestApiDelegate. Rest is the generated Name, so it also could be something like StackoverFlowApiController. With the flag…
sickzz1
  • 9
  • 2
  • 6
1 2 3
10
11