-
Notifications
You must be signed in to change notification settings - Fork 26
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
TonelReader should offer a super simple API to load one single file!!!! #41
Comments
I should be super stupid.... I cannot make this reader working. TonelReader loadFileName: 'Comix/SeriePrinter.class.st' I have a folder with my files and none of the expressions below work. TonelReader TonelReader |
This also raises uncomprehensible errors: (TonelReader Telling that the directory does not exist! Of course this is a file that I pass. At the end I will have lost 3 hours and feel like shit and forced to do everything by hand. |
This is because you are trying to use it in a different way as it was meant for. In your case, if you do: (TonelReader
on: '.' asFileReference
fileName: 'Comix')
loadDefinitions it will work as expected (loading the definitions of the full "Comix" package). This does not means we should not expand the API to allow simple file-in/file-out of classes (and even methods), but well... we need to implement it, since the original purpose of Tonel was not exactly that. |
Ok I understand now. Tonel is realllllly important. I was waiting for it since 2002. |
Esteban if fileName: was packageName: then it would be a lot clearer. (TonelReader |
yes, we should add that api (but not rename the other, since is needed for compatibility with monticello) |
Ok even better. This MC API sucks :) |
The current on:fileName: API is bad. We should be able to do
(TonelReader new filenamed: 'ffo.st') loadDefinitions.
The text was updated successfully, but these errors were encountered: