Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved reporting on shared build services with same FQCN but different class #30274

Open
Vampire opened this issue Aug 22, 2024 · 1 comment
Labels
a:feature A new functionality in:build-services Shared Build Services re:comprehensibility reasonable errors and warnings, clear dsl, mental overload

Comments

@Vampire
Copy link
Contributor

Vampire commented Aug 22, 2024

Expected Behavior

It happens regularly that questions come up like

Cannot set the value of task ':grpc:stub:python:checkPython' property 'envService' of type ru.vyarus.gradle.plugin.python.service.EnvService using a provider of type ru.vyarus.gradle.plugin.python.service.EnvService.

This is typically caused by a plugin being applied to two sibling projects and then using a shared build service.
The first project register the service, the second gets the previous registration but receives an instance of the class on the other class loader so cannot use the service.

It would be nice if on getting a service, and / or setting a provider, and the expected and actual type are not equal but have the same FQCN, a more actionable message is presented like "add the plugin with problem with apply false to the root build script" or something similar.

@Vampire Vampire added a:feature A new functionality to-triage labels Aug 22, 2024
@ghale ghale added in:build-services Shared Build Services re:comprehensibility reasonable errors and warnings, clear dsl, mental overload and removed to-triage labels Aug 22, 2024
@ghale
Copy link
Member

ghale commented Aug 22, 2024

The issue is in the backlog of the relevant team and is prioritized by them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:build-services Shared Build Services re:comprehensibility reasonable errors and warnings, clear dsl, mental overload
Projects
None yet
Development

No branches or pull requests

2 participants