mark-nicepants / figma2flutter

Converts design token json files to flutter
Apache License 2.0
17 stars 16 forks source link

[BUG] Unhandled exception: Instance of 'ProcessTokenException' #25

Closed mahindev-ai closed 2 months ago

mahindev-ai commented 3 months ago

:information_source: Info

Version: e.g. v2.8.15

:speech_balloon: Description

Enter a description of your problem here.
After following the steps in the documentation and later the steps in an "Issues" from this repository issue the following errors came out:

C:\Users\user\test>C:/Users/user/Documents/figma2flutter/bin/figma2flutter.exe --input ./design/tokens/ --output ./lib/tokens
Loading `$metadata`, `$themes` and design token files from ./design/tokens

Found 4 themes, generating code
Unhandledexception:
Instance of 'ProcessTokenException'
#0 Processor._safeProcess (package:figma2flutter/processor.dart:52)
#1 Processor._loopProcess (package:figma2flutter/processor.dart:42)
#2 Processor.process (package:figma2flutter/processor.dart:24)
#3 _processTokens (file:///c:/users/user/documentos/figma2flutter/bin/figma2flutter.dart:132)
#4 main (file:///c:/users/user/documentos/figma2flutter/bin/figma2flutter.dart:94)
<asynchronous suspension>

:scroll: tokens file you tried to import

Tokens It may be that a certain way of exporting or new options are not supported. When providing a json file we can hunt down problems more quickly

freemansoft commented 3 months ago

Can you try pulling the latest from this repo and use it instead of the last release? There should be more diagnostic data when a ProcessTokenException is thrown.

Also, can you provide a small-ish sample that exhibits this behavior?

freemansoft commented 2 months ago

Closing this as fixed with 0.3.0 alpha.

Note the token file on one drive is not accessible by me