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

Parameter specified as non-null is null: method FigmaCodeConnectPlugin.apply, parameter $project #203

Open
indrih17 opened this issue Nov 6, 2024 · 1 comment

Comments

@indrih17
Copy link

indrih17 commented Nov 6, 2024

Hi! I tried to integrate code connect, but got strange silly error:

figma connect create "MY_LINK" --token MY_TOKEN --verbose

This is output

Config file found, parsing /Users/me/StudioProjects/myproject using specified include globs
Fetching component information from Figma...
Parsing response
Generating Code Connect files...
Running parser: ./gradlew -p . createCodeConnect -PfilePath=tmp/figma-code-connect-parser-io.json.tmp -q

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':createCodeConnect'.
> Parameter specified as non-null is null: method com.figma.code.connect.FigmaCodeConnectPlugin.apply$lambda$15$lambda$13, parameter $project

BUILD FAILED in 862ms
Failed to create: Parser exited with code 1

Can u help me? I installed Figma Code Connect yesterday morning, so version is last.
Of course, I add to my module

dependencies {
    implementation "com.figma.code.connect:code-connect-lib:1.+"
}

and plugin for root project

plugins {
    id "com.figma.code.connect" version "1.+"
}

Clean & rebuild didnt help, invalidate caches too. Application worked fine.

I use mac os ventura 13.4.1, Android Studio Ladybug | 2024.2.1 Patch 1.
What did I miss?

@indrih17
Copy link
Author

I have the same failure on another PC with another os (windows 11), so its not a local problem

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