emmetio / sublime-tern

TernJS plugin for Sublime Text
222 stars 13 forks source link

TypeError: TypeError: Cannot read property 'fnType' of undefined #13

Closed n1k0 closed 11 years ago

n1k0 commented 11 years ago

Sublime Text 2 build 2220, latest TernJS package from PC:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 236, in on_query_completions
  File "./tern.py", line 430, in on_query_completions
    completions = ctx.js().locals.ternHints(view, proj.get('id', 'empty'))
TypeError: TypeError: Cannot read property 'fnType' of undefined ( lib/infer.js @ 842 : 45 )  ->       var inner = node.body.scope, fn = inner.fnType;
floatdrop commented 11 years ago

Workaround: @n1ko exclude some third-party libraries from your project. See ternjs.exclude in *.sublime-project.

sergeche commented 11 years ago

@n1k0 you should address this issue to @marijnh with example code.