Skip to content

Showing an error without the full path can be confusing #1304

@Ariakenom

Description

@Ariakenom

I noticed this when I added quotes around my partition path in platformio.ini. I never noticed there was a quote in my file until after I found the issue, i just read right past it because paths often end in quotes. But the real issue is of course if the user has the wrong directory but right filename.

"Missing partition table file `%s`\n" % os.path.basename(pt_path)

Also this seems to choose built in files over an explicit custom one (if they happen to have the same name).

env.Replace(
PARTITIONS_TABLE_CSV=os.path.abspath(
os.path.join(fwpartitions_dir, partitions_csv)
if os.path.isfile(os.path.join(fwpartitions_dir, partitions_csv))
else partitions_csv
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions