omi icon indicating copy to clipboard operation
omi copied to clipboard

Windows Setup Failed: Encoding error in whisper_flutter_new dependency

Open hellKing-Diablo opened this issue 9 months ago • 2 comments

Describe the bug The setup process fails on Windows machines due to a character encoding error in the whisper_flutter_new dependency. The pubspec.yaml of that specific package contains non-ASCII punctuation (likely ideographic commas) in its description field, which causes the Dart parser to crash with an "Unexpected character" error during dependency resolution. I have fixed the issue highlighted below screenshot section

To Reproduce Steps to reproduce the behavior:

  1. Clone the repository on a Windows machine.
  2. Cd to the app folder in powershell
  3. Open PowerShell and run the setup script: .\setup\scripts\setup.ps1
  4. Wait for the Resolving dependencies... step.

See error.

Current behavior The setup script terminates with a PSSecurityException or, after bypassing execution policy, fails during flutter pub get with the following error:

Error on line 2, column 127: Unexpected character. ... implementation for Androidã€iOSã€macOS. This prevents the application from building or running.

Expected behavior The pubspec.yaml should be parsed correctly, dependencies should resolve without encoding errors, and the setup script should complete successfully.

Screenshots

Image Image

Proposed Solution (Already Submitted)

I have identified the root cause and submitted a fix to the upstream dependency.

👉 Link to Fix: https://github.com/BasedHardware/whisper_flutter_new/pull/2

Once that PR is merged and a new version is published, OMI will work on Windows again. In the meantime, Windows users can use a dependency_override to point to a fixed local version.

user ID (can we access the user info to validate the bug?): N/A (Error occurs during initial setup/compilation, before app launch).

Smartphone + device (please complete the following information):

Device: Windows PC / Laptop

OS: Windows 10/11

Browser: N/A (CLI / Flutter SDK Issue)

App Version: 1.0.524+690 (Source Code)

Dart/Flutter: Flutter SDK (Stable)

Additional context The issue appears to be located in the upstream dependency whisper_flutter_new.

Offending File: whisper_flutter_new/pubspec.yaml

Cause: The description field uses 、 (U+3001, Ideographic Comma) or similar non-standard punctuation instead of standard ASCII commas (,).

Workaround: Removing the ref commit hash in the main pubspec.yaml or using a dependency_override to a local fixed version allows the setup to proceed.

hellKing-Diablo avatar Feb 13 '26 21:02 hellKing-Diablo

I am looking forward to this.!

hugoaap-code avatar Feb 13 '26 22:02 hugoaap-code

Had this issue too. As a temporary fix I am using: whisper_flutter_new: ^1.0.1

parminderjit-s avatar Feb 17 '26 17:02 parminderjit-s