I just run "weidu --nogame --no-exit-pause --skip-at-view --noautoupdate --uninstall --language 0 --log ${dev_null}", detect "PARSE ERROR" and then push the entire output text
https://ibb.co/bHrv8yt. There can't be more than one parse error reported anyway, right?
I'm not sure how exactly it could/should be structured, either. The only clue I ever got from parse errors is "look hard at this line and around it".
Warnings are not reported currently. The feature requires specific position (line/column boundaries), and I think weidu doesn't print those for warnings?
The implementation could probably be improved, and structured output would likely help with that (if enabled for .tp2, too), but I'd like to gather some feedback/suggestions first, and so far I hasn't got that.
So either way would do, but if structuring is a hassle, no reason to bother with it for now.