tvooo / sublime-grunt

Moved to https://github.com/sptndc/sublime-grunt
296 stars 35 forks source link

Unbound Local Variable #65

Closed gMagicScott closed 10 years ago

gMagicScott commented 10 years ago

I get the following dumped to Sublime's console when running the Grunt command from the command palette:

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 526, in run_
    return self.run()
  File "{{HOME DIRECTORY}}/.config/sublime-text-3/Packages/Grunt/main.py", line 132, in run
    GruntRunner(self.window)
  File "{{HOME DIRECTORY}}/.config/sublime-text-3/Packages/Grunt/main.py", line 16, in __init__
    self.list_gruntfiles()
  File "{{HOME DIRECTORY}}/.config/sublime-text-3/Packages/Grunt/main.py", line 80, in list_gruntfiles
    self.choose_file(0)
  File "{{HOME DIRECTORY}}/.config/sublime-text-3/Packages/Grunt/main.py", line 88, in choose_file
    self.tasks = self.list_tasks()
  File "/home/scott/.config/sublime-text-3/Packages/Grunt/main.py", line 21, in list_tasks
    json_result = self.fetch_json()
  File "{{HOME DIRECTORY}}/.config/sublime-text-3/Packages/Grunt/main.py", line 62, in fetch_json
    return self.run_expose()
  File "{{HOME DIRECTORY}}/.config/sublime-text-3/Packages/Grunt/main.py", line 41, in run_expose
    return self.fetch_json()
  File "{{HOME DIRECTORY}}/.config/sublime-text-3/Packages/Grunt/main.py", line 64, in fetch_json
    if data is None:
UnboundLocalError: local variable 'data' referenced before assignment
Software Version
Sublime Grunt Version 1.0.2
Sublime Text 3 Build 3061
Operating System Ubuntu 13.10
tvooo commented 10 years ago

Thanks, we'll look into it.

mcbrwr commented 10 years ago

+1

sublime: 3059 sublime grunt: 1.0.2 OS: Mac OS 10.9.3

tvooo commented 10 years ago

This should haven been resolved by #67. Coming to your editor with the next release :)