# VSCode displaying error markers for positional arguments

**URL:** <https://discourse.julialang.org/t/vscode-displaying-error-markers-for-positional-arguments/50980>\
**Category:** VS Code\
**Created:** [November 30, 2020, 8:19am UTC](https://discourse.julialang.org/t/vscode-displaying-error-markers-for-positional-arguments/50980 "2020-11-30T08:19:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niclas\_Wiberg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/niclas_wiberg/32/19063_2.png) [@Niclas\_Wiberg](https://discourse.julialang.org/u/Niclas_Wiberg)\
**Post date:** [November 30, 2020, 8:19am UTC](https://discourse.julialang.org/t/vscode-displaying-error-markers-for-positional-arguments/50980/1 "2020-11-30T08:19:38Z")

</div>

I’m using the awesome Julia mode in VSCode, thanks for that!

One slight issue however is that vscode seems to display incorrect error markers on some calls to functions with keyword arguments. Is it possible to get rid of that?

Examples:

```julia
function func1(x, y)
    return x + y
end

function func2(x; y=3)
    return x + y
end

function func3(x; y)
    return x + y
end

function func4(; x, y)
    return x + y
end

function example()
    a = func1(2, 3)
    b = func2(2)
    c = func3(2; y=3) # displays error markers in VS Code
    d = func4(x=2, y=3) # displays error markers in VS Code
end

```

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [November 30, 2020, 2:52pm UTC](https://discourse.julialang.org/t/vscode-displaying-error-markers-for-positional-arguments/50980/2 "2020-11-30T14:52:36Z")

</div>

It happens when the keyword arguments are defined without default values. It seems to be a bug, so may be worth to open an issue in the source repository: [GitHub - julia-vscode/julia-vscode: Julia extension for Visual Studio Code](https://github.com/julia-vscode/julia-vscode)
