-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
external:lspRelated to LanguageServer.jlRelated to LanguageServer.jl
Description
Hello.
I have the following false positive "Julia: missing reference" warning in presence of variables defined inside a macro.
Here an example:
using JuMP, HiGHS
model = direct_model(HiGHS.Optimizer())
@variable(model, x[i=1:10] .>= 0) # getting "Julia: Missing reference: x"
@constraint(model, convex, x .== 1) # getting "Julia: Missing reference: x" and "Julia: Missing reference: convex"
I understand it is a missing reference as the variable "x" is defined inside the @variable macro, but is there a way to let the LSP understand it or to omit the warning just for that specific line?
Something similar happens with DataFrames.
If I access the column "col1" as "df.col1", it is marked as missing. Same as before, can I inform the LSP or omit the warning, just for that line?
Thank you!
jgardona and ajwheeler
Metadata
Metadata
Assignees
Labels
external:lspRelated to LanguageServer.jlRelated to LanguageServer.jl