-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Installer: Use Visual Studio Code as Git's default editor disables "Next >" button #1741
Comments
The installer looks for the registry setting Can you investigate what is different from this expectation on your machine? |
The only item under I do have an |
Hmm. That's unfortunate. Without a reliable means to detect the presence of VS Code, we cannot go forward. (And looking in the |
How about adding an "Other" option, which reveals both a text input and a button The editable text field would allow easily adding arguments. Like so: ["path_to_editor"] (Browse) This would make it easier to use portable/non-installed editors. It might also be helpful to make the path field always visible and the options |
Great idea! Now you only need to implement it and open a PR ;-) Interested? Start by installing the SDK and calling |
Thanks for the encouragement and instructions, I'll give it a try. |
I have the same issue and I am using VS Code in a "portable" mode (downloaded as ZIP and not as an installer). I don't have "Open with Code" and won't have it, because my dev setup for this project is "portable" (on a pen drive, in VHD file to be exact). Searching via PATH and propose it as VSCode location seems like a pretty good option IMHO. As a workaround I was able to solve this problem by right-clicking on a file where extension was not associated with any app yet and select "Open with... > (point at Code.exe)". After this Git setup found VSCode right away. But actually I don't want associate Code.exe with anything on the setups that I work on, so this is not a long term solution for me (I had to cleanup registry after this). |
No, because you are using something portable, which by definition can go away very easily and quickly. For your use case, I would suggest overriding the editor the good old way, manually, by setting |
@kelvin-mkc please do holler whenever you get stuck. I can assist. |
@dscho Thanks. I had some problems with the sdk a while ago and got around to So, I was editing the options on install.iss when I read Then I noticed that the portable installer has a root template with With that, I've been thinking: To make it really portable, perhaps the portable installer should behave a bit That way, one could use portable .gitconfig and .bashrc What do you think? |
This idea has been tossed around, but I am wary: I do not know how many existing users this would break, and with an estimated install base of several million, I have to be very protective: even breaking 0.001% of Git for Windows' users could overwhelm me (as Git for Windows' maintainer) with angry bug reports. |
Is there any guidance on this? I don't have that Reg Key in HKLM, but I do have it in HKCU. Any way you can modify the precheck to look in either location? I am on Win10 Pro 64-bit on 1803 Update, FYI. |
@dfloyd785 this is because VSCode 1.26 now defaults to a user-based install (no elevation required). The Git for Windows installer needs to be updated to look at either location. cc @ungps who is currently working on git-for-windows/build-extra#200 |
Hi,
You should be careful with user specific paths, they are usually not
accessible by other user accounts. Those paths should go into global
configs, not in system configs. Am I correct that the installer adds the
selection into the system config?
Best regards, Mike
…On Fri, Aug 17, 2018, 7:16 AM Brendan Forster ***@***.***> wrote:
@dfloyd785 <https://github.com/dfloyd785> this is because VSCode 1.26 now
defaults to a user-based install (no elevation required). The Git for
Windows installer needs to be updated to look at either location.
cc @ungps <https://github.com/ungps> who is currently working on
git-for-windows/build-extra#200
<git-for-windows/build-extra#200>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1741 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHJ-yEjSS4Ze3iHoSKE3yo9rOxnWJqzlks5uRqXvgaJpZM4U8EdP>
.
|
So I can confirm the problem is sort of a mix of people to blame. Firstly, VS Code defaults the choice of installation to be a user installation, you have to navigate to the downloads page to specify a system install. However, if possible, since this is now the default install method, I feel that you should either provide that as an instruction/warning to users wanting to use VSCode as the editor, or have the precheck query for both locations, and proceed if either returns as true. Or maybe contact the VS Code team and ask them to change the default install.
Thanks,
Dan
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
________________________________
From: Mike Friedrich <notifications@github.com>
Sent: Friday, August 17, 2018 8:19:00 AM
To: git-for-windows/git
Cc: dfloyd785; Mention
Subject: Re: [git-for-windows/git] Installer: Use Visual Studio Code as Git's default editor disables "Next >" button (#1741)
Hi,
You should be careful with user specific paths, they are usually not
accessible by other user accounts. Those paths should go into global
configs, not in system configs. Am I correct that the installer adds the
selection into the system config?
Best regards, Mike
On Fri, Aug 17, 2018, 7:16 AM Brendan Forster ***@***.***> wrote:
@dfloyd785 <https://github.com/dfloyd785> this is because VSCode 1.26 now
defaults to a user-based install (no elevation required). The Git for
Windows installer needs to be updated to look at either location.
cc @ungps <https://github.com/ungps> who is currently working on
git-for-windows/build-extra#200
<git-for-windows/build-extra#200>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1741 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHJ-yEjSS4Ze3iHoSKE3yo9rOxnWJqzlks5uRqXvgaJpZM4U8EdP>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1741 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ab53JC99AY4DQBArOcA4vWsff-8wxOsVks5uRt7kgaJpZM4U8EdP>.
|
Update Visual Studio Code [Insiders] to also look in HKCU, not only in HKLM. git-for-windows/git#1741 (comment) Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Allow user to select any editor by selecting the executable's path. git-for-windows/git#1741 (comment) Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Allow user to select any editor by selecting the executable's path. git-for-windows/git#1741 (comment) Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Here:
|
Awesome, that was fast! Keep up the great work!
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: ungps <notifications@github.com>
Sent: Saturday, August 18, 2018 7:08:46 AM
To: git-for-windows/git
Cc: dfloyd785; Mention
Subject: Re: [git-for-windows/git] Installer: Use Visual Studio Code as Git's default editor disables "Next >" button (#1741)
Here<git-for-windows/build-extra#200>:
* Fixed this #1795<#1795>
* Added Sublime and Atom as possible text editors.
* Now installer check both locations in registry.
* Added option to select any editor by browsing in the file system.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1741 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ab53JFZPBeydbeHixf40dNCzPfYGkoJ5ks5uSB_ugaJpZM4U8EdP>.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Update Visual Studio Code [Insiders] to also look in HKCU, not only in HKLM. git-for-windows/git#1741 (comment) Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Allow user to select any editor by selecting the executable's path. git-for-windows/git#1741 (comment) Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Update Visual Studio Code [Insiders] to also look in HKCU, not only in HKLM. git-for-windows/git#1741 (comment) Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Allow user to select any editor by selecting the executable's path. git-for-windows/git#1741 (comment) Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
I'm trying to install Git 2.19.0 and running in to this. I'm not seeing an option to pick using the file system either. I'm on vscode version: 1.27.2 (user setup) [EDIT] The "back" button workaround got me past it though... |
VS Code has ability to be installed in user setup mode. If you have it installed like that:
then the correct registry key to check is: |
To whom this may concern, I’m trying to update Git itself to version 2.19.0 from 2.18.0.windows.1 using the installer that can be downloaded from https://git-scm.com/downloads, and when I get to the part where I choose the default editor to use, as soon as I go to choose VS Code as the default, or anything other than Vim, the Next button grays out/disables. I’m hearing that this may be due to my having updated VS Code to their new user level install option instead of using the system level install they’ve had up till now. The Github for Desktop team has already updated their installer and things work on that end. The actual Git for Windows installer still doesn’t work in this regard with user-level installs of editors. Can we get this fixed soon? I don't want a workaround, I want the installer to do its job, irrespective of outside integrations. It should be loosely coupled from all those. Thanks! |
Is it possible that the fork that became 2.19 doesn't have the precheck for both locations for the reg key? I had no issues with 2.18 with VS Code after change listed in response to my previous email.
Get Outlook for Android<https://aka.ms/ghei36>
From: @MrAnthCool
Sent: Thursday, September 20, 09:29
Subject: Re: [git-for-windows/git] Installer: Use Visual Studio Code as Git's default editor disables "Next >" button (#1741)
To: git-for-windows/git
Cc: dfloyd785, Mention
To whom this may concern,
I’m trying to update Git itself to version 2.19.0 from 2.18.0.windows.1 using the installer that can be downloaded from https://git-scm.com/downloads, and when I get to the part where I choose the default editor to use, as soon as I go to choose VS Code as the default, or anything other than Vim, the Next button grays out/disables. I’m hearing that this may be due to my having updated VS Code to their new user level install option instead of using the system level install they’ve had up till now. The Github for Desktop team has already updated their installer and things work on that end. The actual Git for Windows installer still doesn’t work in this regard with user-level installs of editors. Can we get this fixed soon? I don't want a workaround, I want the installer to do its job, irrespective of outside integrations. It should be loosely coupled from all those. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1741 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ab53JGPKNtBB0l0rq8T3hcDL6QX4NGduks5uc8JbgaJpZM4U8EdP>.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
@MJCD Unfortunately, a very large fraction of Git for Windows users are in 'managed' corporate environments, so they don't get the opportunities that those in free-wheeling environments have. Often they (with their allocated personal user access control UAC limits) simply can't get the appropriate settings. Plus in the Kruger-Dunning spread there is always a swath of folks who's primary talents and specialisations are elsewhere. One gets complaints either ways (a) not enough buttons, (b) too many buttons, (c) remember my previous settings [and make it still work despite other changes], (d) I want to change my previous/original settings [I didn't realise what I needed at the time], (e) stop hassling me with question pages, (f) [other options available...] It's tricky, and the big picture is complicated. Hopefully a reasonable solution will be available soon. |
This comment was marked as off-topic.
This comment was marked as off-topic.
It is really sad to read this ticket: so many suggestions how other people should spend their time, and nobody really stepping up as an adult who takes things into their own hands. As it happens, I am convinced that this has been addressed, by people elsewhere who did that adult thing. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please be sure to review the code of conduct and be respectful of other users. cc/ @git-for-windows/trusted-git-for-windows-developers |
For transparency: the abusive user who was correctly reported by the @sentiment-bot has been blocked. |
Setup
I'm installing the 64 bit version of Git for Windows 2.18.0. Git for Windows 2.17.0 is already installed, but I have had this issue with fresh installs and every version of Git for Windows that supports "Visual Studio Code."
Windows 7 Pro, 64 bit.
defaults?
to the issue you're seeing?
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Launch the Git 2.18.0 Setup app
Click Next > until arriving on the the Choosing the default editor used by Git step.
Choose Use Visual Studio Code as Git's default editor (or Use Visual Studio Code Insiders as Git's default editor). Notice the Next > button becomes disabled and installation cannot continue. (The description of Visual Studio code is also gray, but it's black for all the other editor choices).

Click < Back to return to the Select Components step.
Click Next >, to return to Choosing the default editor used by Git. Notice that Use Visual Studio Code as Git's default editor is still selected, but the Next > button is now enabled and functions.

I expected to be able to click Next > immediately after selecting Use Visual Studio Code as Git's default editor on the Choosing the default editor used by Git step, not having to go back and forth through the wizard.
I was not able to click Next > to continue installation after selecting Use Visual Studio Code as Git's default editor on the Choosing the default editor used by Git step. Instead, I needed to go backwards and forwards in the wizard before I could continue.
The text was updated successfully, but these errors were encountered: