| Gcov .c annotation failure [message #1403023] | 
Sun, 20 July 2014 01:53   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I just learned of the Linux Tools project. I downloaded the 64-bit Eclipse Luna 4.4.0 CDT version on a 64-bit Scientific Linux box. I added --coverage to the compile and link lines and was immediately able to generate and see the coverage report and line highlighting for the created-by-eclipse "hello world" C++ project. 
 
When I tried the same procedure with the created-by-eclipse "hello world" C project, I could get the coverage report view, but when I click on the c-file from the report, I get an error: 
 
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". 
java.lang.ArrayIndexOutOfBoundsException: 3 
	at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.createAnnotations(GcovAnnotationModel.java:216) 
	at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.updateAnnotations(GcovAnnotationModel.java:139) 
	at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.<init>(GcovAnnotationModel.java:83) 
	at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.attach(GcovAnnotationModel.java:106) 
	at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModelTracker.annotateCEditor(GcovAnnotationModelTracker.java:157) 
	at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModelTracker.access$1(GcovAnnotationModelTracker.java:149) 
	at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModelTracker$2.partOpened(GcovAnnotationModelTracker.java:76) 
	at org.eclipse.ui.internal.PartService$10.run(PartService.java:201) 
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 
	at org.eclipse.ui.internal.PartService.partOpened(PartService.java:198) 
...etc. 
 
I tried in a new workspace with the same results. Is it something I'm doing? Since this is an unadulterated new installation using the eclipse, new "hello world" C-project, I can't see what I might have introduced into the process. I'm left wondering if there is something missing on my Linux box, but it is working for the C++ project. 
 
Any ideas?
 |  
 |  
  | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.06166 seconds