Skip to content

No suggestion for struct and struct field #3693

@minhquana3

Description

@minhquana3

I want to thank you for maintaining this plugin. It's been really good.

Describe the bug
There is no suggestion for struct and struct field.

To Reproduce

`defmodule User do
defstruct [:name, :email, age: 0, active: true]

def create(name, email, opts \ []) do
age = Keyword.get(opts, :age, 0)
active = Keyword.get(opts, :active, true)
%User{name: name, email: email, age: age, active: active}
end

def display(%User{} = user) do
IO.inspect(user)
user
end
end`

Expected behavior
When I type %, there are no suggestions for User or for fields within a struct, unlike in iex where autocompletion works correctly.

Screenshots

Image

Image

Desktop:

  • OS: Windows

Erlang:
Erlang/OTP 27

Elixir:

  • Version Elixir 1.18.3

Plugin:

  • Elixir 21.0.0
  • IntelliJ IDEA 2025.1.1.1 (Ultimate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions