首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sonar - CSharp插件生态系统-无法执行Sonar:尝试获取下一个元素名称时出错

Sonar - CSharp插件生态系统-无法执行Sonar:尝试获取下一个元素名称时出错
EN

Stack Overflow用户
提问于 2011-08-10 13:42:42
回答 1查看 428关注 0票数 0

声纳CSharp插件生态系统在处理结束时抛出错误。

我检查了coverage-report.xml,它只包含一行。

代码语言:javascript
复制
<PartCoverReport version="4.0" date="2011-08-10T10:09:12.1721003+08:00" />

我认为这可能是导致错误的原因。

如何解决此问题?这是一个配置问题吗?

提前谢谢。

请参考下面的错误消息:

..。

代码语言:javascript
复制
[INFO]  Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@e6529c...  
[INFO]  Microsoft (R) FxCop Command-Line Tool, Version 10.0 (10.0.30319.1) X86  
[INFO]  Copyright (C) Microsoft Corporation, All Rights Reserved.  
[INFO]    
[INFO]  Loading C:\JanusPilot\SonarDotnetExample\Example.Application\target\sonar  \sonar.FxCop...    
[INFO]  Loaded DesignRules.dll...  
[INFO]  Loaded GlobalizationRules.dll...  
[INFO]  Loaded NamingRules.dll...  
[INFO]  Loaded PerformanceRules.dll...  
[INFO]  Loaded Example.Application.exe...  
[INFO]  Initializing Introspection engine...  
[INFO]  Analyzing...  
[INFO]  Analysis Complete.  
[INFO]  Writing 1 messages...  
[INFO]  Writing report to C:\JanusPilot\SonarDotnetExample\Example.Application\t  
arget\sonar\fxcop-report.xml...  
[INFO]  Done:00:00:01.1050632  
[INFO]  Sensor org.sonar.plugins.csharp.fxcop.FxCopSensor@e6529c done: 2342 ms  
[INFO]  Sensor org.sonar.plugins.csharp.gallio.CoverageReportSensor@eb73e...  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 1:14.037s   
[INFO] Finished at: Wed Aug 10 10:13:29 CST 2011  
[INFO] Final Memory: 6M/15M  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:s  
onar (default-cli) on project example: Can not execute Sonar: Error while trying  
 to get the next element name: ParseError at [row,col]:[1,75]  
[ERROR] Message: Can not call 'getLocalName(): cursor does not point to a valid  
node (curr event [null]; cursor state CLOSED)  
[ERROR] -> [Help 1]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit  
ch.  
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
[ERROR]  
[ERROR] For more information about the errors and possible solutions, please rea  
d the following articles:  
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-09-05 19:48:48

我是C#插件的开发者之一。您应该通过向声纳用户邮件列表发送邮件来寻求帮助。您的partcover报告显示partcover未能成功收集复盖度量以确保测试执行。您有3种解决方案:

  • try ncover3
  • skip coverage

如果您需要更多详细信息,请再次将消息发送到用户邮件列表

问候

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7006382

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档