Repository navigation
Converge the console hosts - #939
Merged
Merged
Conversation
1 of 4 tasks
This was referenced May 4, 2016
Andy Jordan (andyleejordan)
force-pushed
the
andschwa/consolehost
branch
2 times, most recently
from
May 5, 2016 21:31
2f21682 to
8c960f3
Compare
Andy Jordan (andyleejordan)
force-pushed
the
andschwa/consolehost
branch
2 times, most recently
from
May 6, 2016 21:46
e4bfc7e to
a8ae949
Compare
Andy Jordan (andyleejordan)
force-pushed
the
master
branch
from
May 6, 2016 22:22
41fa154 to
4017aeb
Compare
Andy Jordan (andyleejordan)
force-pushed
the
andschwa/consolehost
branch
8 times, most recently
from
May 11, 2016 21:23
b1f3477 to
203cb21
Compare
Andy Jordan (andyleejordan)
force-pushed
the
andschwa/consolehost
branch
4 times, most recently
from
May 11, 2016 22:59
17650d9 to
6559c8d
Compare
Member
Author
|
This is seriously annoying. These pass locally on both Windows and Linux... but I'm having problems getting them to run correctly in AppVeyor's environment where there are no |
Member
Author
|
The non-pending Linux, OS X, and Windows tests all pass locally. |
Andy Jordan (andyleejordan)
force-pushed
the
andschwa/consolehost
branch
from
May 12, 2016 22:01
281cc47 to
0806735
Compare
Member
Author
|
I've narrowed down the OS X test failures to be caused by the lack of a TTY on the OS X test runner (which is strange, considering that the Linux runner has a TTY, and Travis already tracked and fixed a bug where OS X did not have a TTY allocated; thus I believe it to be a regression). |
Member
Author
|
For reference, previous Travis bug is travis-ci/travis-ci/issues/2872. Nonetheless, I think that |
Instead of hard-coded paths.
Not supported with non-PSReadLine Open PowerShell host.
This code is all used for reading secure strings, which we don't yet support.
While this passes on Linux, it does not pass on Windows, indicating a platform-specific bug in .NET Core.
These pass locally, just not with AppVeyor's host.
`Start-PSBootstrap` takes care of this.
These tests *do not* fail locally, nor on the Linux test runner. They do not fail when accessing the OS X runner under debug mode. The *only* cause is the lack of a TTY on the OS X runner, which is a Travis CI regression. Moreover, the formatting tests do not fail when the TTY is removed locally. These absolutely should be fixed at some point, but it is not worth spending any more time on it.
Makes more sense.
Which is most likely true.
Andy Jordan (andyleejordan)
force-pushed
the
andschwa/consolehost
branch
2 times, most recently
from
May 17, 2016 20:35
bc8f6eb to
2df16d0
Compare
Revert change made within the function since the function itself is compiled out for the portable version of PowerShell.
Andy Jordan (andyleejordan)
force-pushed
the
andschwa/consolehost
branch
from
May 17, 2016 20:47
2df16d0 to
64efb9d
Compare
Contributor
|
LGTM |
Thatgfsj (Thatgfsj)
pushed a commit
to Thatgfsj-contribs/PowerShell
that referenced
this pull request
Aug 6, 2026
Converge the console hosts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This resolves #495 and #912.
This is a work-in-progress, do not merge.Next steps:
fully deprecatepowershell-nativecustom hostCoreConsoleHostprojectdeprecate or reimplementconsoleHostFilefeaturefixmark failing tests as pendingdeploy modules in build script rather than as contentuseuse shim projectfileslike in libuvmerge our managed ReadLine backupuseSystem.Console.ReadLine()BufferSizeHow it was done:
The managed
RawUserInterfacefromCoreConsoleHostwas used to replace the Windows-centricConsoleControlof theConsoleHost. The work done to portPSReadLineto Linux enabled a much easier replacement of theReadLineaspects ofConsoleHostUserInterface. While this deprecates our previousReadLineimplementation; it was required to push .NET Core to implement the APIs necessary to portPSReadLine. The managed entranceStartfunction is replaced with aMainfunction for thedotnetnative host to build an app.This change is