# Erroneous Unused Binding Errors

**URL:** <https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324>\
**Category:** VS Code\
**Tags:** question, error\
**Created:** [December 6, 2022, 10:05pm UTC](https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324 "2022-12-06T22:05:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrbaxter0](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jrbaxter0](https://discourse.julialang.org/u/jrbaxter0)\
**Post date:** [December 6, 2022, 10:05pm UTC](https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324/1 "2022-12-06T22:05:36Z")

</div>

The linter is reporting `Variable has been assigned but not used.Julia(UnusedBinding)` for nearly every variable inside a function. Here’s an example: `normal` is very clearly used on the following line.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/3/432eed5479ad06f65acf7c2e0224944169751c1c.png)

I assume this is a bug, but I can’t find reports of it anywhere else. I’m relatively new to Julia, so I’m honestly not sure if I’m doing something wrong style-wise and the linter is calling me out on it.

---

<div class="post-metadata">

**Author:** ![piechologist](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piechologist/32/27662_2.png) [@piechologist](https://discourse.julialang.org/u/piechologist)\
**Post date:** [December 7, 2022, 10:21am UTC](https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324/2 "2022-12-07T10:21:13Z")

</div>

I see that false positive quite often. Usually, just saving the file resolves it. You could set `julia.lint.useoffuncargs` to `false` — that’s what I did.

Another annoyance can be `julia.lint.call`. It reports every `plot(...)` call I write and things like `TimeSeries.merge(...)`. I turned that feature off too.

---

<div class="post-metadata">

**Author:** ![jrbaxter0](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jrbaxter0](https://discourse.julialang.org/u/jrbaxter0)\
**Post date:** [December 7, 2022, 12:21pm UTC](https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324/3 "2022-12-07T12:21:46Z")

</div>

Unfortunately neither of those fixed it. I even restarted VSCode after changing the setting.

I suppose I’ll open an issue up on the project since you’ve confirmed it is a false positive.

---

<div class="post-metadata">

**Author:** ![jrbaxter0](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jrbaxter0](https://discourse.julialang.org/u/jrbaxter0)\
**Post date:** [December 12, 2022, 2:17am UTC](https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324/4 "2022-12-12T02:17:45Z")

</div>

Issue for reference: [Erroneous Unused Binding Errors · Issue #3171 · julia-vscode/julia-vscode · GitHub](https://github.com/julia-vscode/julia-vscode/issues/3171)
