Hello All,
I 've got a Warning -- "Warning: Duplicate method definition " And package load was aborted. Is there any way I can load the package still ? My VW version is 7.3.1 TIA --Mark |
This indicates that you have a duplicate for one or more methods in the database. This can occur when publishing in certain circumstances from older versions. To get rid of them
- bring up a version list on your package - pop up the menu on the version in question, but do not select any items yet - press and hold the control key - select "Browse" from the menu - now you should have an inspector on the package version. There are other ways to get that, but this "easter egg" is one of the more convenient ones. - in the inspector, evaluate "self searchAndDestroyDuplicateMethods" - this may open up a number of method version browsers, typically each with only two versions in them, representing the duplicates. You can go through these and look to see which is the correct version to use. The remove menu item in the browser will DELETE THEM DESTRUCTIVELY FROM THE DATABASE IMMEDIATELY. - you may need to repeat this for multiple versions, since they may be duplicated in several At 03:53 PM 24/05/2006, Mark Pirogovsky wrote: >Hello All, >I 've got a Warning -- "Warning: Duplicate method definition " > >And package load was aborted. > > >Is there any way I can load the package still ? > >My VW version is 7.3.1 > >TIA > >--Mark -- Alan Knight [|], Cincom Smalltalk Development [hidden email] [hidden email] http://www.cincom.com/smalltalk "The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross |
Alan Knight wrote:
> ... The remove menu item in the browser will DELETE THEM DESTRUCTIVELY FROM THE DATABASE IMMEDIATELY. Just curious, but I thought the database tables only had read/update/insert (no delete) permissions. So is the row actually deleted, or is it just marked deleted in some way? |
At 11:59 PM 24/05/2006, Yanni Chiu wrote:
>Alan Knight wrote: >>... The remove menu item in the browser will DELETE THEM DESTRUCTIVELY FROM THE DATABASE IMMEDIATELY. > >Just curious, but I thought the database tables only had >read/update/insert (no delete) permissions. So is the row >actually deleted, or is it just marked deleted in some way? I don't think there's anything special set up with the permissions. In normal use Store never deletes, and very rarely updates (the only case I can think of is setting the current blessing level field in a package/bundle when adding a new blessing). This is one of the very rare cases where Store will actually delete things. -- Alan Knight [|], Cincom Smalltalk Development [hidden email] [hidden email] http://www.cincom.com/smalltalk "The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross |
In reply to this post by Alan Knight-2
Alan,
Thanks for the speedy reply. are there any other "easter eggs" in the store? There are plenty of things which are missing from the store and any help would be greatly appreciated. Would it be much to ask if somebody in the know put together a FAQ, blog or whatever with similar snippets and best practice recommendations ? --Mark Alan Knight wrote: > This indicates that you have a duplicate for one or more methods in the database. This can occur when publishing in certain circumstances from older versions. To get rid of them > - bring up a version list on your package > - pop up the menu on the version in question, but do not select any items yet > - press and hold the control key > - select "Browse" from the menu > - now you should have an inspector on the package version. There are other ways to get that, but this "easter egg" is one of the more convenient ones. > - in the inspector, evaluate "self searchAndDestroyDuplicateMethods" > - this may open up a number of method version browsers, typically each with only two versions in them, representing the duplicates. You can go through these and look to see which is the correct version to use. The remove menu item in the browser will DELETE THEM DESTRUCTIVELY FROM THE DATABASE IMMEDIATELY. > - you may need to repeat this for multiple versions, since they may be duplicated in several > > At 03:53 PM 24/05/2006, Mark Pirogovsky wrote: > >>Hello All, >>I 've got a Warning -- "Warning: Duplicate method definition " >> >>And package load was aborted. >> >> >>Is there any way I can load the package still ? >> >>My VW version is 7.3.1 >> >>TIA >> >>--Mark > > > -- > Alan Knight [|], Cincom Smalltalk Development > [hidden email] > [hidden email] > http://www.cincom.com/smalltalk > > "The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross > > > |
In reply to this post by Alan Knight-2
It doesn't actually remove the method itself from the database. Just the
link to that particular package. So if you browse all versions of the method it will still be there. > At 11:59 PM 24/05/2006, Yanni Chiu wrote: >>Alan Knight wrote: >>>... The remove menu item in the browser will DELETE THEM DESTRUCTIVELY >>>FROM THE DATABASE IMMEDIATELY. >> >>Just curious, but I thought the database tables only had >>read/update/insert (no delete) permissions. So is the row >>actually deleted, or is it just marked deleted in some way? > > I don't think there's anything special set up with the permissions. In > normal use Store never deletes, and very rarely updates (the only case I > can think of is setting the current blessing level field in a > package/bundle when adding a new blessing). This is one of the very rare > cases where Store will actually delete things. > -- > Alan Knight [|], Cincom Smalltalk Development > [hidden email] > [hidden email] > http://www.cincom.com/smalltalk > > "The Static Typing Philosophy: Make it fast. Make it right. Make it > run." - Niall Ross > > |
In reply to this post by Mark Pirogovsky-3
No others that I can think of offhand. There are a variety of things around that talk about best practice recommendations, and probably some with snippets, including the documentation and various blog entries, but I don't know of anything that attempts to collect them all.
At 09:25 AM 25/05/2006, Mark Pirogovsky wrote: >Alan, >Thanks for the speedy reply. >are there any other "easter eggs" in the store? There are plenty of things which are missing from the store and any help would be greatly appreciated. > >Would it be much to ask if somebody in the know put together a FAQ, blog or whatever with similar snippets and best practice recommendations ? > > >--Mark > >Alan Knight wrote: > >>This indicates that you have a duplicate for one or more methods in the database. This can occur when publishing in certain circumstances from older versions. To get rid of them >> - bring up a version list on your package >> - pop up the menu on the version in question, but do not select any items yet >> - press and hold the control key >> - select "Browse" from the menu >> - now you should have an inspector on the package version. There are other ways to get that, but this "easter egg" is one of the more convenient ones. >> - in the inspector, evaluate "self searchAndDestroyDuplicateMethods" >> - this may open up a number of method version browsers, typically each with only two versions in them, representing the duplicates. You can go through these and look to see which is the correct version to use. The remove menu item in the browser will DELETE THEM DESTRUCTIVELY FROM THE DATABASE IMMEDIATELY. >> - you may need to repeat this for multiple versions, since they may be duplicated in several >>At 03:53 PM 24/05/2006, Mark Pirogovsky wrote: >> >>>Hello All, >>>I 've got a Warning -- "Warning: Duplicate method definition " >>> >>>And package load was aborted. >>> >>> >>>Is there any way I can load the package still ? >>> >>>My VW version is 7.3.1 >>> >>>TIA >>> >>>--Mark >> >>-- >>Alan Knight [|], Cincom Smalltalk Development >>[hidden email] >>[hidden email] >>http://www.cincom.com/smalltalk >>"The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross >> -- Alan Knight [|], Cincom Smalltalk Development [hidden email] [hidden email] http://www.cincom.com/smalltalk "The Static Typing Philosophy: Make it fast. Make it right. Make it run." - Niall Ross |
Free forum by Nabble | Edit this page |