Consensys/vscode-solidity-metrics

Report is blank

maurelian opened this issue · 6 comments

Often when I generate a report, the output is blank.

image

It seems to have to do with the size of the project, but I can't reliably reproduce it yet. But I'll open this for future reporting.

the issue here is that vscode sometimes fails to load external resources (js, css) for the report. the only thing to prevent this is by packing everything into one HTML file. I believe, this should only happen rarely especially after the rewrite. if this happens again, let me know and I'll pack everything into one big HTML file.

please reopen if it still happens.

reopened: vscode issue -> microsoft/vscode#89038

workaround: close the blank window and generate metrics again.

should be fixed with the latest vscode update.

It still happens to me (Linux, VSCode v1.49.1 and Solidity Metrics v0.0.11). Closing and opening didn’t help, the workaround I used was to right-click on blank metrics tab, then “Export current metrics report” and then open the generated html file with a browser.

thanks for the report @bingen! This is actually a different issue that we'll track here: #6.

I've just published v0.0.12 addressing this issue.

cheers 🙌