Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEBUG:] Error loading output file, err: InvalidJSONInput: parse error: premature EOF #36

Open
cizra opened this issue Jun 7, 2024 · 0 comments

Comments

@cizra
Copy link

cizra commented Jun 7, 2024

When rebuilding a project that's open in Mudlet, Mudlet shows this error message:

[DEBUG:] Error loading output file, err: InvalidJSONInput: parse error: premature EOF
                                       
                     (right here) ------^
 at lua_yajl.c line 318
[DEBUG:] preremove cofudlet
[DEBUG:] postremove cofudlet
[DEBUG:] preinstall cofudlet
[DEBUG:] postinstall cofudlet
[DEBUG:] Done reloading pkg cofudlet

I suspect this is probably caused by muddler writing directly into .output. This truncates the file, which Mudlets reacts on, before adding the new content.

To make this process atomic, create a new temporary file somewhere in the same directory (or at least filesystem), then rename the temp file into .output, overwriting the original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant