Giter Site home page Giter Site logo

Comments (4)

renancamm avatar renancamm commented on June 21, 2024

Hi @patrickrushton, thanks for the feedback.

"Doesn't work all the time with team libraries" is part of know problems, but idk how to fix it. Let me know if you have any insight :)

from figma-reattache-instance.

glebsexy avatar glebsexy commented on June 21, 2024

Hi @patrickrushton, it's hard to say what issue could be without more details. Could you open console (Plugins → Development → Open Console) and send a screenshot of what it prints when running the plugin? But general slowness is expected when processing large amounts of objects.

Other than that, check out Master plugin. (I contributed a part of the code from Master that keeps overrides to this plugin.) It works slightly differently but it allows you to do basically the same things and even more. It's well-optimized so it should work even with complex components from the library.

from figma-reattache-instance.

patrickrushton avatar patrickrushton commented on June 21, 2024

Thanks @zyumbik I just bought 3 licenses of Master ;-)

As for Reattach Instance - it still has a use case for me that's not covered by Master which is to reattach an instance without having a target handy to relink to. I end up with un-attached instances all the time when copying an instance that was nested inside another library component. In this case, I just want to quickly reattach to the main component it (while maintaining overrides) without having to select a target.

This is the console log that I'm seeing when I try to do that:

Console was cleared
figma_app.ba2bcaff1499c83f84715f0ef4c9ba32.min.js:996 ------- Clearing and silencing console.log from Figma -------
jsvm-cpp.js.br:8 unhandled promise rejection: Error: in createInstance: Can't create instance of nested main component. Please call figma.importComponentByKeyAsync(symbol.key) and await the result. The resulting component can be using createInstance().
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:37)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at next (native)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:6)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at Promise (native)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:7)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at main (PLUGIN_5_SOURCE:58)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:287)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at call (native)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:292)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8
printChar @ jsvm-cpp.js.br:8

from figma-reattache-instance.

glebsexy avatar glebsexy commented on June 21, 2024

Wow thanks a lot! <3

As for the error, I understand the issue and will try to fix tomorrow.

from figma-reattache-instance.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.