{"thread":{"id":"11321","subject":"add -i not able to find get_colorbool","startedAt":"2007-12-17T14:04:21Z","lastAt":"2007-12-17T16:43:17Z","messageCount":3,"participants":["Johannes Schindelin","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"63426","messageId":"Pine.LNX.4.64.0712171400250.9446@racer.site","threadId":"11321","inReplyTo":null,"subject":"add -i not able to find get_colorbool","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-12-17T14:04:21Z","receivedAt":"2007-12-17T14:04:21Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nI did not use \"git add -i\" in something like two weeks, and now it stopped \nworking:\n\n\t$ git add -i\n\tCan't locate object method \"get_colorbool\" via package \"Git\" at \n\t\t/home/gitte/bin/git-add--interactive line 15.\n\nThe second line of git-add--interactive reads thusly:\n\n\tuse lib (split(/:/, $ENV{GITPERLLIB} || \n\t\t\"/home/gitte/lib/perl5/site_perl/5.8.8\"));\n\nand this puzzles me:\n\n\t$ grep -n get_colorbool /home/gitte/lib/perl5/site_perl/5.8.8/Git.pm\n\t584:=item get_colorbool ( NAME )\n\t591:sub get_colorbool {\n\nSo it has it, but cannot locate get_colorbool?\n\nHelp,\nDscho\n"},{"id":"63427","messageId":"20071217143100.GA21122@coredump.intra.peff.net","threadId":"11321","inReplyTo":"Pine.LNX.4.64.0712171400250.9446@racer.site","subject":"Re: add -i not able to find get_colorbool","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-12-17T14:31:00Z","receivedAt":"2007-12-17T14:31:00Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Dec 17, 2007 at 02:04:21PM +0000, Johannes Schindelin wrote:\n\n> The second line of git-add--interactive reads thusly:\n> \n> \tuse lib (split(/:/, $ENV{GITPERLLIB} || \n> \t\t\"/home/gitte/lib/perl5/site_perl/5.8.8\"));\n> \n> and this puzzles me:\n> \n> \t$ grep -n get_colorbool /home/gitte/lib/perl5/site_perl/5.8.8/Git.pm\n> \t584:=item get_colorbool ( NAME )\n> \t591:sub get_colorbool {\n> \n> So it has it, but cannot locate get_colorbool?\n\nThat does seem odd. Can you try running git-add--interactive in the perl\ndebugger and doing this:\n\n  x \\&Git::get_colorbool\n  x \\&Git::repository\n\nIt should tell you where it is getting the functions from (in the first\ncase, it will presumably not find it at all, but you seem to have a\nGit::repository, so it should point to the file that has been loaded).\n\n-Peff\n"},{"id":"63438","messageId":"Pine.LNX.4.64.0712171639200.9446@racer.site","threadId":"11321","inReplyTo":"20071217143100.GA21122@coredump.intra.peff.net","subject":"Re: add -i not able to find get_colorbool","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-12-17T16:43:17Z","receivedAt":"2007-12-17T16:43:17Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 17 Dec 2007, Jeff King wrote:\n\n> On Mon, Dec 17, 2007 at 02:04:21PM +0000, Johannes Schindelin wrote:\n> \n> > The second line of git-add--interactive reads thusly:\n> > \n> > \tuse lib (split(/:/, $ENV{GITPERLLIB} || \n> > \t\t\"/home/gitte/lib/perl5/site_perl/5.8.8\"));\n> > \n> > and this puzzles me:\n> > \n> > \t$ grep -n get_colorbool /home/gitte/lib/perl5/site_perl/5.8.8/Git.pm\n> > \t584:=item get_colorbool ( NAME )\n> > \t591:sub get_colorbool {\n> > \n> > So it has it, but cannot locate get_colorbool?\n> \n> That does seem odd. Can you try running git-add--interactive in the perl \n> debugger and doing this:\n> \n>   x \\&Git::get_colorbool\n>   x \\&Git::repository\n> \n> It should tell you where it is getting the functions from (in the first \n> case, it will presumably not find it at all, but you seem to have a \n> Git::repository, so it should point to the file that has been loaded).\n\nGood call!\n\n\tmain::(/home/gitte/bin/git-add--interactive:8):\n\t8:      my ($prompt_color, $header_color, $help_color, $normal_color);\n\t  DB<1> x \\&Git::get_colorbool\n\t0  CODE(0x853b25c)\n\t   -> &CODE(0x853b25c) in ???\n\t  DB<2>   x \\&Git::repository\n\t0  CODE(0x833e8ac)\n\t   -> &Git::repository in \n\t/home/gitte/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi/Git.pm:145-217\n\nSo it seems that somehow on 8. Nov 10:42 Git.pm was installed into \ni586-linux-thread-multi/ and is preferred over the Git.pm which was \ninstalled on 6. Dec 12:24 into site_perl/5.8.8/.\n\nI have no idea how that happened on Nov 8, could be that I was desperate \nenough to hand-copy Git.pm there.  Git.pm seems to hate me (this was not \nthe first time I had problems with it).\n\nCiao,\nDscho\n"}]}