-
Notifications
You must be signed in to change notification settings - Fork 26
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 docs generation workflow #1428
Conversation
This reverts commit f371d2c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting an error when I try to run Scripts/jazzy.sh
locally - does it work for you?
$ ./Scripts/jazzy.sh
/Users/lawrence/code/ably/ably-cocoa/Source/include/Ably/Ably.h:1:9: fatal error: could not build module 'Foundation'
/Users/lawrence/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jazzy-0.14.2/lib/jazzy/sourcekitten.rb:657:in `block in expand_extensions': undefined method `include?' for nil:NilClass (NoMethodError)
from /Users/lawrence/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jazzy-0.14.2/lib/jazzy/sourcekitten.rb:656:in `map'
from /Users/lawrence/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jazzy-0.14.2/lib/jazzy/sourcekitten.rb:656:in `expand_extensions'
from /Users/lawrence/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jazzy-0.14.2/lib/jazzy/sourcekitten.rb:1080:in `parse'
from /Users/lawrence/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jazzy-0.14.2/lib/jazzy/doc_builder.rb:155:in `build_docs_for_sourcekitten_output'
from /Users/lawrence/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jazzy-0.14.2/lib/jazzy/doc_builder.rb:86:in `build'
from /Users/lawrence/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jazzy-0.14.2/bin/jazzy:16:in `<top (required)>'
from /Users/lawrence/.rbenv/versions/3.0.0/bin/jazzy:23:in `load'
from /Users/lawrence/.rbenv/versions/3.0.0/bin/jazzy:23:in `<main>'
This reverts commit f357b2f.
Also there were multiple warnings like Regarding local
|
@maratal great news about the CI build, thanks! As for my local issues, I just tried with Ruby 2.6.3, didn't make a difference, still get the error. As for the rest of my environment, I'm on macOS 12.4, Xcode 13.4.1. |
Yes, after fresh install of macOS 12.4 and Xcode 13.4.1. it's now reproducible. @lawrence-forooghian |
Jazzy stopped crashing after I've replaced But like on previous macOS installation, when I installed
After
And after adding symlink to
But proper Also, as that article suggests, playing with clang command might be helpful, as jazzy relies on that, but the thing is that it doesn't work even in our
Adding -F to pass Carthage frameworks doesn't help (from that article: "If you are happy to build the framework project before generating docs and all the problematic paths have the form ModuleName/PublicHeader.h then have clang resolve those includes to the built framework by passing -F "):
So, at this point I kinda ran out of ideas. Let me know if the last version of jazzy.sh works for you @lawrence-forooghian (it works for me locally and on CI without errors). |
This reverts commit 018c3cd.
Feature spec: remove ChannelDetails.name
No description provided.