ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

TypeError: 'NoneType' object does not support item assignment #72

Closed fhemberger closed 9 years ago

fhemberger commented 9 years ago

I found this error many times in my Sublime Text console with current HEAD:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 296, in on_selection_modified_async
    callback.on_selection_modified_async(v)
  File "/Users/frederic/Library/Application Support/Sublime Text 3/Packages/tern_for_sublime/tern.py", line 49, in on_selection_modified_async
    on_selection_modified(view)
  File "/Users/frederic/Library/Application Support/Sublime Text 3/Packages/tern_for_sublime/tern.py", line 29, in on_selection_modified
    if pfile is not None: show_argument_hints(pfile, view)
  File "/Users/frederic/Library/Application Support/Sublime Text 3/Packages/tern_for_sublime/tern.py", line 456, in show_argument_hints
    parsed['url'] = data.get('url', None)
TypeError: 'NoneType' object does not support item assignment

Seems to be related to ed37d7f.