code-connect
code-connect copied to clipboard
Failed publish
- Code Connect CLI version:
plugins {
id("com.figma.code.connect") version "1.2.1"
}
dependencies {
implementation(libs.code.connect.lib)
}
..
codeConnectLib = "1.1.3"
code-connect-lib = { module = "com.figma.code.connect:code-connect-lib", version.ref = "codeConnectLib" }
- OS: macOS Sequoia 14.6.1
- Platform: Android (Compose), figma.config.json:
{
"codeConnect": {
"include": ["/../images/codeconnect/**"],
"exclude": [],
"parser": "compose"
}
}
When I try to publish code connect files
npx figma connect publish --token=[token] --verbose
I get an error:
Config file found, parsing /Users/daria/Documents/Work/Shop_Android 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_token:parseCodeConnect'.
> Could not initialize class org.jetbrains.kotlin.com.intellij.openapi.progress.impl.CoreProgressManager
* 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 3s
I found that this works fine with Kotlin version up to 2.0.21
current project use Kotlin v2.1.20
Hey @yaskevich-dev, apologies for the delay in replying! I'll have a look into why this is