Issue 51 in coverstory: I got source file cannot open when open .gcda file with cover story

18 views
Skip to first unread message

cover...@googlecode.com

unread,
Sep 29, 2013, 5:59:23 AM9/29/13
to coverstor...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 51 by greenzon...@gmail.com: I got source file cannot open when
open .gcda file with cover story
http://code.google.com/p/coverstory/issues/detail?id=51

What steps will reproduce the problem?
1. I use xcode4.6.3 and llvm4.2 to generate gcno and gcda file
2. I open the gcda file with cover story
3.

What is the expected output? What do you see instead?
I can see that
Successfully loaded 5 coverage fragments.
Full dataset executed 74.1% of 27 lines (20 executed, 27 executable, 1725
total lines).
There is a tooltip on the total above the file list that shows numbers for
the currently displayed set.

Also with error:
xxxx/Classes/Controller/OrderConfirmView.m:cannot open source file
xxxxx/Classes/Controller/OrderConfirmView.h:cannot open source file

What version of the product are you using? On what operating system?
I'm using 4.4.1 and mac 10.8.4


Please provide any additional information below.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

cover...@googlecode.com

unread,
Sep 29, 2013, 11:15:23 AM9/29/13
to coverstor...@googlegroups.com

Comment #1 on issue 51 by dmaclach: I got source file cannot open when
Is the path to the source file that you are trying to open correct?

cover...@googlecode.com

unread,
Sep 30, 2013, 3:24:27 AM9/30/13
to coverstor...@googlegroups.com

Comment #2 on issue 51 by greenzon...@gmail.com: I got source file cannot
open when open .gcda file with cover story
http://code.google.com/p/coverstory/issues/detail?id=51

yes,I realized that the path is not full, which means the path is not start
from root("/"), it's just middle part of the full path. But I don't know
how this happened

cover...@googlecode.com

unread,
Sep 30, 2013, 10:33:01 PM9/30/13
to coverstor...@googlegroups.com

Comment #3 on issue 51 by dmaclach: I got source file cannot open when
How is it in your project? What is it relative to?

cover...@googlecode.com

unread,
Oct 2, 2013, 3:08:37 AM10/2/13
to coverstor...@googlegroups.com

Comment #4 on issue 51 by greenzon...@gmail.com: I got source file cannot
open when open .gcda file with cover story
http://code.google.com/p/coverstory/issues/detail?id=51

This the full path of one of the files in my project:
/Users/Shawn/Dev/trunk/iphone/ProjectName/Classes/Controller/OrderConfirmView.m

Cover story read the relative path of this file:
/ProjectName/Classes/Controller/OrderConfirmView.m

That's why it could not open the source file.Is that LLVM compiler
issue?(I'm using llvm 4.2) What I can't understand is some files are open
successfully by cover story, but rest of them showed can not open source
file error.However,for those failed open file,code coverage rate is
calculated already with only "/*EOF*/" shown in code area.

cover...@googlecode.com

unread,
Oct 2, 2013, 7:18:00 PM10/2/13
to coverstor...@googlegroups.com

Comment #5 on issue 51 by dmaclach: I got source file cannot open when
The key issue is how that file is stored in your project. Is it relative to
the project or what?

cover...@googlecode.com

unread,
Oct 3, 2013, 2:07:30 AM10/3/13
to coverstor...@googlegroups.com

Comment #6 on issue 51 by greenzon...@gmail.com: I got source file cannot
open when open .gcda file with cover story
http://code.google.com/p/coverstory/issues/detail?id=51

My gcda and gcno files are located
in :/Users/Shawn/Library/Developer/Xcode/DerivedData/ProjectName-gfuobhogueenypdeankkywdrlxcw/Build/Intermediates/ProjectName.build/Debug-iphonesimulator/ProjectName.build/Objects-normal/i386

cover...@googlecode.com

unread,
Dec 8, 2013, 8:19:07 PM12/8/13
to coverstor...@googlegroups.com

Comment #7 on issue 51 by gagehu...@gmail.com: I got source file cannot
open when open .gcda file with cover story
http://code.google.com/p/coverstory/issues/detail?id=51

it happen to my project also. I tried re-create test project ,delete the
source file re-add to project , delete the class re-create the class , but
coverstory still report cannot open the source file. while another source
in seem directory is ok.

cover...@googlecode.com

unread,
Dec 9, 2013, 4:49:19 AM12/9/13
to coverstor...@googlegroups.com

Comment #8 on issue 51 by gagehu...@gmail.com: I got source file cannot
open when open .gcda file with cover story
http://code.google.com/p/coverstory/issues/detail?id=51

i find it depends on the content of the source . when i rem most code of in
source file .m , coverstory could open source and display cover ratio
properly. while some codes (like dispatchasync...) makes it wrong.

cover...@googlecode.com

unread,
Dec 10, 2013, 1:56:10 AM12/10/13
to coverstor...@googlegroups.com

Comment #9 on issue 51 by gagehu...@gmail.com: I got source file cannot
open when open .gcda file with cover story
http://code.google.com/p/coverstory/issues/detail?id=51

finally , all my code with block , might result in source file can't open
by coverstory.
Reply all
Reply to author
Forward
0 new messages