Re: [Pharo-project] Problem with FileSystem primitives in latest Pharo2.0
Yes, i'm using the latest. VM: https://ci.lille.inria.fr/pharo/job/Cog-VM/Architecture=32,OS=mac/58/ Sven, are you using Mac OSX ? Esteban replied that's a known bug, (unexisting file giving tue on #exists) maybe its implied that'solely for the Mac ? I will do an unit test to capture this issue. Fernando On Wed, Jul 4, 2012 at 10:44 AM, Sven Van Caekenberghe <sven@beta9.be> wrote:
On 04 Jul 2012, at 09:51, Fernando Olivero wrote:
But i found that the following is working incorrectly:
(FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') asFileReference exists = true
Hmm, that would be a serious problem, I am using that as well,
(FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') exists
gives false for me ;-)
And this works as well:
2 timesRepeat:[ (FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') delete ].
Is there a unit test covering your problem ? If not, there should be.
Sven
It *was* a known bug... I'm also not being able to reproduce it :) On Jul 4, 2012, at 10:53 AM, Fernando Olivero wrote:
Yes, i'm using the latest.
VM: https://ci.lille.inria.fr/pharo/job/Cog-VM/Architecture=32,OS=mac/58/
Sven, are you using Mac OSX ?
Esteban replied that's a known bug, (unexisting file giving tue on #exists) maybe its implied that'solely for the Mac ?
I will do an unit test to capture this issue.
Fernando
On Wed, Jul 4, 2012 at 10:44 AM, Sven Van Caekenberghe <sven@beta9.be> wrote:
On 04 Jul 2012, at 09:51, Fernando Olivero wrote:
But i found that the following is working incorrectly:
(FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') asFileReference exists = true
Hmm, that would be a serious problem, I am using that as well,
(FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') exists
gives false for me ;-)
And this works as well:
2 timesRepeat:[ (FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') delete ].
Is there a unit test covering your problem ? If not, there should be.
Sven
On 04 Jul 2012, at 10:53, Fernando Olivero wrote:
Sven, are you using Mac OSX ?
SystemVersion current Pharo2.0a of '18 April 2012' update 20179 Smalltalk vm version 'CoInterpreter VMMaker-oscog-EstebanLorenzano.160 uuid: bec8cdf0-4e06-4975-8c02-e882fadf4df3 Jun 22 2012, StackToRegisterMappingCogit VMMaker-oscog-EstebanLorenzano.160 uuid: bec8cdf0-4e06-4975-8c02-e882fadf4df3 Jun 22 2012, https://git.gitorious.org/cogvm/blessed.git Commit: 744bfe905c78a1a5d408680a8780367ea77e0549 Date: Fri Jun 1 15:17:41 2012 +0200 By: Esteban Lorenzano <estebanlm@gmail.com>' It is really strange that it does not work for youâ¦
Fernando be sure to get rid of all the old vms on OSX :P OSX is particularly good in finding an old version somewhere that does not properly work :P On 2012-07-04, at 10:54, Fernando Olivero wrote:
Yes, i'm using the latest.
VM: https://ci.lille.inria.fr/pharo/job/Cog-VM/Architecture=32,OS=mac/58/
Sven, are you using Mac OSX ?
Esteban replied that's a known bug, (unexisting file giving tue on #exists) maybe its implied that'solely for the Mac ?
I will do an unit test to capture this issue.
Fernando
participants (4)
-
Camillo Bruni -
Esteban Lorenzano -
Fernando Olivero -
Sven Van Caekenberghe