Skip to content

Conversation

@iSazonov
Copy link
Collaborator

@iSazonov iSazonov commented Dec 30, 2020

PR Summary

Now works dir | ft -View <Tab>.
It has always been a problem to find out which format views exist.

PR Context

PR Checklist

@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Dec 30, 2020
@ghost ghost assigned rjmholt Dec 30, 2020
@iSazonov iSazonov added the Documentation Needed in this repo Documentation is needed in this repo label Dec 30, 2020
@ghost ghost added the Review - Needed The PR is being reviewed label Jan 7, 2021
@ghost
Copy link

ghost commented Jan 7, 2021

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@iSazonov iSazonov removed the Documentation Needed in this repo Documentation is needed in this repo label Apr 13, 2021
@ghost ghost removed the Review - Needed The PR is being reviewed label Apr 13, 2021
@ghost ghost added the Review - Needed The PR is being reviewed label Apr 20, 2021
@ghost
Copy link

ghost commented Apr 20, 2021

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

Copy link
Collaborator

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good, just have some style requests

Comment on lines 5319 to 5321
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type do these vars represent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed there var.

@iSazonov iSazonov force-pushed the completion-format-view branch from b0fbafd to 2e0c109 Compare June 3, 2021 14:34
@iSazonov
Copy link
Collaborator Author

iSazonov commented Jun 3, 2021

Rebased to move to latest .Net.

@ghost ghost removed the Review - Needed The PR is being reviewed label Jun 3, 2021
@rjmholt rjmholt requested a review from daxian-dbw June 10, 2021 17:31
@iSazonov
Copy link
Collaborator Author

        It 'Should complete $processList = Get-Process; $processList | <cmd>' -TestCases (
            @{ cmd = 'Format-Table -View '; expected = "'R A M'", "Priority", "process", "ProcessModule", "ProcessWithUserName", "StartTime" },

I still don't understand why this test only crashed on Windows.
I directly add in the test follow:

$a="'R A M'", "Priority", "process", "ProcessModule", "ProcessWithUserName", "StartTime"
$a | sort | write-verbose

and did get:

Priority
process
ProcessModule
ProcessWithUserName
'R A M'
StartTime

On all other platform CIs (Linux and MacOS) and on my local Windows system the result was as expected:

'R A M'
Priority
process
ProcessModule
ProcessWithUserName
StartTime

I don't found why Sort-Object (and C# Array.Sort() - this I tested too) works so weird on Windows CI and add a workaround (sort expected list too).
Does anyone understand what the cause of the problem is?

@ghost ghost added the Review - Needed The PR is being reviewed label Jun 20, 2021
@ghost
Copy link

ghost commented Jun 20, 2021

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

Copy link
Collaborator

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests look good, but that quoting logic I think could be simpler

@iSazonov
Copy link
Collaborator Author

I opened new issue in .Net Runtime to get understanding about the weird sort behavior.
Although the latter tests is more stable and we may not wait for an answer there.

@ghost ghost removed the Review - Needed The PR is being reviewed label Jun 21, 2021
@iSazonov
Copy link
Collaborator Author

dotnet/runtime#54472 (comment)

Our CI-Windows uses old Windows version without full ICU support. The link above contains a workaround if we want to have a consistency on all Windows 10 systems and use ICU instead of Windows NLS.

@iSazonov iSazonov mentioned this pull request Jun 25, 2021
@iSazonov iSazonov force-pushed the completion-format-view branch from 8d9b473 to 45ef40a Compare June 25, 2021 08:42
@ghost ghost added the Review - Needed The PR is being reviewed label Jul 8, 2021
@ghost
Copy link

ghost commented Jul 8, 2021

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@rjmholt
Copy link
Collaborator

rjmholt commented Jul 13, 2021

@PoshChan please remind me in 4 hours

@ghost ghost removed the Review - Needed The PR is being reviewed label Jul 13, 2021
@rjmholt rjmholt enabled auto-merge (squash) July 13, 2021 17:23
@rjmholt rjmholt merged commit 0f3bc73 into PowerShell:master Jul 13, 2021
@iSazonov iSazonov deleted the completion-format-view branch July 13, 2021 17:45
@iSazonov iSazonov added this to the 7.2.0-preview.8 milestone Jul 13, 2021
@PoshChan
Copy link
Collaborator

@rjmholt, this is the reminder you requested 4 hours ago

@ghost
Copy link

ghost commented Jul 22, 2021

🎉v7.2.0-preview.8 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants