Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

[BUG]: not a valid Win32 application #149

Closed

Description

@Over7ure

What happened?

The command gh copilot suggest\explain\config *** leads to an error failed to run extension: fork/exec C:\Users\***\AppData\Local\GitHub CLI\extensions\gh-copilot\gh-copilot.exe: %1 is not a valid Win32 application. in my PowerShell.

Versions

gh version 2.73.0 (2025-05-19), gh-copilot v1.1.0, PowerShell v7.5.1, Windows11 24h2

Any further comment would be appreciated.

Activity

  1. babakks commented on Jul 30, 2025

    @babakks
    Member

    Thanks for reporting this, @Over7ure! 🙏

    This issue has been raised in the past (See #6) and the solution is to upgrade gh and reinstalling the gh-copilot extension.

    Can you please follow these steps and let me know how it went?

    1. Upgrade gh to the latest version, if not already done.
    2. Remove the existing extension installation via:
      gh ext remove gh-copilot
    3. Re-install gh-copilot:
      gh ext install github/gh-copilot
      
    4. Run gh copilot explain ls and see if it's working.
  2. Over7ure commented on Aug 9, 2025

    @Over7ure
    Author

    After upgrading gh and reinstalling the gh-copilot extension, there is a new error:

    failed to run extension: exec: "C:\Users\***\AppData\Local\GitHub CLI\extensions\gh-copilot\gh-copilot": executable file not found in %PATH%
    

    And I have to add this path to %PATH% manually.
    Now it works properly.

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

    bugSomething isn't workingneeds-triageneeds to be reviewed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions