Skip to content

Invoke-Item /tmp fails on Debian with strange errors #6827

Closed

Description

@iricigor

Steps to reproduce

Invoke-Item /tmp

Expected behavior

Throw a PowerShell error (i.e. no default handler is available or similar).

The issue is not folder specific, i.e. it fails on any folder. It is tested on PS 6.1.0-preview.2

The issue seems to be related to #4252 and #4262, but this is more to address proper error handling than to actually implement the functionality.

Actual behavior

It throws different errors from the underlying system.
On Debian Stretch, it throws full 9 line xdg-open error stack.
screenshot_1

On Debian subsystem on Windows 10, it throws 'No such file or directory' whereas folder exists. If a folder is really not existing, it throws 'Cannot find path'
screenshot_2

Environment data

> $PSVersionTable

Activity

  1. SteveL-MSFT commented on Jan 31, 2019

    @SteveL-MSFT
    Member

    Igor (@iricigor) does this repro with 6.2-preview.4? I tried this on macOS and it opened the /tmp folder just fine

  2. iricigor commented on Feb 4, 2019

    @iricigor
    Author

    Hi Steve Lee (@SteveL-MSFT), I cannot reproduce the problem on Ubuntu 16.04 VM with PowerShell 6.1.2, neither with 6.2.0-preview.3. 😌

    However, on Windows Subsystem Linux (WSL) problem persists on both distributions I have, Ubuntu 16.04 and Debian 9, with both latest official and preview versions of PowerShell. In all 4 cases, the error is the same as the above. Though, I am not even sure if that's supported scenario (pwsh running under Linux, but with Windows GUI).

  3. SteveL-MSFT commented on Feb 5, 2019

    @SteveL-MSFT
    Member

    There have been issues running with WSL that don't repro with the Linux kernel. I would probably suggest opening this in https://github.com/Microsoft/WSL

  4. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  5. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  6. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  7. added
    Resolution-No Activity
    on Nov 16, 2023
  8. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-No ActivityWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions