MaxA
November 6, 2016, 9:37am
1
Hello,
Emmet on IDE 9.0 works fine.
For example: CSS
pb[Emmet] -> padding-bottom:
mt[Emmet] -> margin-top
Now on 10.x in XEmmet I got:
pb[Emmet] ->
p[Emmet] -> padding:
What had happened? I want just the statdard Emmet abbreviations.
There is link to Emmet customization on Defman21/Xemmet. I didn’t find any snippets.json. Is this actual?
M.
Defman
November 6, 2016, 9:58am
2
What version? Open the bottom pane, Console, execute:
require("xemmet").__debug__();
Then share your log file.
Defman
November 6, 2016, 10:43am
3
This file should be in ~/.komodoide/10.1/
but unless you want to add your own abbreviations - you don’t need it.
MaxA
November 6, 2016, 11:59am
4
Looks like console doesn’t work, cannot enter some text there.
Windows 7x64, Komodo IDE Komodo IDE, version 10.1.1, build 89474, platform win32-x86.
Built on Thu Sep 01 14:27:01 2016.
Were should I place it on Windows? I think somewhere in profile folder. Threre are too short list of abbreviatons in XEmmet, I need to modily it up to the native Emmet config.
BTW, one more problem. I typed:
padd[Emmet] → padding:
What is ?..
Defman
November 6, 2016, 12:01pm
5
There’s an input at the bottom.
In your profile folder.
Translations:
Russian - provided by @Defman21
Installation Folder
The default location varies by platform, and the name of the directory corresponds to the version of Komodo you are running (“IDE” or “Edit” plus the version number - e.g. “Komodo IDE 8”):
Windows
C:\Program Files\ActiveState Komodo [IDE|Edit] <version>\
Linux
/opt/Komodo-[IDE|Edit]-<version>/
OS X
/Applications/Komodo-[IDE|Edit]-<version>.app
Profile Folder
Komodo stores preferences, macros, templates, keybinding s…
MaxA
November 6, 2016, 12:05pm
6
Yes, I found it, tried to input text. I cannot please cursor there or type anything. That looks like similar to read-only input field on web. Click is a available, but not any feedback.
Defman
November 6, 2016, 12:11pm
7
Oh. Create an userscript with the same line and run it, then expand an abbreviation and post your log file there.
MaxA
November 6, 2016, 1:40pm
8
i found that it’s necessaty to enter the command at the bottom line of console, not in the main console windows like in regular terminal. No any output:
Command output: encoding problems.
I created userscript and run it, but cannot find the log …
Defman
November 6, 2016, 1:45pm
9
Help - troubleshooting - view log file
MaxA
November 6, 2016, 2:39pm
10
I tried to execute userscript and post the coomand to console also. Looks like nothing appeared in the log.
[2016-11-06 16:35:32,423] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret: fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret: fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: args = {"0":" fsz","1":"html5"}
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: extracted abbr = fsz; success!
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_expand args = {"0":"fsz","1":"html5"}
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_expand return = <fsz>${0}</fsz>
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_prepare args = {"0":"<fsz>${0}</fsz>"}
[2016-11-06 16:35:32,428] [DEBUG] xemmet: @_prepare return = <fsz>[[%tabstop0:]]</fsz>
[2016-11-06 16:35:32,428] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <fsz>[[%tabstop0:]]</fsz>; abbr(fsz).len = 3
Defman
November 6, 2016, 2:42pm
11
Please expand a css abbreviation (mb
for example) and post the log again.
MaxA
November 6, 2016, 2:46pm
12
mb - margin-bottom
mt - margin-top
fsz - font-size
[2016-11-06 16:35:32,423] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret: fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret: fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: args = {"0":" fsz","1":"html5"}
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: extracted abbr = fsz; success!
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_expand args = {"0":"fsz","1":"html5"}
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_expand return = <fsz>${0}</fsz>
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_prepare args = {"0":"<fsz>${0}</fsz>"}
[2016-11-06 16:35:32,428] [DEBUG] xemmet: @_prepare return = <fsz>[[%tabstop0:]]</fsz>
[2016-11-06 16:35:32,428] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <fsz>[[%tabstop0:]]</fsz>; abbr(fsz).len = 3
[2016-11-06 16:43:11,890] [ERROR] koCodeIntel: ERROR: lang_xml.py: async_eval_at_trg:
Internal error: Unknown UDL-based XML completion type: u'defn'
[2016-11-06 16:43:48,700] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:43:48,703] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret: mt
[2016-11-06 16:43:48,704] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret: mt
[2016-11-06 16:43:48,706] [DEBUG] xemmet: @_isAbbr: args = {"0":" mt","1":"html5"}
[2016-11-06 16:43:48,706] [DEBUG] xemmet: @_isAbbr: extracted abbr = mt; success!
[2016-11-06 16:43:48,707] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:43:48,707] [DEBUG] xemmet: @_expand args = {"0":"mt","1":"html5"}
[2016-11-06 16:43:48,720] [DEBUG] xemmet: @_expand return = <mt>${0}</mt>
[2016-11-06 16:43:48,721] [DEBUG] xemmet: @_prepare args = {"0":"<mt>${0}</mt>"}
[2016-11-06 16:43:48,723] [DEBUG] xemmet: @_prepare return = <mt>[[%tabstop0:]]</mt>
[2016-11-06 16:43:48,723] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <mt>[[%tabstop0:]]</mt>; abbr(mt).len = 2
[2016-11-06 16:45:05,565] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:45:05,568] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret: mb
[2016-11-06 16:45:05,568] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret: mb
[2016-11-06 16:45:05,569] [DEBUG] xemmet: @_isAbbr: args = {"0":" mb","1":"html5"}
[2016-11-06 16:45:05,569] [DEBUG] xemmet: @_isAbbr: extracted abbr = mb; success!
[2016-11-06 16:45:05,569] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:45:05,569] [DEBUG] xemmet: @_expand args = {"0":"mb","1":"html5"}
[2016-11-06 16:45:05,578] [DEBUG] xemmet: @_expand return = <mb>${0}</mb>
[2016-11-06 16:45:05,578] [DEBUG] xemmet: @_prepare args = {"0":"<mb>${0}</mb>"}
[2016-11-06 16:45:05,578] [DEBUG] xemmet: @_prepare return = <mb>[[%tabstop0:]]</mb>
[2016-11-06 16:45:05,578] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <mb>[[%tabstop0:]]</mb>; abbr(mb).len = 2
Defman
November 6, 2016, 2:48pm
13
These won’t work in a html file. Are you trying to expand them in a <style>
tag?
Defman
November 6, 2016, 2:49pm
15
Hmm. Thats a bug in Xemmet. I’ll fix it ASAP
MaxA
November 6, 2016, 2:52pm
16
Great, thanks, I hope that I helped you a little in XEmmet testing :slight_smile
MaxA
November 6, 2016, 2:54pm
17
Abbreviation mb, mt, fsz working ok in pure CSS files.
MaxA
November 6, 2016, 3:13pm
18
Can I reassing XEmmet’s wrap from Ctrl+Tab to something else?
I’m using it for next file/tab. Standard shortcut for the most of editors?
Working ok in XEmmet disabled in Addons (Legacy) only.
Defman
November 6, 2016, 3:15pm
19
You can disable line wrap in prefs - smart editing. Then it will work only with selections.
Defman
November 6, 2016, 3:44pm
20
Next time please use github issues to report about issues