-
Notifications
You must be signed in to change notification settings - Fork 47
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
'No source root found' error for module #191
Comments
Hey @gtaylor1981 i will check it out soon. |
@gtaylor1981 |
@jozic Hi, thanks for looking into this. To double check this, I also cloned the repo to be able to run the integration tests and I noticed there are no tests covering my situation, i.e. sub-modules in Scala 3. <scala.compat.version>3</scala.compat.version>
<scala.version>3.3.1</scala.version>
<scala.library.artifact.id>scala3-library_3</scala.library.artifact.id> (I also had to update the Running this integration test reproduced my error message: Comparing the Looking at the source in SCoverageReportMojo.java Coverage coverage = Serializer.deserialize( coverageFile, project.getBasedir() ); For project This gets appended to the source path in the coverage file, producing the duplicated module name in the path. This is as far as I got; I am not sure whether the 'bug' is that I hope this helps you track down the issue some more. |
I just tried upgrading from v1.4.11 to the newest v2.0.1 and have encountered a problem.
I recreated this in a minimal project (called
my-project
) containing a subfolder with a single Scala module (my-module
).When I run
mvn clean install
it fails with the error:The module name appears twice in the path (
...\my-module\my-module\...
) which looks like an error to me.The root POM is almost empty, and the module POM has the plugin configured as follows:
I attached the project and module POM files if it helps:
project-pom.txt
module-pom.txt
I do see a
scoverage-data
folder created inC:\GIT\my-project\my-module\target\
as expected.This contains the
source.roots
file which looks like:Also in this folder is the
scoverage.coverage
file which contains the source path:This looks ok, but perhaps it is being appended to the module path (
C:\GIT\my-project\my-module
) which then causes the duplicated module name in the middle?Do I need to change something in my setup, or is this a bug in the plugin?
Please let me know if I can provide any further info. And many thanks for resurrecting the plugin and releasing the new version.
The text was updated successfully, but these errors were encountered: