Micropython plugin

I've set up a project and want to flash multiple files at once; some oled python files and my own script.  From the github doc https://github.com/JetBrains/intellij-micropython it says I should be able to flash a directory at the root of the microbit once I've marked it 'Sources root'. I did that but it still complains that

'Python files must end in .py'

This is Build #PC-222.4459.20, built on November 17, 2022, Micropython plugin 1.4.0, on Ubuntu 22.04.1 LTS

I'm sure I must be getting something simple wrong but I've simplified this down to a single file that on its own flashes fine. So what's the gotcha?

 

0
3 comments

Hello,

Could you please try to move main.py file from ./hello to the root of the project and try again?

0

If I move main.py the the root of the project it flashes fine, but not the directory marked as sources root.  So if I add a module to the hello directory I cannot use that in main.py by importing it - the mocrobit simply complains that there is no module found. 

0

I've thoroughly checked issues on Github and found a similar problem related to Microbit boards. Unfortunately, uploading multiple files to Micro:bit devices is not supported yet.

0

Please sign in to leave a comment.