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

Cannot run a basic project #173

Open
Traderain opened this issue Oct 5, 2020 · 0 comments
Open

Cannot run a basic project #173

Traderain opened this issue Oct 5, 2020 · 0 comments

Comments

@Traderain
Copy link

Hey,
I am trying to run the program with a basic hello world example but I cannot get the extension to run output:
hf.erl:

% hello world program
-module(helloworld).
-export([start/0]).

start() ->
    io:fwrite("Hello, world!\n").

Launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Run erlang program",
            "type": "erlang",
            "request": "launch",
            "cwd": "${workspaceRoot}",
            "preLaunchTask": "rebar3 compile"
        }
    ]
}

Tasks.json:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "rebar3 compile",
            "type": "shell",
            "command": "rebar3 compile",
            "group": {
                "kind" :"build",
                "isDefault": true
            },
            "problemMatcher": "$erlang"
        }
    ]
}

I have installed erlang and rebar with chocolatey:

choco install rebar3

image

Error:

Error: ENOENT: no such file or directory, scandir 'D:\Repos\BME\7_Felev\Dekla\erlang\_build' at Object.readdirSync (fs.js:854:3) at Object.fs.readdirSync (electron/js2c/asar.js:621:39) at ErlangShellForDebugging.findEbinDirs (c:\Users\hamba\.vscode\extensions\pgourlain.erlang-0.6.5\out\lib\ErlangShellDebugger.js:86:12) at ErlangShellForDebugging.createArgsFilev1 (c:\Users\hamba\.vscode\extensions\pgourlain.erlang-0.6.5\out\lib\ErlangShellDebugger.js:154:22) at ErlangShellForDebugging.Start (c:\Users\hamba\.vscode\extensions\pgourlain.erlang-0.6.5\out\lib\ErlangShellDebugger.js:45:29) at ErlangDebugSession.configurationDoneRequest (c:\Users\hamba\.vscode\extensions\pgourlain.erlang-0.6.5\out\lib\erlangDebugSession.js:123:26) at ErlangDebugSession.dispatchRequest (c:\Users\hamba\.vscode\extensions\pgourlain.erlang-0.6.5\node_modules\vscode-debugadapter\lib\debugSession.js:403:22) at ErlangDebugSession.dispatchRequest (c:\Users\hamba\.vscode\extensions\pgou...
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

1 participant