vscode_erlang
vscode_erlang copied to clipboard
escript: exception error: undefined function rebar3:main/1
I'm a Erlang noob and I'm trying to use this extension to develop, but I got the error:
erlang extension is active
starting : escript
/home/robinho/.vscode/extensions/pgourlain.erlang-0.8.4/rebar3 compile
escript: exception error: undefined function rebar3:main/1
in function escript:run/2 (escript.erl, line 750)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
escript exit code:127
starting : erl
-noshell -pa src -pa ebin -s int -vscode_port 42043 -s vscode_lsp_entry start 42043
spawn /bin/sh ENOENT
How can I solve it? And thanks for your time creating this extension :heart:
I enabled the Erlang:Verbose
extension config and got the error:
starting : erl
-noshell -pa src -pa ebin -s int -vscode_port 40881 -s vscode_lsp_entry start 40881
spawn /bin/sh ENOENT
[Error - 6:29:19 PM] Starting client failed
TypeError: Cannot read properties of undefined (reading 'on')
at /home/robinho/.vscode/extensions/pgourlain.erlang-0.8.4/out/lib/extension.js:1:156678
This is due to you using the current OTP 25 Erlang version. The extension is currently not working with this version due to obsolete rebar3 included. I created a pull request #235 to address this.