-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Labels
Description
I'm using LS.jl with Sublime. A problem I've encountered is that sometimes some imports get marked as "Missing reference", but not in VSC and not when running the script.
After some digging, I believe I have found the culprit, which is env_path defaulting to "" here:
| function LanguageServerInstance(pipe_in, pipe_out, debug_mode::Bool = false, env_path = "", depot_path = "", packages = Dict()) |
Since ("" == nothing) == false, the second branch gets executed here, instead of the first:
This doesn't affect VSC because the extension supplies an environment unconditionally:
LS.jl should either default to nothing, or SS.jl should handle empty strings. Not making a PR because I don't know what you prefer. Supplying nothing to SymbolServerProcess appears to have resolved the issue for me.
May or may not be the cause of #313 too.
hbsmith, lassepe, w9, gwatcha, AlexLewandowski and 8 more