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

Figma URL #421

Open
softwarecha opened this issue Jun 9, 2024 · 1 comment
Open

Figma URL #421

softwarecha opened this issue Jun 9, 2024 · 1 comment

Comments

@softwarecha
Copy link

It is always saying a invalid URL even I just paste a URL from my figma file

@nannerpusser
Copy link

Same issue here, was just questioning my sanity and dissecting the cli.py from the library installation dir itself to make sure it wasn't me. The problem seems to be the regex here:

match = re.search(r'https://www.figma.com/file/([0-9A-Za-z]+)', args.file_url)

Not a single Share link from anywhere within Figma's web app includes a /file/ directory in the URL path. I even tried sharing the whole Team and tried Dev Mode, republishing, moved the file, left it Untitled and outside my Project folder, tried the links from Drafts, published to Community then tried the three ways to share it, and several other jackass ideas in order to get a link with /file/ in the URL. No dice.

Maybe Figma just changed their link sharing schema? Certainly this project has been working until now, right? If I could get it to at least parse my input and run for debugging I'd link that, but here's the stdout Traceback at least (personal non-essential data removed obviously):

Traceback (most recent call last): File "/tkdesigner", line 8, in <module> sys.exit(main()) ^^^^^^ File "<wooptywooowoo>.../tkdesigner/lib/python3.12/site-packages/tkdesigner/cli.py", line 51, in main raise ValueError("Invalid file URL.") ValueError: Invalid file URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants