code-generation Questions
3
Solved
For Maven there is an official Avro plugin to generate Java classes from Avro schemas.
However, for Gradle there exists no official plugin.
There is davidmc24/gradle-avro-plugin, but it is no longe...
Watertight asked 5/1, 2023 at 7:53
1
I wonder if there is a F# generative type provider that can be bound to a dacpac file that behave like DbmlFile type provider except for a visual studio database project output.
What I am trying t...
Vallery asked 6/4, 2014 at 22:3
13
Solved
It seems that experienced web developers frown upon using document.write() in JavaScript when writing dynamic HTML.
Why is this? and what is the correct way?
Honeysuckle asked 7/10, 2009 at 19:9
2
Solved
what's the difference between schema and documents in Graphql?
schema is like this:
type Query {
fo: String
}
but the document is like:
query SomeQuery {
foo {
bar
}
}
the spec is really...
Weitzel asked 19/12, 2019 at 21:38
11
Scaffolding, what is it? Is it a Rails-only thing?
Petree asked 24/10, 2008 at 19:46
5
Solved
I have a GraphQL schema defined from server and I'd like to write a nice Python GraphQL client for it. I'm looking for a way to transform my GraphQL schema into python classes with type hints such ...
Aplanatic asked 5/11, 2022 at 10:22
4
Solved
I'm using Freezed to generate data-class on my flutter project.
I did everything exactly like mentioned in the package readme:
import 'package:freezed_annotation/freezed_annotation.dart';
part 'ac...
Fleisig asked 24/8, 2022 at 11:14
5
I'm looking for a library or command line script that will allow me to create custom templates that I can generate from the command line. The ruby on rails scaffolding generator is almost identical...
Lambart asked 20/9, 2011 at 20:25
4
Solved
I just created an MVC app with dotnet new mvc --name test-project (netcoreapp3.1), without any kind of database access and Identity, which I would like to add by hand for customisation purposes. Th...
Harney asked 16/8, 2020 at 19:10
6
Solved
I'm converting a largish Ant build to Maven. As part of the Ant build, we have several steps which created Java classes by invoking one of the project's classes, simplified as:
javac SomeGenerator...
Shipmaster asked 27/1, 2010 at 13:27
1
I have 10 code repositories in Javascript (VueJS) (Each repository corresponds to 1 Theme)
I want to train an LLM model on these 10 code repositories to generate new themes using prompts.
The LLM m...
Ovolo asked 14/6, 2023 at 7:54
1
Let's consider this trivial code:
#include <atomic>
std::atomic<int> a;
void f(){
for(int k=0;k<100;++k)
a.load(std::memory_order_relaxed);
}
MSVC, Clang and GCC all perform 10...
Soave asked 8/5, 2019 at 17:52
7
Solved
If I look at the Razor View Engine, then I see a very nice and concise syntax that is not particularly tied to generating html. So I wonder, how easy would it be to use the engine outside asp.net i...
Preform asked 2/9, 2010 at 15:58
2
Using datamodel-codegen command with JSON data as input type and generating Pydantic schema as output, during this process I was seeing warnings.
What is the meaning of these warnings and how to fi...
Havelock asked 11/8, 2023 at 6:16
13
Solved
I've gotten accustomed to many of the Java IDEs (Eclipse, NetBeans, and IntelliJ IDEA) providing you with a command to generate a default constructor for a class based on the fields in the class.
F...
Neper asked 4/6, 2010 at 17:23
14
Solved
I am creating a very thorough converter for Android with Kotlin, using the latest Android Studio Canary build and latest Kotlin.
I am suddenly getting a compiling error, even thought Android Studio...
Rydder asked 29/8, 2018 at 15:41
12
Solved
On Visual Studio (VS) Code, coding on C#. I'm trying to generate assets to build and debug and I'm getting the following error message: Unable to generate assets to build and debug. OmniSharp serve...
Scenarist asked 24/6, 2020 at 15:38
1
Solved
I am using The openapi-generator-maven-plugin:6.4.0 to generate swagger code. I am able to access the APIs.
But, in generated files @ExampleObject is not present. Also, in Swagger UI I am unable to...
Ulm asked 30/3, 2023 at 10:56
2
Solved
Is there a Rust macro or a similar workaround to include the path of the 'src' folder created via cargo new in my source file as a string literal at compile time or specifically when doing cargo bu...
Zucchetto asked 15/11, 2017 at 8:9
2
Solved
I'm creating a client with Maven2 that uses several web services. I'm restricted to using Axis2 or other framework supporting Apache HttpClient as an HTTP conduit because these services require int...
Pandolfi asked 21/7, 2011 at 2:41
1
I'm getting into OData and TypeScript and it struck me when learning about OData Client Code Generator that something similar could be done for getting TypeScript interfaces for OData endpoints. Wo...
Expatiate asked 11/3, 2015 at 22:21
4
Solved
I'm using .properties files for message internationalization. For example:
HELLO_WORLD = Hello World
HELLO_UNIVERSE = Hello Universe
And then in Java code:
String foo = resourceBundle.getString...
Carmella asked 6/7, 2015 at 6:0
0
I would like to understand how LLVM decides what size memory regions allocated with alloca should have. As can be seen in this example, when generating code for x86-64 it appears to always select a...
Wingspan asked 19/5, 2023 at 19:24
2
Solved
I am experimenting with C# source generators. I have spent about a day on it, and I find it a very frustrating and painful experience. IntelliSense is extremely unreliable. It occasionally works, b...
Havener asked 24/5, 2022 at 13:8
2
I have an Xtext/Antlr grammar that parses a subset of coffeescript. I have some test cases, but I thought of doing another sort of test:
Generate random, syntactically correct snippets from my An...
Casady asked 12/12, 2011 at 17:32
1 Next >
© 2022 - 2024 — McMap. All rights reserved.