sebastiw / edts

Erlang Development Tool Suite
GNU Lesser General Public License v3.0
355 stars 82 forks source link

edts-rpc-port hardcoded to 4587 #264

Closed karlsson closed 4 years ago

karlsson commented 4 years ago

The README says: "For EDTS to work in multiuser systems, each user needs to configure the environment variable EDTS_PORT to something unique. It defaults to 4587, which is the port that the REST-interface of which the EDTS-node listens on." But it is still hardcoded in elisp/edts/edts-rpc.el: (defconst edts-rpc-port 4587 "The port on which the edts erlang node's rpc-api is available.")

Maybe change to something like: (defconst edts-rpc-port (if (getenv "EDTS_PORT") (getenv "EDTS_PORT") 4587) "The port on which the edts erlang node's rpc-api is available.")