https://promptfoo.dev/ logo
Issues with CLI-Table3
# ❓|questions
l
Yesterday I started getting issues with running PromptFoo. I've tried reinstalling PromptFoo, swapping Node versions, using NPX, etc. but to no success. I also couldn't find anything on the GitHub Issues so I decided to put it here, maybe someone knows a way to fix it 🙂 Many thanks in advance!
Copy code
sh
Eval: [████████████████████████████████████████] 100% | ETA: 0s | 64/64 | openc
/Users/XXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/utils.js:282
      lines.push(line.slice(0, maxLength));
            ^

RangeError: Invalid array length
    at Array.push (<anonymous>)
    at pushLine (/Users/XXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/utils.js:282:13)
    at textWrap (/Users/XXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/utils.js:288:5)
    at Object.multiLineWordWrap [as wordWrap] (/XXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/utils.js:299:31)
    at Cell.computeLines (/Users/XXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/cell.js:89:35)
    at Cell.mergeTableOptions (/Users/lXXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/cell.js:69:23)
    at Table.<anonymous> (/Users/XXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/table.js:54:14)
    at Array.forEach (<anonymous>)
    at Table.<anonymous> (/Users/XXX/XXX/XXX/XXX/prompts/node_modules/cli-table3/src/table.js:53:11)
    at Array.forEach (<anonymous>)
i
strange do you have an example config that reproduces this issue?
l
Yes, can I share it in your DMs? @ian
(sorry lurker, wrong tag)
Out of nowhere, on 0.37.1. it seems to work again, very strange
i
hmm strange
let me know if it pops up again!
l
Will do Ian, thanks for your swift response. Outside of that, PromptFoo rocks. Love it! Very simple and intuitive!