-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deviot fails to create PlatformioCLI class. #52
Comments
Can you tell me your O.S, version of Deviot you have installed (you can see it in the status bar) and board you are working on? I've tried to reproduce the issue but I didn't have the same result |
I believe that this is because I have not selected a serial port and Deviot is trying and failing to request that I select one. I'm using Deviot version v1.2.2 on Ubuntu 15.10, and the board is an Arduino UNO (the device file is /dev/ttyACM0). I looked at the declaration for PlatformioCLI and found that there was no parameter named callback: def __init__(self, feedback=True, console=True):
self.window = sublime.active_window()
self.view = self.window.active_view()
...
self.callback = None
... Also I attempted to change PlatformioCLI to: def __init__(self, feedback=True, console=True, callback=None):
self.window = sublime.active_window()
self.view = self.window.active_view()
...
self.callback = callback
... This simple uncovers another error: Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 553, in run_
return self.run()
File "/home/user/.config/sublime-text-3/Packages/Deviot/DeviotStarter.py", line 558, in run
'ports', process=False)
TypeError: openInThread() got an unexpected keyword argument 'process' |
Please let the class SerialMonitorRunCommand(sublime_plugin.WindowCommand):
def run(self):
if(not Preferences().get('id_port', False)):
PlatformioCLI(feedback=False).openInThread('ports')
return
self.on_done()
def on_done(self):
Tools.toggleSerialMonitor(self.window)
def is_checked(self):
state = False
monitor_module = Serial
serial_port = Preferences().get('id_port', '')
if serial_port in monitor_module.serials_in_use:
serial_monitor = monitor_module.serial_monitor_dict.get(
serial_port)
if serial_monitor and serial_monitor.isRunning():
state = True
return state in PlatformioCLI.py def __init__(self, feedback=True, console=True): After that, you will prompt for a serial port, you need to make sure you have a |
Fixed in the last release! 😄 |
When I attempt to open the serial monitor it fails to open with the following error:
The text was updated successfully, but these errors were encountered: