-
Notifications
You must be signed in to change notification settings - Fork 414
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
jazzy crashes during site building with "in `+': no implicit conversion of nil into String #171
Comments
What command did you use to run jazzy? |
With nothing than that |
@juangamnik running SourceKitten directly on this project should show us where it's failing. If you send me the Xcode project that SK is failing to parse, I'll be able to troubleshoot and fix faster. |
@jpsim it's a |
@segiddins sure, but on what? I'd like to know what type I'm incorrectly assuming to always have a USR. |
@jpsim its a closed/private project I cannot send it. But I can execute some command on it and send you the result. Anyways, IMO jazzy/sourcekitten should -- at any time you get aware of an error -- be enhanced with a nice error message. Otherwise it will become a support hell. |
Of course! If there was a silver bullet to never crash unexpectedly and log an error message instead, we'd do it 😉. When we find the root of this current issue, we'll be sure to a) fix it and b) add logging in the failure case. But I guarantee you, there will always be another bug |
That's for sure and I'm aware, but still, there are some who discourage error messages for whatever reason or like it cryptic/generic, but in general this are not the users (git itself is a bad example for that in many cases). But if what you mentioned is already your policy I didn't say anything. It's just that last time there was a JSON issue and afterwards you added an error log telling which file couldn't be parsed. Now there is somewhere in another (later?) stage a problem. Why does jazzy not tell the problematic file. This is an information you should have (nearly) always and therefore be able to log it in an error case. Please understand this as a constructive suggestion. 😉 |
Hi! Having the same problem here.
The other ( Hope this helps. |
I.m having a similar issue too with /Library/Ruby/Gems/2.0.0/gems/jazzy-0.1.2/lib/jazzy/sourcekitten.rb:41:in `+': no implicit conversion of nil into String (TypeError) Temp solution run: jazzy --skip-undocumented |
@Ross-Gibson same for me: Hence, the |
Perhaps another interesting information: with |
FWIW, I get the same error running |
+1... sounds interesting but with this problem useless... |
I pushed a fix in #192. We'll be pushing a release to rubygems in the next few days. Until then, you can run from source. Please let me know if you're still experiencing related issues. |
Seems to be fixed for me (jazzy v0.2.0) |
After some time of not regenerating the jazzy files for my project I tried it again today and got an error. So I updated to the newest version 0.1.2 and tried again. Still the same error:
I have installed Xcode Version 6.1.1 (6A2006) and Version 6.3 (6D520o). I am using the beta version of 6.3 and the
xcode-select
path is set to/Applications/Xcode-beta.app/Contents/Developer
. In #124 @jpsim added an output to STDERR, which swift file couldn't be parsed by sourcekitten, which helped a lot to find the problem. The comments on the issue #124 tell, that this feature has improved (not only STDERR, but direct output from the JSON parser). But unfortunately it does not output, which file is problematic. I think, because this time it is not a JSON problem but some kind of missing information that now leads to a null pointer. If I knew, which of my files is the nasty guy...The text was updated successfully, but these errors were encountered: