erlangpl icon indicating copy to clipboard operation
erlangpl copied to clipboard

Add elixir version to Basic Info in default view

Open Hajto opened this issue 7 years ago • 3 comments

I think Elixir version (if it is IEx or it is an Elixir node) should be nice addition.

Hajto avatar Aug 05 '17 20:08 Hajto

What do you mean by Elixir version?

arkgil avatar Aug 05 '17 20:08 arkgil

zrzut ekranu 2017-08-05 o 22 32 03 Here you have OTP version and other information. If think it would be nice addition to add here Elixir version as well.

In IEx when you do:

Application.spec(:elixir)

You get keyword list:

description: 'elixir', id: [], vsn: '1.4.5',...

where vsn field gives you elixir version. I think it would be nice addition to display that info.

And getting this information in erlang should be as simple as porting this code snippet to erlang:

# from github elixir repo
@spec spec(app) :: [{key, value}] | nil
  def spec(app) do
    case :application.get_all_key(app) do
      {:ok, info} -> :lists.keydelete(:env, 1, info)
      :undefined  -> nil
    end
  end

Hajto avatar Aug 05 '17 20:08 Hajto

Sorry, I misunderstood the proposal completely 😄 Yep, that would be nice to have 👍

arkgil avatar Aug 05 '17 20:08 arkgil