You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ionic cordova wrapping swallows "Terminate batch job (Y/N)?" prompt, causing e.g. cordova run processes to not really stop and cause increasing port numbers to be used
#2916
Open
janpio opened this issue
Dec 10, 2017
· 3 comments
Compare what happens when you hit Ctrl + C when running ionic cordova run ... vs. when running cordova run ...:
On the pure cordova command you get an additional prompt:
^CTerminate batch job (Y/N)? y
When you immediately run the same command again after killing it, it should just start a server again on the same port, 8000 by default. But with ionic cordova ... you get increasing port numbers:
PS C:\Projects\Ionic Demo Projects\browserTest2> cordova run browser
startPage = index.html
Static file server running @ http://localhost:8000/index.html
CTRL + C to shut down
200 /index.html (gzip)
...
404 /screen
^CTerminate batch job (Y/N)?
^C
PS C:\Projects\Ionic Demo Projects\browserTest2> cordova run browser
startPage = index.html
Static file server running @ http://localhost:8000/index.html
CTRL + C to shut down
304 /index.html
...
404 /screen
That this "Terminate batch job" prompt is important can be deduced from what happens when you first run ionic cordova run with increasing port numbers, then cordova run once with another +1 port and kill it with the prompt, after that the next run will get the initial port number again:
...
PS C:\Projects\Ionic Demo Projects\browserTest2> cordova run browser
startPage = index.html
Static file server running @ http://localhost:8003/index.html
CTRL + C to shut down...
^CTerminate batch job (Y/N)?
^CThe system cannot open the device or file specified.
PS C:\Projects\Ionic Demo Projects\browserTest2> cordova run browser
startPage = index.html
Static file server running @ http://localhost:8000/index.html
CTRL + C to shut down
...
The text was updated successfully, but these errors were encountered:
janpio
changed the title
ionic cordova wrapping swallows "Terminate batch job (Y/N)?" prompt, causing e.g. cordova run processes to not really stopionic cordova wrapping swallows "Terminate batch job (Y/N)?" prompt, causing e.g. cordova run processes to not really stop and cause increasing port numbers to be used
Dec 10, 2017
Compare what happens when you hit Ctrl + C when running
ionic cordova run ...
vs. when runningcordova run ...
:On the pure
cordova
command you get an additional prompt:When you immediately run the same command again after killing it, it should just start a server again on the same port,
8000
by default. But withionic cordova ...
you get increasing port numbers:vs.
That this "Terminate batch job" prompt is important can be deduced from what happens when you first run
ionic cordova run
with increasing port numbers, thencordova run
once with another +1 port and kill it with the prompt, after that the next run will get the initial port number again:PS: Found via StackOverflow question https://stackoverflow.com/q/47737515/252627
The text was updated successfully, but these errors were encountered: