Skip to content

Possible regression for bitstring completion #342

Description

@katafrakt

When I checkout to da065ae and run suggestion on bitstring, I get:

iex(1) > ElixirSense.suggestions("<<x::in", 1, 8) |> Enum.filter(& &1.type == :bitstring_option)
[%{name: "integer", type: :bitstring_option}]

However, the same on later commit from master does not return it:

iex(1) > ElixirSense.suggestions("<<x::in", 1, 8) |> Enum.filter(& &1.type == :bitstring_option)
[]

Possibly related, but not sure if bug or just change in behaviour:

Old:

iex(2) > ElixirSense.suggestions("<<x::ut", 1, 8) |> Enum.filter(& &1.type == :bitstring_option)
[
  %{name: "utf8", type: :bitstring_option},
  %{name: "utf16", type: :bitstring_option},
  %{name: "utf32", type: :bitstring_option}
]

New:

iex(2) > ElixirSense.suggestions("<<x::ut", 1, 8) |> Enum.filter(& &1.type == :bitstring_option)
[
  %{arity: 1, name: "unit", type: :bitstring_option},
  %{name: "utf8", type: :bitstring_option},
  %{name: "utf16", type: :bitstring_option},
  %{name: "utf32", type: :bitstring_option}
]

(additional entry for "unit")

This was found while updating ElixirSense in Expert.

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