Giter Site home page Giter Site logo

Comments (6)

robole avatar robole commented on September 24, 2024

hi @eleach ,

I am glad you like the extension. I am sorry you encountered an issue.

Version 1.5 works for me and others. I can only guess that it is specific to the snippets you have on your system. Please provide your system information - go to the main menu in VS Code and select Help and then About from dropdown. Copy the info here. Are you working locally?

Since a snippets file is a JSON file, it is possible to have malformed JSON data inside. It is on my list to make the extension more resilient for funky input. The only suggestion I can make is to remove your snippets and add them back one by one to find the culprit. If you do find the file that causes the issue, you can add it here. That is the only way I can replicate the issue. If I can't replicate the issue, I can't do anything.

from vscode-snippets-ranger.

eleach avatar eleach commented on September 24, 2024

I'm away from my computer now. I'll troubleshoot it on my own. Thanks for the quick reply and fun, useful extension. If you can delete this non-issue please do.

from vscode-snippets-ranger.

eleach avatar eleach commented on September 24, 2024

Hello Rob,

I uninstalled ES7 React snippets and Simple React Snippets. I JSON validated my personal snippets and that is a valid json file. I also temporarily deleted my personal snippets.

I'm still getting the error on both a Linux/Ubuntu machine and on a Mac.

On Ubuntu my vsCode is:

Version: 1.84.1
Commit: 2b35e1e6d88f1ce073683991d1eff5284a32690f
Date: 2023-11-06T12:35:31.181Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.5.6-76060506-generic

vsCode has been more flaky than usual lately with crashing windows.

Thanks

from vscode-snippets-ranger.

robole avatar robole commented on September 24, 2024

I tracked down a cause of the "Cannot read properties of undefined (reading '0')'" error. If you run the command Snippets Ranger: Show me that dur Range, Partner without an open workspace, this error is thrown.

The Snippets Ranger: Show me that dur Range, Partner command should work fine when a workspace is open or there is a snippets file with invalid JSON.

I fixed this issue in v1.5.1. Can you check if that has resolved things for you please @eleach ?

from vscode-snippets-ranger.

eleach avatar eleach commented on September 24, 2024

It is working. Version 1.6.0. Thanks again for being so responsive.

from vscode-snippets-ranger.

robole avatar robole commented on September 24, 2024

Good! Could you star the repo if you get the chance @eleach ?

Its nice to have some social proof for a project!

from vscode-snippets-ranger.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.