Help with fork Zen Coding

spirit
2014-01-03
2014-01-15
  • spirit
    spirit
    2014-01-03

    Hellow, If someone have some skill and free time it would be nice if they helped.

    There is grate plugin in NPP, Zen Coding, now called Emment. But new implementation Emment have problem with performance: https://github.com/emmetio/npp/issues/2, and now its completly unusable.

    So, I use first version wrote in JS: http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central#Z

    But this version have horrible dialog box, using dialog box from IE, code is contained in file: NPP\plugins\NppScripting\includes\Dialog.js. With this solution we can't take dialog box in first plan, when run ZC comand we must manualy select dialog.

    Now, whe have other JS impelemntation ZC:
    http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Plugin_Central#jN
    This version have some problem, but have better dialog box in file: NPP\plugins\plugins\jN\includes\Dialog.js

    I try integrate this second file in first version ZC but for me it's too hard. It looks like the .dll file need change too. So if someone can help (integrate dialog box from second plugin to first plugin) I would be grateful.

    PS.
    Alternatively, it would suffice take this IE dialog box to first plan, but I don't find any working solution. I can set only focus at input element, but box still exist behind other window. Any tip will be greatly appreciated.

     
  • Eugen Kremer
    Eugen Kremer
    2014-01-10

    Hello spirit,
    why do you try to use new dialog.js from jN in old version(NppScripting)? jN got extended API to solve IE dialog problem.

    What is your special problem with jN?

     
  • spirit
    spirit
    2014-01-10

    Because I make nice tutorial for first version and I know it very well (make some correct in JS line). But its not main problem. ZC in jN don't have some options, like Evaluate Math Expression, Select Next Item, Select Previous Item, Reflect CSS Value, when ZC in NppScripting have.

    jN don't implement command what we get in NppScripting and of course next command from Emmet. So, if I don't need other script from jN, I preffer older version.

    We have some problem to using new Emmet in Notepat++. Last implementation Emmet run JS in Python and its very very slowly. Only older version works fine, but we don't get new future.

    If ZC in jN adding older command, I will migrate and update my tutorial. If no I try find some way to make better dialog box for ZC in NppScripting, because only this one thing is worse.

    PS.
    I have problem to use last jN_2.0.100 in last Notepad++. Get crash

    :---------------------------
    just crash in


    DSpellCheck.dll just crash in
    notify(SCNotification *notification) :
    notification->nmhdr.code == 1001
    notification->nmhdr.hwndFrom == 12977996
    notification->nmhdr.idFrom == 0


    OK

    Wen I remove all .dll plugin problem still exist:

    just crash in


    jN.dll just crash in
    notify(SCNotification *notification) :
    notification->nmhdr.code == 1001
    notification->nmhdr.hwndFrom == 12387972
    notification->nmhdr.idFrom == 0


    OK

    When remove jN.dll problem disappear.

     
    Last edit: spirit 2014-01-12
  • Eugen Kremer
    Eugen Kremer
    2014-01-11

    Hello spirit,

    the crash problem could be old script from NppScripting based ZC you are using in jN. Is it so?

    If no, I need steps how to reproduce the crash. NppDump.dmp from crash were very nice. It could be in Npp folder or %temp%.

    Please try with clean Notepad++ installation and clean jN without any own scripts. It works by me without any crashes.

    Try to start Npp as administrator.

     
    Last edit: Eugen Kremer 2014-01-11
  • spirit
    spirit
    2014-01-12

    Post awaiting moderation.
  • spirit
    spirit
    2014-01-14

    Post awaiting moderation.
  • spirit
    spirit
    2014-01-15

    Post awaiting moderation.
  • Eugen Kremer
    Eugen Kremer
    2014-01-15

    This issue is fixed. Please try the next version

    Thanks for report!