Skip to content

Commit

Permalink
Check for empty depot path string
Browse files Browse the repository at this point in the history
Closes #24.

Emacs always passes a depot path to the julia script, but when it's an empty string that
indicates that the depot path elisp variable is not set. This will allow users to set their
own JULIA_DEPOT_PATH without having to configure eglot-jl.
  • Loading branch information
non-Jedi committed Jan 9, 2023
1 parent b18dcd6 commit 3e66d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglot-jl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ src_path = length(ARGS) >= 1 ? ARGS[1] : pwd()
# - environment: ENV["JULIA_DEPOT_PATH"]
# - command-line: ARGS[2]
depot_path = get(ENV, "JULIA_DEPOT_PATH", "")
if length(ARGS) >= 2
if length(ARGS) >= 2 && ARGS[2] != ""
depot_path = ARGS[2]
end

Expand Down

0 comments on commit 3e66d60

Please sign in to comment.