How come, loading a github project writes strange code change entries for classes like ... Metacello new baseline: 'Bloc'; repository: 'github://pharo-graphics/Bloc:pharo6.1/src'; load: #core PharoScreenshot.png (288K) Download Attachment |
Without taking a closer look, those are probably auto generated methods. Max On 10 December 2017 at 12:13:08, Nicolai Hess ([hidden email]) wrote:
|
But these aren't method changes. The class definition is changed. (see screenshot)2017-12-11 13:49 GMT+01:00 Max Leske <[hidden email]>:
PharoScreenshot.png (164K) Download Attachment |
It happens not only from lgit-classes but from other FFI-Subclasses too, for example AthensCairoMatrix. 2017-12-11 21:49 GMT+01:00 Nicolai Hess <[hidden email]>:
PharoScreenshot.1.png (100K) Download Attachment |
honestly, this should not be happening.
Now, I have no idea why it is happening at all ;)
I mean, there is no automatic process that would have a UFFI name there (the only place where this can happen is on #rebuildFieldAccessors and that will use an UFFIGenerator author, not just UFFI. And also that method needs to be executed by hand… weird… can you search for UFFI in system? Esteban
|
:) This looks interesting: So, postload of bloc and some classes (MozEnum, SpartaCairoEnum) doing a rebuild with this author.2017-12-11 22:27 GMT+01:00 Esteban Lorenzano <[hidden email]>:
PharoScreenshot.3.png (102K) Download Attachment |
Should the rebuild changes be logged? Maybe we can have EpMonitor suspendDuring: [...] Martín On Mon, Dec 11, 2017 at 6:42 PM, Nicolai Hess <[hidden email]> wrote:
|
In reply to this post by Nicolai Hess-3-2
this is a problem on Bloc configuration: unlike NativeBoost, UFFI fields accessors do NOT need to be regenerated each time, so that chunk of code is incorrect.
Esteban
|
In reply to this post by tinchodias
no they not. what should be suspended is field regeneration on bloc config ;) Esteban
|
I think this was added because on windows if we did not rebuild accessors, some offsets were nil in external structures. Can that still be an issue?
Cheers, Andrei On Tue, Dec 12, 2017 at 7:39 AM, Esteban Lorenzano <[hidden email]> wrote:
|
it should not. and even if that’s the case, you do not need to regenerate accessors: executing #compileFields instead #rebuildFieldAccessors should solve any initialisation problems without actually regenerate all structures, which is what you are doing :) Esteban
|
In reply to this post by Andrei Chis
2017-12-12 8:52 GMT+01:00 Andrei Chis <[hidden email]>:
Not only Windows. Problem was in Pharo 6 where external OSWindow not worked because of nil offsets. And Bloc solved it by manual initialisation after loading code.
|
Free forum by Nabble | Edit this page |