From: steve f. <sfi...@pc...> - 2003-03-14 15:18:06
|
sorry paul that we just haven't gotten to documenting this. here is the sequence: 1. write the plugin initially 2. check it in to cvs first time 3. build 4. ga +create PLUGIN --commit 5. now you can debug and tweek your plugin by running ga PLUGIN (without --commit) 6. when it is working enough to test with --commit: - check it in to cvs - build - ga +update PLUGIN --commit 7. iterarate on steps 5 and 6 steve pjm wrote: >Steve, > >Ok, I dug out your old email on --commit registering plugins to find The Way of >testing my LoadPfam plugin with a tiny subsection of the latest PFma release. It >only creates records a few tables and they are all currently empty in my DB. >Anything it creates I will quite happily (and easily) destroy (drop 3 tables). > >Thus, before I cvs commit I wanted to try out --commit. But I can't run it with >out cvs commiting... > >I take it I can cvs commit, then `ga +update GUS::Common::Plugin::LoadPfam` as >needed, right? > >UPDATE > >I cvs commited the code so far (it needs a tidy, some print statements removing) >but its more or less there. Thinking it would get around the --commit problems I >did a > > `ga +update GUS::Common::Plugin::LoadPfam` > >but because its already registered it won't update it. Doh! How do I get around >this? What is The Way? > >Paul. > >steve fischer wrote: > > >>just want to clarify why debbie "committed when i should not have". >> >>the deal is that we are extremely rigorous about our tracking of bulk >>changes to the db. >> >>in particular, you cannot run a plugin with --commit unless that exact >>revision of the plugin has been registered in the db. and, you cannot >>do that registering unless you have checked in that version of the >>plugin to cvs. >> >>instead of checking in a crippled version of a plugin, hacks like this >>can be accomplished by other ways, such as: >> - introducing a temporary command line arg which the plugin tests for >>to run its hacky code. >> - copying the plugin to a new file, such as LoadTaxonDebbiesHack.pm, >>and registering it as a new plugin >> >>steve >> >>Deborah F. Pinney wrote: >> >> >> >>>This is my fault. I commited to cvs when I should not have. I have >>>uncommented those lines and recomitted to cvs. >>> >>> >>> Deboeah Pinney >>> >>> >>>On Wed, 5 Mar 2003, Arnaud >>>Kerhornou wrote: >>> >>> >>> >>> >>> >>>>Hi >>>> >>>>I'm trying to run LoadTaxon plugin. Why some lines are commented out ? >>>> >>>> #my $genCodes = $self->makeGeneticCode(); >>>> >>>> my $namesDmp = $self->getNames(); >>>> >>>> #my $nodesHash = $self->makeNodesHash($genCodes); >>>> >>>> #my $rootAttArray = $self->getRootAttArray($genCodes); >>>> >>>> #$self->makeTaxonEntry($rootAttArray, \$count); >>>> >>>> #if ($self->getCla->{'restart'} && $self->getCla->{'restart'} > 1) { >>>> #$self->getTaxonAtt($self->getCla->{'restart'},$nodesHash,\$count); >>>> #} >>>> #else { >>>> #$self->getTaxonAtt($rootAttArray->[0],$nodesHash,\$count); >>>> #} >>>> >>>>Arnaud >>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >>>>for complex code. Debugging C/C++ programs can leave you feeling lost and >>>>disoriented. TotalView can help you find your way. Available on major UNIX >>>>and Linux platforms. Try it free. www.etnus.com >>>>_______________________________________________ >>>>Gusdev-gusdev mailing list >>>>Gus...@li... >>>>https://lists.sourceforge.net/lists/listinfo/gusdev-gusdev >>>> >>>> >>>> >>>> >>>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >>>for complex code. Debugging C/C++ programs can leave you feeling lost and >>>disoriented. TotalView can help you find your way. Available on major UNIX >>>and Linux platforms. Try it free. www.etnus.com >>>_______________________________________________ >>>Gusdev-gusdev mailing list >>>Gus...@li... >>>https://lists.sourceforge.net/lists/listinfo/gusdev-gusdev >>> >>> >>> >>> >>> >>> >>------------------------------------------------------- >>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >>for complex code. Debugging C/C++ programs can leave you feeling lost and >>disoriented. TotalView can help you find your way. Available on major UNIX >>and Linux platforms. Try it free. www.etnus.com >>_______________________________________________ >>Gusdev-gusdev mailing list >>Gus...@li... >>https://lists.sourceforge.net/lists/listinfo/gusdev-gusdev >> >> > > > > |