jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Sonar Plugins
  • Sonar Plugins
  • SONARPLUGINS-1985

Ignore temp files : *.~pas

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Delphi
  • Labels:
    None
  • Environment:
    Windows 7
  • Number of attachments :
    0

Description

Delphi plugin bugs when such files are present

09:13:51.335 INFO o.s.p.d.DelphiPlugin - 50% done...
Total time: 59.246s
Final Memory: 96M/734M
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: Can not add twice the same measure on
org.sonar.plugins.delphi.core.DelphiFile@2024b288[key=ordo.batch,package=ordo,longName=ordo.batch,unitTest=false]: org.sonar.api.measures.Measure@4945
0f34[id=<null>,metricKey=public_undocumented_api,metric=Metric[id=19,formula=<null>,key=public_undocumented_api,description=Public undocumented classe
s, methods and variables,type=INT,direction=-1,domain=Documentation,name=Public undocumented API,qualitative=true,userManaged=false,enabled=true,origi
n=JAV,worstValue=<null>,bestValue=0.0,optimizedBestValue=true,hidden=false,deleteHistoricalData=false],value=30.0,data=<null>,description=<null>,alert
Status=<null>,alertText=<null>,tendency=<null>,date=<null>,variation1=<null>,variation2=<null>,variation3=<null>,variation4=<null>,variation5=<null>,u
rl=<null>,characteristic=<null>,personId=<null>,persistenceMode=FULL]
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: Can not add twice the same measure on org.sonar.plugins.delphi.core.DelphiFile@2024b288[key=ordo.batch,
package=ordo,longName=ordo.batch,unitTest=false]: org.sonar.api.measures.Measure@49450f34[id=<null>,metricKey=public_undocumented_api,metric=Metric[id
=19,formula=<null>,key=public_undocumented_api,description=Public undocumented classes, methods and variables,type=INT,direction=-1,domain=Documentati
on,name=Public undocumented API,qualitative=true,userManaged=false,enabled=true,origin=JAV,worstValue=<null>,bestValue=0.0,optimizedBestValue=true,hid
den=false,deleteHistoricalData=false],value=30.0,data=<null>,description=<null>,alertStatus=<null>,alertText=<null>,tendency=<null>,date=<null>,variat
ion1=<null>,variation2=<null>,variation3=<null>,variation4=<null>,variation5=<null>,url=<null>,characteristic=<null>,personId=<null>,persistenceMode=F
ULL]
at org.sonar.batch.index.Bucket.addMeasure(Bucket.java:101)
at org.sonar.batch.index.DefaultIndex.addMeasure(DefaultIndex.java:172)
at org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:118)
at org.sonar.plugins.delphi.DelphiSensor.processFiles(DelphiSensor.java:135)
at org.sonar.plugins.delphi.DelphiSensor.analyse(DelphiSensor.java:107)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
at org.sonar.batch.phases.Phases.execute(Phases.java:93)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:111)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.Batch.execute(Batch.java:104)
at org.sonar.runner.Launcher.executeBatch(Launcher.java:70)
at org.sonar.runner.Launcher.execute(Launcher.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.sonar.runner.Runner.delegateExecution(Runner.java:186)
... 2 more

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Freddy Mallet added a comment - 21/Jun/12 7:39 AM

Please do not create a JIRA ticket before having first discussed your issue on the Sonar User mailing list : http://www.sonarsource.org/support/

Moreover the error stack trace doesn't seem to match the title of the ticket. Indeed according to this stack trace, you have exactly the same Delphi file in the same relative path and in two different source directories.

Show
Freddy Mallet added a comment - 21/Jun/12 7:39 AM Please do not create a JIRA ticket before having first discussed your issue on the Sonar User mailing list : http://www.sonarsource.org/support/ Moreover the error stack trace doesn't seem to match the title of the ticket. Indeed according to this stack trace, you have exactly the same Delphi file in the same relative path and in two different source directories.
Hide
Permalink
Guillaume Gautreau added a comment - 21/Jun/12 7:41 AM

If I remove those file, the error does not appear. So I suppose it's related.

Show
Guillaume Gautreau added a comment - 21/Jun/12 7:41 AM If I remove those file, the error does not appear. So I suppose it's related.
Hide
Permalink
Freddy Mallet added a comment - 24/Jun/12 3:44 AM

Guillaume, could you explain in few words what are those *.~pas temporary files ? Is there one temporary file for each delphi source file or one temporary file by directory ? Do you confirm that those temporary files are generated by the Delphi IDE ? Thanks

Show
Freddy Mallet added a comment - 24/Jun/12 3:44 AM Guillaume, could you explain in few words what are those *.~pas temporary files ? Is there one temporary file for each delphi source file or one temporary file by directory ? Do you confirm that those temporary files are generated by the Delphi IDE ? Thanks
Hide
Permalink
Evgeny Mandrikov added a comment - 24/Jun/12 4:11 AM

Freddy, I'm pretty sure that there is one temporary file for each delphi source file and they generated by IDE.

Show
Evgeny Mandrikov added a comment - 24/Jun/12 4:11 AM Freddy, I'm pretty sure that there is one temporary file for each delphi source file and they generated by IDE.

People

  • Assignee:
    Unassigned
    Reporter:
    Guillaume Gautreau
Vote (0)
Watch (3)

Dates

  • Created:
    21/Jun/12 2:23 AM
    Updated:
    24/Jun/12 12:18 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.