Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Tab completing expressions deletes the whole line without output #347

Open
jglovier opened this issue Nov 3, 2015 · 10 comments
Open

Tab completing expressions deletes the whole line without output #347

jglovier opened this issue Nov 3, 2015 · 10 comments

Comments

@jglovier
Copy link

jglovier commented Nov 3, 2015

I've seen several issues that seem similar, but not exactly the same so opening a new one. The problem I'm running into is that when I tab complete an Emmet expression, the whole line disappears without output.

Observe and behold:
emmet-atom-issue

I've seen others mention that autocomplete-plus hijacks Emmet's tab shortcut, but as you can see in the gif keybinding resolver shows that Emmet is indeed being fired on tab, so I'm at a loss for what is going on here.

What is the solution? Is this just a settings thing?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@jglovier
Copy link
Author

jglovier commented Nov 3, 2015

Possibly related: #225, #282, #334.

@emilMircea
Copy link

I have the same exact issue! Could not find an adequate solution yet.

@sergeche
Copy link
Member

sergeche commented Nov 3, 2015

Can you open DevTools and check if there are any errors?

@jglovier
Copy link
Author

jglovier commented Nov 3, 2015

@sergeche nothing that appears related to Emmet.

image

@sergeche
Copy link
Member

sergeche commented Nov 3, 2015

Can you provide a full code (or least code where error can be reproduced) and your current document syntax?

@jglovier
Copy link
Author

jglovier commented Nov 3, 2015

@sergeche I've tried it in several files, and anything with HTML syntax does the same thing.

@sergeche
Copy link
Member

sergeche commented Nov 3, 2015

One possible reason is that if you use some HTML syntax variation (like HTML (Twig) or something), Emmet may mistakenly pick wrong settings and output empty result.

Can you try with clean and native HTML or XML syntax?

@jglovier
Copy link
Author

jglovier commented Nov 3, 2015

Yup, several of these I tried were just plain .html files (HTML email files to be exact). Others were .liquid files set to HTML syntax.

@mgravina1
Copy link

I don't know if this can help you.
Go to File->Settings and select "Keybindings". Searching for "tab" you should get all the possible behaviours involving "tab" key. You should also see a message like "You can override these keybindings by copying and pasting them into your keymap file".
By clicking on the link in this message, a css will be opened.
Just add (or remove) the behaviours you want to use at the end of the file (copy them from the previous list).

For example:
'atom-text-editor:not([mini])':
'tab': 'emmet:expand-abbreviation'
'tab': 'editor:indent'

this will let you expand emmet abbreviation and indent your code by pressing tab.
Hope it helps

@calmyournerves
Copy link

This issue bugged me for a long time and I just saw #312. Re-enabling the snippets package solved the issue for me.

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

No branches or pull requests

5 participants