Hi All,

This is my first post! Sadly it is to report an issue with the FileBrowser
on the Mac M1.

I am encountering this exception - FileDoesNotExistException.

These are the culprits:

[image: image.png]

I have seen a similar error reported on Windows. Looks like Pharo can't
access the attributes of these files?
https://github.com/pharo-project/pharo/issues/3571

I'm exploring Pharo with a view to migrating my VisualWorks project of many
years, as support for M1 looks like it might be a way off, so not off to a
good start!

I managed to work around it, by deleting these two files (not from the
disk!) in the debugger, before it tried to fetch the attributes.
Interestingly, when in the debugger it showed N/A and 0 for the attributes,
as these are system files I'm guessing.

Thanks,

Stewart

====================================================================
Pharo 9.0.0
Build information:
Pharo-9.0.0+build.1573.sha.0e09d756fc99383cbb498565200d9e5e9841ce11 (64 Bit)

Mac Mini M1 (2020)
Monterey 12.0.1

File class>>signalError:for:
File class>>primFileAttribute:number:
File class>>fileAttribute:number:
MacStore(DiskStore)>>sizeOf:
FileSystem>>sizeOf:
FileReference>>size
FileReference(AbstractFileReference)>>humanReadableSize
FileListGridNode>>fileSize
[:node :cont | node perform: self rowMorphGetSelector] in
MorphTreeColumn>>rowMorphGetterBlock in Block: [:node :cont | node perform:
self rowMorphGetSelec...etc...
MorphTreeColumn>>rowMorphFor:
[:col | | v |
v := col rowMorphFor: complexContents.
controls add: v.
col -> v] in MorphTreeNodeMorph>>buildRowMorph in Block: [:col | | v |...
OrderedCollection>>collect:
MorphTreeNodeMorph>>buildRowMorph
MorphTreeNodeMorph>>initRow
MorphTreeNodeMorph>>initWithContents:prior:forList:indentLevel:
[:item :idx |
priorMorph := self indentingItemClass new
initWithContents: item
prior: priorMorph
forList: self
indentLevel: newIndent.
firstAddition
ifNil: [firstAddition := priorMorph].
morphList add: priorMorph.
"Was this row expanded ? if true -> expand it
again "
((item hasEquivalentIn: expandedItems)
or: [priorMorph isExpanded])
ifTrue: [priorMorph isExpanded: true.
priorMorph
addChildrenForList: self
addingTo: morphList
withExpandedItems: expandedItems]] in
MorphTreeMorph>>addMorphsTo:from:withExpandedItems:atLevel: in Block:
[:item :idx | ...
Array(SequenceableCollection)>>withIndexDo:
Array(Collection)>>doWithIndex:
MorphTreeMorph>>addMorphsTo:from:withExpandedItems:atLevel:
MorphTreeMorph>>addSubmorphsFromNodeList:previouslyExpanded:
MorphTreeMorph>>addSubmorphsFromNodeList
MorphTreeMorph>>buildContents
FileListGrid>>treeMorph
FileList>>morphicGrid
FileList>>grid
FileList>>updateFileList
FileList>>reference:
FileList>>directory:
FileList>>initialize
FileList class(Behavior)>>new

On Thu, Dec 23, 2021 at 4:23 PM Stewart MacLean <[email protected]> wrote:

> Hi All,
>
> This is my first post! Sadly it is to enquire about an issue with the
> FileBrowser on the Mac M1.
>
> I am encountering this exception - FileDoesNotExistException.
>
> I appears to be opening on just two files:
>
> [image: image.png]
>
> I have seen a similar error reported on Windows. Looks like Pharo can't
> access the attributes of these files?
> https://github.com/pharo-project/pharo/issues/3571
>
> I'm exploring Pharo with a view to migrating my VisualWorks project of
> many years, as support for M1 looks like it might be a way off, so not a
> good start!
>
> Any help appreciated.
>
> Thanks,
>
> Stewart
>
> ====================================================================
> Pharo 9.0.0
> Build information:
> Pharo-9.0.0+build.1573.sha.0e09d756fc99383cbb498565200d9e5e9841ce11 (64 Bit)
>
> Mac Mini M1 (2020)
> Monterey 12.0.1
>
> File class>>signalError:for:
> File class>>primFileAttribute:number:
> File class>>fileAttribute:number:
> MacStore(DiskStore)>>sizeOf:
> FileSystem>>sizeOf:
> FileReference>>size
> FileReference(AbstractFileReference)>>humanReadableSize
> FileListGridNode>>fileSize
> [:node :cont | node perform: self rowMorphGetSelector] in
> MorphTreeColumn>>rowMorphGetterBlock in Block: [:node :cont | node perform:
> self rowMorphGetSelec...etc...
> MorphTreeColumn>>rowMorphFor:
> [:col | | v |
> v := col rowMorphFor: complexContents.
> controls add: v.
> col -> v] in MorphTreeNodeMorph>>buildRowMorph in Block: [:col | | v |...
> OrderedCollection>>collect:
> MorphTreeNodeMorph>>buildRowMorph
> MorphTreeNodeMorph>>initRow
> MorphTreeNodeMorph>>initWithContents:prior:forList:indentLevel:
> [:item :idx |
> priorMorph := self indentingItemClass new
> initWithContents: item
> prior: priorMorph
> forList: self
> indentLevel: newIndent.
> firstAddition
> ifNil: [firstAddition := priorMorph].
> morphList add: priorMorph.
> "Was this row expanded ? if true -> expand it
> again "
> ((item hasEquivalentIn: expandedItems)
> or: [priorMorph isExpanded])
> ifTrue: [priorMorph isExpanded: true.
> priorMorph
> addChildrenForList: self
> addingTo: morphList
> withExpandedItems: expandedItems]] in
> MorphTreeMorph>>addMorphsTo:from:withExpandedItems:atLevel: in Block:
> [:item :idx | ...
> Array(SequenceableCollection)>>withIndexDo:
> Array(Collection)>>doWithIndex:
> MorphTreeMorph>>addMorphsTo:from:withExpandedItems:atLevel:
> MorphTreeMorph>>addSubmorphsFromNodeList:previouslyExpanded:
> MorphTreeMorph>>addSubmorphsFromNodeList
> MorphTreeMorph>>buildContents
> FileListGrid>>treeMorph
> FileList>>morphicGrid
> FileList>>grid
> FileList>>updateFileList
> FileList>>reference:
> FileList>>directory:
> FileList>>initialize
> FileList class(Behavior)>>new
>
>
>

Reply via email to