yeah, that bug is around since some time (it was not my fault, he)... but I *thought* I fixed it... ok, I will re-check. Maybe code was rollbacked for some weird reason. Esteban On Jul 4, 2012, at 9:51 AM, Fernando Olivero wrote:
I wanted to provide the following fix to the previous problem: to check wether a file exists before deleting it.
FileSystem>>delete: aResolvable aResolvable asFileReference exists ifTrue:[ store delete: (self resolve: aResolvable) ]
But i found that the following is working incorrectly:
(FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') asFileReference exists = true
Esteban, maybe this is the cause of problems? Was it like this before?
Fernando
On Wed, Jul 4, 2012 at 9:42 AM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Hi Sven, yes is working.
I found the error. Try evaluating the code WHEN the file is un-existing.
2 timesRepeat:[ (FileSystem disk workingDirectory / 'unexistingFileForTesting.txt') delete ].
I will try to fix it,
The initial problem was that monticello is trying to delete an un-existing mcz file in the package-cache. Strange that nobody else had this problem before.
Fernando
On Wed, Jul 4, 2012 at 9:32 AM, fernando.olivero@usi.ch <fernando.olivero@usi.ch> wrote:
Yes, i'm using the latest VM's from Jenkins.
I've tried with both Cog and NB vm's.
It appears to be related to the (internal) FilePlugin, did esteban make changes to it?
Surely this happened to somebody else? When trying to load/merge/commit ?
Fernando
On Wed, Jul 4, 2012 at 9:28 AM, Marcus Denker <marcus.denker@inria.fr> wrote:
Are you using a current VM from Jenkins?
I think FileSystem needs some fixes in the Vm File plugin...
On Jul 4, 2012, at 9:23 AM, Fernando Olivero wrote:
Hi, i found an error in the latest Pharo2.0 build, at least in OSX , that prevents from using Gofer and monticello.
Its related to the FileSystem primitives, when trying to delete a file.
To reproduce evaluate the following code ( change 'PharoDebug.log' for any existing file in the same directory as the image).
| path | path := FileSystem disk workingDirectory. p := FilePluginPrims new . p deleteDirectory: (path / 'PharoDebug.log') fullName.
Any idea why?
Thanks, Fernando
-- Marcus Denker -- http://marcusdenker.de