VIM Omnicomplete导致youcompleteme插件出错

时间:2015-08-23 19:16:57

标签: vim omnicomplete youcompleteme

我在javascript文件中遇到vim完成问题。

句点后的任何字符'。'字符如下面一行

loader.load('path_to_model', function (geometry) {
    var material = new THREE.MeshLambertMaterial({
        //whatever material properties you want to use
    });

    // create a mesh with models geometry and material
    var mesh = new THREE.Mesh(
        geometry,
        material
    );
    scene.add(mesh);
});

产生错误:

this.*

js文件的omnicomplete函数是:

Error detected while processing function youcompleteme#Complete..<SNR>78_GetCompletions:
line    1:
TypeError: string indices must be integers, not str

我的vim构建详细信息是:

javascriptcomplete#CompleteJS

0 个答案:

没有答案