Bug report #11990

Error when using ##output file in Processing scripts

Added by Fernando Rios almost 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:Low
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:2.6.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20196

Description

Any script declaring an output using ##output_file fails with an 'Invalid Script' error when you try to add it to the Processing tool box.

The error is on line 215 of ScriptAlgorithm.py. The line reads
if len(subtokens > 2):
It should read
if len(subtokens) > 2:

Associated revisions

Revision c54cd92f
Added by Victor Olaya almost 7 years ago

[processing] fixed handling of file outputs in scripts

Fixes #11990

History

#1 Updated by Victor Olaya almost 7 years ago

  • Status changed from Open to Closed

#2 Updated by Giovanni Manghi over 6 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF