-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
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:
- Clone the repository on a Windows machine.
- Cd to the app folder in powershell
- Open PowerShell and run the setup script: .\setup\scripts\setup.ps1
- 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
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.