Skip to content

FileTree loading fails if README.md is missing #217

@peteruhnak

Description

@peteruhnak

https://github.com/dalehenrich/filetree/blob/pharo6.0_dev/repository/MonticelloFileTree-Core.package/MCFileTreeStCypressReader.class/instance/addClassAndMethodDefinitionsFromEntry..st#L8

When README.md is missing in the folder, then classComment will stay uninitialized and then will fail when specifying comment

self addClassDefinitionFrom: classPropertiesDict comment: classComment withSqueakLineEndings.

maybe a fix would be to just add to the beginning of the method classComment := '', or changing the retrieval to soemthing like

classComment := entries
	detect: [ :entry | entry name = 'README.md' ]
	ifFound: [ :commentEntry | commentEntry contents ]
	ifNone: [ '' ].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions