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

path(y :: :list, :json) #28

Closed
hissssst opened this issue Mar 11, 2023 · 0 comments
Closed

path(y :: :list, :json) #28

hissssst opened this issue Mar 11, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@hissssst
Copy link
Owner

hissssst commented Mar 11, 2023

iex> path(y :: :list, :json)
** (FunctionClauseError) no function clause matching in Pathex.Builder.ForceUpdater.reduce_into/2

    The following arguments were given to Pathex.Builder.ForceUpdater.reduce_into/2:

        # 1
        []

        # 2
        {{:|>, [context: Pathex.Builder.ForceUpdater, imports: [{2, Kernel}]],
          [
            {{:., [], [{:function, [], Elixir}]}, [], []},
            {:case, [],
             [
               [
                 do: [
                   {:->, [],
                    [
                      [ok: {:value, [], Pathex.Builder.ForceUpdater}],
                      {:value, [], Pathex.Builder.ForceUpdater}
                    ]},
                   {:->, [],
                    [
                      [:error],
                      {:throw,
                       [context: Pathex.Builder.ForceUpdater, imports: [{1, Kernel}]],
                       [:path_not_found]}
                    ]}
                 ]
               ]
             ]}
          ]}, {:default, [], Elixir}}

    Attempted function clauses (showing 1 out of 1):

        defp reduce_into([path_item | _] = path_items, {acc_code, acc_items})

    (pathex 2.5.1) lib/pathex/builder/updaters/force_updater.ex:26: Pathex.Builder.ForceUpdater.reduce_into/2
    (elixir 1.14.3) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
    (pathex 2.5.1) lib/pathex/builder/updaters/force_updater.ex:21: Pathex.Builder.ForceUpdater.build/1
    (pathex 2.5.1) lib/pathex/builder.ex:47: anonymous fn/2 in Pathex.Builder.build/2
    (elixir 1.14.3) lib/enum.ex:1662: anonymous fn/3 in Enum.map/2
    (stdlib 4.2) maps.erl:411: :maps.fold_1/3
    (elixir 1.14.3) lib/enum.ex:2480: Enum.map/2
    (pathex 2.5.1) lib/pathex/builder.ex:46: Pathex.Builder.build/2
@hissssst hissssst added bug Something isn't working good first issue Good for newcomers labels Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant