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
** (FunctionClauseError) no function clause matching in Earmark.Helpers.AstHelpers.augment_tag_with_ial/2 #340
Comments
Thank you for analysing and reporting this, I'll try to allocate some time for this. |
FWIW: - * {:error, {IncompatibleUnitError, message}}
+ * `{:error, {IncompatibleUnitError, message}}` both fixes the bug AND is prettier in the output! But yeah, the bug might be triggered in some other ways so worth fixing. |
well that is great news as I have no time right now, ok for you to push it into 1.5, meaning, ETA uncertain? |
sounds good to me! since it's easy to fix in the user code I don't think it's a big deal. |
Hi 👋 I'm also encountering this same issue and I'm currently unable to generate docs for a phoenix app. I've managed to trace this to a single doc and here's sample documentation which can trigger this bug: defmodule Sample do
@doc """
Creates a personal hello world message.
## Examples
iex> Sample.hello("Mark", %{name: "Mark", age:
27, info: %{email: "sample@gmail.com", phone:
"123456789", address: "Around The Corner" } })
{:ok, %User{...}}
"""
def hello do
:world
end
end It seems to be a very specific case because using the same documentation but moving things around slightly makes it work again, for example, the following documentation works: defmodule Sample do
@doc """
Creates a personal hello world message.
## Examples
iex> Sample.hello("Mark", %{name: "Mark", age:
27, info: %{email: "sample@gmail.com", phone: "123456789", address: "Around The Corner" } })
{:ok, %User{...}}
"""
def hello do
:world
end
end But, maintaining the same formatting as the first example and just changing the second element of the tuple in the sample response also works: defmodule Sample do
@doc """
Creates a personal hello world message.
## Examples
iex> Sample.hello("Mark", %{name: "Mark", age:
27, info: %{email: "sample@gmail.com", phone:
"123456789", address: "Around The Corner" } })
{:ok, "Sample String"}
"""
def hello do
:world
end
end I don't know if this is of much help, the code doesn't even match the docs, but wanted to provide at least another example of how this bug can be reproduced so that if you ever decide to take a look into it you can also experiment this case :) |
@JoaoFCosta thank you for that detailed report, will turn out helpful for sure |
Btw, remember code blocks should be indented with 4 spaces, this way they will be nicely printed in ExDoc, IEx, etc, as well as they won’t trigger the bug :)
… On 27 May 2020, at 12:48, Robert Dober ***@***.***> wrote:
@JoaoFCosta thank you for that detailed report, will turn out helpful for sure
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Pushing into 1.4.6 as #342 is more serious and no easy workaround exists. |
results in:
See elixir-lang/ex_doc#1172 for more information.
The text was updated successfully, but these errors were encountered: