sg-wireless / pymakr-vsc

GNU General Public License v3.0
97 stars 25 forks source link

Plugin is not recognizing some MicroPython words #201

Open renegadecitizen opened 2 years ago

renegadecitizen commented 2 years ago

the plugin does not recognize some MicroPython words words like machine or Pin do not turn colour I wonder if the plugin is installed right? can you please help me fix this?

What versions of software are you using?

Operating system: mac v11.6.5 VSCode version: v1.65.2 Pymakr version: preview of v2

Josverl commented 2 years ago

For micropython language support I suggest you take a look at https://github.com/Josverl/micropython-stubs

renegadecitizen commented 2 years ago

Cool thanks It looks like it’s command line only I installed it anyway Is there a way of using it in vscode?

Josverl commented 2 years ago

Working on a simple 'pip install'

jakobrosenberg commented 2 years ago

@Josverl is this something that could or should be bundled with pymakr-vsc? If so, what would the pros / cons be?

Josverl commented 2 years ago

well mayhaps , there are a few approaches, and a few open items.

wrt to the stubs itself. there is quite a variation between :

in selecting which stubs to install for a project i think the minimum info needed is :

there are a few ways to create the stubs

For Pycom:

Josverl commented 2 years ago

The same stubs should work for any IDE so expect them to work on Atom as well

jakobrosenberg commented 2 years ago

Would it be better to move this to discussions?

renegadecitizen commented 2 years ago

Where to?

jakobrosenberg commented 2 years ago

@renegadecitizen granted I read your question right: https://github.com/pycom/pymakr-vsc/discussions

Josverl commented 2 years ago

@renegadecitizen ,

depending on your port/chipset you can get VSCode to recognize Micropython by installing the correct stubs:

And indeed lets close or move this to discussions as it is not an issue of pymakr.