Questions tagged [generated-code]

231 questions
1
vote
0 answers

android room livedata list only returns one entry instead of more entries

I've got a very mysterious issue when I try to query through a handful of tables and extract a list of data out of it. What happens I have a query, which should return a set of data grouped by the date. In my case, I have query for a time range of…
FHellmann
  • 11
  • 2
1
vote
0 answers

MIDL: Proper syntax for outputting namespaces for user defined types / enums?

I took my .NET assembly, used OleView to generate the IDL file, now using midl /header MyAssembly.h MyAssembly.tlb to generate a header file for use in a really old COM project. Now, MyAssembly.dll references MyAssembly.Core.dll - so I created an…
John
  • 921
  • 1
  • 9
  • 24
1
vote
1 answer

Gradle generate soruce

I use Gradle 4.6 compile(...) annotationProcessor(...) java.gradle def generatedDir = new File(buildDir, "generated/source") apply plugin: "java" sourceSets { main.java.srcDirs = ["$generatedDir/main", "src/main/java"] main.resources.srcDir…
LeshaRB
  • 1,345
  • 2
  • 23
  • 44
1
vote
1 answer

IL emit with base class method invocation?

How do I modify this IL-emit-code to include calling a method in a base class in the getter and setter? Whatever I do I get InvalidProgramException. FieldBuilder fieldBuilder = tb.DefineField("_" + propertyName, propertyType,…
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
1
vote
2 answers

Spark cannot find case class on classpath

I have an issue where Spark is failing to generate code for a case class. Here is the spark error Caused by: org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 52, Column 43: Identifier expected instead of '.' Here is the…
Jon
  • 3,985
  • 7
  • 48
  • 80
1
vote
1 answer

Mounting Virtual Directory, or Running Code in Memory for python 3

I'm making a program that generates code randomly in batches, and given an input, tests to see if that code generates the desired output. I'm wanting to make the batches of generated code pretty large, say 10,000 randomly generated files per batch,…
A. L. Strine
  • 611
  • 1
  • 7
  • 23
1
vote
2 answers

Intellij Plugin to generate getter/setter, hashcode/equals, toString

Hi is there any plugin for IntelliJ, which can generate getter/setter, hashcode/equals, toString in one click?
nusmanov
  • 451
  • 4
  • 15
1
vote
0 answers

swagger generate class with NSCoding for swift 3

I am working with swagger and I just generated classes for swift 3. But while developing my application, when I wanted to save my Objects to UserDefaults my app crash, because of my classes are not extending NSCoding, I think. There is a command for…
Buisson
  • 479
  • 1
  • 6
  • 23
1
vote
3 answers

IDisposable Winform

What is the best practice for implementing IDisposable on a Winform? I have a dialog which extends System.Windows.Forms.Form The generated designer.cs already contains an implementation of the virtual Dispose(bool) method My form has a field added…
user38309
  • 2,268
  • 3
  • 21
  • 33
1
vote
0 answers

Combining 2 generated code from Simulink Coder

I have 2 Simulink models, one is a spring-mass-damper system and one is a PI controller with parameters: m = 1;c = 10;k = 50;Kp = 30;Ki = 70; reference = 0.2; After generating C++ codes using Simulink Coder for these 2 models, I tried to combine…
1
vote
1 answer

How can I generate Q-classes with QueryDsl 4.1.4 and Spring-Data-Jpa 2.0.0.M1?

I would like to update my version of Querydsl. I was looking for generating Q-Classes with the apt-maven-plugin like this: com.mysema.maven apt-maven-plugin 1.1.3
1
vote
0 answers

configure entry points in simulink model to make it callable

I've been handed a simulink model. I'd like to use simulink's code generation features to compile it into a binary and then run it on an embedded system (a beaglebone black). From there, I want to query it for output as a stand-alone component…
gvoysey
  • 516
  • 1
  • 4
  • 15
1
vote
0 answers

Overloading DataTable methods in partial Dataset class

I have a Dataset with several partial class definitions in the Dataset.Designer.vb file. They are all partial class definitions, for example: Partial Public Class ItemTable{} The problem is that when I define the other partial class to extend the…
William Tolliver
  • 305
  • 1
  • 2
  • 16
1
vote
1 answer

Modifying structure of CMS generated markup for Semantic UI grid

Is there a way to add a div in between the row and the column divs without reengineering the whole grid styles? The CMS I'm trying to integrate SUI with inserts an unwanted div that I can't get rid of. The new structure looks like this:
1
vote
1 answer

Javascript: one function to check individual checkboxes in the same group, and store the answer individually

I am very new to js, and I have been searching for this answer for days. I have a little personal project I'm working on, and it includes checkboxes. I have a function that is supposed to help generate code to copy/paste/save as a new html. Since…
Nancy76
  • 57
  • 7