microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

AttributeError: 'NoneType' object has no attribute 'get_mapping' #668

Open evandrocoan opened 6 years ago

evandrocoan commented 6 years ago

I just saw these things on my console, not sure why they are coming up:

Traceback (most recent call last):
  File "F:\SublimeText\sublime_plugin.py", line 1072, in run_
    return self.run(edit)
  File "F:\SublimeText\Data\Packages\TypeScript\typescript\commands\references.py", line 35, in run
    mapping = ref_info.get_mapping(str(cursor[0]))
AttributeError: 'NoneType' object has no attribute 'get_mapping'
Traceback (most recent call last):
  File "F:\SublimeText\sublime_plugin.py", line 1072, in run_
    return self.run(edit)
  File "F:\SublimeText\Data\Packages\TypeScript\typescript\commands\references.py", line 35, in run
    mapping = ref_info.get_mapping(str(cursor[0]))
AttributeError: 'NoneType' object has no attribute 'get_mapping'