Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Config] CLI Compose Android Figma Connect #211

Open
ViktoriiaYarska opened this issue Nov 15, 2024 · 0 comments
Open

[Config] CLI Compose Android Figma Connect #211

ViktoriiaYarska opened this issue Nov 15, 2024 · 0 comments

Comments

@ViktoriiaYarska
Copy link

ViktoriiaYarska commented Nov 15, 2024

Thanks for adding support of the Android Compose 🚀

Would you consider adding a connected app example to the documentation for easier integration? Also, It is missing the CLI part on the Compose page

Env

  • Code Connect CLI version : 1.2.2
  • Operating system: Mac OS
  • Code Connect file:
{
  "codeConnect": {
    "parser": "compose",
    "include": [
      "design/src/main/java/com/example/android/design/compose/component/**"
    ],
  }
}

CLI command

npx figma connect publish --token <token> --verbose

Error

Config file found, parsing /<project-path> using specified include globs
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 ':design:parseCodeConnect'.
> Could not initialize class com.figma.code.connect.models.FigmaString

On the same config file & untouched code, I could receive sometimes another error:

Config file found, parsing  /<project-path> using specified include globs
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 ':design:parseCodeConnect'.
> 'kotlinx.serialization.KSerializer kotlinx.serialization.internal.EnumsKt.createAnnotatedEnumSerializer(java.lang.String, java.lang.Enum[], java.lang.String[], java.lang.annotation.Annotation[][], java.lang.annotation.Annotation[])'

I tried adding "gradleWrapperPath": ".." and removing "parser": "compose", - receiving same error

Could you please help locate the issue or add an app example with proper configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant