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.

Quadrant should support configuration-cache

See original GitHub issue

When enabling configuration-cache with quadrant by placing org.gradle.unsafe.configuration-cache=true to your root gradle.properties, the compilation will fail with the following error:

Configuration cache state could not be cached: field 'processor$delegate' from type 'com.gaelmarhic.quadrant.tasks.GenerateActivityClassNameConstants': error writing value of type 'kotlin.SynchronizedLazyImpl'
> Configuration cache state could not be cached: field 'value' from type 'kotlin.InitializedLazyImpl': error writing value of type 'com.gaelmarhic.quadrant.processors.GenerateActivityClassNameConstantProcessor'
   > Configuration cache state could not be cached: field 'manifestParsingHelper' from type 'com.gaelmarhic.quadrant.processors.GenerateActivityClassNameConstantProcessor': error writing value of type 'com.gaelmarhic.quadrant.helpers.ManifestParsingHelper'
      > Configuration cache state could not be cached: field 'jaxbUnMarshaller$delegate' from type 'com.gaelmarhic.quadrant.helpers.ManifestParsingHelper': error writing value of type 'kotlin.SynchronizedLazyImpl'
         > Implementation of JAXB-API has not been found on module path or classpath.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gaelmarhiccommented, Sep 17, 2021

Hey @marcellogalhardo !

The corresponding PR (#8) has been merged and a new release has been made: https://github.com/gaelmarhic/Quadrant/releases/tag/v1.6 https://plugins.gradle.org/plugin/com.gaelmarhic.quadrant

Please, remember that, even though Quadrant now supports it, Gradle Configuration Cache is still experimental, and it still has some issues. For example, if you run into an error of type e: Source file or directory not found: /Users/Developer/Desktop/QuadrantTest/app/build/generated/source/quadrant/com/gaelmarhic/quadrant/QuadrantConstants.kt, it is probably because of this issue: https://youtrack.jetbrains.com/issue/KT-46651. In that case, update the version of Kotlin Gradle plugin to at least 1.5.30-M1 in your Android project.

Hope this helps.

Cheers!

Gaël

1reaction
gaelmarhiccommented, Aug 4, 2021

@marcellogalhardo, regarding the edge case I was talking about in my previous comment, never mind. It is an issue on Kotlin Gradle plugin and the fix is in one of the next versions to come. https://medium.com/@gaelmrc/hey-ivan-aa5578745020

Therefore, I have deleted the section I had previously added to the README.

Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The plugin does not support Configuration Caching · Issue #247
Recently I tried to make this lib supporting gradle configuration cache and upload on my local artifactory. But i am not that familiar...
Read more >
Cloud CDN gets improved useability features
Cache modes, a new concept that allows Cloud CDN to automatically cache common static content types without further origin configuration, cache ...
Read more >
export & import - Yellowfin BI
Hi Sharon, If you want to replicate 1 environment for all new users, you are best to have a Yellowfin DB that you...
Read more >
Mapping DSP Applications on Processor Systems with Coarse ...
In this paper, we present performance results from mapping five real-world DSP applications on an embedded system-on-chip that incorporates coarse-grain.
Read more >
Vigil@nce: Solaris, denial of service of ldap_cachemgr(1M)
A local attacker can use multiple vulnerabilities of ldap_cachemgr(1M) in order to generate a ... The LDAP Client Configuration Cache Daemon
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