Open aconchillo opened 3 years ago
Same issue here with:
resources.srcDirs = ['src/contractTest/resources', 'src/contractTest/contracts', 'src/main/resources']
After removing 'src/main/resources'
it works fine.
It doesn't produce any errors In IntelliJ. Would be nice if eclipse is also more robust in this case.
A similar problem with custom source pathes and testFixtures: https://github.com/eclipse/buildship/issues/1115
Are there currently any workarounds for this, aside from simply removing the srcDir? Unfortunately in my situation it isn't viable.
Hi,
I'm hitting the following error when a project that has integration tests wants to use resources from main (see below):
This works fine when calling
./gradlew integrationTest
.I'm attaching a sample project to reproduce this:
integration-tests-issue.zip
I've tracked down the issue to including
"$projectDir/src/main/resources"
inresources.srcDirs
when defining integration tests:from
The fix is to simply use:
I'm using Emacs with lsp-mode/lsp-java, but I don't think this would be related to lsp-mode/lsp-java. It might be the error is not in Eclipse JDT LS either but from the stack trace it seem it's down the line. This is the full stack trace: