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

PyCharm, micropython module, does not print any result (output)

Open renejeanmercier opened this issue 8 months ago • 7 comments

Hello,

I just installed and ran the following micropython program on and ESP32 :

import machine import time pin = machine.Pin(2, machine.Pin.OUT) while True: pin.value(0) print("LED ON"); time.sleep(1) pin.value(1) print("LED OFF"); time.sleep(1)

Everything upload fine. It runs fine as well (I checked the output with puTTY and Thonny).

But using PyCharm I don't get any printed out on the screen.

Is there something I do wrong or I am missing? Is it something you can please verify?

I am running debian : PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

Thank you so much.

Regards,

Rene-Jean

renejeanmercier avatar Dec 20 '23 03:12 renejeanmercier

You have to run it from the REPL console. I believe this feature is temporarily down. You can only flash scripts. See issue #270.

gabemorris12 avatar Dec 20 '23 03:12 gabemorris12

Hello Gade,

Sad news. When I click on the issue number you provided, it says that it was working with a previous version.

Where can I access this version?

Thank you.

Regard,

Rene-Jean

Le mar. 19 déc. 2023, à 22 h 37, Gabe Morris @.***> a écrit :

You have to run it from the REPL console. I believe this feature is temporarily down. You can only flash scripts. See issue #270 https://github.com/JetBrains/intellij-micropython/issues/270.

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/intellij-micropython/issues/273#issuecomment-1863797587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFVP33L3CXK442HENMGVRTYKJMOBAVCNFSM6AAAAABA4E2QOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRTG44TONJYG4 . You are receiving this because you authored the thread.Message ID: @.***>

renejeanmercier avatar Dec 20 '23 03:12 renejeanmercier

Pycharm only support ESP8266, I thing this is compatible issue! if you are using ESP8266 make sure you enable the Board support Screenshot from 2023-12-20 16-49-09 Sorry i don't have ESP8266 to recreate issue! Note: MicroPython REPL not working on New update so wait for next update or use older pycharm version 2023.2.5 it's working just fine. Note: if you want to use serial output use (minicom)

$ sudo apt install minicom

$ minicom -o -D /dev/ttyACM0

zerovijay avatar Dec 20 '23 11:12 zerovijay

This is temporary issue. maybe it's fix on next update!

zerovijay avatar Dec 20 '23 11:12 zerovijay

Hi Vijay. Where will I find the version you mentioned in your email.

Please give me the hyperlink.

Regards.

René-Jean .

Le mer. 20 déc. 2023 à 06:27, Vijay @.***> a écrit :

Pycharm only support ESP8266, I thing this is compatible issue! if you are using ESP8266 make sure you enable the Board support Screenshot.from.2023-12-20.16-49-09.png (view on web) https://github.com/JetBrains/intellij-micropython/assets/137445021/f9ff2869-0329-4638-bce2-ab5e6fdaac63 Sorry i don't have ESP8266 to recreate issue! Note: MicroPython REPL not working on New update so wait for next update or use older pycharm version 2023.2.5 it's working just fine.

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/intellij-micropython/issues/273#issuecomment-1864313562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFVP35AWUGBH63OAQPASATYKLDTLAVCNFSM6AAAAABA4E2QOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUGMYTGNJWGI . You are receiving this because you authored the thread.Message ID: @.***>

renejeanmercier avatar Dec 20 '23 13:12 renejeanmercier

Hi Vijay. Where will I find the version you mentioned in your email. Please give me the hyperlink. Regards. René-Jean . Le mer. 20 déc. 2023 à 06:27, Vijay @.> a écrit : Pycharm only support ESP8266, I thing this is compatible issue! if you are using ESP8266 make sure you enable the Board support Screenshot.from.2023-12-20.16-49-09.png (view on web) https://github.com/JetBrains/intellij-micropython/assets/137445021/f9ff2869-0329-4638-bce2-ab5e6fdaac63 Sorry i don't have ESP8266 to recreate issue! Note: MicroPython REPL not working on New update so wait for next update or use older pycharm version 2023.2.5 it's working just fine. — Reply to this email directly, view it on GitHub <#273 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFVP35AWUGBH63OAQPASATYKLDTLAVCNFSM6AAAAABA4E2QOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUGMYTGNJWGI . You are receiving this because you authored the thread.Message ID: @.>

Use this link to get pycharm all version Click here: If you face any issue use jetbrains installer More information available on jetbrains official page.

zerovijay avatar Dec 21 '23 16:12 zerovijay

Hi Vijay,

Thank you. for your reply.

Hoping that it will be fixed in a short while.

You might want to inform me when it will be fixed.

Kind regards,

Rene-Jean

Le mer. 20 déc. 2023, à 08 h 54, René-Jean Mercier < @.***> a écrit :

Hi Vijay. Where will I find the version you mentioned in your email.

Please give me the hyperlink.

Regards.

René-Jean .

Le mer. 20 déc. 2023 à 06:27, Vijay @.***> a écrit :

Pycharm only support ESP8266, I thing this is compatible issue! if you are using ESP8266 make sure you enable the Board support Screenshot.from.2023-12-20.16-49-09.png (view on web) https://github.com/JetBrains/intellij-micropython/assets/137445021/f9ff2869-0329-4638-bce2-ab5e6fdaac63 Sorry i don't have ESP8266 to recreate issue! Note: MicroPython REPL not working on New update so wait for next update or use older pycharm version 2023.2.5 it's working just fine.

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/intellij-micropython/issues/273#issuecomment-1864313562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFVP35AWUGBH63OAQPASATYKLDTLAVCNFSM6AAAAABA4E2QOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUGMYTGNJWGI . You are receiving this because you authored the thread.Message ID: @.***>

renejeanmercier avatar Dec 22 '23 16:12 renejeanmercier

Probably duplicate to #283

elmot avatar Jul 24 '24 17:07 elmot