Note that there are some explanatory texts on larger screens.

plurals
  1. POsonar always throwing duplicate exception, even with only a file
    primarykey
    data
    text
    <p>I'm struggling with sonar server and sonar runner (standalone via commandline). My project sonar file is:</p> <pre><code># Required metadata sonar.projectKey=org.codehaus.sonar:calculator sonar.projectName=Calculator sonar.projectVersion=1.0 # Comma-separated paths to directories with sources (required) sonar.sources=src # Language sonar.language=py # Encoding of the source files sonar.sourceEncoding=UTF-8 </code></pre> <p>And my command is </p> <pre><code>/opt/sonar-runner/bin/sonar-runner -Dsonar.projectBaseDir=/var/lib/jenkins/workspace/Servidor-RDS/serv/rdsweb/WebContent/fccma/js/fcc/tests/python-sonar-runner/ -Dproject.settings=/var/lib/jenkins/workspace/Servidor-RDS/serv/rdsweb/WebContent/fccma/js/fcc/tests/python-sonar-runner/sonar-project.properties </code></pre> <p>Nothing exotic. I haven't any project in sonar (I've delete all), and my project structure is src/ myCaluclator/ calculator.py <strong>init</strong>.py</p> <p>Calculator code is:</p> <pre><code>class Calculator(object): def add(self, x, y): return x + y </code></pre> <p>I always get an:</p> <pre><code>Caused by: org.sonar.api.resources.DuplicatedSourceException: Duplicate source for resource: org.sonar.api.resources.File@7d3e8935[key=myCalculator/calculator.py,dir=myCalculator,filename=calculator.py,language=Python] at org.sonar.batch.index.SourcePersister.saveSource(SourcePersister.java:45) at org.sonar.batch.index.DefaultPersistenceManager.setSource(DefaultPersistenceManager.java:78) at org.sonar.batch.index.DefaultIndex.setSource(DefaultIndex.java:456) at org.sonar.batch.DefaultSensorContext.saveSource(DefaultSensorContext.java:161) at org.sonar.api.batch.AbstractSourceImporter.parseDirs(AbstractSourceImporter.java:88) </code></pre> <p>Do I need to clean some cache or something? Thanks in advance. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload