Skip to content

--open doesn't work with Elixir modules, only erlang modules #11

@silbermm

Description

@silbermm

I think this has something to do with the escript build, because it works fine inside of iex.

I've tried a few different solutions:

  • added embed_elixir: true to the escript config
  • added elixir to the list of applications
  • set strip_beams: false

In the end, none of those worked.

The error I get is:

** (ArgumentError) unknown application: :elixir
    (elixir 1.13.1) lib/application.ex:907: Application.app_dir/1
    (elixir 1.13.1) lib/application.ex:934: Application.app_dir/2
    (iex 1.13.1) lib/iex/introspection.ex:170: IEx.Introspection.open_mfa/3
    (iex 1.13.1) lib/iex/introspection.ex:88: IEx.Introspection.open/1
    (elixir 1.13.1) lib/kernel/cli.ex:126: anonymous fn/3 in Kernel.CLI.exec_fun/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions