Comments (4)
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
from deviot.
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'
from deviot.
Please let the SerialMonitorRunCommand
class like this:
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 ino
or cpp
file open, (I'll fix this in the next release.)
If you keep seeing an error, select the port manually from Deviot Menu > Serial Port(s)
from deviot.
Fixed in the last release! 😄
from deviot.
Related Issues (20)
- Support for python3 HOT 6
- Poorly colored .ino source
- bad cpu type in executable
- As platformio now requires python 3.x while Deviot requires 2.x, is Deviot no more ? Any work-around ? HOT 3
- Most buttons do nothing HOT 1
- Japanese Language missing
- the board list won't open HOT 4
- Python 3, pio cannot upgrade? HOT 1
- Sublimetext 4 no deviot HOT 4
- ST4 install library fail HOT 5
- Guide: Running Deviot with ST3 / ST4, PlatformIO 5, and Python 3.6+ HOT 10
- OSX: Serial ports not showing on big Sur HOT 2
- ST4: serial monitor footer colors
- not reconigced
- MacOS examples shows nothing
- can't see devio menu HOT 4
- Guide: Fix Deviot menu & syntax highlighting missing HOT 1
- python HOT 1
- Select board HOT 5
- Select Board Not Working After Installing Deviot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deviot.