terminal icon indicating copy to clipboard operation
terminal copied to clipboard

wt command-line cannot consistently parse more than one argument

Open Jaykul opened this issue 6 years ago • 9 comments

Bottom line: the more arguments I put on wt the less likely it is to work. This is currently unusable even for launching the app clean.

Something like this, in a run dialog:

wt new-tab -p "PowerShell Core"; split-pane -H -p "Windows PowerShell"; split-pane -p cmd

Seems to work less than one time in five on my computer. Most of the time I get two panes, not three, and occasionally only one.

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.657]
Windows Terminal Version: 0.9.433.0

Steps to reproduce

Run the command above from a run dialog a half dozen times

Expected behavior

The window should open the same way every time, with three panes, one for each of the shells I have in Windows...

Actual behavior

Sometimes just PowerShell Core, sometimes both PowerShells, rarely all three including cmd.

Jaykul avatar Feb 16 '20 18:02 Jaykul

I can confirm that I'm seeing the same behaviour.

opus131 avatar Feb 17 '20 11:02 opus131

If i run wt with multiple arguments I always get:

split-pane : The term 'split-pane' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

If i just run wt split-pane -H it will work fine

wrexxor avatar Feb 18 '20 17:02 wrexxor

not recognized

You need to escape the ; so powershell doesn't consume it.

DHowett-MSFT avatar Feb 18 '20 18:02 DHowett-MSFT

I can confirm that wt does something similar on my machine. Repeating the following command: wt ; split-pane -V ; split-pane -V has resulted in:

  • Two vertical panes, with the right-most vertical pane also split horizontally (what?)
  • Two vertical panes
  • No panes, just the default tab

moswald avatar Feb 24 '20 16:02 moswald

I am seeing the same thing.

Repro

It repros with a very simple scenario... Execute this multiple times and often times the last split-pane does not execute:

wt.exe new-tab; split-pane -V ;split-pane -H

Note: getting rid of the last command seems to always work:

wt.exe new-tab; split-pane -V
  -or-
wt.exe new-tab; split-pane -H

brucejo75 avatar Mar 02 '20 01:03 brucejo75

I also reproduce it.

nbabanov avatar Mar 09 '20 10:03 nbabanov

split-pane ,new-tab only works from Run, address bar and search bar, but does not work if executed from powershell or cmd

3s-217 avatar Mar 15 '20 00:03 3s-217

:tada:This issue was addressed in #5090, which has now been successfully released as Windows Terminal Preview v0.11.1121.0.:tada:

Handy links:

ghost avatar Apr 22 '20 17:04 ghost

It works properly now! Thanks!

nbabanov avatar Apr 24 '20 09:04 nbabanov