Robot-Will / Stino

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

stino crash #311

Closed az-z closed 8 years ago

az-z commented 8 years ago

hello, i installed the STINO on another Fedora 22 today. And after i pointed the plugin to 1.6.5 installation. After Sublime restart - plugin's menu entries are disabled. Please note i do not have arduino board attached to the PC:

startup, version: 3083 linux x64 channel: stable
executable: /home/AZ/APPS/sublime_text_3/sublime_text
working dir: /
packages path: /home/AZ/.config/sublime-text-3/Packages
state path: /home/AZ/.config/sublime-text-3/Local
zip path: /home/AZ/APPS/sublime_text_3/Packages
zip path: /home/AZ/.config/sublime-text-3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.225428
startup time: 0.391145
first paint time: 0.413452
<skip>
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-ssl-linux
Package Control: Linux SSL: _ssl module import error - libssl.so.1.0.0: cannot open shared object file: No such file or directory
Package Control: Linux SSL: successfully loaded _ssl module for libssl.so.10
reloading plugin 0_package_control_loader.02-bz2
reloading plugin Colorsublime.colorsublime-plugin
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin Arduino-like IDE.StinoStarter
Traceback (most recent call last):
  File "/home/AZ/APPS/sublime_text_3/sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/StinoStarter.py", line 12, in <module>
    from . import app
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/app/__init__.py", line 21, in <module>
    arduino_info = base.ArduinoInfo()
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 17, in __init__
    self.refresh()
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 24, in refresh
    self.genKeywordList()
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 53, in genKeywordList
    self.keyword_list += getKeywordListFromPlatform(platform)
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 878, in getKeywordListFromPlatform
    keyword_list += getKeywordListFromCoreFolderList(core_folder_list)
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 860, in getKeywordListFromCoreFolderList
    cur_keyword_list = getKeywordListFromFile(keywords_file)
  File "/home/AZ/.config/sublime-text-3/Packages/Arduino-like IDE/app/base.py", line 849, in getKeywordListFromFile
    cur_keyword.setType(keyword_type)
UnboundLocalError: local variable 'keyword_type' referenced before assignment
reloading plugin GoSublime.GoSublime
reloading plugin GoSublime.gs9o
reloading plugin GoSublime.gscommands
reloading plugin GoSublime.gscomplete
....
az-z commented 8 years ago

the workaround (if you will) is to remove the "Arduino-like IDE" plugin. Restart Sublime install stino by following instructions on the (stino's) homepage. do NOT "install arduino-like" plugin