paulwinex / pw_Houdini_VEX_Editor

Advanced Houdini VEX Editor
150 stars 17 forks source link

Баги с некоторыми функциями #1

Open Fiftystars opened 8 years ago

Fiftystars commented 8 years ago

Например 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'

Работать не особо мешает, но все же...

paulwinex commented 8 years ago

Да, известная проблема. Почти решена, в новом апдейте не будет её.

Vol46 commented 7 years ago

Я попробовал убрать эту проблему... Вроде нормально получилось, хотя на питоне никогда не писал. Для версии 1.0.7 Прикрепляю модифицированный файл keywords.py keywords.zip Его нужно извлечь из архива и поместить по этому пути: _C:\Users\user_name\Documents\houdini15.5\scripts\python\pw_VEXEditor\autocomplete\keywords.py Затем нужно удалить файлы _C:\Users\user_name\Documents\houdini15.5\scripts\python\pw_VEXEditor\autocomplete\keywords.pyc и _C:\Users\user_name\Documents\houdini15.5\pw_vexeditor\autocompleter.json и при запуске Гудини создаст их заново.

paulwinex commented 7 years ago

Спасибо, проверим

7 октября 2016 г., 1:08 пользователь Vol46 notifications@github.com написал:

Я попробовал убрать эту проблему... Вроде нормально получилось, хотя на питоне никогда не писал. Для версии 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_VEXEditor\autocomplete\keywords.py Затем нужно удалить файлы

_C:\Users\user_name\Documents\houdini15.5\scripts\python\pw_VEXEditor\autocomplete\keywords.pyc и _C:\Users\user_name\Documents\houdini15.5\pw_vexeditor\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 .

cspix commented 7 years ago

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.