-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Auto-complete stopped working #42
Comments
It might depend on syntax you’re using, try to set syntax to HTML. Also, check out Emmet preferences and make sure Enable Autocomplete option is enabled |
I would like to add myself to this report. Removed all extensions to see if there was any conflict. Don't know if it's an Emmet Extension bug or a Nova bug though. I downgraded to 6.1 and it works. |
I can also confirm that it works (mostly) after downgrading to Nova 6.1. It now shows the suggestions automatically as I type, and provided I type in the complete abbreviation, hitting Tab or Return generates the expected code. However, if I start typing and then use the arrow keys to select another option, hitting Tab or Return completes the abbreviation but it doesn't generate the expanded code. For example: Hitting Tab or Return a second time doesn't expand the abbreviation. |
Adding myself to this issue as well—Emmet fully stopped working in 6.2. Any information on how to downgrade to 6.1; or word on an update to the extension/Nova to fix this issue? |
Will take a look, might be some kind of API regression. |
Chiming in: The completions not appearing appears to be being triggered by some changes in Nova 6.2 related to adjusting selected ranges in an editor. Emmet is returning an empty set of completions after typing a character (but not after hitting Escape or Ctrl-Space). The change in Nova is effectively causing it to send two selection change events when typing. Emmet is observing that change, and for whatever reason, now that it's sent twice, it's internal tracking of the caret is not behaving as expected. I'm not sure if Nova is sending the wrong coordinates, or something else? I'm still investigating on our side. Nova should probably not be sending two events in this case, which I can remedy. But I'm not sure why sending two would affect Emmet in this way. |
For the |
An archive of older versions can be found here: |
Thank you @sergeche and @logancollins for working on a fix for this. Emmet is one of those tools you don't know how you lived without once you start using it. 🙂 |
Thanks @starkis — and totally agreed, not being able to use Emmett is more or less a dealbreaker for me! |
Adding myself as well. HTML in .php docs specifically, but overall it's not working for me. |
I just want to confirm the other posters experience and I look forward to getting the autocomplete back. Thank you to the developers of this extension, it is my favorite. |
Autocomplete stopped working for me as well on 6.2 (probably on 6.1 too), on SCSS and HTML files. The Emmet dropdown options while typing are also gone. |
@logancollins did some investigation of this issue. Indeed, the problem is that Nova sends Since there’s no way to detect what user entered in In Nova 6.2, |
@logancollins another issue I found is incorrect JS VM behaviour. There’s a trick in JS world to schedule code execution after all other code in current task with function test() {
console.log(1);
Promise.resolve().then(() => console.log(2));
console.log(3);
} If you run this code in browser, you’ll get |
Also been experiencing this, to be honest I didn't know there was an auto-complete dropdown until seeing it in the docs here 😅. Are the Panic team aware of the events issue causing this bug? |
same issue: Nova 6.2 Build 271290 |
Same here, Emmet auto-complete not working with Nova 6.2. |
Seems to be fixed in Nova 7.0. Can anyone else confirm? |
@alonsofedz just confirmed, seems working |
Can confirm it's auto-complete is now working for me in Nova 7. However when I had this nunjucks highlighter on it refused to spring up even if I opened a HTML file, only seemed to work in it's own contained window. |
Still not working as it should in 7.0. Yes, you can type in anything and hit |
@starkis ah yes I see now, sorry for muddying the thread. It does work if you select the item and then hit CTRL + E if that is workable for now |
Thanks @daviddarnes. Personally I'd rather type in the whole tag name than:
Sure, it works, but it's a three step process. I would expect Emmet to work like normal code completion, where the top suggestion can be triggered in one step, just by hitting |
@starkis of course, but like I said it's workable if people are really needing to use it in some form. I'm not denying it should be fixed / improved 😄 |
Any update on this issue ? Autocomplete with |
@maxime-pigeon seems to work fine. Please make sure you’ve set correct HTML syntax and enabled completions in Emmet plugin |
Thank you for responding so quickly @sergeche. Sorry for being unclear; you’re right, it does work with operators, but some of the snippets don’t. For instance, |
@maxime-pigeon do you see underline and |
I am having the same issue, especially with typing |
@tomliv does your autocomplete looks like this when you type |
It does, yes
…On Tue, Apr 4, 2023 at 5:40 AM Sergey Chikuyonok ***@***.***> wrote:
@tomliv <https://github.com/tomliv> does your autocomplete looks like
this when you type html?
[image: image]
<https://user-images.githubusercontent.com/93595/229752356-533938b7-13b3-4659-830a-b321654aba66.png>
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIZXILU2VZ6MPXBH7VCNHDW7PUANANCNFSM44QPUQNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Tom Livingston | Senior Front End Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com
#663399
|
My guess here is that you’re typing A few key points that should be considered here:
When you type |
As for typing |
Awesome, thanks! That works!
…On Wed, Apr 5, 2023 at 4:54 AM Sergey Chikuyonok ***@***.***> wrote:
My guess here is that you’re typing html and then pick html:5 expecting
to get a full snippet behind html:5. But instead it just completes word
in editor.
A few key points that should be considered here:
- Emmet acts as *autocomplete provider*: your options are either type
abbreviation and complete it via autocomplete workflow (pick suggestion,
use Tab or Enter key) or run Expand Abbreviation action manually
anywhere in code. In autocomplete mode, plugin *tracks* abbreviation
as you type in order to accumulate complex input and provide preview (hence
underlined text and i icon in gutter)
- Emmet provides a few suggestions in autocomplete: the first one is
to expand abbreviation (marked with $), all the rest are just names of
Emmet snippets which you can complete (just snippet names, not expanded
abbreviations!) so you can accumulate larger abbreviation with completions.
When you type html and then complete it with html:5, you actually pick a
snippet completion and modify abbreviation. And since you pick a
completion, Nova hides autocomplete popup so you can’t use Tab or Enter,
you should either invoke autocomplete again with Ctrl-Space or run Expand
Abbreviation action. Unfortunately, there’s no API in Nova to override Tab
key as in other editors (Sublime Text, VSCode) to get a better DX with
completions.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIZXIK4LI2Y7X4EHD3XVKDW7UXOHANCNFSM44QPUQNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Tom Livingston | Senior Front End Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com
#663399
|
Not sure if this is an issue with Nova, the Emmet extension, or something I've done—auto-complete just stopped working. (I've tried restarting and reinstalling the extension.)
The 'Expand Abbreviation' command (Control-E) still works, but I much prefer to just type and hit tab. If I run Nova's 'Show Completions' command, the pop-up shows the exact characters I've already typed (marked as 'Emmet'), and then several other suggestions, but none of them include the complete markup. (See screenshot.)
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: