ScerIO / icon_font_generator

☣️ Flutter Icon Font Generator
https://pub.dev/packages/icon_font_generator
Other
96 stars 50 forks source link

Cannot extract a file from path #19

Open stepesdrabes opened 2 years ago

stepesdrabes commented 2 years ago

I'm facing this issue when I'm trying to generate the icons.

C:\Users\theza\AndroidStudioProjects\reactions_test>icon_font_generator --from=assets/ic
ons --class-name=UiIcons --out-font=assets/fonts/io_icons.ttf --out-flutter=lib/widgets/
icons.dart

Unhandled exception:
Unsupported operation: Cannot extract a file path from a c URI
#0      _Uri.toFilePath (dart:core/uri.dart:2636:7)
#1      new File.fromUri (dart:io/file.dart:248:49)
#2      GenerateCommand.run (file:///C:/Users/theza/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/icon_font_generator-3.1.0/bin/icon_font_generator.dart:111:27)
<asynchronous suspension>
#3      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#4      main (file:///C:/Users/theza/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/icon_font_generator-3.1.0/bin/icon_font_generator.dart:13:5)
<asynchronous suspension>
RBT22 commented 2 years ago

Same here, can somebody help, please?

Yahhi commented 2 years ago

The same error. Would appreciate any help

urusai88 commented 2 years ago

I think https://github.com/rbcprolabs/icon_font_generator/blob/76d8e8e96114c9b40c7b8e031516a1dea6855484/bin/icon_font_generator.dart#L111-L113 should be like

final iconsMap = File.fromUri(tempOutDirectory.uri.resolve(
    path.basenameWithoutExtension(argResults!['out-font']) + '.json'));
christiankadjo commented 2 years ago

Hello, i have the same problem...No fix yet ?

JKazimiers commented 11 months ago

Hi, is there any update yet? I still have the same problem in version 3.2.0.