RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Unable to export icons for Android #156

Closed margarita-v closed 2 years ago

margarita-v commented 2 years ago

Download release bundle according to manual installation instruction. Use standard android config with no changes and sample Android figma file for the light theme (lightFileId: MRVOEjTRatddzaMN7iYlAe).

log for figma-export icons:

2022-03-02T12:20:29+0300 info com.redmadrobot.figma-export : Using FigmaExport 0.32.2 to export icons to Android Studio project.
2022-03-02T12:20:29+0300 info com.redmadrobot.figma-export : Fetching icons info from Figma. Please wait...
2022-03-02T12:20:31+0300 info com.redmadrobot.figma-export : Fetching vector images...
2022-03-02T12:20:32+0300 info com.redmadrobot.figma-export : Processing icons...
2022-03-02T12:20:32+0300 info com.redmadrobot.figma-export : Downloading remote files...
2022-03-02T12:20:33+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 1/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 2/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 3/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 4/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 5/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 6/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 7/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 8/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 9/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 10/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 11/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 12/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export.file-downloader : Downloaded 13/13
2022-03-02T12:20:34+0300 info com.redmadrobot.figma-export : Converting SVGs to XMLs...

It seems that the script never finishes and there are no generated icons in output. Same behaviour for figma-export images for config changes:

images:
    format: svg
subdan commented 2 years ago

Do you have installed Java? Just run java in the terminal. If you see the following error, install Java.

The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
margarita-v commented 2 years ago

Java is installed

java -version 
openjdk version "1.8.0_312"
OpenJDK Runtime Environment Corretto-8.312.07.1 (build 1.8.0_312-b07)
OpenJDK 64-Bit Server VM Corretto-8.312.07.1 (build 25.312-b07, mixed mode)
subdan commented 2 years ago

FigmaExport can’t find vd-tool binary to convert SVG to XML. I recommend you to install FigmaExport via Homebrew to avoid this issue. As a temporary solution you can place vd-tool folder near the figma-export.yaml file.

margarita-v commented 2 years ago

Thank you, placing vd-tool folder helps. Hopefully Homebrew installation will be fixed too https://github.com/RedMadRobot/figma-export/issues/155