figma-linux icon indicating copy to clipboard operation
figma-linux copied to clipboard

Cannot import plugins if filenames contain dashes (`-`)

Open cairomassimo opened this issue 1 year ago • 1 comments

When importing a development plugin whose manifest contains something like

  "main": "dist/plugin/figma-plugin.js",

the import process fails with Filename "dist/plugin/figma-plugin.js" not allowed, due to the filename not matching the regex on this line: https://github.com/Figma-Linux/figma-linux/blob/b33dd1d3f52ef4c71711c69ab59a4cff2ddaef52/src/main/ExtensionManager.ts#L441

It's not clear to me whether this limitation is inherited from Figma itself, or it's an artifact of Figma Linux implementation.

cairomassimo avatar Apr 30 '24 06:04 cairomassimo

@cairomassimo this looks like it's a bug; this works in the native Windows Figma app

LiamMartens avatar May 17 '24 12:05 LiamMartens