Why do I get a parsing error?
Please provide:
- Code Connect CLI version : 1.3.2
- Operating system : mac OS Sonoma 14.4
- Code Connect file, Figma design and/or relevant code snippet that could help us get more context
- Cannot be attached for security reasons
A parsing error occurs when attempting commands such as connect, publish, and parse.
Is there anything I can check?
Thanks.
command npx figma connect parse --verbose
Below is the error message printed in the terminal.
Running parser: ./gradlew -p . parseCodeConnect -PfilePath=tmp/figma-code-connect-parser-io.json.tmp -q FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':sdk_android_ui:lib-ui-ods:parseCodeConnect'.
Fields [mode, paths] are required for type with serial name 'com.figma.code.connect.models.CodeConnectParserParseInput', but they were missing at path: $
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.
BUILD FAILED in 11s Error returned from parser: Parser exited with code 1. Try re-running the command with --verbose for more information.
Hey @jeongth9446 what language is your repo?
Android Compose (kotlin)
Hey @jeongth9446, we're looking into this for you. Just in the mean time, can I double check your projects meets the requirements for kotlin?
This thread looks like it could be useful - https://github.com/figma/code-connect/issues/211