ArcWelderPlugin icon indicating copy to clipboard operation
ArcWelderPlugin copied to clipboard

[Minor Bug] Files deleted then reuploaded process, but give erroneous error message

Open KenLucke opened this issue 3 years ago • 1 comments

If you delete a file that AW has already processed in OctoPrint, then re-upload the same file, or one with an identical file name, AW thinks that it has already processed it and gives the following error (even while actually processing the file to a successful compression):

Statistics Unavailable for Base_x4_[PLA]_[skirt]-Infill_[20-cubic]-Noz_[0.4]-LH_[0.2]-LW-[0.4]-Temps_[225.0-65.0]-100mms-Support_[normal_(45)]-Coast-[True]_aw.gcode

The selected file was welded, but contains no statistics. It may have been welded before being uploaded into OctoPrint, or the metadata was lost somehow.

To clarify, the file being re-uploaded is the original, raw, unprocessed gcode file. I'm ass/u/ming you keep a database of filenames that have been processed for comparison. It's apparently not being updated when a file is deleted from OP.

Also, to specify, this only appears to happen when using manual processing of files, I don't see it happening if auto-process is turned on.

KenLucke avatar Mar 25 '21 17:03 KenLucke

I'm ass/u/ming you keep a database of filenames that have been processed for comparison.

Actually, I do not! I do all the statistics saving via OctoPrint file metadata. I will take a look and see if maybe the metadata isn't always being deleted for whatever reason. If this is the case, it's likely an octoprint issue, unless somehow I am using it incorrectly. It's also possible there is some race condition, say if some other plugin adds metadata after I delete the file (though I wouldn't expect this to work). If I can't replicate it via a manual process, I'll shoot you a message and explain my steps.

Thanks for the report!

FormerLurker avatar Mar 25 '21 18:03 FormerLurker