Skip to content
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 could not recognize the List-Bullet tag. #476

Closed
kiary opened this issue Feb 5, 2016 · 8 comments
Closed

Jazzy could not recognize the List-Bullet tag. #476

kiary opened this issue Feb 5, 2016 · 8 comments

Comments

@kiary
Copy link

kiary commented Feb 5, 2016

Just got this error while generating the doc. The problem is in a comment like this

/**
Load accounts that are synchronized in the iPhone

Load the different sources (Facebook, Local, Gmail, Outlook,...) found in the 
Address Book of the iPhone and gives each one it appropriate name.

 - parameter addressBook: The ABAddressBook object relative to the local Address Book

 - returns: A tuple of objects:
    * An array of strings with the names of the accounts
    * An array of ABRecord with the actual sources objects relative to the names
    * A dictionary with the correspondences between accounts names and their ID 
            for future retrieval

 */

The list inside the returns tag is not visible in the doc.

@jpsim jpsim added the bug label Apr 6, 2016
@jpsim
Copy link
Collaborator

jpsim commented Apr 6, 2016

Sorry for the delay in getting back to you @kiary, I think the issue here is that jazzy expects the contents of returns to be a single markdown statement, not multiple ones, like an unordered list. I suppose this works well in most cases, but certainly not this one. In any case, I'd consider this a bug and something we should fix, but I'd encourage you to work around this for now.

@chillok
Copy link

chillok commented Apr 15, 2016

@jpsim Also getting this error - though it's not in a return. Will I file a fresh bug? This is essentially the code.

/**
     Pushes a specific Screen from the specified UIViewController.

     - parameter style:              The design style of the Screen.

        ### Available Styles:
        - Screen.A
        - Screen.B

     - parameter fromViewController: the `UIViewController` to push from.
     */

@mbmadaj
Copy link

mbmadaj commented Apr 20, 2016

I can also confirm bullet list is not recognized by jazzy:

public class Test {
    /**
     Does something.

     - note:
     Some note

     - parameter nested: Any?

         Available option:
         * something

    - parameter other: String

     - returns: AnyObject?
     */
    public func xyz(nested:Any?, other: String) -> AnyObject? {
        return nil
    }
}

Test.swift.zip

jazzy parsing result

@pigeon-archive pigeon-archive self-assigned this Nov 23, 2016
@pigeon-archive
Copy link
Contributor

Any progress on this?

@jpsim
Copy link
Collaborator

jpsim commented Nov 26, 2016

Bug still exists.

@andyjohns
Copy link

I get this error too. (using latest jazzy v0.7.5) is there any way to tell what file/class/method is causing the error? I could at least adjust the doc comment if I could find where it's coming from.

@SDGGiesbrecht
Copy link
Contributor

I think this is the same as #629. It has been investigated in more detail there.

@andyjohns, for callouts (such as returns, parameter, or note), only single‐line entries work right now.

@jpsim
Copy link
Collaborator

jpsim commented May 1, 2017

Fixed in #795. Thanks @johnfairh 👏

@jpsim jpsim closed this as completed May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants