Hello all,
I would like to ask if there is some posibility to add directly "Micropython" language into VS Code with linghter? Currently I use Python with Pylint, but it would be nice to have directly Micropython insiide.
Thank you
Jan
Micropython Language for VS Code
Re: Micropython Language for VS Code
It depends on what you want to achieve.
Just syntax or do you want to have a way to run the code directly on a connected uC?
You might want to look into platformio, which works together with VS code and afaik they work on micropython support. There is a plugin already.
Just syntax or do you want to have a way to run the code directly on a connected uC?
You might want to look into platformio, which works together with VS code and afaik they work on micropython support. There is a plugin already.
Re: Micropython Language for VS Code
There is one extension on VS Code calle PyMakr, it is focused on Pycom boards but it seemed to work for many people who wanted to run MicroPython on VSCode.
For me personally it didn't work. After installation it always prompt an error message about serialport module one time and another (I think it was some problem with my NodeJS version), so I changed to uPycraft which is working very well but it does not have Intellisense.
***
For me personally it didn't work. After installation it always prompt an error message about serialport module one time and another (I think it was some problem with my NodeJS version), so I changed to uPycraft which is working very well but it does not have Intellisense.

***
Oh I didn't know about this, PlatformIO is great, I will see if I can get it to work with MicroPython. Thanks for the info!torwag wrote: ↑Wed May 08, 2019 7:50 amIt depends on what you want to achieve.
Just syntax or do you want to have a way to run the code directly on a connected uC?
You might want to look into platformio, which works together with VS code and afaik they work on micropython support. There is a plugin already.
Re: Micropython Language for VS Code
Hi Jerremy,
For language support I use this: https://github.com/Josverl/micropython-stubber
Follow the instructions there and you'll get *most* of the micropython modules supported by pylint. It doesn't pick up 3rd party modules though. But it's better than nothing!
Also, I wrote an extension called Micropython REPLink. It lets you send code to the REPL and/or save it as a file. I wrote it because I wasn't happy with any of the other extensions like pymakr. It relies on you to provide a REPL shell, and for that I use mpfshell. Hope you find it useful
For language support I use this: https://github.com/Josverl/micropython-stubber
Follow the instructions there and you'll get *most* of the micropython modules supported by pylint. It doesn't pick up 3rd party modules though. But it's better than nothing!
Also, I wrote an extension called Micropython REPLink. It lets you send code to the REPL and/or save it as a file. I wrote it because I wasn't happy with any of the other extensions like pymakr. It relies on you to provide a REPL shell, and for that I use mpfshell. Hope you find it useful

Re: Micropython Language for VS Code
Hi,
continuing on what @zouden said, you may be interested in my project: https://github.com/BradenM/micropy-cli
It uses micropython-stubber, what zouden had linked above, but also solves the issue of 3rd party modules with its dependency management system. Basically, you can install modules to your project with Micropy and it will automatically stub them, allowing you to import them as you would on your device and have autocompletion/intellisense like the included modules.
continuing on what @zouden said, you may be interested in my project: https://github.com/BradenM/micropy-cli
It uses micropython-stubber, what zouden had linked above, but also solves the issue of 3rd party modules with its dependency management system. Basically, you can install modules to your project with Micropy and it will automatically stub them, allowing you to import them as you would on your device and have autocompletion/intellisense like the included modules.