19

Every time I'm trying to use Emmet's Expand Abbreviation it gives me errors. First a pop up with Unknown Exception and then another pop up with python script plugin did not accept the script.

I tried reinstalling Notepad++ but that didn't help.

I'm running Windows 8 x64 & Notepad++ 6.6.9. This is the first time I'm using Emmet, after recently used the old Zen Coding. (Which works flawlessly.)

I have python 2.7 installed, if that necessary too.

tom redfern
  • 30,562
  • 14
  • 91
  • 126
Apu889
  • 193
  • 1
  • 1
  • 6

4 Answers4

44

I had the same problem as you. This is the solution which worked for me:

Basically, the problem lies in the Python Script plugin which will be automatically installed with Emmet.

Go to this link:
http://sourceforge.net/projects/npppythonscript/files/Python%20Script%200.9.2.0/
and download PythonScript_full_0.9.2.0 package.

Replace Notepad++'s Python package with PythonScript_full_0.9.2.0 and unpack the archive in Notepad++'s MAIN directory. (This is where notepad++.exe is.)
(Do NOT unpack the archive inside the plugins directory. That will not work. The python27.dll file needs to be in the same directory where notepad++.exe is.)

I am using Notepad++ v6.6.9 and it works now.

StackzOfZtuff
  • 2,534
  • 1
  • 28
  • 25
David
  • 456
  • 5
  • 2
  • Just update to "last version" at http://sourceforge.net/projects/npppythonscript/files/?source=navbar – Ricardo Rivaldo Mar 30 '15 at 22:33
  • Just wanted to note that you can just "merge" the plugin folder and overwrite any files with the same name. – D.Tate Oct 20 '15 at 01:49
  • If you're using the archived PythonScript zip from SourceForge, don't replace the PythonScript.dll and the PythonScript.chm file in the installation directory, as the ones that Notepad++ installs are likely newer. Just grab the PythonScript folder with all the libraries and put it in the install directory of Notepad++. – Samir May 11 '16 at 14:29
9

There is a newer version (PythonScript_1.0.8.0.msi ) available here:

http://sourceforge.net/projects/npppythonscript/files/latest/download?source=files

I had the exact same issue on two different computers, one Windows 7 and one Windows 8, both 64bit. I installed the MSI on the Win8 computer and it fixed the problem.

TonyT
  • 91
  • 1
3

Check to see if it might be just the shortcut keys that aren't working by going to menuBar>plugins>emmet>expandAbbreviation. If clicking on that works after typing in some emmet syntax, but not when you type the shortcut key, reassign the shortcut keys. Here's what I did:

Look specifically at menuBar>settings>shortcutMapper

under Main Menu-> "Insert Blank Line Above Current"

and see that ctrl+alt+enter is already assigned there.

Change that to something else (I did ctrl+alt+up), and you'll see that your shortcut keys are working for emmet.

jezrael
  • 822,522
  • 95
  • 1,334
  • 1,252
jcwareham
  • 31
  • 1
0

You have 4 objects (2 files and 2 directories) that you have to sort:

  • Put the python27.dll file into the MAIN directory like so: %ProgramFiles(x86)%\notepad++\python27.dll

  • Put the others (doc directory, PythonScript directory, PythonScript.dll file) into %ProgramFiles(x86)%\notepad++\plugins\.

This works for Windows 8.

Also change the key shorcut by ctrl + E or some other.

StackzOfZtuff
  • 2,534
  • 1
  • 28
  • 25