Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When the snippets package is loaded from a V8 snapshot, I think __dirname doesn't point to the correct directory and this code: lib/snippets.coffee:80-85, fails to find the correct path to the bundled snippets.{cson,json}.
Might have to pull off something like this atom/github/lib/helpers.js:7-21 for this to work. Though someone might want to refactor so as to reuse the logic rather than copy it at some point.
Prerequisites
Description
When the snippets package is loaded from a V8 snapshot, I think
__dirname
doesn't point to the correct directory and this code: lib/snippets.coffee:80-85, fails to find the correct path to the bundledsnippets.{cson,json}
.Might have to pull off something like this atom/github/lib/helpers.js:7-21 for this to work. Though someone might want to refactor so as to reuse the logic rather than copy it at some point.
This is particularly jarring since it is mentioned right there in the default snippets.cson and in Atom Flight Manual – Snippets.
Note that it does work in dev mode which skips the V8 snapshot
Steps to Reproduce
snippets.cson
in your.atom
.snip<tab>
Expected behavior: The builtin "snip" snippet is expanded.
Actual behavior: It's not expanded.
Reproduces how often: 100%
Versions