fix for #11305 "subl" option in interactiveutil.jl #11329
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I think I figured out a solution to issue #11305 function edit seems to create bad path for sublime text option (i.e. "subl") in interactiveutil.jl
I think I figured it out if I change the path from:
ENV["JULIA_EDITOR"]="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
ENV["JULIA_EDITOR"]="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
edname stays as:
"/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" and not "subl" as it should while shell_split(edpath) produces the correct:
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
in order to fix it we need to change:
in 0.3.8 interactiveutil.jl line 34
from: elseif beginswith(edname, "subl")
to: elseif beginswith(edname, "subl") || endswith(string(edname),"subl")
and in the latest pre 0.4 from
in 0.3.8 interactiveutil.jl line 36
from: startswith(edname, "subl") || edname == "atom"
to: startswith(edname, "subl") || edname == "atom" || endswith(string(edname),"subl")
This is a pull request to change the code for the latest pre 0.4 I am not sure how to make a pull reqest to fix if for the latest 0.3 version.