code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

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

Open indrih17 opened this issue 1 year ago • 1 comments

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 avatar Nov 06 '24 18:11 indrih17

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

indrih17 avatar Nov 28 '24 09:11 indrih17