Skip to content

error in persisCache function when g:semanticPersistCacheLocation isn't present #82

@harisund

Description

@harisund

When starting vim without g:semanticPersistCacheLocation present (the one that defaults to $HOME . '/.semantic-highlight-cache') and then subsequently exiting vim, the persistCache function is called. This results in the following error

Error detected while processing function <SNR>39_persistCache:
Line 2:
E712: Argument of extend() must be List or Dictionary
Line 3:
E715: Dictionary required
E714: List required

It appears the problem happens here in let l:mergedCache = extend(s:readCache(), s:cache) . If you inspect the functions, if the cache location file is missing, the variables aren't set appropriately and hence the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions