atom feed11 messages in org.codehaus.sonar.user[sonar-user] [sonar-runner] SonarExce...
FromSent OnAttachments
Marc VerwerftMar 8, 2012 5:43 am 
Freddy MalletMar 9, 2012 2:10 am 
Marc VerwerftMar 12, 2012 1:29 am 
Evgeny MandrikovMar 12, 2012 1:37 am 
Marc VerwerftMar 12, 2012 2:21 am 
Dinesh BolkensteynMar 12, 2012 3:24 am 
Marc VerwerftMar 12, 2012 3:46 am 
Freddy MalletMar 12, 2012 7:28 am 
Marc VerwerftMar 12, 2012 7:58 am 
Evgeny MandrikovMar 12, 2012 8:19 am 
Tomasz HopekAug 10, 2012 8:03 am 
Subject:[sonar-user] [sonar-runner] SonarException: Unable to read and import ... - identical filenames?
From:Marc Verwerft (marc@gmail.com)
Date:Mar 8, 2012 5:43:31 am
List:org.codehaus.sonar.user

Hello,

Just yesterday I installed SonarSource with sonar-runner and was trying to use it for C analysis with the latest C plugin (1.4).

Unfortunately, I bumped into the first hurdle: Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: Unable to read and import the source file : '/home/marc/projects/MyProject/srcs/LATEST/fw/tiny_mq/src/mp_transport.c' with the charset : 'UTF-8'. at org.sonar.runner.Runner.delegateExecution(Runner.java:189) at org.sonar.runner.Runner.execute(Runner.java:78) at org.sonar.runner.Main.main(Main.java:61) Caused by: org.sonar.api.utils.SonarException: Unable to read and import the source file : '/home/marc/projects/MyProject/srcs/LATEST/fw/tiny_mq/src/mp_transport.c' with the charset : 'UTF-8'. at org.sonar.api.batch.AbstractSourceImporter.parseDirs(AbstractSourceImporter.java:84) at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:69) at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:60) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) ...

This seems related to an already known 'problem' albeit in the PHP plugin !!! If sonar-runner finds an identical filename under 2 different subdirectories the above exception is generated. I have: $ find . -name mp_transport.c ./fw/transport/src/mp_transport.c ./fw/tiny_mq/src/mp_transport.c

See also http://markmail.org/search/?q=%22Unable+to+read+and+import%22+parseDirs+list%3Aorg.codehaus.sonar.dev

Is this a known error? Should I add comments somewhere?

Regards,

Marc