johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

Error creating new snippet in release candidate for 2.0 #1369

Open nbbaier opened 1 year ago

nbbaier commented 1 year ago

I just tried to create a new snippet in the 2.0 release candidate and got this error:

Cannot read properties of null (reading '1')
TypeError: Cannot read properties of null (reading '1')
    at file:///Users/nicholasbaier/.kit/cli/new-snippet.js
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
johnlindquist commented 1 year ago

@nbbaier Did you delete the // Name: portion of the snippet? The way it's currently set up, it's required or else it can't infer the filename from the snippet.

nbbaier commented 1 year ago

I did have the // Name:. Just tried saving another snippet and it worked, but the snippet creation window doesn't close when pressing ⌘+S or even clicking save. I have to hit ⌘+; to get back to the main menu.