figma / code-snippet-editor-plugin

Translate component variants, properties, and more into dynamic code snippets for your design system.
https://www.figma.com/community/plugin/1311777988952403297/code-snippet-editor
MIT License
126 stars 11 forks source link

Raw data missing from dev mode side menu when using global templates #47

Closed mikeysouthwell closed 3 months ago

mikeysouthwell commented 4 months ago

Hi Jake,

I can no longer see any of the code fields in the dev mode pane on the right apart from the global template editor code.

Has something changed?

image

jake-figma commented 4 months ago

Details mode is enabled in the settings menu. If you changed browsers / native app, this setting is likely in its default state of disabled.

mikeysouthwell commented 4 months ago

Hi Jake,

Thanks for getting back to me.

I already have Details mode on and it hasn't made a difference. I even tried setting it to off and then back on again and it hasn't fixed it. Can you please take another look?

image

jake-figma commented 4 months ago

can you reload the tab (right click tab + "reload tab") and make sure that isnt all it is? i am unable to reproduce.

mikeysouthwell commented 4 months ago

Sorry Jake, I didn't see your reply for some reason. I have tried reloading. I have tried it using Figma desktop and browser and on multiple computers. This is still an issue.

jake-figma commented 4 months ago

is there an error in the console by chance? whats throwing me off is it isnt even showing the templates either (details mode should show you the template and the snippet). all of details mode isnt working for you.

can we see if codegen settings are working at all for you? can you try toggling the "default snippet" setting on and off and see if that works?

default snippet: message (a generic message shows up) CleanShot 2024-03-18 at 10 36 23

default snippet: empty (nothing shows up) CleanShot 2024-03-18 at 10 36 56

mikeysouthwell commented 4 months ago

I do not get a message showing up at all, just the global template:

image

jake-figma commented 4 months ago

you have to select something that doesnt have a template on it in order for the default message to show up. right now it is showing the global template, so there is no default. if you select a path or some other node type that doesnt have a template on it, it will show you the default message.

mikeysouthwell commented 4 months ago

I have my global template applied to pretty much everything. The only thing I can think of that doesn't have it is an ellipse and that doesn't show any Snippets message when it's selected.

jake-figma commented 4 months ago

you can clear global templates temporarily by setting to {}. can you email me at jalbaugh@figma.com with an example file where this is happening? github issues arent great for this level of support.

mikeysouthwell commented 4 months ago

Hey Jake,

I have tried changing the global templates to {}, but it's still not showing any of the plain text data:

image

image

mikeysouthwell commented 4 months ago

I've also granted that email address access to my Figma file and sent you an email.

Thanks Jake :)

jake-figma commented 4 months ago

will follow up via email but this is telling me codegen plugin settings arent being respected on your machine which could be a different bug.

jake-figma commented 3 months ago

For the record: this resolved itself some time after toggling the plugin as default on and off. There may have been an issue with conflict between client default setting and what was stored in the database for plugin settings. This would be a Figma plugin API bug, not a bug with this plugin, so if this happens again, we should file in the forum, not here.