#noSuchAttribute:

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

#noSuchAttribute:

Postby FredF » Tue Feb 05, 2008 7:20 am

Hi,
Sometimes we got the following problem:
1) A part version 1 exist in image I, J and the library, with some attributes.
2) we add an attribute to the part in image I, making version 2
3) load version 2 in image J and try to use the new attribute => error message #noSuchAttribute:
Nevertheless, the attribute is shown in the editor and just click on 'generate runtime code' on the part fixes the problem.
But then we have version 3 to reload in I to keep only last version everywhere.
Now the problem is annoying because we have this problem with parts used in almost all our images, forcing us to make lot of version number just to fix the problem.
I could not, until now, write a scenario which always reproduces the problem, we have only it with "real life" parts.
This is why I am asking the question here: does anyone else also encounter this problem? What's the best solution?
Fred, Brussels, Belgium
(We use version 6.0.3, I hope soon 7.5.2)
FredF
 
Posts: 18
Joined: Tue Feb 05, 2008 6:50 am

Re: #noSuchAttribute:

Postby Joost Bossuyt » Tue Feb 05, 2008 9:18 am

Hello Fred,
we also had problems with attributes but not the ones you have.
After changing the abtPartUpdateOperation method in AbtAppBldrNonVisual and AbtAppBldrVisual our problems were solved.
I don't know if this will solve your problem.
Here is de modified code :

Code: Select all
abtPartUpdateOperation

   | result |

   (result := AbtAppBldrPartClassUpdate forClass: self)
   partBuilderRecord codeGenerationParameters rehash.
   ^result


Greetings,
Joost
Joost Bossuyt
 
Posts: 4
Joined: Sun Oct 15, 2006 3:17 pm
Location: Leuven / Belgium

Re: #noSuchAttribute:

Postby FredF » Wed Feb 06, 2008 4:56 am

Thanks Joost.
It seems that things still happen with vast in Belgium! We will soon need a belgian user group ;-).
As soon as we have this problem again we will try your solution.
Fred
FredF
 
Posts: 18
Joined: Tue Feb 05, 2008 6:50 am

Re: #noSuchAttribute:

Postby Joost Bossuyt » Wed Feb 06, 2008 8:29 am

It seems that things still happen with vast in Belgium! We will soon need a belgian user group ;-).


Well... The Belgian Smalltalk User Group is back since past month :-)
Joost Bossuyt
 
Posts: 4
Joined: Sun Oct 15, 2006 3:17 pm
Location: Leuven / Belgium


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest