0

I'm trying to use Atomizr (https://packagecontrol.io/packages/Atomizr) to convert Atom's C++ snippets into SublimeText completions.

I have installed Atomizr in SublimeText using package-control and I've done the following:

1) Copied the snippets from github.com/atom/language-c/blob/master/snippets/language-c.cson to a .cson file.

2) Opened the file above using ST.

3) Ctrl+Shift+P and "Convert Atom snippets into SublimeText completions".

Sadly, after doing that, nothing happens. How do I go about using Atomizr?

EDIT:

Sublime-Text 3, version 3103;

Atomizr version 0.2.2;

EDIT2:

After re-installing everything, it worked. I now have a file with the following format:

    {
        "contents": "std::cout << \"${1:/* message */}\" << std::endl;",
        "trigger": "cout"
    },

However, that is not the format for sublime-text snippets, as far as I am aware, is it? I suppose I now need to change this to a .sublime-completions format (with and all that).

  • Which version of Sublime Text? Which version of Atomizr? Do you use Package Control 3? – idleberg Mar 16 '16 at 0:24
  • @idleberg, I've added that info to the OP: Sublime-Text 3, version 3103; Atomizr version 0.2.2; – hbar Mar 16 '16 at 4:41
0

I noticed there was a problem with the release tag for Atomizr v0.2.2. The version was identical to v0.2.1, which had a problem loading the package dependencies.

Upgrade to the latest version of Atomizr (v0.3.1). Since the package dependencies continue to cause minor hiccups, you might have to remove the package before installing it again and/or restart Sublime Text. If the problem persists, take a look at the console if there are any warnings about a missing package. Usually, it's the speg dependency causing trouble.

Also, since this is a very specific problem, feel free to create an issue on GitHub!

|improve this answer|||||
  • I re-installed everything and it now works. Though the format is the format is different than .sublime-completions. Should this work as well? Or do I need to still edit it in order to be compatible with sublime? – hbar Mar 16 '16 at 8:54
  • What's different? I haven't had any problem converting the files, the only editing required is giving the file the correct extension (.sublime-completions) – idleberg Mar 16 '16 at 9:08
  • The plugin creates completions, not snippets. But that's what you requested yourself in the first sentence of your question ;-) – idleberg Mar 16 '16 at 9:11
  • I've done that as well and it does not work. I've given it the extension .sublime-completions, restarted sublime, opened a .cpp document and for example, "whil + tab" still doesn't give what it's supposed to (which is the while loop). – hbar Mar 16 '16 at 9:20
  • Your example from above is working for me. It's probably a scope exception, since Atom uses different scope names. Otherwise, please create an issue on GitHub with a detailed exampled. – idleberg Mar 16 '16 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.