Questions tagged [code-generation]
Topics related to the generation of code as the output of an application, instead of directly writing code by a programmer.
code-generation
3,905
questions
1
vote
0
answers
11
views
Python Enum : achieve multiple attributes with IntelliSense through code generation (jinja2)
CONTEXT
My project is about implementing the "conventional method for house-energy-efficiency assessment" in France (120 pages).
This method, comes with a huge .xls file providing definition ...
0
votes
0
answers
16
views
Fail to build FMU during code generation in Matlab using CATIA-Systems / FMIKit-Simulink
I am trying to create a model exchange FMU using your the tool 3.1 in Matlab 2021a. I am generating rtwsfcnfmi.tlc target. Always I get this:
The call to rtwsfcnfmi_make_rtw_hook, during the ...
2
votes
1
answer
44
views
Get relative include path for file with clang tooling
I'm using clang tooling to auto generate some code from an existing code base.
In some cases I have an enum type that I want to use, so I want to include it. I'm able to get the path to the file to ...
0
votes
1
answer
39
views
JavaScript function in Google spreadsheets to send QR codes to emails
We are planning for an event, to register you have to fill out a Google form, after filling it there is this function in the "Apps Script" of the spreadsheet that will generate and send a QR ...
0
votes
1
answer
32
views
How to ignore linter rules in generated files with specific extensions like `.g.dart or .gr.dart` in Flutter
I'm using the slang package in my Flutter project to generate translation files. These generated files have extensions like .g.dart or .gr.dart. However, the linter flags various issues in these files,...
0
votes
1
answer
41
views
Antlr grammars that generate actual class inheritance
Need to know, is it possible to generate parsers, lexers, listeners, etc, by importing subset-grammars? I see that the supergrammar subgrammar pattern is possible, but I'm not sure I see a true class ...
0
votes
0
answers
25
views
Unable to access com.sun.tools.javac.processing.JavaProcessingEnvironment
I am working on a data structure framework, a personal project of mine for learning purposes.
I have the following setup
I am running IntelliJ IDEA 2024.2 Ultimate with OpenJDK17 and Maven as a build ...
0
votes
0
answers
41
views
Generating Python code with RedBaron, using path as a variable
I'm using RedBaron to generate Python code. I need parts of the generated code to be variables, passed from generating code. This works well with, for example, integers and such. But when I try to ...
0
votes
1
answer
142
views
Dependency issue in generating Java classes from Avro schema using Apache avro's SpecificCompilerTool for java 21
I want to convert Java classes from avro schemas/avsc files and for that, I have tried to implement this solution of SpecificCompilerTool from Baeldung's article & StackOverflow's answer but ...
0
votes
0
answers
48
views
Is there a way to access APL+Win's ability to generate an expression for a value?
When hovering the mouse over a variable name in APL+Win, a value tip is shown, with (the beginning of) an expression that would evaluate to the variable's value. How do I access this ability ...
0
votes
0
answers
103
views
How to fine-tune pre-tuned CodeGen Model in Vertex AI
I want to fine-tune the model which is already fine-tuned using code generation model "code-bison".
The existing tuned model is saved into Vertex AI model registry. But I want to fine-tune ...
-2
votes
1
answer
44
views
Generate func by codegen
I wanna write a func generator by codegen
use codegen::{Scope, Function};
fn main() {
let mut scope = Scope::new();
let add_function = Function::new("add")
.arg("a&...
0
votes
1
answer
48
views
Why does the PostProcessBuilder only run once?
I have the following PostProcessBuilder
class MoveBuilder extends PostProcessBuilder {
@override
Iterable<String> get inputExtensions => ['.g.dart'];
MoveModelBuilder() ;
@override
...
0
votes
0
answers
22
views
how to implement riverpod(with code generator) to code
Im very new to flutter. Now im tring to make my original app and I want it to have riverpod system.
The first thing I faced is Google signIn, I want to use riverpod to use google SignIn.
This is my ...
1
vote
1
answer
42
views
I can't get build runner to generate anything
I have this build.yaml in my package called temp
builders:
my_package:
import: "package: my_package/my_package.dart"
builder_factories: ["myBuilder"]
build_extensions:...