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

Cmd line output does not always show correct output file name #4872

Closed
gilesp1729 opened this issue Oct 14, 2020 · 4 comments
Closed

Cmd line output does not always show correct output file name #4872

gilesp1729 opened this issue Oct 14, 2020 · 4 comments

Comments

@gilesp1729
Copy link

PrusaSlicer 2.2.0, Windows 10, command line mode.

The output file message to the console output does not have all variables substituted. (The file itself is created with the correct name.) This creates problems when parsing the output to determine the output when, for example, it has been set up in a preset.

Here is an example (any STL file will do). The print_time remains in the output file message.

D:\dev\LoftyCAD-MG>"c:\Program Files\Prusa3D\PrusaSlicer\prusa-slicer-console.exe" -g --output-filename-format {input_filename_base}{layer_height}mm{filament_type[0]}{printer_model}{print_time}.gcode 2shapes.STL
System OpenGL library released
Loading MESA OpenGL library: c:\Program Files\Prusa3D\PrusaSlicer\mesa\opengl32.dll
MESA OpenGL library was loaded sucessfully
10 => Processing triangulated mesh
20 => Generating perimeters
70 => Infilling layers
30 => Preparing infill
88 => Generating skirt
90 => Exporting G-code to 2shapes_0.3mm_PLA__{print_time}.gcode
Slicing result exported to 2shapes_0.3mm_PLA__{print_time}.gcode

Expected behaviour: last line should show the actual file name created.

@gilesp1729
Copy link
Author

Just to make clear: this output-filename-format was copied directly from system presets in PrusaResearch.ini .

@bubnikv
Copy link
Collaborator

bubnikv commented Oct 14, 2020 via email

@gilesp1729
Copy link
Author

Yes the file is created correctly with the print_time substituted. The problem is that I have a program that creates a process running cmd line PrusaSlicer, then parses its output to get the filename from the message. This doesn't match the actual filename created, which came from the output-filename-format in the preset.

I already have enough work copying out stuff from the presets (which cmd line slicer won't do for me). So I don't want to re-do the output-filename-format parsing as well...

@bubnikv
Copy link
Collaborator

bubnikv commented Oct 15, 2020

Thanks, it should be fixed with cc7eaef
The fix will be part of the upcoming PrusaSlicer 2.3.0-alpha1 release.
Closing

@bubnikv bubnikv closed this as completed Oct 15, 2020
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

2 participants