Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Custom snippets added to snippets.cson do not load #292

Closed
1 task done
0100101101011010 opened this issue Jul 18, 2019 · 3 comments
Closed
1 task done

Custom snippets added to snippets.cson do not load #292

0100101101011010 opened this issue Jul 18, 2019 · 3 comments
Labels

Comments

@0100101101011010
Copy link

Prerequisites

Description

After adding a snippet for Github-flavoured Markdown, it doesn't show up when I check for Snippets:Available

Steps to Reproduce

  1. Add snippet code to snippets.cson and save:
    '.gfm.source':
    'bold text':
    'prefix': 'b'
    'body': '**$1**$0'
  2. Navigate to page I want the snippet to work in (a .md file)
  3. Hit Ctrl Shift P and type Snippets: Available

Expected behavior:

b: bold text should be displayed as an available snippet

Actual behavior:

Nothing is displayed.

Reproduces how often:

Always

Versions

1.38.2 x64 on Ubuntu

Additional Information

I have tried using the scopes .source.gfm, .text.md, .source.md, all to no avail.

@0100101101011010 0100101101011010 changed the title Snippets do not load Custom snippets added to snippets.cson do not load Jul 18, 2019
@rsese
Copy link

rsese commented Jul 18, 2019

I'm unable to reproduce with 1.38.2 on macOS 10.14 - with an empty snippets file I just added:

'.source.gfm':
  'my bold text':
    'prefix': 'b'
    'body': '**$1**$0'

And it shows up from Snippets: Available.

Actual behavior:

Nothing is displayed.

Do you mean no snippets at all are displayed or just not your custom snippet?

Can you share how you installed Atom and the full output of atom -v?

And you tested in safe mode correct?

@0100101101011010
Copy link
Author

Do you mean no snippets at all are displayed or just not your custom snippet?

Only custom snippets in the snippets.cson file are not displayed - snippets enabled within packages work fine.

Can you share how you installed Atom and the full output of atom -v?

Atom : 1.38.2
Electron: 2.0.18
Chrome : 61.0.3163.100
Node : 8.9.3

I installed it through the Ubuntu Software app on my computer.

And you tested in safe mode correct?

Correct, I've tested in safe mode and normal use and it doesn't show up in either case. Thanks for your help.

@calebmeyer
Copy link

Thanks for reaching out!

We've determined that you are currently using an unofficial build or distribution of Atom. Often these customized versions of Atom are modified versions of the Stable branch of Atom with mismatched versions of built-in components. These updated components are taken from the Beta channel or master branch and then injected into the Stable version and a new Atom package is generated. Because of the way Atom is constructed, using these mismatched components can cause mysterious and hard-to-diagnose problems. You can find out more about why we chose to not support unofficial distributions here.

You can find instructions for installing an official version of Atom in the Flight Manual. If you are still seeing this problem on an official build please file a new issue, thanks!

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

No branches or pull requests

3 participants