[JIRA] (JENKINS-15046) Trend graph scales do not adapt - 5 of 6 values are not displayed

2012-09-05 Thread cyril.pi...@gmail.com (JIRA)














































Cyril Picat
 created  JENKINS-15046


Trend graph scales do not adapt - 5 of 6 values are not displayed















Issue Type:


Bug



Assignee:


Unassigned


Attachments:


cppncss trend graph.png, cppncss.xml



Components:


cppncss



Created:


05/Sep/12 1:28 PM



Description:



On my project, only the number of files was displayed on cppncss trend graph. After a bit of investigation and by removing files I realized that the scale was either not automatic or not handling different orders in the values (because the screenshot on cppncss plugin suggest the scale could change).

All the measurements like NCSS, CCN, total functions, CCN violations and NCSS violations are not displayed in my case.

I have attached the picture of my trend graph and the sample file on which it is failing. 





Project:


Jenkins



Priority:


Major



Reporter:


Cyril Picat

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira






[JIRA] (JENKINS-13775) String index out of range

2012-05-16 Thread cyril.pi...@gmail.com (JIRA)

[ 
https://issues.jenkins-ci.org/browse/JENKINS-13775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=162820#comment-162820
 ] 

Cyril Picat commented on JENKINS-13775:
---

I have the same issue on a iOS project. 

I think this might be due to filenames with a '+' inside, like all the 
categories we create in Objective-C. 
For example, Profile+Additions.h

 String index out of range
 -

 Key: JENKINS-13775
 URL: https://issues.jenkins-ci.org/browse/JENKINS-13775
 Project: Jenkins
  Issue Type: Bug
  Components: sloccount
Affects Versions: current
 Environment: Linux:redhat9
 jenkins:1.463
Reporter: wang y
Assignee: npiguet
  Labels: plugin

 console output:
 {quote}
 ERROR: Publisher hudson.plugins.sloccount.SloccountPublisher aborted due to 
 exception
 java.lang.StringIndexOutOfBoundsException: String index out of range: -5
   at java.lang.String.substring(String.java:1937)
   at java.lang.String.substring(String.java:1904)
   at hudson.plugins.sloccount.model.Folder.simplifyName(Folder.java:22)
   at 
 hudson.plugins.sloccount.model.SloccountReport.simplifyNames(SloccountReport.java:175)
   at 
 hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:42)
   at 
 hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17)
   at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154)
   at hudson.remoting.UserRequest.perform(UserRequest.java:118)
   at hudson.remoting.UserRequest.perform(UserRequest.java:48)
   at hudson.remoting.Request$2.run(Request.java:287)
   at 
 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
 {quote}
 sloccount file:
 {quote}
 Have a non-directory at the top, so creating directory top_dir
 Adding /g2m_builder_test/railway-svn-code/support/cppcheck-check-Make to 
 top_dir
 Adding /g2m_builder_test/railway-svn-code/support/cppcheck_reports.xml to 
 top_dir
 Adding /g2m_builder_test/railway-svn-code/support/cppcheck-suppress to top_dir
 Creating filelist for driver
 Adding /g2m_builder_test/railway-svn-code/support/sloccount.sc to top_dir
 Creating filelist for test
 Categorizing files.
 Computing results.
 43ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDisp.c
 197   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspEnc.c
 268   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspCap.c
 179   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDec.c
 87ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.c
 636   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/dm648api.c
 387   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspApi.c
 173   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/dm648api.h
 27ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspCommon.h
 173   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspApi.h
 5 ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.h
 6 ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/SdkVersion.h
 240   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/ShareStruct.h
 37makefiletest
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Makefile
 174   cpp test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconDecodeArea.cpp
 236   cpp test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconPreviewArea.cpp
 223   cpp test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/mainWindow.cpp
 12cpp test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/main.cpp
 39cpp test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/sunday.cpp
 220   cpp test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/public/yuv.cpp
 143   cpp test
 

[JIRA] (JENKINS-13775) String index out of range

2012-05-16 Thread cyril.pi...@gmail.com (JIRA)

[ 
https://issues.jenkins-ci.org/browse/JENKINS-13775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=162821#comment-162821
 ] 

Cyril Picat commented on JENKINS-13775:
---

After more investigation, this is not due to the '+' but to the directory tree.

In some cases, sloc seems to create a fake top_dir at the top and it makes the 
plugin fail.

In those cases, you get the following message at the top of the sloccount.sc 
file:
'Have a non-directory at the top, so creating directory top_dir'

and entries like:
15  objctop_dir /Users/udd/Jenkins/Workspace/jobs/MyProject 
dev/workspace/MyProject/main.m

I simply prune those entries and it works again.

So my full shell build step in Jenkins is the following:

# Compute basic code metrics
sloccount --duplicates --wide --details MyProject | grep -v 'top_dir'  
build/sloccount.sc

 String index out of range
 -

 Key: JENKINS-13775
 URL: https://issues.jenkins-ci.org/browse/JENKINS-13775
 Project: Jenkins
  Issue Type: Bug
  Components: sloccount
Affects Versions: current
 Environment: Linux:redhat9
 jenkins:1.463
Reporter: wang y
Assignee: npiguet
  Labels: plugin

 console output:
 {quote}
 ERROR: Publisher hudson.plugins.sloccount.SloccountPublisher aborted due to 
 exception
 java.lang.StringIndexOutOfBoundsException: String index out of range: -5
   at java.lang.String.substring(String.java:1937)
   at java.lang.String.substring(String.java:1904)
   at hudson.plugins.sloccount.model.Folder.simplifyName(Folder.java:22)
   at 
 hudson.plugins.sloccount.model.SloccountReport.simplifyNames(SloccountReport.java:175)
   at 
 hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:42)
   at 
 hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17)
   at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154)
   at hudson.remoting.UserRequest.perform(UserRequest.java:118)
   at hudson.remoting.UserRequest.perform(UserRequest.java:48)
   at hudson.remoting.Request$2.run(Request.java:287)
   at 
 hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
 {quote}
 sloccount file:
 {quote}
 Have a non-directory at the top, so creating directory top_dir
 Adding /g2m_builder_test/railway-svn-code/support/cppcheck-check-Make to 
 top_dir
 Adding /g2m_builder_test/railway-svn-code/support/cppcheck_reports.xml to 
 top_dir
 Adding /g2m_builder_test/railway-svn-code/support/cppcheck-suppress to top_dir
 Creating filelist for driver
 Adding /g2m_builder_test/railway-svn-code/support/sloccount.sc to top_dir
 Creating filelist for test
 Categorizing files.
 Computing results.
 43ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDisp.c
 197   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspEnc.c
 268   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspCap.c
 179   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspDec.c
 87ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.c
 636   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/dm648api.c
 387   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/GhtDspApi.c
 173   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/dm648api.h
 27ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspCommon.h
 173   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/include/GhtDspApi.h
 5 ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Convert.h
 6 ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/SdkVersion.h
 240   ansic   test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/ShareStruct.h
 37makefiletest
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/GhtDspApi/Makefile
 174   cpp test
 /g2m_builder_test/railway-svn-code/support/test/viSdkDialog/dialog/iconDecodeArea.cpp
 236   cpp test