problem copying a folder?
I do not get it when I install pillar
pillar archetype microdown-nometa-presentation
barks telling me that FileDoesNotExistException: '/Users/ducasse/tests/pillar/build/archetypes/microdown-nometa-presentation/support'
Now if I do the following
cp -r /Users/ducasse/tests/pillar/build/archetypes/microdown-nometa-presentation/support
/Users/ducasse/tests/pillar/build/archetypes/microdown-nometa-presentation/_support
I can then build the presentation without any problem.
pillar build pdf index.md
Just works.
So I will check this later because I cannot burn good energy on this.
I do not get it because the code did not change
installTemplateIn: baseDirectory
| destination |
destination := baseDirectory / '_support'.
destination ensureDeleteAll.
"Because we move the support folder into a folder called _support"
(self directory / 'support')
copyAllTo: destination
putting halt in File class>>exists: is a bad idea
File class(Object)>>halt
File class>>exists:
MacStore(DiskStore)>>exists:
FileSystem>>exists:
FileReference>>exists
[ :each | | path |
path := each / eachName.
path exists
ifTrue: [ ^ path fullName ] ] in [ :eachName |
self paths do: [ :each | | path |
path := each / eachName.
path exists
ifTrue: [ ^ path fullName ] ] ] in FFIMacLibraryFinder(FFILibraryFinder)>>findAnyLibrary: in Block: [ :each | | path |...
Array(SequenceableCollection)>>do:
[ :eachName |
self paths do: [ :each | | path |
path := each / eachName.
path exists
ifTrue: [ ^ path fullName ] ] ] in FFIMacLibraryFinder(FFILibraryFinder)>>findAnyLibrary: in Block: [ :eachName |...
Array(SequenceableCollection)>>do:
FFIMacLibraryFinder(FFILibraryFinder)>>findAnyLibrary:
FFIMacLibraryFinder class(FFILibraryFinder class)>>findAnyLibrary:
SDL2 class>>macLibraryName
MacOSXPlatform(MacOSPlatform)>>ffiLibraryName:
SDL2 class>>findSDL2
SDL2 class>>moduleName
SDL2 class>>ffiLibraryName
SDL2 class(Object)>>ffiLibrary
SDL2 class(Object)>>ffiCall:
SDL2 class>>setHint:value:
SDL2 class>>initLibrary
SDL2 class>>initEverything
OSSDL2Driver>>initialize
OSSDL2Driver class(Behavior)>>new
OSWindowDriver class>>current
OSWorldRenderer>>pickMostSuitableWindowDriver
OSWorldRenderer>>doActivate
OSWorldRenderer(AbstractWorldRenderer)>>activate
WorldState>>worldRenderer:
MorphicUIManager>>activate
UIManager class>>default:
Recloning the repo made it works. Totally confusing.
I’m experiencing really flaky behavior with files and in particular after a PR that adds a folder (as in the case of new archetypes in Pillar). Pharo tells me that the file does not exist but it does.
Yesterday reinstalling the clone solved the problem but this is really strange. I start to see a reproducible case.
- install pillar two times
- in the second install copy an archetype
- add commit push
- in the first version install pull
then build a pillar doc
pillar archetype copiedArchetype -> file not found while the files are in the repo.
I got what was the problem: the build copy the archetype folder and the archetype folder is then not updated