Today a friend told me that my gedit autocomplete plugin wasn't working under his Windows box. So I decided to check why and learned a lot of things. Basically the plugin doesn't work because the binary version made for windows brings a custom python.dll which doesn't come with the python json library. So, in order to make it work, you need a working version of the json package and copy it to the place where gedit python.dll is expecting it to be and change the places of some files XD

Here's a small step-by-step install using ActivePython and msysgit:

Adding json package to gedit python.dll

  1. Download and install both ActivePython latest version and msysgit.
  2. Following the Windows "Next, Next, Finish" mantra, Python should be installed at C:\Python26\ and the msysgit at C:\msysgit\msysgit\. If you are an advanced user, just remember that where I write C:\Python26\ you should read something else where you installed it (the same for msysgit).
  3. Copy C:\Python26\Lib\json folder (THE FOLDER, NOT IT'S CONTENTS) and paste it to C:\Program Files\gedit\bin\Lib.

Downloading the latest gedit-plugin-autocomplete

  1. Open a console (WINDOWS+R, type: cmd and hit [enter]).
  2. Type: cd \msysgit\msysgit and hit [enter].
  3. You should be at C:\msysgit\msysgit type: msys.bat and a really cool linux-like prompt will appear.
  4. Type: mkdir repositories and hit [enter].
  5. Type: cd repositories and hit [enter].
  6. Type: git:// and hit [enter].
  7. Type: exit and hit [enter].

Placing the files in the right place

  1. Copy both C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete folder and C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete.gedit-plugin to C:\Program Files\gedit\lib\gedit-2\plugins
  2. Create a folder called autocomplete at C:\Program Files\gedit\share\gedit-2\plugins
  3. Copy both C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete\lib folder and C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete\settings.json to C:\Program Files\gedit\share\gedit-2\plugins\autocomplete

And that's it! Now you should be ready to enjoy the plugin running a Windows box!

UPDATE: A new guide is available at Installing gedit with autocomplete 0.11.0 in windows 7