mark-nicepants / figma2flutter

Converts design token json files to flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Unhandled exception: Instance of 'ProcessTokenException'

mahindev-ai opened this issue · comments

ℹ️ Info

Version: e.g. v2.8.15

💬 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>

📜 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

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?

Closing this as fixed with 0.3.0 alpha.

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