Hi,
So ive now am using this feature with all the builds and sometimes i get this error:
[15:04:12]org.sonar.api.utils.SonarException: Sourcefile referenced in dotCover report not found
[15:04:12] at org.sonar.plugins.csharp.gallio.results.coverage.DotCoverParsingStrategy.parseFileBloc(DotCoverParsingStrategy.java:105) ~[sonar-csharp-gallio-plugin-1.4-SNAPSHOT.jar:na]
[15:04:12] at org.sonar.plugins.csharp.gallio.results.coverage.DotCoverParsingStrategy.parse(DotCoverParsingStrategy.java:74) ~[sonar-csharp-gallio-plugin-1.4-SNAPSHOT.jar:na]
[15:04:12] at org.sonar.plugins.csharp.gallio.results.coverage.CoverageResultParser.parse(CoverageResultParser.java:103) [sonar-csharp-gallio-plugin-1.4-SNAPSHOT.jar:na]
[15:04:12] at org.sonar.plugins.csharp.gallio.CoverageReportSensor.parseAndSaveCoverageResults(CoverageReportSensor.java:142) [sonar-csharp-gallio-plugin-1.4-SNAPSHOT.jar:na]
[15:04:12] at org.sonar.plugins.csharp.gallio.CoverageReportSensor.analyseUnitCoverage(CoverageReportSensor.java:94) [sonar-csharp-gallio-plugin-1.4-SNAPSHOT.jar:na]
[15:04:12] at org.sonar.plugins.csharp.gallio.CoverageReportSensor.analyse(CoverageReportSensor.java:83) [sonar-csharp-gallio-plugin-1.4-SNAPSHOT.jar:na]
[15:04:12] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.phases.Phases.execute(Phases.java:93) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.Module.start(Module.java:83) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.Module.start(Module.java:83) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:111) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.bootstrap.Module.start(Module.java:83) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.batch.Batch.execute(Batch.java:104) [sonar-batch-3.1.1.jar:na]
[15:04:12] at org.sonar.runner.Launcher.executeBatch(Launcher.java:65) [sonar-runner.jar:na]
[15:04:12] at org.sonar.runner.Launcher.execute(Launcher.java:58) [sonar-runner.jar:na]
[15:04:12] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_04]
[15:04:12] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_04]
[15:04:12] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_04]
[15:04:12] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_04]
[15:04:12] at org.sonar.runner.Runner.delegateExecution(Runner.java:186) [sonar-runner.jar:na]
[15:04:12] at org.sonar.runner.Runner.execute(Runner.java:78) [sonar-runner.jar:na]
[15:04:12] at org.sonar.runner.Main.main(Main.java:61) [sonar-runner.jar:na]
[15:04:12]Caused by: java.io.IOException: The device is not ready
[15:04:12] at java.io.WinNTFileSystem.canonicalize0(Native Method) ~[na:1.7.0_04]
[15:04:12] at java.io.Win32FileSystem.canonicalize(Unknown Source) ~[na:1.7.0_04]
[15:04:12] at java.io.File.getCanonicalPath(Unknown Source) ~[na:1.7.0_04]
[15:04:12] at java.io.File.getCanonicalFile(Unknown Source) ~[na:1.7.0_04]
[15:04:12] at org.sonar.plugins.csharp.gallio.results.coverage.DotCoverParsingStrategy.parseFileBloc(DotCoverParsingStrategy.java:102) ~[sonar-csharp-gallio-plugin-1.4-SNAPSHOT.jar:na]
[15:04:12] ... 25 common frames omitted
This crashs the analysis altogether. Is it possible to ignore this and proceed with other files. Ive attached a patch for this.
thanks
Jorge Costa
The key to get usable report is to specify TeamCityXML as the output type:
Strangely this report type is not documented...