TypeError: object of type 'int' has no len() on vit start if user has redefined uda.priority · Issue #268 · vit-project/vit · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I have some tasks to which I have added an integer as a value for Priority (I am not sure if the problem exists if no tasks have any priority).
When you run vit, it gives the following error:
Traceback (most recent call last):
File "/usr/bin/vit", line 33, in <module>
sys.exit(load_entry_point('vit==2.0.0', 'console_scripts', 'vit')())
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/command_line.py", line 5, in main
Application(options, filters)
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/application.py", line 74, in __init__
self.refresh(False)
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/application.py", line 896, in refresh
self.build_main_widget()
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/application.py", line 944, in build_main_widget
self.update_report(self.report)
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/application.py", line 919, in update_report
self.update_task_table()
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/application.py", line 555, in update_task_table
self.table.update_data(self.reports[self.report], self.model.tasks)
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/task_list.py", line 93, in update_data
self.build_rows()
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/task_list.py", line 237, in build_rows
formatted_value = column['formatter'].format(task[column['name']], task)
File "/usr/lib/python3.8/site-packages/vit-2.0.0-py3.8.egg/vit/formatter/uda_string.py", line 7, in format
return (len(string), self.markup_element(string))
TypeError: object of type 'int' has no len()
The fault is pretty much the line that defines priority's type as numeric. If you comment it out or you rename the field, the problem is fixed.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I have redefined the Priority UDA in my config.
More precisely, I have the following two lines in my config:
and I have some tasks to which I have added an integer as a value for Priority (I am not sure if the problem exists if no tasks have any priority).
When you run vit, it gives the following error:
The fault is pretty much the line that defines priority's type as numeric. If you comment it out or you rename the field, the problem is fixed.
The text was updated successfully, but these errors were encountered: