winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.9k stars 765 forks source link

UGS Platform & classic version won't correctly load a gcode file with a blank first line #1960

Closed HoverClub closed 2 years ago

HoverClub commented 2 years ago

Version

2.0.11

Hardware / Firmware

FluidNC

What happened

If the 1st line in a gcode file is empty (line break only) then it isn't fully loaded. The file displays in the editor OK but 'Loaded File:' shows 0 rows with no visualizer display and run does nothing. If I remove the blank 1st line and save the file it all works as it should. Same issue on both Classic and Platform UGS versions. Screenshot from 2022-08-11 14-50-00 messages.log

How to reproduce

Start UGS and open gcode file.

Operating System

Linux Mint 20 & 21

Anything else

Verified issue on two PCs (one with a clean Mint & UGS install).

breiler commented 2 years ago

This should have been resolved in version 2.0.12

HoverClub commented 2 years ago

This should have been resolved in version 2.0.12

Yep - I confirm it is fixed.