
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
- Download and install both ActivePython latest version and msysgit.
- Following the Windows "Next, Next, Finish" mantra, Python should be installed at
C:\Python26\and the msysgit atC:\msysgit\msysgit\. If you are an advanced user, just remember that where I writeC:\Python26\you should read something else where you installed it (the same for msysgit). - Copy
C:\Python26\Lib\jsonfolder (THE FOLDER, NOT IT'S CONTENTS) and paste it toC:\Program Files\gedit\bin\Lib.
Downloading the latest gedit-plugin-autocomplete
- Open a console (WINDOWS+R, type:
cmdand hit [enter]). - Type:
cd \msysgit\msysgitand hit [enter]. - You should be at
C:\msysgit\msysgittype:msys.batand a really cool linux-like prompt will appear. - Type:
mkdir repositoriesand hit [enter]. - Type:
cd repositoriesand hit [enter]. - Type:
git://github.com/nagaozen/gedit-plugin-autocomplete.gitand hit [enter]. - Type:
exitand hit [enter].
Placing the files in the right place
- Copy both
C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocompletefolder andC:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete.gedit-plugintoC:\Program Files\gedit\lib\gedit-2\plugins - Create a folder called
autocompleteatC:\Program Files\gedit\share\gedit-2\plugins - Copy both
C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete\libfolder andC:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete\settings.jsontoC:\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
