Skip to content

[CLI Compiler] Text in compile.log gets overwritten instead of appended if the file has multiple errors #391

@hoXyy

Description

@hoXyy

When compiling a file with multiple errors using the --compile CLI flag, the output log only has the final error message instead of all of them.

If you use a small script to watch for the file being edited and print out it's contents each time, like this small JS snippet:

import * as fs from 'fs'

fs.watch("path\to\compile.log", () => {
    console.log(fs.readFileSync("path\to\compile.log", 'utf-8'))
})

you end up with an output like this:

Image

While the compile.log file only has this:

Image

Tested with Sanny Builder v4.2.0 using this command:

.\sanny.exe --no-splash --mode gta3_sbl --compile C:\Users\hoxi\Downloads\SannyBuilder-v4.2.0\data\gta3_sbl\stripped.txt

the file being compiled was the stripped SCM provided with Sanny Builder, just with some intentional typos to get errors while compiling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions