-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `captures' for nil:NilClass #306
Comments
What is your slather command? It sounds like it isn't able to read your xcodeproj. |
slather coverage --html --scheme SampleOCMock SampleOCMock.xcodeproj |
Have you tried
|
Sorry that was a typo I tried that only |
Is this project publicly available? Your best bit is to step through slather and see why it's failing to load the xcodeproj ( |
The error is not specific to the project. I couldn't run it over any project. Could you please help me with the steps that I need to follow for running slather for any Xcode 7 project to check if I'm missing something (with any possible situations where it could fail). |
Your slather command looks correct, so something internally is likely wrong. The simplest thing you can do is try adding some print statements to see why the xcodeproj isn't able to load (in the file I mentioned above). |
@Yahsaswi Are you running Xcode 7? I found this error to be an issue with parsing the LLVM version information when Xcode 7 was active (whether by I've posted pull request #308 that fixes the issue, so hopefully @ksuther can take a look at that and get it merged in. This issue (as far as I can tell) is a blocker for anyone using Xcode 7. For what it's worth, it looks like this commit is what introduced this crash: 059c3fa |
Thanks @ButkiewiczP! Can you try with slather 2.4.2? |
@ksuther Just tested this on separate Xcode 7 and 8 projects successfully. |
I was working on Xcode 7. Thank you for your response @ksuther and @ButkiewiczP . It is working now !! |
While running slather over a sample test and found this issue : Slathering...
undefined method `captures' for nil:NilClass
/Library/Ruby/Gems/2.0.0/gems/slather-2.4.1/lib/slather/project.rb:239:in
'configure': undefined method
captures' for nil:NilClass (NoMethodError)from /Library/Ruby/Gems/2.0.0/gems/slather-2.4.1/lib/slather/command/coverage_command.rb:53:in
execute' from /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in
run'from /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11:in
execute' from /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in
run'from /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in
run' from /Library/Ruby/Gems/2.0.0/gems/slather-2.4.1/bin/slather:17:in
<top (required)>'from /usr/local/bin/slather:23:in
load' from /usr/local/bin/slather:23:in
The text was updated successfully, but these errors were encountered: