GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — Add `pwshw` for console-less PowerShell on Windows by SteveL-MSFT · Pull Request #10962 · PowerShell/PowerShell Conversation
|
|
Steve Lee (@SteveL-MSFT) Re PR description - The PR doesn't fix initial request in #3028, it is implement another case. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) The consensus in the discussion for #3028 is that the solution is to create a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@alexbuzzbee pwshw is only one option from many in the complex topic. My PR seems add more flexibility and allow to experiment with console, non-console, pseudo-console and GUI modes, and also fix |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) I don't think the two are mutually exclusive |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Steve Lee (@SteveL-MSFT) I updated a description in my PR to clarify my vision. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Steve Lee (@SteveL-MSFT) Some packaging changes are needed:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Steve Lee (@SteveL-MSFT) Could you please elaborate more about the expectation of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Dongbo Wang (@daxian-dbw) updated description |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No tests running for pwshw. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) what do you mean? The additional test was run: https://powershell.visualstudio.com/PowerShell/_build/results?buildId=37337&view=logs&jobId=65e467a7-433b-584d-c8f4-72fcd5732f9d&taskId=6a14d04a-9a6d-5c41-f839-531117eeb032&lineStart=857&lineEnd=858&colStart=1&colEnd=1 I don't think there's a need to rerun all tests with pwshw.exe, it's a compilation flag. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Why not if we expect that some features will do not work? Are you sure that all feature which must works really works? (In my PR (although another scenario) 66 tests failed in one job) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) I'll see about running the tests manually, anything expecting a console won't work as that's the design of being consoleless. Otherwise, pwshw.exe doesn't do much by itself and still relies on ConsoleHost.dll. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Aditya Patwardhan (@adityapatwardhan) mscodehub build succeeded, will fix merge conflict after getting pwshw test results |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Steve Lee (@SteveL-MSFT) I tried the artifacts out of the mscodehub build. Does not seem to work :( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Aditya Patwardhan (@adityapatwardhan) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ok, definitely a problem here. Write-Host immediately fails. Need to have it handle the case there is no host. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
In my PR I follow these cases: (1) AllocConsole() for normal pwsh.exe scenario, (2) AttachConsole(-1) to attach to parent process console in Hidden scenario. This doesn't pass all tests on CIs, I still don't investigate what tests must pass but failed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Had to use Invoke-Pester since |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…eterParser.cs Co-Authored-By: Ilya <[email protected]>
Co-Authored-By: Ilya <[email protected]>
90cb59e to
fd0a4f4
Compare
fd0a4f4 to
957f516
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Add pwshw tests to daily - Update copyright notice in pwshw.tests.ps1
pwshw for console-less PowerShell on Windows
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I have still concerns about skipped tests. I'd expect that we add new positive test for pwshw if we skip a test for pwsh. But I did not review this in depth.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
FYI - #3028 (comment) talks about the console team's work to address this particulat deficiency. It might take some time to come to all Windows versions, but |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing this for now and waiting for Windows solution. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Steve Lee (@SteveL-MSFT) Even if we get this feature in Windows API in future we could merge 90% of this PR today and save your efforts. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Powershell -WindowStyle Hidden still shows a window briefly
There was an error while loading. Please reload this page.