Questions tagged [generated-code]
231 questions
5
votes
3 answers
How to disable compiler warnings in only generated code without editing file(s)
I have some generated code that has a bunch of compiler warnings. I want to disable them in the generated file, but keep those warnings in the rest of the project so they can be fixed. I'm using Visual Studio 2019 Community Edition, with the…

computercarguy
- 2,173
- 1
- 13
- 27
5
votes
2 answers
How can I set a namespace without overwriting the service configuration name using SvcUtil.exe?
I'm using SvcUtil.exe to generate my WCF code, like this:
SvcUtil.exe http://www.MyServer.com:8080/MyService/mex /out:"C:\test.cs" /mc
I can get it to work, but if I set add a /namespace argument(/namespace:*,MyNamespace), it overwrites the…

Mike Pateras
- 14,715
- 30
- 97
- 137
5
votes
3 answers
Is there a Java library which generates Java source code to create objects?
I'm looking for an API which generates me source code that would generate objects equal to the ones I passed to the library.
public static void main(String[] args) {
int[] arr = new int[3];
arr[0] = 3;
arr[1] = 4;
arr[2] = 5;
// looking…

Bertram Nudelbach
- 1,783
- 2
- 15
- 27
5
votes
1 answer
Generated SQL query not returning the same thing as the corresponding static query in sqlite3 HDBC
I am generating SQL queries in Haskell and submitting them to a SQLite(3) database using HDBC. Now, this function returns a query:
import Database.HDBC.Sqlite3
import Database.HDBC
data UmeQuery = UmeQuery String [SqlValue] deriving…

Fredrik Karlsson
- 485
- 8
- 21
5
votes
2 answers
Generating custom methods in Eclipse
I want to generate custom methods in Eclipse like the way we can generate toString, getters and settlers (right click -> source ->). Could anyone tell me what is involved in doing this?
Thanks,
Dutch

Dutch
- 93
- 1
- 2
- 6
5
votes
2 answers
Tycho Compiler not picking up generated source code
I am fairly new to the world of maven and tycho, so hopefully this is just something obvious that I am missing. I am trying to build a plugin using tycho but I am unable to get the tycho-compiler-plugin to recognise source code that is generated as…

greg1
- 53
- 3
5
votes
3 answers
Ruby On Rails: Create Models View And Controller from existing database
Is it possible to create controllers, models and view from the existing database?
I could not find the command over googling.
Here i am talking about Reverse Engineering

Neeraj
- 8,625
- 18
- 60
- 89
4
votes
3 answers
Generate a C# object based on an xml file?
This may be way out in left field, crazy, but I just need to ask before I go on implementing this massive set of classes.
Basically, I'm writing a binary message parser that decodes a certain military message format into an object. The problem is…

ConditionRacer
- 4,418
- 6
- 45
- 67
4
votes
2 answers
Altering the timeout setting of an Axis 1.4 generated SOAP Java client
I have a problem with changing the standard options used by an Axis 1.4 generated web service client code.
We consume a certain web service of a partner who is using the old RPC/Encoded style, which basically means we're not able to go for Axis 2…

Jens
- 41
- 1
- 1
- 3
4
votes
1 answer
Open API Maven Plugin - Generate only specifc API model classes
I am working on generation of model classes by Open API Maven plugin which I need to use in my business logic. The api is generated by other team and given to us. It has lot of model classes specification but I need only generation of 3 model…

Manushi
- 597
- 1
- 7
- 26
4
votes
2 answers
Convert list of positions [4, 1, 2] of arbitrary length to an index for a nested list
Assuming this list
nestedList = ["a", "b", [1, 2, 3], "c",[4, 5, 6, [100, 200, 300]], "d"]
I have a function that returns a position list for a nested list of arbitrary depth.
Examples:
[2, 1] -> "2"
[5] -> "d"
[4, 3, 2] -> "300"
As you can see it…

nilshi
- 504
- 1
- 6
- 16
4
votes
1 answer
How can I in ant wait until a file is usable?
I'm trying to fix a build file where a part of it runs a bash script to generate a file. This file generation takes under a second and wasn't a problem until we moved to eclipse.
The issue is that if I save any file in eclipse with a change and then…

Ólafur Waage
- 68,817
- 22
- 142
- 198
4
votes
1 answer
How to use Dagger in Java library module in Android Studio?
I'm using Dagger in a Java library module in an Android Studio project and here's what my build.gradle for the module looks like:
apply plugin: 'java-library'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
…

Harry
- 1,151
- 11
- 27
4
votes
0 answers
How to disable warnings in generated code in Java gradle project
I would like to have a gradle project that generates no compiler warnings on any code that I write. I would also like to use the Immutables library to generate some of my classes. At the moment I have no found a way to disable warnings for generated…

simonsays
- 408
- 4
- 12
4
votes
1 answer
How to run go generate only for changed templates?
We use some code templates in our repo, and we rely on go:generate to generate all the needed codes from these templates.
Because there are several templates and from each template we generate several actual codes, consistency of generated codes has…

sazary
- 906
- 1
- 9
- 20