Questions tagged [generated-code]

231 questions
118
votes
13 answers

How to suppress Java warnings for specific directories or files such as generated code

I'm using a parser generator that creates somewhat ugly code. As a result my Eclipse project has several dozen warnings emanating from generated source files. I know I can use the @SuppressWarning annotation to suppress particular warnings in…
Chris Conway
  • 55,321
  • 43
  • 129
  • 155
51
votes
1 answer

Is it possible to generate comments to functions in Template Haskell?

In our project we have a lot of TH-generated functions. It'd make sense to add generic comments to them so that they are visible in Haddock/Hoogle. At the very least, something like "This has been generated by TH." Is something like that possible?
Petr
  • 62,528
  • 13
  • 153
  • 317
42
votes
21 answers

No generated R.java file in my project

I am doing the Notepad tutorial, exercise 2. I started by creating a new Android project and chose Create from source to import the downloaded source files for the excercise. But now I get many errors in Eclipse, and the problem is that there is no…
Jonas
  • 121,568
  • 97
  • 310
  • 388
27
votes
3 answers

How to generate code dynamically with annotations at build time in Java?

I'm looking for a solution for generating code. I have googled, searched on SO and some blogs but I didn't find a good solution. I'd like to put an annotation on my class and at compilation time, some methods and properties would be automatically…
Stephan
  • 41,764
  • 65
  • 238
  • 329
26
votes
3 answers

Exclude file from StyleCop analysis: "auto-generated" tag is ignored

At the beginning of a C# file, I have added: //----------------------------------------------------------------------- // // Copyright © Some Company, 2011 // //
Daniel Daranas
  • 22,454
  • 9
  • 63
  • 116
20
votes
1 answer

Changing namespace names in MVC 3 applications causes compilation errors in generated files at runtime

I just started a new project and was reorganizing the source structure including renaming namespaces. After changing a namespace from CRTReadmissions.Web.Helpers to Crt.Readmissions.Web.Helpers I get the error shown below when trying to launch…
Ryan Vice
  • 2,133
  • 3
  • 23
  • 33
17
votes
2 answers

C#: Does ResumeLayout(true) do the same as ResumeLayout(false) + PerformLayout()?

I have looked at the generated designer code of Forms and UserControls, and in the InitializeComponent() method they always start with this.SuspendLayout(); and end with this.ResumeLayout(false); this.PerformLayout(); But from what I…
Svish
  • 152,914
  • 173
  • 462
  • 620
13
votes
1 answer

Purpose of proxyProvide in Dagger 2 generated code

I have this Dagger module. I want to understand the generated code so I can verify that my Dagger configuration is optimal. @Module public class TypefaceModule { @Provides @Singleton @Named("Roboto Light") static Typeface…
Graham Borland
  • 60,055
  • 21
  • 138
  • 179
12
votes
6 answers

ASP.NET how to resolve CS1513: } expected error on page

I am getting an error at run time when viewing my ASP.NET page in the browser. I am not getting any build errors however I am getting the following compiler error at runtime: Compilation Error Description: An error occurred during the compilation of…
Tiger
  • 417
  • 2
  • 8
  • 23
11
votes
3 answers

Do any PHP libraries exist for parsing ASN.1 or generating PHP code based on it?

I've already looked myself but it seems my Google-fu is not strong today. I'm working to develop a standardized protocol for exchanging data structures over a TCP/IP connection between an Apache / PHP server and embedded C code on a…
Grekker
  • 944
  • 1
  • 9
  • 17
10
votes
1 answer

Generate Go source code

I am looking for a way to generate Go source code. I found go/parser to generate an AST form a Go source file but couldn't find a way to generate Go source from AST.
Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
9
votes
4 answers

Where is ViewBinding GeneratedCode

How/Where Can I find the generated code for ViewBinding? whenever I try control+click/control+b to see the declaration, AndroidStudio just opens the XML layout.
9
votes
9 answers

Styling Microsoft-Word-Generated HTML

Ugh. Word is notorious for its bloated, convoluted, non-standards-compliant, non-semantic HTML. Unfortunately, I have a professor who is requiring us to generate an outline to very exacting standards. I'd rather not hand-write it, so I decided to…
Walker
  • 1,215
  • 2
  • 13
  • 26
9
votes
6 answers

Visual Studio 2012/2013 Slow "List Members" Intellisense

I am coding in VB.Net using Visual Studio 2012 (Premium, Update 3, ReSharper 8). I have the ReSharper intellisense deactivated and I am using the standard VS intellisense. For a while now I have been experiencing serious intellisense performance…
8
votes
1 answer

How to reorder automatically generated methods in Netbeans?

When using Netbeans' features for generating event handlers from a GUI, for example, while the body of the generated methods are editable, I cannot find a way to change the order of the generated methods within the code of a class. Cutting for…
eiowmqui
  • 237
  • 1
  • 3
  • 6
1
2 3
15 16