vscode_erlang icon indicating copy to clipboard operation
vscode_erlang copied to clipboard

v0.9.5 does not work with Erlang OTP 26 on Windows 10

Open fuributas opened this issue 1 year ago • 4 comments

Hi,

This is my environment:

  • Windows 10 Pro 22H2
  • Clean portable installacion of VSCode-win32-x64-1.79.2
  • vscode_erlang v0.9.5
  • Erlang OTP 26.0.2

When I open an Erlang file, it seems that the extension hangs on 'rebar3 compile':

image

But if I switch to Erlang OTP 25.2.3.2 it works seamless.

Thanks.

fuributas avatar Jul 05 '23 06:07 fuributas

Hi

Do you have same problem with newest version ?

pgourlain avatar May 29 '24 05:05 pgourlain

Hi, I face the similar problem on Ubuntu with latest version v1.0.9. It works with OTP v25. but not for OTP v26.

OTP v25

erlang extension is active using erlang binaries from path : '.../OTP-25.3.2.7-statssl/bin' starting : escript ... escript exit code:0

OTP v26

erlang extension is active starting : escript .../.vscode-server/extensions/pgourlain.erlang-1.0.9/rebar3 compile /bin/sh: 1: escript: not found escript exit code:127

Kindly help check.

MinhDuc-Tran avatar Jul 18 '24 04:07 MinhDuc-Tran

hi,

what is your configuration for erlang path. image

it seems that escript is not in the environment path. can you check in your sh shell 'whereis escript' do you have restarted vscode after OTP26 installation ?

pgourlain avatar Jul 18 '24 05:07 pgourlain

Thanks pgourlain, after I correct the path, it seems to work.

Even It still has uncaught errors, basic function works. I don't see any error in output. image

MinhDuc-Tran avatar Jul 18 '24 08:07 MinhDuc-Tran