-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests fail on Squeak #12
Comments
Hi Fabio, The idea and ideal is to have STON running on all Smalltalk implementations, and maybe even on other dynamically typed languages. The question is of course who has the man power to do the ports and to maintain them. Ports to Gemstone and Amber exist and all Pharo versions are supported. So it certainly is doable and I am supportive of such ports (meaning I might make minor changes upstream to facilitate the port). That being said, I am not able to put real effort into such a port myself. It also might be necessary to do a custom version, as some Pharo specifics might get into the implementation (but not in the specification though). I just resynced the github repo with the upstream repo http://ss3.gemstone.com/ss/STON (or on StHub, http://www.smalltalkhub.com/mc/SvenVanCaekenberghe/STON/main). How do you load STON ? Where can I see your failures with backtraces ? Sven |
smalltalkCI uses STON for the configuration file. |
Sorry, I don't have backtraces at hand at the moment, since I'm currently working on something else. |
Hi Fabio, Any progress ? Sven |
Mh no, not really. Sorry about that. I will follow up as soon as I have some time to work on this. |
OK, no problem. |
@svenvc, do you intend to maintain the code on ss3.gemstone.com and here on GitHub? |
Yes, for me the ss3.gemstone.com repo comes first. STON-Text Support is there to help the Pharo modularization efforts, First we have to find out why there is a problem on Squeak, then we'll see how we can fix it. In any case, thanks for doing this. |
Here are some of the issues I already identified:
And there's probably more... At least, it looks like the |
I tried myself in Squeak 4.5 These are the warnings before loading:
Especially the Traits are important (there is also TApplyingOnClassSide). This how this kind of code need to be written in Pharo. There are only a couple of methods in there, they must be added to the correct classes. When loading, this is the Transcript output:
These Zn classes are Pharo specific. The first one needs resolution, the others are not really needed I guess. I added the following methods (quick&dirty):
The #isHealthy is bogus of course. The FileReference/FileLocator related code and tests should be skipped. With these I get only 11 errors, #testClasses then fails 5 times. Summary:
That's it for now |
A quick note: the current implementation no longer uses Traits which should make porting easier. |
The following tests fail on Squeak-trunk:
STONTests>>testRoomExitCycles
(fails)STONWriterTests>>testDictionaryWithComplexKeys
(fails)STON.Tests.STONReaderTests>>testUnknow
(errors)It'd be nice if STON was fully Squeak-compatible, because we are using STON in smalltalkCI.
The text was updated successfully, but these errors were encountered: