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
Random Stream closed in multiproject build, Detekt 1.19.0, JDK 1.8 #4364
Comments
Which type of parallelism are you using? Gradle parallel execution or Detekt |
My special parallel execution :) Detekt loaded and executed by isolated class loaders in parallel. |
Gotcha. I'm unsure what we can do to address this bug then. Any idea? |
I'll sound like a broken record, but it's the same solution as always: instead of calling |
Then I think that this issue is fixed in 1.20.0 by #4334. Could you try the last SNAPSHOT? We shouldn't have any call to |
That looks really promising indeed! |
Ah, still breaks: detekt/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/config/ValidateConfig.kt Line 70 in 5fa01a9
You also need to look for ClassLoader.getResourceAsStream()
|
Added that function too as forbidden and use the safe one. |
As far as I can tell, the latest snapshot fixed the problem. Thanks! |
Thank you to keep pushing to fix this. It take a while but let's hope that it'd fixed for good now. |
Ran on JDK 1.8, analysing multiple modules in parallel. Probably the standard issue with reusing cached zip streams within the same VM.
Your Environment
The text was updated successfully, but these errors were encountered: