Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1156

Shell command fail on nodes started from escript

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Help Wanted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I have an application (https://github.com/erlang-ls/erlang_ls, but it should not matter) packaged as an escript (via rebar3):

      rebar3 escriptize
      _build/default/bin/erlang_ls

      Distribution is started from the escript, so I am able to connect to the escript "node" via a remote shell

      erl -sname debug -remsh erlang_ls@HOSTNAME 

      So far, so good. But then most of shell commands fail due to paths not being correct. Eg:

      > rr(els_db). % els_db is one of the project modules
      {error,beam_lib,
             {file_error,"/Users/robert.aloi/git/github/erlang-ls/erlang_ls/_build/debug/bin/erlang_ls/erlang_ls/ebin/els_db.beam",
                         enotdir}}
      
      > c(els_db).
      Recompiling /Users/robert.aloi/git/github/erlang-ls/erlang_ls/src/els_db.erl
      {error,enotdir}

       

        Attachments

          Activity

            People

            Assignee:
            otp_team_vm Team VM
            Reporter:
            robertoaloi Roberto Aloi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: