-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes “Not a valid executable” error in installer #221
Conversation
Signed-off-by: aakriti-jain <[email protected]>
19d40ad
to
1d91e7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can use this opportunity to make the code less confusing... What do you think?
installer/install.iss
Outdated
end; | ||
if Pos('.exe',Lowercase(Path))=0 then begin | ||
CustomEditorPath:=EditorPage.Values[0]; | ||
CustomEditorOptions:=''; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Thank you so much for working on this!
I think it would be wonderful if the
Furthermore, instead of the hard-coded This is asking a lot, though... it is kind of the triple serving of fries with home made aioli and the truffle mayonnaise. |
The code is currently such that after every change, it checks weather the variable But still I am working on the solution for it. I will let you know if I manage to get it to work. |
You're right! I was wrong to mention that function. What I meant was the validation that would bug the user with that error message unless the path exists and ends in |
Please note that Git v2.20.0 has already been released, and therefore I want to publish Git for Windows v2.20.0 as soon as possible. Unfortunately, this means that this PR won't make it in before that version, but given that the custom editor option is relatively new (and does not seem to be used very often yet), I think we can take our time to hammer out the kinks and get it into v2.20.1 (or v2.20.0(2), or v2.21.0, whichever comes first after we're done with this PR). Does that sound okay, @aakriti-jain? |
Sorry @dscho I had exams in my college and had to pause the work on it. I will surely work on it and complete this task surely before the next release. |
@aakriti-jain no worries. Do you want me to pick up some tasks, or do you want me to wait for you to do it all? |
@dscho If we have enough time, I'd love to work on this issue. I want to contribute to the project! |
… into custom-editor
@aakriti-jain excellent. I think we have enough time. Just let me know whenever I can be of assistance. |
Signed-off-by: aakriti-jain <[email protected]>
8a8b28b
to
30b895e
Compare
@dscho I have written the code as you suggested such that function So I guess this was not an error of the new code that I wrote, but with the Sublime Text instead. So should I try to fix this in the same PR or move it to a second? |
This topic branch is based on the Pull Request at #221 and then makes sure that these work as well as we can make them: - code --wait - code.cmd --wait - "C:\Program Files\Microsoft VS Code\bin\code.cmd" --wait - "C:\Program Files\Some Editor\se.exe" - C:\Program Files\Some Editor\se.exe Hopefully this will satisfy every user (or at least give those who really want something else, still, a good starting point to take care of their own wishes). Signed-off-by: Johannes Schindelin <[email protected]>
The custom editor setting in the installer [has been improved substantially](#221). Signed-off-by: Johannes Schindelin <[email protected]>
@aakriti-jain thank you so much! I worked a bit on top of your patches, and I think it should work with Sublime Text now. Could I ask you to test? |
Yes I will test it now! Sorry I was out of station these days and couldn't test it then. I will just test and complete this issue. |
@dscho all the cases have been tested and most of them worked perfectly fine! Thank you so much for the extra patches you made! Just a thing more: This option is still disabled- I have Sublime Text 3 properly installed but its not showing so. |
Hmm. I don't have that installed... Could you maybe debug by placing strategic "debug print statements" (I usually abuse |
Can I work on it a bit later in a separate PR? Been a bit busy these days |
Of course! |
This issue was addressed in git-for-windows/git#1951.
Currently, I have only edited the error message as it only showed the first 3 characters if the path was not of a valid .exe file.
I need a suggestion: Should I also make it support CMD commands using %PATH% enviroment? Currently the message is apt for its working.
Signed-off-by: Aakriti Jain [email protected]