# Is LanguageServer.jl supposed to work with JuMP.jl?

**URL:** https://discourse.julialang.org/t/is-languageserver-jl-supposed-to-work-with-jump-jl/102026
**Category:** Optimization (Mathematical)
**Tags:** jump, languageserver
**Created:** [July 24, 2023, 3:18pm UTC](https://discourse.julialang.org/t/is-languageserver-jl-supposed-to-work-with-jump-jl/102026 "2023-07-24T15:18:17Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)
#### Post date: [July 24, 2023, 3:59pm UTC](https://discourse.julialang.org/t/is-languageserver-jl-supposed-to-work-with-jump-jl/102026/2 "2023-07-24T15:59:00Z")

</div>

I can’t speak for JuMP specifically, but my guess is no. Currently the LanguageServer does not expand macros, so it can’t see what variables will be defined by macros. I ran into this problem using Sumtypes.jl.

The reason it doesn’t expand is because macros can run arbitrary code that could cause side effects. However, Pluto notebooks already handle this behavior (expand macros silently and check for defined variables) so it should be possible, in theory.

But for the moment, you can just go into the VSCode Julia extension settings and turn off Missing Reference errors.

Edit: here is my post about this issue:

> [@\`Missing Reference: \_\` using Chain.jl](https://discourse.julialang.org/t/missing-reference-using-chain-jl/98334):
>
> I have been enjoying using Chain.jl. However, the VSCode Linter’s Missing Reference check doesn’t like that it requires using the underscore symbol without declaring a value for it. Is there any workaround for these false positives? Perhaps a way to tell the linter to ignore certain symbols?

---

_[View the full topic](https://discourse.julialang.org/t/is-languageserver-jl-supposed-to-work-with-jump-jl/102026)._
