vscode-gist icon indicating copy to clipboard operation
vscode-gist copied to clipboard

BUG - GIST ERROR: Could Not Create gist-description > Reason: Validation Failed

Open Ativerc opened this issue 5 years ago • 3 comments

This is a

  • [x] bug report

Description

  • Cannot create new public or private gihub gists.
  • Error Message: GIST ERROR: Could Not Create gist-description > Reason: Validation Failed
  • VSCode Version: 1.33.0
  • VSCode Gist Version: 3.0.3

Screenshot

Ativerc avatar Apr 17 '19 06:04 Ativerc

This is similar to https://github.com/condemil/Gist/issues/66 .

Github doesn't allow to create empty gists and the current UX of vscode-gist doesn't make it clear that gist will be pushed immediately. As a first-time user of this extension, I thought the gist push happens once I save the file. But apparently this happens as soon as I "Create a gist".

Adding an error for "Empty Gist" should solve this issue.

Ativerc avatar Apr 17 '19 13:04 Ativerc

Good suggestion. The file path of all gist files includes the gist id. It's a chicken & egg scenario.

kenhowardpdx avatar Apr 17 '19 20:04 kenhowardpdx

this also happens if you try to accidentally create an empty gist.

ata-o avatar Jan 11 '22 15:01 ata-o