Mapping stats file exports are malformed
Closed this issue · 0 comments
PiTheGuy commented
Exporting mapping stats to a .csv file causes the file to be malformed because one of the columns contains JSON data which messes up the column splitting.
Reproduction Steps
- Open an enigma project
- Go to File -> Mapping Stats...
- Check one of the type checkboxes
- Click Generate Diagram
- Right-click on the generated chart and go to Save data as... -> .csv
- Open the .csv file
This is what the generated .csv file looks like
If you do the same thing on Fabric Enigma, it looks normal
Analysis
Quilt enigma's output contains an extra column compared to Fabric Enigma. This extra column is named namedChildren
and contains JSON data which messes up everything. Upon looking into the code, namedChildren
is a field stored in the stats tree, but this is also the case in Fabric Enigma, and Fabric Enigma doesn't include it in the output file.
private final Map<String, Node<T>> namedChildren = new HashMap<>();