intellij-micropython icon indicating copy to clipboard operation
intellij-micropython copied to clipboard

CircuitPython: Installation of micropython plugin on Intellij IDEA 2022.2.4

Open PierreDeQuebec opened this issue 2 years ago • 2 comments

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 avatar Dec 09 '22 17:12 PierreDeQuebec

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).

PierreDeQuebec avatar Dec 09 '22 17:12 PierreDeQuebec

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

Elizaveta239 avatar Mar 17 '23 16:03 Elizaveta239