Skip to content

Commands module is causing errors for missing help languages #509

Closed
@daviwil

Description

@daviwil

Looks like we need to use -ErrorAction Ignore on the Import-LocalizedData call here:

https://github.com/PowerShell/PowerShellEditorServices/blob/master/module/PowerShellEditorServices/Commands/PowerShellEditorServices.Commands.psm1#L1

Ideally we'd see the errors in case there's a legitimate problem but for now the logs are getting filled with this error (probably because of another issue in PowerShellContext) so it's better to cut down on the noise.

11/06/2017 11:20:02 AM [ERROR] - Method "ExecuteCommand" at line 539 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs

    Execution completed with errors:
    
    Cannot find the Windows PowerShell data file 'Strings.psd1' in directory 'C:\Users\muzza\.vscode\extensions\ms-vscode.powershell-1.3.1\modules\PowerShellEditorServices\Commands\en-GB\', or in any parent culture directories.
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions