Comments (6)
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.
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.
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.
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.
It is working. Version 1.6.0. Thanks again for being so responsive.
from vscode-snippets-ranger.
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)
- Ability to search snippets HOT 1
- Button to copy snippet text / possibly already to user defined snippet file HOT 2
- remnote vscode: Oucho Gaucho! 🌵 Nothing to round up! 🤠 HOT 2
- Stuck @ 'Rounding them up!' 😢 HOT 6
- Support workspace snippets HOT 2
- Error loading webview HOT 1
- Escaped backslashes (2 consecutive backslashes) not appearing correctly in HTML output HOT 4
- dollar sign disappears when creating new snippet from selection HOT 2
- Delete action button does not delete snippet correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-snippets-ranger.