Gruntfuggly / auto-snippet

A vscode extension to automatically insert a predefined snippet when a file is created, or an empty file is opened.
Other
14 stars 1 forks source link

not working on windows 10 #7

Closed Virgilio-AI closed 4 years ago

Virgilio-AI commented 4 years ago

hello there, I tried to make it work but no matter what I do even leavinf the default configuration it always leaves to an errror Screenshot_1 and this is how I have it on my settings.json image as you can see just the default settings that are given

Gruntfuggly commented 4 years ago

Silly question, but have you defined the snippets? Can you post them too?

Decipher commented 4 years ago

I'm also unable to get this working with Windows 10, using WSL2, with the same error.

I have created custom snippets and downloading other extensions that provide snippets, confirmed the snippets work when invoked manually, but still get the same error when trying to use the snippet via this extension.

Decipher commented 4 years ago

Actually, I retract that. I had incorrectly named the snippet, everything appears to work as expected for me.

Gruntfuggly commented 4 years ago

@Virgilio-AI Did you get it working?

Virgilio-AI commented 4 years ago

@Gruntfuggly sorry for don't answering your first question but I didn't got an email of an answer untill now, mm what do you mean by defining the snippets? I mean they are defined already aren't they?. and @Decipher can you help me in how do you configure it or how do you have your settings.json

Gruntfuggly commented 4 years ago

The extension doesn't define any of its own snippets. What were you expecting them to contain?

Virgilio-AI commented 4 years ago

Gruntfuggly all right I get it now it works, I literally expected to print "heade-template", sorry for my lack of experience haha

Gruntfuggly commented 4 years ago

Lol - OK, you can make it do that if you want!

Do you think it needs to be made clearer in the README.md? I'm open to suggestions.

Is it OK to close this now?

Virgilio-AI commented 4 years ago

I guess for people like me ,your extension is pretty good actually. I guess it would not be harming to put that you have to create a global snippets file and say that in settings.json you are only calling an existing snippet, anyway thanks for answering best wishes to you!