script-lab icon indicating copy to clipboard operation
script-lab copied to clipboard

Cannot import scripts from gist on Chrome: You must provide valid gist YAML or a valid gist url.

Open IvanaGyro opened this issue 2 years ago • 1 comments

I cannot import scripts from gist on Chrome. After inserting the link, the first click of the button will not respond and the second click will result in an error message: "You must provide valid gist YAML or a valid gist url."

Bug Report

  • Host: PowerPoint, Word on the web
  • OS: Windows, MacOS
  • Browser: Chrome
  • Environment: prod

Expected behavior:

Successfully import the script and jump to the coding tab.

Actual behavior:

After inserting the link, the first click of the button will not respond and the second click will result in an error message: "You must provide valid gist YAML or a valid gist url."

Steps to Reproduce:

  1. Copy & paste https://gist.github.com/IvanaGyro/6e4eea78d24760211d127e9c67b2f335 to the import tab of Script Lab for PowerPoint.
  2. Click import -> not respond
  3. Click import again -> error message: "You must provide valid gist YAML or a valid gist url."

Failure Logs:

No error message in the console panel.

Screenshot:

image

More Information

This issue doesn't happen on FireFox.

IvanaGyro avatar Mar 04 '23 11:03 IvanaGyro

Here is an workaround.

You can copy paste the raw YAML into the text box. By this method, you will be able to import the script. However, I will not be able to update the script on the gist.

IvanaGyro avatar Mar 04 '23 11:03 IvanaGyro

Fixed in the latest version of Script Lab.

wandyezj avatar Apr 09 '24 20:04 wandyezj