ipbus / ipbb

IPbus Builder Tool
GNU General Public License v3.0
12 stars 12 forks source link

Depfile errors: Wrap filenames onto next line #189

Closed tswilliams closed 1 year ago

tswilliams commented 1 year ago

This branch updates functions that print depfile errors, in order to make sure that long filenames are wrapped to the next line rather than the end of the path being replaced with .... For example, the following error:

Missing files:
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
    ┃ path TEST                                                            ┃ included by                                                         ┃
    ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
    │ emp-fwk/projects/examples/serenity/dc_vu9p/firmware/hdl/so2/emp_pro… │ emp-fwk/projects/examples/serenity/dc_vu9p/firmware/cfg/so2/top.dep │
    └──────────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────┘

... becomes:

Missing files:
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
    ┃ path                                                                 ┃ included by                                                         ┃
    ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
    │ emp-fwk/projects/examples/serenity/dc_vu9p/firmware/hdl/so2/emp_proj │ emp-fwk/projects/examples/serenity/dc_vu9p/firmware/cfg/so2/top.dep │
    │ ect_decll.vhd                                                        │                                                                     │
    └──────────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────┘