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

Wrong variables are applied and used for references #3140

Closed
six7 opened this issue Sep 14, 2024 · 0 comments · Fixed by #3137
Closed

Wrong variables are applied and used for references #3140

six7 opened this issue Sep 14, 2024 · 0 comments · Fixed by #3137
Assignees
Labels
bug Something isn't working

Comments

@six7
Copy link
Collaborator

six7 commented Sep 14, 2024

In some files of our users we seem to be applying the wrong variables as well as using the wrong variables when getting references for variables to create.

Upon further investigation, this seems to have to do with "zombie variables".

What are zombie variables?

Basically, Zombie variables are variables that should no longer exist! Some figma files have them. If you look at this screenshot below, it shows 0 existing variable collections. However, querying for existing variables inside that file using Figma's Plugin API, Figma gives us 747 existing variables!

Image

This makes it especially hard to debug because if you load those same tokens in a new file everything will work as expected.

Before we use those local variables as possible reference / apply candidates, we need to ensure the variable collection of those variables still exists - which in many cases, doesnt.

@six7 six7 added the bug Something isn't working label Sep 14, 2024
@six7 six7 self-assigned this Sep 14, 2024
@six7 six7 moved this from 📥 Triage to 👀 Needs review in Tokens Studio for Figma Roadmap Sep 14, 2024
@github-project-automation github-project-automation bot moved this from 👀 Needs review to ✅ Done in Tokens Studio for Figma Roadmap Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant