emmetio / sublime-text-plugin

The essential toolkit for web-developers
https://emmet.io
MIT License
250 stars 30 forks source link

"Unexpected Character" error highlighting won't go away. #139

Open cheestudio opened 3 years ago

cheestudio commented 3 years ago

I get these errors anytime I expand a snippet of mine (using Sublime's native snippets):

Snipaste_2020-10-27_13-13-34

Snipaste_2020-10-27_13-11-05

I wasn't sure if Emmet was the source of these errors popups, but they cease to appear when I disable Emmet and return when I re-enabled. I combed through the settings to see if I could turn these off, but couldn't find one. I don't really want them at all...how can I suppress these?

sergeche commented 3 years ago

Seems like my recent fix have broken it 😬 Released v2.2.6 quickfix, please check if it works as expected

cheestudio commented 3 years ago

That's actually another question I had...where is the install path (on Windows)? It used to be under /Packages/ but it's non longer listed there. I checked under my AppData folder too, nothing! I'm not entirely sure how to get the hotfix, since Package Control is only showing 2.2.5

sergeche commented 3 years ago

Package Control needs some time to propagate updates. Check for Insatlled Packages folder. You can manually replace most recent version from https://emmetio.github.io/sublime-text-plugin/

cheestudio commented 3 years ago

AHH, I was always looking for a Folder, not just a single .package file.

Fixed! Thank you!!

cheestudio commented 3 years ago

Ah, almost there! This works fine now with my snippets, but I'm getting it even when using Sublime's baked in autocompletes, like a simple PHP tag:

Snipaste_2020-10-27_15-48-16

cheestudio commented 3 years ago

And I'm getting them in SCSS, too:

image

cheestudio commented 3 years ago

@sergeche just a question: is there a setting I can enable to suppress these across the board? They are still happening everywhere, its pretty distracting. :(

sergeche commented 3 years ago

You can disable auto_mark Emmet setting, it will disable abbreviation capturing.

See more at https://github.com/emmetio/sublime-text-plugin#disable-abbreviation-capturing

cheestudio commented 3 years ago

Whew...that did it! I was not aware this feature was actually the source of many of my woes with the new version. Disabling it restores my workflow to what I am used to (muscle memory is hard to shake!). Thanks!

showhan commented 3 years ago

Disabling the auto_mark disables the HTML auto markup as well. So I had to disable the abbreviation_preview to disable the preview only and it works.

index