Bug report #16082

R Scripts errors in the script editor

Added by matteo ghetta over 7 years ago. Updated about 7 years ago.

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

Description

When trying to write a custom R script in Processing, the following error appears when typing the first letter (no matter if it is the character # or another letter):

An error has occurred while executing Python code:

TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Traceback (most recent call last):
File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/LexerR.py", line 107, in styleText
if line.startswith('#'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

Associated revisions

Revision bb4c8c06
Added by Alexander Bruy over 7 years ago

[processing] fix R syntax highlighting (fix #16082)

History

#1 Updated by Alexander Bruy over 7 years ago

  • Status changed from Open to Closed

#2 Updated by Giovanni Manghi about 7 years ago

  • Regression? set to No

#3 Updated by Giovanni Manghi about 7 years ago

  • Easy fix? set to No

#4 Updated by Giovanni Manghi about 7 years ago

Some providers are being removed from QGIS/Processing (will be available as plugin) and so are their categories in the bug tracker. To not leave them orphaned of a category they are being reassigned to processing/core.

#5 Updated by Giovanni Manghi about 7 years ago

  • Category changed from 124 to Processing/Core

Also available in: Atom PDF