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\json
folder (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:
cmd
and hit [enter]). - Type:
cd \msysgit\msysgit
and hit [enter]. - You should be at
C:\msysgit\msysgit
type:msys.bat
and a really cool linux-like prompt will appear. - Type:
mkdir repositories
and hit [enter]. - Type:
cd repositories
and hit [enter]. - Type:
git://github.com/nagaozen/gedit-plugin-autocomplete.git
and hit [enter]. - Type:
exit
and hit [enter].
Placing the files in the right place
- Copy both
C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete
folder andC:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete.gedit-plugin
toC:\Program Files\gedit\lib\gedit-2\plugins
- Create a folder called
autocomplete
atC:\Program Files\gedit\share\gedit-2\plugins
- Copy both
C:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete\lib
folder andC:\msysgit\msysgit\repositories\gedit-plugin-autocomplete\autocomplete\settings.json
toC:\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