-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
Caused by: java.lang.IllegalArgumentException: Error building function signature with range 414 - 211 for element: @JvmStatic @Parameterized.Parameters( #4887
Comments
Yup seems like a valid bug to me. A starting point could be to write a broken test for: detekt/detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/internal/Signatures.kt Lines 94 to 112 in a949686
And refine it till it's green 👍 |
May I try to fix it? |
Yup I can assign this to you @VitalyVPinchuk 👍 |
Sorry @waliahimanshu I can't make it fail. Could you please provide full listing of your test class? Probably, the problem is somewhere else. |
I created a gist here https://gist.github.com/waliahimanshu/d918a2ca42e210da4ed2c7b130766417 |
Thanks for sharing the code. This is what I do: The output is this:
Probably @cortinico @BraisGabin might want to have a look |
Hi @VitalyVPinchuk I tested your test class and it turns out the If you run the test by removing the
|
Expected Behavior
Successfully analysis of test class with
@Parameterized.Parameters
with a large function returning a list of arrays of around 27 itemsObserved Behavior
Steps to Reproduce
A parametrized test with a function having
Context
Your Environment
--scan
option when running the gradle task):The text was updated successfully, but these errors were encountered: