Page 1 of 2

Does PyCharm Micropython Plugin still work?

Posted: Thu Jan 03, 2019 6:33 pm
by Dezert
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

Re: Does PyCharm Micropython Plugin still work?

Posted: Thu Jan 03, 2019 6:40 pm
by kevinkk525
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 11893 times

Re: Does PyCharm Micropython Plugin still work?

Posted: Thu Jan 03, 2019 6:47 pm
by Dezert
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

Re: Does PyCharm Micropython Plugin still work?

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

Re: Does PyCharm Micropython Plugin still work?

Posted: Thu Jan 03, 2019 7:32 pm
by Dezert
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 :/

Re: Does PyCharm Micropython Plugin still work?

Posted: Thu Jan 03, 2019 7:42 pm
by kevinkk525
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 11883 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.

Re: Does PyCharm Micropython Plugin still work?

Posted: Thu Jan 03, 2019 9:06 pm
by Dezert
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.

Re: Does PyCharm Micropython Plugin still work?

Posted: Thu Jan 03, 2019 9:33 pm
by kevinkk525
Then I'm out of ideas. Maybe someone with a pyboard can help.

Re: Does PyCharm Micropython Plugin still work?

Posted: Fri Aug 16, 2019 8:24 am
by hlovatt
I have the same issue `pyb` isn't showing up under External Libraries/MicroPython, but `micropython` and `stdlib` are.

Re: Does PyCharm Micropython Plugin still work?

Posted: Fri Aug 16, 2019 8:25 am
by hlovatt
I have the same issue with a PyBoard :(