Closed PierreDeQuebec closed 8 months ago
It is worth adding this. I forked the plugins and tried to "debug" it.
In the end, the error message is generated because the serial port is not detected in 'fun detectDevicePathSynchronously' at line 152 (val detected = findSerialPorts(deviceProvider, progress.progressIndicator).firstOrNull()).
fun detectDevicePathSynchronously(deviceProvider: MicroPythonDeviceProvider): String? {
ApplicationManager.getApplication().assertIsDispatchThread()
var detectedDevicePath: String? = null
val deviceProviderName = deviceProvider.presentableName
val progress = ProgressManager.getInstance()
progress.runProcessWithProgressSynchronously({
progress.progressIndicator.text = "Detecting connected $deviceProviderName devices..."
val detected = findSerialPorts(deviceProvider, progress.progressIndicator).firstOrNull()
ApplicationManager.getApplication().invokeLater {
if (detected == null) {
Messages.showErrorDialog(module.project,
"""Possible solutions:
|
|- Check if your device is connected to your computer
|- Specify the device path manually in the IDE settings for MicroPython""".trimMargin(),
"No $deviceProviderName Devices Detected")
}
detectedDevicePath = detected
}
The problem seems related to the list of identifiers 'vendordid: productId' in the Esp8266DeviceProvider class: MicroPythonDeviceProvider. By adding the Adafruit identifier (0x239A, 0x8038) to the usbIds list, the plugin correctly detects the microcontroller board.
What steps will reproduce the issue? Under Linux and for one or other of the versions of Intellij IDEA 2020.2.5, 2023.2.2, 2021.2.4, the Micropython plugin no longer works for an ESP8266 microcontroller, in this case a Metro M4 Airlift Lite microcircuit .
What is the expected result? In the 'Tools/Micropython' menu, clicking on 'Micropython REPL' should open a REPL window and allow interaction with the microcontroller.
What happens instead? The following message appears "No ESP8266 Devices Detected - Possible solutions: - Check if your device is connected to your computer - Specify the device path manually in the IDE settings for MicroPython" and the '/dev/ttyACM0' entry is deleted.