Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/vide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ void main(List<String> args) async {
workingDirProvider.overrideWithValue(Directory.current.path),
];

app.main(args, overrides: overrides);
await app.main(args, overrides: overrides);
}
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final _canUseToolCallbackFactoryOverride = canUseToolCallbackFactoryProvider.ove
};
});

void main(List<String> args, {List<Override> overrides = const []}) async {
Future<void> main(List<String> args, {List<Override> overrides = const []}) async {
// Initialize Sentry and set up nocterm error handler
await SentryService.init();

Expand Down
4 changes: 3 additions & 1 deletion packages/vide_core/lib/services/vide_config_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,17 @@ class VideConfigManager {
///
/// Replaces forward slashes (/) with hyphens (-)
/// Example: /Users/bob/project -> -Users-bob-project
/// On Windows: D:\project -> D-project (colon removed as it's invalid in filenames)
String _encodeProjectPath(String absolutePath) {
// Normalize the path first to handle trailing slashes, etc.
final normalized = path.normalize(absolutePath);

// Replace path separators with hyphens
// On Windows, also handle backslashes
// On Windows, also handle backslashes and colons (invalid in filenames)
String encoded = normalized.replaceAll('/', '-');
if (Platform.isWindows) {
encoded = encoded.replaceAll('\\', '-');
encoded = encoded.replaceAll(':', ''); // Remove colons (e.g., D: -> D)
}

return encoded;
Expand Down