Does PyCharm Micropython Plugin still work?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Dezert
Posts: 8
Joined: Sun Dec 30, 2018 1:40 pm

Does PyCharm Micropython Plugin still work?

Post by Dezert » Thu Jan 03, 2019 6:33 pm

Is anyone else having issues with this plugin? I went through the guide on github and my plugin doesn't seem to function correctly. Firstly I can't flash files on to my pyboard(version - pyblitev10-20180511-v1.9.4.dfu) as its showing 'Error: Module for path is not found'

Image

This also shows that my syntax like the import pyb is not being recognised. However I have went into the editor inspections to double check that Micropython is ticked.

Only thing that seems to run fine is the REPL terminal.

I am running PyCharm 2018.3.2 (Community Edition) Build #PC-183.4886.43, built on December 18, 2018 JRE: 1.8.0_152-release-1343-b26 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.2

kevinkk525
Posts: 526
Joined: Sat Feb 03, 2018 7:02 pm

Re: Does PyCharm Micropython Plugin still work?

Post by kevinkk525 » Thu Jan 03, 2019 6:40 pm

It does still work, you might just need to set the device and path correctly (obviously adapt to pyboard):
pycharm.JPG
pycharm.JPG (54.16 KiB) Viewed 2215 times
Kevin Köck
Micropython Smarthome Firmware: https://github.com/kevinkk525/pysmartnode

Dezert
Posts: 8
Joined: Sun Dec 30, 2018 1:40 pm

Re: Does PyCharm Micropython Plugin still work?

Post by Dezert » Thu Jan 03, 2019 6:47 pm

kevinkk525 wrote:
Thu Jan 03, 2019 6:40 pm
It does still work, you might just need to set the device and path correctly (obviously adapt to pyboard):
EDIT: It was my silly mistake :lol: I put in the export path instead of the file path hence it didn't upload. Thats sorted but still trying to figure out why the syntax is not being recognised

kevinkk525
Posts: 526
Joined: Sat Feb 03, 2018 7:02 pm

Re: Does PyCharm Micropython Plugin still work?

Post by kevinkk525 » Thu Jan 03, 2019 7:26 pm

Syntax is because of missing pyb module. Should be fixed if you set your device to pyboard (see my image).
Kevin Köck
Micropython Smarthome Firmware: https://github.com/kevinkk525/pysmartnode

Dezert
Posts: 8
Joined: Sun Dec 30, 2018 1:40 pm

Re: Does PyCharm Micropython Plugin still work?

Post by Dezert » Thu Jan 03, 2019 7:32 pm

kevinkk525 wrote:
Thu Jan 03, 2019 7:26 pm
Syntax is because of missing pyb module. Should be fixed if you set your device to pyboard (see my image).
You mean like this?

Image

I typed in a bunch of micropython libraries and doesn't seem to pick up anything :/

kevinkk525
Posts: 526
Joined: Sat Feb 03, 2018 7:02 pm

Re: Does PyCharm Micropython Plugin still work?

Post by kevinkk525 » Thu Jan 03, 2019 7:42 pm

Yes like that. Should typically work but I don't have a pyboard to test. With my esp8266 it works and adds an external library:
Unbenannt.JPG
Unbenannt.JPG (14.72 KiB) Viewed 2205 times

Maybe try to disable the micropython support for the project so that these get remove and activate it again or restart pycharm.

By the way: You can upload files here too, no need to do that externally.
Kevin Köck
Micropython Smarthome Firmware: https://github.com/kevinkk525/pysmartnode

Dezert
Posts: 8
Joined: Sun Dec 30, 2018 1:40 pm

Re: Does PyCharm Micropython Plugin still work?

Post by Dezert » Thu Jan 03, 2019 9:06 pm

Tried that and no joy. I even uninstalled python and pycharm, then did a clean reinstall. I do have those libraries also which is annoying. I could get away without the syntax but its just a quality of life thing.

kevinkk525
Posts: 526
Joined: Sat Feb 03, 2018 7:02 pm

Re: Does PyCharm Micropython Plugin still work?

Post by kevinkk525 » Thu Jan 03, 2019 9:33 pm

Then I'm out of ideas. Maybe someone with a pyboard can help.
Kevin Köck
Micropython Smarthome Firmware: https://github.com/kevinkk525/pysmartnode

hlovatt
Posts: 14
Joined: Thu Aug 15, 2019 3:52 am

Re: Does PyCharm Micropython Plugin still work?

Post by hlovatt » Fri Aug 16, 2019 8:24 am

I have the same issue `pyb` isn't showing up under External Libraries/MicroPython, but `micropython` and `stdlib` are.

hlovatt
Posts: 14
Joined: Thu Aug 15, 2019 3:52 am

Re: Does PyCharm Micropython Plugin still work?

Post by hlovatt » Fri Aug 16, 2019 8:25 am

I have the same issue with a PyBoard :(

Post Reply