Network.Gitit and Plugins

42 views
Skip to first unread message

fergie

unread,
Oct 4, 2009, 9:05:12 AM10/4/09
to gitit-discuss
Is it possible to use the Network.Gitit module with plugins? I am
using the simple example from the documentation and when I try to run
my program I get the error message "gitit was not compiled with plugin
support."

I have compiled gitit with plugin support, when I use the normal
executable everything is fine.

Is there something I need to do somewhere before I compile my own
exectable?

Many Thanks

Fergie

fiddlosopher

unread,
Oct 4, 2009, 12:24:55 PM10/4/09
to gitit-discuss
You need to compile with the -D_PLUGINS, or if you're using Cabal,
cpp-options: -D_PLUGINS

This defines the CPP symbol _PLUGINS, which causes plugin code to
be conditionally included.

John

fiddlosopher

unread,
Oct 4, 2009, 12:33:48 PM10/4/09
to gitit-discuss
On second thought: That shouldn't be necessary. I think you've
uncovered a bug in the cabal file, which should set this symbol in the
Library section as well as the Executable section. Fix coming...

fiddlosopher

unread,
Oct 4, 2009, 1:07:41 PM10/4/09
to gitit-discuss
Okay, try the latest version from the repository. It should work now
-- let me know if it doesn't.
You shouldn't need to manually set the _PLUGINS symbol.

John

fergie

unread,
Oct 5, 2009, 4:08:01 AM10/5/09
to gitit-discuss
That seems to work for me. Thank you
Reply all
Reply to author
Forward
0 new messages