We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@spec
Elixir & Erlang versions (elixir --version):
Erlang/OTP 26 [erts-14.2.5.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns] Elixir 1.17.3 (compiled with Erlang/OTP 26)
VSCode ElixirLS version: v0.24.2 Operating System Version: Ubuntu 22.04.5 LTS
v0.24.2
Ubuntu 22.04.5 LTS
.elixir_ls
Given this code:
defmodule MyMod do @type t :: %MyMod{ id: pos_integer(), name: binary() } defstruct id: 0, name: "" @spec hello1(person :: MyMod.t()) :: MyMod.t() defp hello1(person) do IO.inspect(person) end @spec hello2(person :: MyMod.t()) :: MyMod.t() defp hello2(%MyMod{} = person) do IO.inspect(person) end @spec hello3(person :: MyMod.t()) :: MyMod.t() defp hello3(person) do p1 = hello1(person) IO.inspect(p1) end def say_hello() do person = %MyMod{ id: 123, name: "Bob" } hello1(person) hello2(person) hello3(person) end end
Autocomplete/suggestions for the person variable do not work in the hello1() function
person
hello1()
Autocomplete/suggestions should work for the person variable in hello1() the same way they work in the hello2() function
hello2()
Strangely enough, suggestions work for the p1 variable in the hello3() function
p1
hello3()
The text was updated successfully, but these errors were encountered:
Already tracked in elixir-lsp/elixir_sense#203
Sorry, something went wrong.
No branches or pull requests
Environment
Elixir & Erlang versions (elixir --version):
VSCode ElixirLS version:
v0.24.2
Operating System Version:
Ubuntu 22.04.5 LTS
Troubleshooting
.elixir_ls
directory, then restart your editorDetails
Given this code:
Problem
Autocomplete/suggestions for the
person
variable do not work in thehello1()
functionExpected result
Autocomplete/suggestions should work for the
person
variable inhello1()
the same way they work in thehello2()
functionRelevant info
Strangely enough, suggestions work for the
p1
variable in thehello3()
functionThe text was updated successfully, but these errors were encountered: