mre/vscode-snippet

Error running

TurbooGhost opened this issue · 5 comments

I can't save any snippet. So when i click on add it shows me this error msg:
Error running command snippet.createFolder: command 'snippet.createFolder' not found. This is likely caused by the extension that contributes snippet.createFolder.

I reset the extension setting. Disable it and then able it and it still the same error.

I tried to remove so many vs code extension and it still getting the same error.

What it cause this? What is the solution?

Thank you for the support

Hi! I'm investigating the issue.
Could you please tell:

  1. what is your vscode version?
  2. are you trying to create a folder like in the video (right click -> new folder), or some other way?
2023-07-21.10.06.39.mp4

Could you also please try to enable dev tools (Ctrl + Shift + P -> toggle developer tools), open the console in dev tools and see if there are any errors during startup (Ctrl + Shift + P -> reload window) or while reproducing the folder creation issue?

Thank you for noticing my issue:

  • My VS Code version is 1.80.1

  • The video is not playing it is says "Video can't be played because the file is corrupt".

  • This is the error in the console:

  1. ERR [wscats.html-snippets]: Unknown language in contributes.html-snippets.language. Provided value: pug
  2. ERR [wscats.html-snippets]: Unknown language in contributes.html-snippets.language. Provided value: sass
  3. ERR [wscats.html-snippets]: Unknown language in contributes.html-snippets.language. Provided value: stylus
  4. mainThreadExtensionService.ts:113 Activating extension 'vscode-snippet.snippet' failed: Cannot read properties of undefined (reading 'languages').
  5. notificationsAlerts.ts:42 Error running command snippet.createFolder: command 'snippet.createFolder' not found. This is likely caused by the extension that contributes snippet.createFolder.
  • Am trying to select the snippet and then option to save the snippet, so what i do so is not saving. When i go to where i select the snippet and trying to add it just showing me this error msg: Error running command snippet.createFolder: command 'snippet.createFolder' not found. This is likely caused by the extension that contributes snippet.createFolder.

Thank you for providing additional details. The information from the console helped me to reproduce the issue. I've released the v1.1.1 version with the fix. Vscode should update it automatically and prompt for reload (after update, the version at the top of the extension should be 1.1.1 as shown below)
image
Let me know if the issue is fixed

That's fantastic! It's working perfectly... I truly appreciate it!!!

Happy to help!