235 questions
1 vote
0 answers
84 views
Generated files not added to build in C# project generated by CMake
I'm trying to add generated files to a C# project created by CMake. I find that while CMake can generate a C# project from existing files, it somehow treats generated files differently. They are found ...
2 votes
1 answer
153 views
Intellij modules not finding generated protobuf classes in a multimodule maven project (but works fine via maven cli)
I have a project set up like this: protos/ # protobuf files here pom.xml # parent pom services/common # this module generates the protobuf classes services/mod-1 # imports ...
0 votes
0 answers
58 views
Generating Java code at runtime to replace legacy reflection-based data mapping. How to use @ForceInline and and module export questions
I’m writing a library that generates Java code at runtime, and so far it’s producing good results. The problem: some legacy software (read: "adopting polymorphism now is kinda impossible") ...
1 vote
1 answer
70 views
Unable to call desired overload of a generated PInvoke function
I'm am testing out the C#/Win32 project so I can call Win32 Setup API functions with automatically generated PInvoke wrappers. I am unable to make my code call the correct overload of one of the ...
0 votes
0 answers
198 views
ABAP: Generate class with SEO_CLASS_CREATE_COMPLETE with pretty printer
I'm using the Function Module SEO_CLASS_CREATE_COMPLETE to generate classes, but the problem is, that it doesn't do Pretty-print on the source code. Q: Is there a way to make the FM do Pretty-print? ...
4 votes
1 answer
663 views
Why is the read-only RegexGenerator.g.cs file (autogenerated by GeneratedRegex attribute) throwing CS0165
In my project, I use the GeneratedRegex attribute like so: public partial class Game { ... [GeneratedRegex(@"<regex>", RegexOptions.Compiled, "en-US")] private ...
0 votes
1 answer
474 views
Reading a DTO from the HttpContext returns null in JSON de-serialization (nswag generated client)
I'm diving into NET8, minimal API and clean architecture. First of all: This works (Swagger UI and postman) app.MapPost("/user/login", async (HttpContext httpContext, [FromBody] LoginDto ...
2 votes
1 answer
154 views
In which cases compiler generates additional code in C#?
So I've been inspecting some 3rd party assembly with ILSpy & dnSpy and noticed various compiler generated classes and methods. Some examples: Getter syntax like public Value { get; set; } is ...
0 votes
0 answers
36 views
Generate pdf with pdfKit packingList
I need to generate a pdf of the packing list with the data of the notes and the volume of the box, and I want it to be added to a new page when it exceeds 40 pages, I'm using pdfKit I'm using this ...
2 votes
1 answer
385 views
Xamarin Resource.Designer.cs generating const instead of static
I have on .NET 6 project using xamarin.android where the resource designer file generated with an error CS0131 : The left-hand side of an assignment must be a variable, property or indexer: public ...
2 votes
2 answers
1k views
When I open a querydsl JPA project with vscode, vscode has many cannot be resolved errors
When I open a querydsl JPA project with vscode, vscode has many cannot be resolved errors: The import com.**.QRoutePayload cannot be resolved When I open it with IDEA, it's all right. Why do I get ...
1 vote
1 answer
235 views
incompatible types: com.google.common.collect.ForwardingImmutableMap cannot be converted to com.google.common.collect.ImmutableMap generated-sources
When I start my wildfly in debug modue I get the following error in project-parent\project-frontend\target\generated-sources\gwt\com\google\common\collect\ForwardingImmutableMap_FieldSerializer.java:...
1 vote
0 answers
697 views
How to modify code written in InitializeComponent method (WinForms Designer generated code)?
I'm a WPF developer and have to perform some task in WinForms (I'm a total newbie of WinForms). Unlike in WPF, I've noticed that the InitializeComponent method in WinForms is generated by the Windows ...
0 votes
1 answer
505 views
Jackson Spring-boot test coverage
I'm developing a rest API on IntelliJ and I was wondering if there's a way to exclude Jackson generated classes from test coverage. Searching online I didn't find anything except a way to tell ...
2 votes
1 answer
3k views
Separate client and server generated by protoc
I am trying to have protoc-generated server interface and client implementation in separate packages The header part of my .proto files is the following: syntax = "proto3"; option ...