You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PowerShell Chinese encoding + docx read + grep download + Word COM issues on Windows #27476
On Windows 11, OpenCode encountered several toolchain issues when asked to process .docx files (read and write) and handle non-ASCII text through PowerShell:
1. Read tool: cannot handle .docx files
Read returns Cannot read binary file for .docx (ZIP+XML). This is a very common format for documents.
2. Grep tool: transport error downloading ripgrep
Transport error (GET https://github.com/BurntSushi/ripgrep/releases/download/...)
Prevents file content search when ripgrep is not yet installed.
3. PowerShell $var: syntax causes ParserError
When writing PowerShell scripts, patterns like "[$file:$lineNum] $line" trigger:
Variable reference is not valid. ':' was not followed by a valid variable name character.
Generated code snippets should use ${file} to be safe.
This issue appears to be a duplicate of an existing issue. Please check:
PowerShell Chinese encoding + docx read + Word COM issues on Windows #27475: Nearly identical report by the same author covering the same four issues (Read tool + .docx files, Grep transport error on Windows, PowerShell string interpolation ParserError, Word COM HRESULT error on Windows 11 / PowerShell 7)
Please continue the discussion on #27475 and close this one to avoid fragmentation.
Activity
github-actions commentedon May 14, 2026
This issue appears to be a duplicate of an existing issue. Please check:
Please continue the discussion on #27475 and close this one to avoid fragmentation.