That leads me to the question of how best to handle checking for duplicate loads in Pd. Perhaps we could reuse the Tcl 'package require' if it has functionality like this. So that each plugin would then be a package that needs to be loaded into Tcl. That's one idea.
.hc On Thu, 2011-04-14 at 17:57 +0200, András Murányi wrote: > Hello Joe, > > seems like Pd tries to load the plugin twice! Which means that you > have its folder in your search path twice... try to remove one > occurrence of the folder from your .pdsettings or .pdextended, and if > it is a default folder, you can remove the single occurrence you find, > because default folders are searched by default, no need to have them > in your settings. > > Andras > > > On Thu, Apr 14, 2011 at 17:27, Joe White <white.j...@gmail.com> wrote: > Hi Yvan, > > > First off, great plugin - love the feature! > > > I just checked out the latest version of the autocomplete > plugin from github. > > > Every time I start up Pd I get the same error (this doesn't > seem to affect any functionality): > > > loaded: autocompletion-plugin 0.33 > ----------- > UNHANDLED ERROR: can't rename to "::pd_bindings::sendkey_old": > command already exists > while executing > "rename ::pd_bindings::sendkey ::pd_bindings::sendkey_old" > ("uplevel" body line 12) > invoked from within > "uplevel #0 $tclcode" > FAILED TO LOAD /Users/joe/Library/Pd/autocompletion-plugin.tcl > ----------- > > > Also, when using the tab function, after the context menu > shows, pressing the arrow keys (or any other key) followed by > TAB again gives the following 'Application Error': > > > Error: Cannot call post message while al... > > > Once this shows Pd becomes unresponsive and I have to force > quit it. > > > I'm running Pd-0.43-0 on a MacBook Pro running OS X 10.6.7 > > > Thanks, > Joe > > > Message: 4 > Date: Thu, 14 Apr 2011 13:55:24 +0200 > From: yvan volochine <yvan...@gmail.com> > Subject: Re: [PD] 3 new gui-plugins > To: JF <sainti...@yahoo.com> > Cc: pd-list@iem.at > Message-ID: <4da6e0ac....@gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > On 04/14/2011 11:54 AM, JF wrote: > > The auto-completion is fantastic stuff! Especially the > drop-down menu addition. > > Congratulations Yvan, HC& JW. > > > > Is there anyway of modifying the plugin so that instead of > using TAB this > > happens... > > there is a new version but it's still expermiental (and > unreleased). > if you wanna test it: > > http://github.com/gusano/pd_stuffs > > and checkout autocompletion_experimental branch > > > > * Create new object -> list of objects appear in full > (0-9, a-z) but focus > > stays in object > > then it can be a *long* list of objects so I should change the > GUI for > it (nomore popup menu but a window with scrollbars but then > you don't > have an easy overview of all completions...). not sure I > really want > that though :/ maybe this could be a user option ? > > > > * Begin typing -> list of objects reduces as you type > > the experimental version does that but there are still some > bugs > > > > * See the one you want -> arrow key up/down, focus > changes to drop-down box > > then ENTER to select desired object > > the current version does that > > cheers, > _y > > > > > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list