emmetio / Emmet.codaplugin

Emmet plugin for Coda
http://emmet.io
206 stars 33 forks source link

Latests Coda 2 ß Crash on launch if Emmet plugin enable #18

Closed clawfire closed 8 years ago

clawfire commented 10 years ago

I just install the latest Coda 2 ß and can't launch it. It crash. After taking a look on the crash file, I see it's the Emmet plugin.

You can find the crash log file here and a bug report on the Coda 2 public tracker here

nodequery commented 9 years ago

@impressbrand I am sorry I didn't read your previous reply earlier. OS X 10.8.5 is indeed the problem here. The JavaScript Core framework which this plugin is using was only introduced with Mavericks 10.9 and is not supported on older versions of OS X.

ardelmedia commented 9 years ago

Thanks @nodequery - I wasn't complaining at all, really appreciate the help that you and others have given. Happy to know that it works anyway - have a new Mac coming in January running Yosemite, so I'll be able to work with Emmet again :) Current Mac needs to continue running Mountain Lion so I'll just have to wait.

Thanks for the clarification :)

Tim-Morris commented 9 years ago

Thanks a ton @nodequery, love that I can match tags again!

ghost commented 9 years ago

@nodequery (google translate :Thank you provide plug and let Emmet again in Coad2.5 above work, I want to know how to use it to change its default CMD + E have completion mode? Already accustomed to using the Tab)谢谢你提供的插件,让Emmet重新在Coad2.5上面工作,我想知道怎么才改变它的默认用CMD+E有补全模式?已经习惯用Tab了

nodequery commented 9 years ago

@WangZhenKe No problem, simply go to Plug-Ins > Emmet > Emmet Preferences... and check the option Expand abbreviations by Tab key if possible.

ghost commented 9 years ago

@nodequery Thanks : )

ardelmedia commented 9 years ago

Hi guys. I have the plugin working in Coda 2.5 in on Yosemite now. However the expansion is not being separated over line breaks. For example, when I type div.hello>ul>li*3 I get the following:

<div class="hello"><ul><li></li><li></li><li></li><li></li><li></li><li></li></ul></div>

...when I would expect:

<div class="hello">
   <ul>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
   </ul>
</div>

Can you please tell me where I'm going wrong? The preferences seem to be set correctly - see screenshot here:

screen shot 2015-01-13 at 11 15 32

timkirtley commented 9 years ago

I have the same issue as described above by @impressbrand - my expanded elements all appear on one line. I'm sure I also used to get the text cursor positioned correctly within expanded elements, whereas now its just positioned at the end. ie:

Cursor now at end:

<p></p>|

Used to be within element:

<p>|</p>

amaisano commented 9 years ago

I also have the same exact issue as @timkirtley and @impressbrand - not a deal-breaker, but a bit inconvenient.

ardelmedia commented 9 years ago

Thanks @timkirtley and @atwixtor for the updates - pleased in one way that it's not just me. I am also used to having the cursor correctly positioned on expansion.

Would be interested to know if some are able to use the app with correct indented expansion, or if this is a universal issue?

Hope that someone is able to help - perhaps @nodequery ?

Best wishes, Andrew.

wethecode commented 9 years ago

@impressbrand @atwixtor @timkirtley Check out my previous comment here: https://github.com/emmetio/Emmet.codaplugin/issues/18#issuecomment-64986379 It may help you.

timgavin commented 9 years ago

@wethecode Worked for me, thanks!

amaisano commented 9 years ago

@wethecode Copied the suggested edits to the snippets file in and quit + reopened Coda and nothing changed - everything is still on 1 line and the cursor is being placed outside after expanding. I switched syntax modes a few times in my .php document, but no joy.

It DOES work when I'm in a .html file though...

Should the PHP format be showing up in this list after your suggested edits? Do we also need to set the "profile" in the snippets addition to "html" as well?

screen shot 2015-01-15 at 1 19 14 pm

timkirtley commented 9 years ago

Replaced the contents of the snippets.json file, as per @wethecode comment, and expanding elements works properly now in terms of indenting and cursor position.

amaisano commented 9 years ago

@timkirtley everything works fine when expanding HTML in a .PHP document for you?

timkirtley commented 9 years ago

Yes, in Coda the 'Syntax Mode' is set to 'PHP-HTML' and after updating the settings.json file inside the Emmet package folder it works correctly.

amaisano commented 9 years ago

I finally just replaced the snippets.json file with @wethecode 's gist/file, and Emmet suddenly started working as expected for line-breaks and indents. Perhaps I had other issues with my version of the .json file.

So in summary, using @nodequery 's updated plugin from https://github.com/emmetio/Emmet.codaplugin/issues/18#issuecomment-65317008 and the snippets.json file from https://gist.github.com/wethecode/1f79baf168680afb0f2d got Emmet working normally (as far as I can tell) again in Coda 2.5ß on Mavericks.

Thanks all!

currentcreative commented 9 years ago

How do you edit snippets.json? Where is it, even? I read the above, but this knowledge is assumed known.

davorpeic commented 9 years ago

@currentcreative Just found it myself so will share for future /library/Application Support/Coda 2/Plugins/emmet.codaplugin (right click show package contents)/ Content/Recources/snippets.json

dp

currentcreative commented 9 years ago

@davorpeic awesome, thank you!

lvidal commented 9 years ago

Emmet doesn't recognize CSS properties under the the