leuat / TRSE

Turbo Rascal Syntax Error full repo
GNU General Public License v3.0
243 stars 44 forks source link

(CTRL+T) User defined tool, PRG path issue #504

Closed r1me closed 3 years ago

r1me commented 3 years ago

In Windows, after pressing CTRL+T path to built file (replaced from @prg) gets trimmed if contains spaces. i.e. if output file is C:\SomePath\Commodore 64\project\main.prg then user defined tool is launched with just C:\SomePath\Commodore parameter instead of full path

The issue is in TRSEDocument::UserDefined() probably caused by a line QStringList params = s.split(" ");

leuat commented 3 years ago

Fixed! The user-defined command has been split into a "command" and "parameter list", where the "command" is never split. Please re-open if it doesn't work