Skip to content

Provide the current classpath inside KotlinEnvironmentResolver#5275

Merged
BraisGabin merged 1 commit into
mainfrom
improve-test-utils
Sep 4, 2022
Merged

Provide the current classpath inside KotlinEnvironmentResolver#5275
BraisGabin merged 1 commit into
mainfrom
improve-test-utils

Conversation

@BraisGabin

@BraisGabin BraisGabin commented Sep 4, 2022

Copy link
Copy Markdown
Member

Clases like BaseRule are not resolved by our test engine KotlinEnvironmentResolver. That creates issues in #5182. I have snippet code there that compile but they don't have all the information in the BindingContext. @marschwar implemented #5188. But as we commented there it was odd to configure something for KotlinEnvironmentResolver that was not needed for the snipet compilation check.

This PR fixes exactly that. We add all the classpath that the curren thread has to KotlinEnvironmentResolver. That's what the "snippet check compiler" does.

Closes #5188

@BraisGabin BraisGabin merged commit 6b6d904 into main Sep 4, 2022
@BraisGabin BraisGabin deleted the improve-test-utils branch September 4, 2022 20:40
@BraisGabin BraisGabin added this to the 1.22.0 milestone Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants