Skip to content

Compilation error - An implementation limit was reached #7

@danielres

Description

@danielres

Hi,

Thank you for this library.

I'm getting this error after adding md to my project, which uses unicode_guards as a dependency.

Any suggestion would be greatly appreciated 🙏

== Compilation error in file lib/unicode_guards.ex ==
** (CompileError) Elixir.Unicode.Guards:1: function 'MACRO-is_graph'/2+7:
  An implementation limit was reached.
  Try reducing the complexity of this function.

  Instruction: {move,{x,1},{y,1709}}

    (stdlib 6.2) lists.erl:2310: :lists.foreach_1/2
could not compile dependency :unicode_guards, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile unicode_guards --force", update it with "mix deps.update unicode_guards" or clean it with "mix deps.clean unicode_guards"

I'm using;

elixir 1.18.2-otp-27
erlang 27.2.2
defp deps do
    [
      {:phoenix, "~> 1.7.19"},
      {:phoenix_ecto, "~> 4.5"},
      {:ecto_sql, "~> 3.10"},
      {:ecto_sqlite3, ">= 0.0.0"},
      {:phoenix_html, "~> 4.1"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {:phoenix_live_view, "~> 1.0.4", override: true},
      {:floki, ">= 0.30.0"},
      {:phoenix_live_dashboard, "~> 0.8.3"},
      {:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
      {:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
      {:heroicons,
       github: "tailwindlabs/heroicons",
       tag: "v2.1.1",
       sparse: "optimized",
       app: false,
       compile: false,
       depth: 1},
      {:swoosh, "~> 1.5"},
      {:finch, "~> 0.13"},
      {:telemetry_metrics, "~> 1.0"},
      {:telemetry_poller, "~> 1.0"},
      {:gettext, "~> 0.20"},
      {:jason, "~> 1.2"},
      {:dns_cluster, "~> 0.1.1"},
      {:bandit, "~> 1.5"},
      {:earmark, "~> 1.4"},
      {:yaml_elixir, "~> 2.11"},
      {:memoize, "~> 1.4"},
      {:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
      {:html_sanitize_ex, "~> 1.4"},
      {:credo, "~> 1.7", only: [:dev, :test], runtime: false},
      {:md, "~> 0.10.6"}
    ]
  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions