Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go to function definition stopped working #225

Open
IgorKoshnarov opened this issue Jan 11, 2022 · 4 comments
Open

go to function definition stopped working #225

IgorKoshnarov opened this issue Jan 11, 2022 · 4 comments

Comments

@IgorKoshnarov
Copy link

After update to v.0.8.3 version "go to function definition" functionality stopped working.
Currently to solve the problem I rolled back to version v.0.8.2 of the extension.
On start of v.0.8.3 I get error:
apps/erlangbridge/src/vscode_erlfmt_scan.erl:350: function map_get/2 undefined

@wojteksurowka
Copy link
Contributor

Which Erlang/OTP version are you using?

@IgorKoshnarov
Copy link
Author

Erlang/OTP 20.3

wojteksurowka pushed a commit to wojteksurowka/vscode_erlang that referenced this issue Feb 2, 2022
pgourlain pushed a commit that referenced this issue Feb 3, 2022
* Fix for #225

* Fix for #226

* Fixes #223

Co-authored-by: Wojtek Surowka <wojtek.surowka@thectgrid.com>
@brianhu-tw
Copy link

I got the same issue, but I'm using Erlang/OTP 23.3.4.5
The v0.8.4 worked for me, but this error happened if I upgrade to v0.8.5 or v0.8.6.

escript: exception error: undefined function rebar3:main/1
  in function  escript:run/2 (escript.erl, line 758)
  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 53169 -s vscode_lsp_entry start 53169 
spawn /bin/sh ENOENT

@wojteksurowka
Copy link
Contributor

This happens due to mismatch between your older Erlang version and rebar3 included in the extension. Go to extension settings and set rebar path to the location of rebar3 which works with your Erlang setup. This should solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants