Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise a clear warning message on startup when a snippets JSON file is invalid #270

Open
doronbehar opened this issue Aug 16, 2023 · 0 comments

Comments

@doronbehar
Copy link

I'm trying to write new snippets for personal use, and I noticed that if I have a mistake in my JSON file, no snippets are loaded from there, and I get this weird error:

{'throwpint': 'function vsnip#available[2]..vsnip#expandable[1]...te, line 5', 'exception': 'Vim(let):E474: Trailing comma: }^@}'}

Where the snippet file has indeed a trailing comma. Perhaps this message could be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant