On Tue, Jun 12, 2012 at 7:55 PM, Mariano Martinez Peck <[hidden email]> wrote: Hi sean. It's time you update your image ;) So I have found the problem. In the broken imagen: FileHandle >> open self flag: 'TODO: for now we solely rely on the old FileStreams' "id := self basicOpen. id ifNil: [ reference exists ifFalse: [FileDoesNotExist signalWith: reference]. self error: 'Unable to open file ' , reference printString]" so of course the id remains in nil when it shouldn't. And the image where it works the code is not commened. If I uncomment the code of course it works. So what was the idea beheind this change? camillo? cheers -- Mariano http://marianopeck.wordpress.com |
Camillo
> So what was the idea beheind this change? > camillo? > Yes We should stabilize his cool effort to use FS and there were some bug in the FIlePlugin just to make things more complex |
In reply to this post by Mariano Martinez Peck
> In the broken imagen: > > FileHandle >> open > self flag: 'TODO: for now we solely rely on the old FileStreams' > "id := self basicOpen. > id ifNil: [ > reference exists ifFalse: [FileDoesNotExist signalWith: reference]. > self error: 'Unable to open file ' , reference printString]" > > so of course the id remains in nil when it shouldn't. And the image where it works the code is not commened. If I uncomment the code of course it works. > So what was the idea beheind this change? > camillo? because you'll open the file twice! once in the FileHandle (which is never going to be used) and then again in the FileStream! of course the way to go would be to fully rely on FileHandles, but then somebody (hint hint) has to implement a full FileStream protocol on top of the FileHandles ;) In the future we will do this since it nicely separates the stream source (based on bytes) from the actually streamed data (mostly characters). but for now this is additional work :/ AFAIK I had all the tests running in my image, so what's the problem again here? (I missed the whole discussion earlier :P) cami |
On Tue, Jun 12, 2012 at 10:49 PM, Camillo Bruni <[hidden email]> wrote:
Update to the last image 20129 there are 4 failing tests and I come to this conclusion. -- Mariano http://marianopeck.wordpress.com |
> Update to the last image 20129 there are 4 failing tests and I come to this conclusion. ok but these are whitebox tests which have to be adapted... (apparently my changes got lost there) FileSystem-Tests-Core-CamilloBruni.9 in PharoInbox fixes this :) (by changing the tests) |
On Tue, Jun 12, 2012 at 11:55 PM, Camillo Bruni <[hidden email]> wrote:
-- Mariano http://marianopeck.wordpress.com |
Free forum by Nabble | Edit this page |