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

launch.json args Ignored #2871

Closed
jmigual opened this issue Apr 29, 2022 · 0 comments · Fixed by #2872
Closed

launch.json args Ignored #2871

jmigual opened this issue Apr 29, 2022 · 0 comments · Fixed by #2872

Comments

@jmigual
Copy link
Contributor

jmigual commented Apr 29, 2022

I have the following Julia file located in src/Test.jl:

module Test
println(ARGS)
end

This is my launch.json file:

{
    // 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": "JL: Generator",
            "type": "julia",
            "request": "launch",
            "program": "${workspaceFolder}/src/Test.jl",
            "stopOnEntry": false,
            "args": [
                "run",
            ]
        },
    ]

However when running it I get the following output:

> Executing task: julia --color=yes --project=${workspaceFolder} ${workspaceFolder}/src/Test.jl <

String[]
The terminal process "julia '--color=yes', '--project=${workspaceFolder}', '${workspaceFolder}/src/Test.jl'" terminated with exit code: 1.

Notice the missing argument "run" in the CLI and how the ARGS variable is empty.

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

Successfully merging a pull request may close this issue.

1 participant