kit icon indicating copy to clipboard operation
kit copied to clipboard

Error creating new snippet in release candidate for 2.0

Open nbbaier opened this issue 2 years ago • 2 comments

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)

nbbaier avatar Nov 02 '23 20:11 nbbaier

@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.

johnlindquist avatar Nov 03 '23 13:11 johnlindquist

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.

nbbaier avatar Nov 04 '23 02:11 nbbaier