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

can't run/debug #151

Open
thelazydogsback opened this issue Apr 25, 2020 · 1 comment
Open

can't run/debug #151

thelazydogsback opened this issue Apr 25, 2020 · 1 comment

Comments

@thelazydogsback
Copy link

Sorry, newbie here...
I'm just trying to get a simple hello world working. (Simple application w/exported start & stop with an io.format...)

Note I had to create the _build/default dir manually, and I have set up the launch and task config files as directed.

It compiles fine from werl or vscode_erlang, and runs from werl, but when I try to run from the extension I get:

Invalid beam file or no abstract code: ".../repos/erlang/test/foo.erl

Looks like it's trying to run the source code instead of the beam file??

thanks

@pgourlain
Copy link
Owner

Hi,

To compile an erlang project, you should use a tool like rebar3 (https://github.com/erlang/rebar3). It's very popular tool in erlang. And erlang extension use it to compile your source code.

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

2 participants