elm / package.elm-lang.org

website for browsing packages and exploring documentation
https://package.elm-lang.org/
BSD 3-Clause "New" or "Revised" License
293 stars 114 forks source link

UnknownBlock found in docs #311

Open MartinSStewart opened 5 years ago

MartinSStewart commented 5 years ago

It seems that yinYang} does not have any docs. Please open a bug report here with the title “UnknownBlock found in docs” and with a link to this page in the description.

https://package.elm-lang.org/packages/lattyware/elm-fontawesome/latest/FontAwesome-Solid

rlefevre commented 5 years ago

It seems to work fine now, so maybe it was a cache issue.

MartinSStewart commented 5 years ago

I tried refreshing the cache just now but it is still visible.

Edit: The problem appears on my Mac using both Firefox and Chrome, and on my iPhone using Safari

rlefevre commented 5 years ago

This is strange, when I click your link above, I get:

fontawesome

MartinSStewart commented 5 years ago

The message appears at the very bottom of the page.

Screen Shot 2019-08-06 at 12 14 16 PM
rlefevre commented 5 years ago

Ah ok sorry :+1:

rlefevre commented 5 years ago

This comes from a spurious } character at the end of the long @docs declaration in https://github.com/Lattyware/elm-fontawesome/blob/60fd4e0ac82a1e76b41fe8f25daf6e4a736cd07f/src/FontAwesome/Solid.elm#L8:

@docs ad, addressBook, addressCard, adjust, ..., yenSign, yinYang}

So the issue comes from the package, but the compiler could have prevented it by detecting the syntax error.