JetBrains / intellij-micropython

Plugin for MicroPython devices in PyCharm and IntelliJ
https://plugins.jetbrains.com/plugin/9777-micropython
Apache License 2.0
512 stars 106 forks source link

CircuitPython: Installation of micropython plugin on Intellij IDEA 2022.2.4 #215

Open PierreDeQuebec opened 1 year ago

PierreDeQuebec commented 1 year ago

Hi After a few weeks of inactivity on my CircuitPython project and a few IDE updates, my Micropython plugin no longer works! I reinstalled the plugin following the instructions on the https://github.com/JetBrains/intellij-micropython page as best I could. But everything gets very complicated at the line:

IntelliJ: Add the MicroPython facet to a Python module in your project structure and specify the path to your MicroPython device.

The path to the serial port of my ESP8266 device (an Adafruit Metro M4 AirLift Lite microcontroller) is /dev/ttyACM0 (I'm on Linux).

My problem is that the microcontroller is not detected while all configuration parameters seem correct. I need a little help!

I have attached some screenshots of my setup.

Thanks.

Pierre Lepage No_ESP8266 Plugin Project_Settings_1_Project Project_Settings_2_module Project_Settings_3_Librairies Project_Settings_4_Facets SDKs_adafruit_ampy

PierreDeQuebec commented 1 year ago

OK. Something new and probably a required improvement in the script for serial port detection. In the "Project Settings/Module" window of "File/Project Structure...", if I manually enter the path to the serial port (/dev/ttyACM0 in my case) and press "Dectect", I get the message "No ESP8266 Devices Detected" even though the serial port is open on my ESP8266 device. And "poof", the "Device path" field disappears.

If I repeat the same manipulation but instead of pressing "Detect", I close the window (the one on Project Settings), and then go to open the REPL window ("/Tools/MicroPython/MicroPython REPL"), BINGO, the REPL window opens on my device. So the behavior of the "Detect" button misleads me. There is an improvement here.

Anyway, my problem is solved (for now).

Elizaveta239 commented 1 year ago

Thank you for the workaround! I'll look into the issue!