pw_Houdini_VEX_Editor
pw_Houdini_VEX_Editor copied to clipboard
Баги с некоторыми функциями
Например neighbours(и некоторые другие) выдает:
File "C:/Users/fifty/Documents/houdini15.0/scripts/python\pw_VEX_Editor\widgets\input_widget.py", line 516, in parse_help_line
hlp = completer_keywords.get_functions_help_window(func)
File "C:/Users/fifty/Documents/houdini15.0/scripts/python\pw_VEX_Editor\autocomplete\keywords.py", line 48, in get_functions_help_window
res = r'
'.join([r'%s' % functions_help[func_name].get('hlp','')]+[ x for x in functions_help[func_name]['args']])
KeyError: 'args'
Работать не особо мешает, но все же...
Да, известная проблема. Почти решена, в новом апдейте не будет её.
Я попробовал убрать эту проблему... Вроде нормально получилось, хотя на питоне никогда не писал. Для версии 1.0.7 Прикрепляю модифицированный файл keywords.py keywords.zip Его нужно извлечь из архива и поместить по этому пути: C:\Users\user_name\Documents\houdini15.5\scripts\python\pw_VEX_Editor\autocomplete\keywords.py Затем нужно удалить файлы C:\Users\user_name\Documents\houdini15.5\scripts\python\pw_VEX_Editor\autocomplete\keywords.pyc и C:\Users\user_name\Documents\houdini15.5\pw_vex_editor\autocompleter.json и при запуске Гудини создаст их заново.
Спасибо, проверим
7 октября 2016 г., 1:08 пользователь Vol46 [email protected] написал:
Я попробовал убрать эту проблему... Вроде нормально получилось, хотя на питоне никогда не писал. Для версии 1.0.7 Прикрепляю модифицированный файл keywords.py keywords.zip https://github.com/paulwinex/pw_Houdini_VEX_Editor/files/514780/keywords.zip Его нужно извлечь из архива и поместить по этому пути:
C:\Users\user_name\Documents\houdini15.5\scripts\python\pw_VEX_Editor\autocomplete\keywords.py Затем нужно удалить файлы
C:\Users\user_name\Documents\houdini15.5\scripts\python\pw_VEX_Editor\autocomplete\keywords.pyc и C:\Users\user_name\Documents\houdini15.5\pw_vex_editor\autocompleter.json и при запуске Гудини создаст их заново.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paulwinex/pw_Houdini_VEX_Editor/issues/1#issuecomment-252089033, or mute the thread https://github.com/notifications/unsubscribe-auth/AG--ZH4Seup66fA1ZrfaSgm60-EMPulCks5qxWMygaJpZM4IJMGH .
This keyword.py file didn't work for me so I modified it this way:
def get_functions():
global functions
if functions:
return functions
# There is a bug in the generation of the function cached file
# and this line bypass that generation. Read from the source
# all the time. Slower but works.
return sorted(words['functions_all'], key=lambda x: len(x))
'''
cache_file = vex_settings.get_autocomplete_cache_file()
if os.path.exists(cache_file):
comp = json.load(open(cache_file))
functions = sorted(comp['functions'].keys(), key=lambda x: len(x))
return functions
else:
return sorted(words['functions_all'], key=lambda x: len(x))
'''
It basicaly bypass the cache file. There is no speed impact that I can see.