Skip to content

Windows Setup Failed: Encoding error in whisper_flutter_new dependency #4806

@hellKing-Diablo

Description

@hellKing-Diablo

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: BasedHardware/whisper_flutter_new#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs-toolingLayer: Documentation, examples, dev toolsp2Priority: Important (score 14-21)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions