Skip to content

IEx auto-complete doesn't work for structs #5132

@pareeohnos

Description

@pareeohnos

I've come across what I think is a bug (although could be a design choice) whereby autocompletion in IEx does nothing if it is a struct. Take for example the following

defmodule MyStruct do
    defstruct my_val: "val"
end

In IEx, I am able to do MyStr and hit tab and autocompletion works fine, but if I prefix that with a % autocompletion stops working.

Whilst this is obviously not a major issue, it gets quite annoying. I've got a fix running on a local copy of Elixir which simply replicates the functionality of the strip_ampersand/1 function but to strip the percentage character instead.

Running against Elixir 1.4.0-dev (9a31d79)

Cheers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions