Skip to content
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

The --wait switch no longer works #61065

Closed
thomaslevesque opened this issue Oct 16, 2018 · 15 comments
Closed

The --wait switch no longer works #61065

thomaslevesque opened this issue Oct 16, 2018 · 15 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@thomaslevesque
Copy link

I've been using VSCode as my Git editor for a while, with the following value for core.editor:

'C:\Program Files (x86)\Microsoft VS Code\Code.exe' --wait

It was working fine, but now Git keeps waiting after I closed the editor tab, so I suspect the process Git is waiting for is still running when it should stop.

(Using VSCode 1.28.1)

@vscodebot vscodebot bot added the git GIT issues label Oct 16, 2018
@rafalborczuch
Copy link

As a workaround you can add -n switch to force opening a new VS Code window.

@joaomoreno joaomoreno assigned bpasero and unassigned joaomoreno Oct 16, 2018
@joaomoreno
Copy link
Member

joaomoreno commented Oct 16, 2018

@bpasero I actually just saw this happen live when @rebornix was showing me a feature. We were on a new Windows machine.

@joaomoreno joaomoreno removed the git GIT issues label Oct 16, 2018
@bpasero
Copy link
Member

bpasero commented Oct 17, 2018

@joaomoreno @thomaslevesque are you running this from the integrated terminal?

@bpasero bpasero added the info-needed Issue requires more information from poster label Oct 17, 2018
@thomaslevesque
Copy link
Author

@bpasero no, running from an independent terminal

@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label Oct 17, 2018
@bpasero bpasero added this to the October 2018 milestone Oct 17, 2018
@bpasero
Copy link
Member

bpasero commented Oct 17, 2018

@thomaslevesque I cannot reproduce, here is what happens:

grid-tw

What is your windows version? You can find out by running winver.exe from the command line.

@rebornix can you reproduce easily?

@thomaslevesque
Copy link
Author

@bpasero in your scenario, it's a new instance of VSCode, and closing the tab closes VSCode, so it works. In my scenario I already have a VSCode instance running. The new tab is created in the existing window, so closing it doesn't close the window.

@bpasero
Copy link
Member

bpasero commented Oct 17, 2018

@thomaslevesque I understand, but I cannot reproduce that either.

@bpasero bpasero removed the bug Issue identified by VS Code Team member as probable bug label Oct 17, 2018
@bpasero bpasero removed this from the October 2018 milestone Oct 17, 2018
@joaomoreno
Copy link
Member

joaomoreno commented Oct 17, 2018

@bpasero It was integrated terminal using cmd.exe. Stable. Also repros in external command prompt.

@bpasero
Copy link
Member

bpasero commented Oct 18, 2018

@joaomoreno I cannot reproduce.

LOOK HERE: Everyone, what is your exact windows version? Does it reproduce without configuring any settings?

Adding @Tyriar for the integrated terminal.

@bpasero
Copy link
Member

bpasero commented Oct 18, 2018

@joaomoreno @thomaslevesque wait, you are not using the actual code.exe in program files to do this right? That will not work, you must be using our "code" global command.

@thomaslevesque
Copy link
Author

Everyone, what is your exact windows version?

Windows 10 64bit v1803

Does it reproduce without configuring any settings?

What kind of settings do you mean? The Git editor settings are as described in the first message (I think this setup was done by the Git for Windows installer)

That will not work, you must be using our "code" global command.

Ah, that works! Thanks!

@bpasero bpasero closed this as completed Oct 18, 2018
@joaomoreno
Copy link
Member

wait, you are not using the actual code.exe in program files to do this right? That will not work, you must be using our "code" global command.

The machine where I saw it happening was the demo booth machine, which wasn't set up by me. It was also a shiny new windows, with pretty much nothing installed but (1) Code and (2) Git. Afaik, Git can automatically configure Code as the default editor. It is possible that they are doing the wrong thing and using code.exe as the editor value. I can't check any more, since I'm not with the machine anymore...

If this is true, we might wanna follow up with the Git for Windows guys and get them to do the right thing.

@rebornix
Copy link
Member

@joaomoreno I still have this issue on my machine and probably we can do some troubleshooting together.

@rebornix
Copy link
Member

Some interesting workaround mentioned in #60192 (comment)

@joaomoreno
Copy link
Member

@bpasero That is exactly the problem. There's already an issue in the Git package: git-for-windows/git#1875

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants