realm / jazzy

Soulful docs for Swift & Objective-C
https://realm.io
MIT License
7.35k stars 413 forks source link

Error with generate documentation in docker #1283

Closed gulivero1773 closed 3 years ago

gulivero1773 commented 3 years ago

jazzy:

image: norionomura/jazzy

image: swift:latest stage: build script:

I Use this code

Using config file /builds/dealoger/web-app/iPassportAuthWebApp/.jazzy.yaml /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/bin/sourcekitten: 1: /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/bin/sourcekitten: Syntax error: "(" unexpected /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/lib/jazzy/executable.rb:39:in execute_command': /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/bin/sourcekitten ["doc", "--spm", "--", "-Xswiftc", "-swift-version", "-Xswiftc", "5"] (RuntimeError) /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/bin/sourcekitten: 1: /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/bin/sourcekitten: Syntax error: "(" unexpected from /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/lib/jazzy/sourcekitten.rb:269:inrun_sourcekitten' from /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/lib/jazzy/doc_builder.rb:82:in block in build' from /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/lib/jazzy/doc_builder.rb:80:inchdir' from /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/lib/jazzy/doc_builder.rb:80:in build' from /usr/local/rvm/gems/ruby-2.6.6/gems/jazzy-0.14.1/bin/jazzy:16:in<top (required)>' from /usr/local/rvm/gems/ruby-2.6.6/bin/jazzy:23:in load' from /usr/local/rvm/gems/ruby-2.6.6/bin/jazzy:23:in

' from /usr/local/rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:24:in eval' from /usr/local/rvm/gems/ruby-2.6.6/bin/ruby_executable_hooks:24:in
'

johnfairh commented 3 years ago

The macOS version of sourcekitten doesn't work on Linux.

See here.

johnfairh commented 3 years ago

Closing, answered.