Coder Social home page Coder Social logo

Comments (4)

gepd avatar gepd commented on May 31, 2024

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.

ethan476 avatar ethan476 commented on May 31, 2024

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.

gepd avatar gepd commented on May 31, 2024

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.

gepd avatar gepd commented on May 31, 2024

Fixed in the last release! 😄

from deviot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.