The IDE and its tools are not fully prepared for generics yet.
I usually get around that - to some extend - by skipping the generics part, pressing ctrl-j, and add the generics parts as I go.
Thaddy, have you tried it lately? Mattias an i have done some bug fixing for generics in codetools. For me it works quite okay now, though it's not finished yet.
Have a look in this thread http://forum.lazarus.freepascal.org/index.php/topic,39255.msg268905.html (http://forum.lazarus.freepascal.org/index.php/topic,39255.msg268905.html).Thanks, but with fpcdeluxe, the directory structure looks completely different.
Especially the wiki entry and my adapted build script (ignore OPT parameter).