Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 249 forks source link

Cannot set Arduino folder on Linux #369

Closed BondarenkoArtur closed 7 years ago

BondarenkoArtur commented 7 years ago

When I'm trying to set folder as "/usr/share/arduino" Ctrl+` gives me

Traceback (most recent call last):
  File "/home/uabart/.config/sublime-text-3/Packages/Arduino-like IDE/StinoStarter.py", line 470, in on_done
    app.arduino_info.refresh()
  File "/home/uabart/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 24, in refresh
    self.genKeywordList()
  File "/home/uabart/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 53, in genKeywordList
    self.keyword_list += getKeywordListFromPlatform(platform)
  File "/home/uabart/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 884, in getKeywordListFromPlatform
    keyword_list += getKeywordListFromCoreFolderList(core_folder_list)
  File "/home/uabart/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 866, in getKeywordListFromCoreFolderList
    cur_keyword_list = getKeywordListFromFile(keywords_file)
  File "/home/uabart/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 855, in getKeywordListFromFile
    cur_keyword.setType(keyword_type)
UnboundLocalError: local variable 'keyword_type' referenced before assignment

I'm using latest version of Manjaro Sublime text build 3126

Robot-Will commented 7 years ago

You can follow the dev version Stino2017.

Robot-Will commented 7 years ago

New version do not need to set the Arduino IDE folder.