emmetio / brackets-emmet

Emmet plugin for Brackets editor
http://emmet.io
MIT License
489 stars 188 forks source link

.class #id error #58

Closed shyamsalimkumar closed 10 years ago

shyamsalimkumar commented 10 years ago

div.asdf converts <div class="asdf"></div> But div.class converts to <div class></div> rather than <div class="class"></div>

Same is the case with id div#asdf converts <div id="asdf"></div> But div#id converts to <div id></div> rather than <div id="id"></div>

Also div.class#id -> <div class id></div>. Uhm. I'm guessing that too is not supposed to happen.

(Ubuntu 14.04/ Brackets sprint 43 experimental build 0.43.0-14375 (release 287868769))

Same issue exists in the Sublime Text emmet plugin. (ST3)

shyamsalimkumar commented 10 years ago

The same issue exists in Atom Emmet too. Guess its an emmet issue rather than a plugin issue.


Unable to reproduce the same on emmetio/emmet. Wrote tests in the Attributes spec for the same. They passed. :confused:

sergeche commented 10 years ago

Looks like conflict with another plugin, Emmet works fine here

shyamsalimkumar commented 10 years ago

How would I debug this conflict? Any tips on figuring out the culprit? Or maybe a list of known problem plugins?

Okay so I removed all my Bracket extensions except the Emmet one. Still getting the issue. :frowning: Could it be a Ubuntu issue? (presuming that you are testing on a Mac or Windows)

sergeche commented 10 years ago

Don’t know about Brackets, but here’s how you can debug in ST: http://stackoverflow.com/a/25828521/1312205

And it looks like that you have a background app that expands/replaces some words in text inputs, you should check that too.

shyamsalimkumar commented 10 years ago

I shall debug ST and let you know.

What background app? May you expand on that? As far as I know this is a clean install of Brackets with only Emmet plugin(I had removed the rest of the plugins for debugging the conflict issue)

sergeche commented 10 years ago

Apps like this: http://smilesoftware.com/TextExpander/index.html

shyamsalimkumar commented 10 years ago

Nope not using any apps of the sort. I'm using Ubuntu 14.04 by the way.

command: expand_abbreviation_by_tab was called on hitting tab. Also I have following in the Emmet default settings

    "disable_completions": false,
    "remove_html_completions": false

Tried turning them off, but there was no difference. :confused:

sergeche commented 10 years ago

Since this issue exists in other apps, you should definitely check for background apps or auto replace/autocorrect features of your OS

shyamsalimkumar commented 10 years ago

I haven't added anything of that sort if memory serves correct. But I will check nonetheless.

Additionally I will check Windows if the issue exists. Thanks for the help :smile: