We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The pattern {'ok', {__filename@1, _binary@1}} can never match the type {'error',_}
Using Elixir 1.7.3 and Elixlsx 0.4.0:
defmodule Foo do require Elixlsx alias Elixlsx.Sheet alias Elixlsx.Workbook @spec generate_report() :: binary() def generate_report() do sheet = Sheet.with_name("OSHA") |> Sheet.set_cell("B1", "wat") filename = "filename.xlsx" {:ok, {_filename, binary}} = %Workbook{sheets: [sheet]} |> Elixlsx.write_to_memory(filename) binary end end
The text was updated successfully, but these errors were encountered:
Well, that means that something wrong in :zip.create/2. Try to figure it out by using pattern {:error, reason}
:zip.create/2
{:error, reason}
Sorry, something went wrong.
What's odd is, if I replace the call to write_to_memory/1 with wci = ...; :zip.create the warning goes away.
write_to_memory/1
wci = ...; :zip.create
No branches or pull requests
The pattern {'ok', {__filename@1, _binary@1}} can never match the type {'error',_}
Using Elixir 1.7.3 and Elixlsx 0.4.0:
The text was updated successfully, but these errors were encountered: