Skip to content

[Bug]: zip extraction of comment-checker fails on windows with "zip extraction failed" #552

@AKTheKnight

Description

@AKTheKnight

Prerequisites

  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

Opening opencode on Windows with oh-my-opencode installed throws up a read error about downloading comment-checker.

Image

Steps to Reproduce

  1. Install opencode on windows
  2. Install oh-my-opencode on windows
  3. open opencode

Expected Behavior

Opencode to open with no errors

Actual Behavior

An error is shown about failing to download comment-checker, and then "Comment checking disabled".

Doctor Output

oMoMoMoMo... Doctor


Installation
────────────────────────────────────────
  ✗ OpenCode Installation → OpenCode is not installed
  ✓ Plugin Registration → Registered

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Valid JSON config

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ○ OpenAI (ChatGPT) Auth → Auth plugin not installed
  ○ Google (Gemini) Auth → Auth plugin not installed

Dependencies
────────────────────────────────────────
  ⚠ AST-Grep CLI → Not installed (optional)
  ⚠ AST-Grep NAPI → Not installed (optional)
  ⚠ Comment Checker → Not installed (optional)

Tools & Servers
────────────────────────────────────────
  ⚠ GitHub CLI → Not installed (optional)
  ⚠ LSP Servers → No LSP servers detected
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found

Updates
────────────────────────────────────────
  ✓ Version Status → Up to date (2.13.2)

Summary
────────────────────────────────────────

  5 passed, 1 failed, 5 warnings, 3 skipped
  Total: 14 checks in 369ms

✗ Issues detected. Please review the errors above.

// User note:
Open code is installed, I can launch it with `opencode`, and `gcm opencode` returns the details:
CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     opencode.exe                                       1.3.5.0    C:\Users\alex\AppData\Local\Microsoft\WinGet\Packages\SST.opencode_Microsoft.Winget.Source_8wekyb3d8bbwe\opencode.exe

Error Logs

[oh-my-opencode] Failed to download comment-checker: zip extraction failed (exit 1): Expand-Archive : The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
At line:1 char:1
+ Expand-Archive -Path 'C:\Users\alex\AppData\Local\oh-my-opencode\bin\ ...

[oh-my-opencode] Comment checking disabled.

Configuration

Additional Context

Running Import-Module Microsoft.PowerShell.Archive as suggested manually throws no errors

I'm running PowerShell 7.5.4

Operating System

Windows

OpenCode Version

1.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions