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.

Factory not generated sometimes

See original GitHub issue

When running my app which uses kotshi in a module from android studio, everything is fine. However when I run it from commandline in tests, it fails because the adapter factory is not generated.

I made a sample probject: https://github.com/PaulWoitaschek/KotshiFactoryBug

which fails when running ./gradlew test

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:24 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
ansmancommented, Feb 20, 2018

Ok, I’ve implemented so that the pre 1.0 way is allowed too. I’ll try to file an issue on youtrack and fix the root issue.

1reaction
ansmancommented, Feb 14, 2018

Could you check the following things for me:

  1. Is the factory actually generated (if you look in the build folder)?
  2. Does the same issue happen with 0.3.0?
Read more comments on GitHub >

github_iconTop Results From Across the Web

php - Model factory class not found when creating a dummy data
I'm currently following the laravel from scratch series from laracasts and I got stuck on this problem since the laravel version on that...
Read more >
Reference — Factory Boy stable documentation
This attribute indicates that the Factory subclass should not be used to generate objects, but instead provides some extra defaults.
Read more >
One-Stop Guide to Mapping with MapStruct - Reflectoring
MapStruct provides various strategies to instantiate and access the generated mappers. Let's look into each of them. Mappers Factory. If we are ...
Read more >
MapStruct 1.5.3.Final Reference Guide
The Mappers factory (no dependency injection); 4.2. ... During compilation, MapStruct will generate an implementation of this interface.
Read more >
Dagger2: @Component.Factory and @SubComponent.Factory
Methods used for binding dependencies must not have more than one parameter, ... Factory works we have to look at the generated code....
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