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

CodeWidget : Fix errors handling multi-line highlights #5845

Merged
merged 1 commit into from
May 7, 2024

Conversation

johnhaddon
Copy link
Member

The was broken by 77a679a, causing the following error :

Traceback (most recent call last):
  File "/home/john/dev/build/gaffer-1.4/python/GafferUI/CodeWidget.py", line 481, in highlightBlock
    self.setCurrentBlockState( int( h.type ) )
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Type'
Traceback (most recent call last):
  File "/home/john/dev/build/gaffer-1.4/python/GafferUI/CodeWidget.py", line 481, in highlightBlock
    self.setCurrentBlockState( int( h.type ) )
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Type'

The was broken by 77a679a, causing the following error :

```
Traceback (most recent call last):
  File "/home/john/dev/build/gaffer-1.4/python/GafferUI/CodeWidget.py", line 481, in highlightBlock
    self.setCurrentBlockState( int( h.type ) )
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Type'
Traceback (most recent call last):
  File "/home/john/dev/build/gaffer-1.4/python/GafferUI/CodeWidget.py", line 481, in highlightBlock
    self.setCurrentBlockState( int( h.type ) )
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Type'
```
@johnhaddon johnhaddon self-assigned this May 7, 2024
@murraystevenson murraystevenson merged commit 14ebbb7 into GafferHQ:1.4_maintenance May 7, 2024
5 checks passed
@johnhaddon johnhaddon deleted the codeWidgetFix branch August 7, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants