Wednesday, 7 August 2013

Sonar is unable to analyze file in c project

Sonar is unable to analyze file in c project

I´m trying to analyze my c project with Sonar, but I have a exception that
I don´t get fix it. This is:
Exception in thread "main" org.sonar.runner.RunnerException:
org.sonar.squid.api.AnalysisException: Sonar is unable to analyze file
:
'D:\Vistas\DSP_A_M5_Dev_darjona\DSP_A_Modo5\1_Development_DSP_A\Source
Code\0111490000205\src\edma_data.c'
at org.sonar.runner.Runner.delegateExecution(Runner.java:288)
at org.sonar.runner.Runner.execute(Runner.java:151)
at org.sonar.runner.Main.execute(Main.java:84)
at org.sonar.runner.Main.main(Main.java:56)
`Caused by: org.sonar.squid.api.AnalysisException: Sonar is unable to
analyze file :
'D:\Vistas\DSP_A_M5_Dev_darjona\DSP_A_Modo5\1_Development_DSP_A\Source
Code\0111490000205\src\edma_data.c'
at com.sonar.sslr.squid.AstScanner.scanFiles(Unknown Source)
at com.sonar.c.plugin.E.analyse(Unknown Source)
at
org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
at org.sonar.batch.phases.Phases.execute(Phases.java:91)
at
org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:129)
at org.sonar.batch.bootstrap.Module.start(Module.java:68)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:147)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:136)
at org.sonar.batch.bootstrap.Module.start(Module.java:68)
at
org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:83)
at org.sonar.batch.bootstrap.Module.start(Module.java:68)
at org.sonar.batch.Batch.execute(Batch.java:106)
at
org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69)
at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.sonar.runner.Runner.delegateExecution(Runner.java:285)
... 3 more
Caused by: com.sonar.sslr.api.RecognitionException: Source Snippet:
My project properties is:
# Required metadata
sonar.projectKey=prueba
sonar.projectName=prueba
sonar.projectVersion=1.0
sonar.sources=src
sonar.language=c
sonar.sourceEncoding=UTF-8
Project properties file is located in
D:\Prueba\Prueba_A\Prueba_A\Development_Prueba_A\Source Code\Prueba_A that
contains source files that i want to analyze.
Thanks

No comments:

Post a Comment