-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
graphViewMain & hence projectHealth fails for a few subprojects and passes for some #913
Comments
Thanks for the report. Do you have a minimal reproducer? |
Unfortunately, I do not. It is a more extensive project at work. |
I am running into the same exception with a subset of modules, using version 1.20.0. The exception lacks details, making it hard to identify the trigger. However, downgrading to 1.19.0 resolves the issue (all modules run successfully). |
Can confirm the issue is not reproducible on 1.19.0. Thanks @madelfio for the pointer. I am unblocked at least by downgrading to 1.19.0. |
I also saw this on a large, closed-source project that I can't easily chop up into a reproducer. But I was able to debug a build at the crashing line in Screenshot text
I hope this helps! |
@jjohannes this is failing at this line: val gradleVariantIdentification = resolvedVariant.toGradleVariantIdentification() apparently because |
It is very likely a bug in Gradle. What is surprising – in the debugger screenshot above – is that But apparently it can. I think |
@jjohannes do you want to prepare a PR to address this or should I? |
This is an edge case. I do not know how to reproduce it, hence there is no test added. Fixes autonomousapps#913 See also gradle/gradle#26016
@autonomousapps here you go #936 |
This is an edge case. I do not know how to reproduce it, hence there is no test added. Fixes #913 See also gradle/gradle#26016
Build scan link
Unfortunately, I cannot provide the build scan link
Plugin version
1.20.0
Gradle version
7.5.1
Describe the bug
There are 5 subprojects in this project. All of them are Java projects.
Applied the plugin and running projectHealth/buildHealth task.
graphViewMain
tasks fails withresolvedVariant must not be null
for some subprojects and passes for some.Both passing and failing modules have same plugins applied and very similar dependencies. It is very hard to find out why it is failing for a particular module and not for the other
To Reproduce
I
Expected behavior
A clear error to tell the user what might be wrong with their project. It is hard to know why this task is failing in some subprojects and passing in some.
Stacktrace
The text was updated successfully, but these errors were encountered: