question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Builder is not generated for fragment without any @Arg annotated memeber

See original GitHub issue

I am in process of reducing boilerplate code and I would like to all my Fragments to use FragmentArgs. As part of unification I’d like to always instantiate my fragments using FragmentArgs’ generated builder class, however it seems that version 3.x is not generating any builder if fragment annotated with @FragmentWithArgs got no members annotated with @Arg. Unless I miss something obvious here I believe this is a bug in the lib as there should be no reason that could prevent having builder in such case.

The workaround which I am using now is to simply add:

@Arg(required = false)
boolean foo;

but naturally this pollutes the code. Any comments welcome. Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sockeqwecommented, Sep 15, 2016

in about a week

0reactions
MarcinOrlowskicommented, Sep 15, 2016

when you think 4.0 could be officially released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dagger 2 component not generated - Stack Overflow
This issue is related to Android Studio ( V4.1.2 and up) and you can fix it by doing the below steps: Pref ->...
Read more >
Fragment | Android Developers
The fragment // may still be created from its saved state, but there is // no reason to try to create its view...
Read more >
Dependency Injection with Dagger 2 - CodePath Cliffnotes
The Dagger compiler generates code that is used to create the dependency graph of the classes defined in your source code. These classes...
Read more >
@ToString - Project Lombok
Annotating a class with @ToString will cause lombok to generate an ... Members without a rank are considered to have rank 0, members...
Read more >
112 Declarative Services Specification - OSGi Compendium 7
Optionality - Can the component function without any bound service present? ... is no annotated member from which the name or service can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found