gepd / Deviot

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Apache License 2.0
306 stars 55 forks source link

OSX: Serial ports not showing on big Sur #331

Open tablatronix opened 2 years ago

tablatronix commented 2 years ago

For some reason on my new computer I cannot get serial ports to show i the drop down.. Pio sees them, perhaps deviot uses some generic python module to do this instead of using pio devices list.. maybe a perm issue?

Ota ports show fine..

tablatronix commented 2 years ago

Ok so only .cu are being seen(which seems ok) , but there is no address so they are filtered which is odd since

python -m serial.tools.list_ports -v shows

/dev/cu.SLAB_USBtoUART
    desc: CP2104 USB to UART Bridge Controller
    hwid: USB VID:PID=10C4:EA60 SER=0170E926 LOCATION=2-2.1

But serial_port_list only

/dev/cu.wlan-debug
n/a
n/a
/dev/cu.debug-console
n/a
n/a
/dev/cu.Bluetooth-Incoming-Port
n/a
n/a
/dev/cu.usbserial-0170E926
n/a
n/a
/dev/cu.SLAB_USBtoUART
n/a
n/a
tablatronix commented 2 years ago

workaround for now was to just ignore it, so i can at least use them, not sure why these are missing yet, probably module outdated

remove the n/a check for now address != 'n/a'

        for dev_name in dev_names:
            if(address != 'n/a' and dev_name in port_no or platform() == 'windows'):
            if(dev_name in port_no or platform() == 'windows'):
                serial_ports.append([description, port_no])