erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
630 stars 136 forks source link

VSCode Erlang-LS & OTP 24 #1185

Open SuperPauly opened 2 years ago

SuperPauly commented 2 years ago

I'm on Win 10 fresh install I have just got OTP 24 and VScode with the Erlang-LS Extension.

I'm following the instructions here: https://erlang-ls.github.io/getting-started/vscode/ But when I open VSCode the first error I get is.

Could not start Language Server. Error: null And then. The current project is missing an erlang_ls.config file. Need help configuring Erlang LS for your project? Visit: https://erlang-ls.github.io/configuration/ And finally. Erlang LS (in Proj%201), version: 0.21.2, OTP version: 24

I have visited the configure link. and added the erlang_ls.config and changed the OTP path to "otp_path:C:/Program Files/erl-24.2.1 I have added the folder otp_path: C:/Program Files/erl-24.2.1/bin where the erl.exe.

How come the error is stating the version is 0.21.2?

I am following a basic tutorial fthe erlang site where the code is:

-module(hello).
-export([hello_world/0]).

hello_world() -> io:fwrite("hello, world\n").

When I click 'Run > Run Without Debugger' VSCode it also doesn't do anything

acasta-yhliu commented 2 years ago

Also encountered. It seems that dialyzer is not working properly either