Closed RunningMartin closed 4 years ago
the question 2,Maybe I find the problem.
~/.micropy/stubs
,you can find the stub by the info.json
➜ ~ micropy stubs add esp8266-micropython-1.11.0
➜ ~ cd .micropy/stubs
➜ stubs ls
BradenM-micropy-stubs-d97f63b BradenM-micropy-stubs-e1fd1c1
➜ stubs cd BradenM-micropy-stubs-e1fd1c1
➜ BradenM-micropy-stubs-e1fd1c1 head info.json
{
"firmware": {
"machine": "ESP module with ESP8266",
"firmware": "esp8266 v1.11",
"nodename": "esp8266",
"version": "1.11.0",
"release": "2.2.0-dev(9422289)",
"sysname": "esp8266",
"name": "micropython"
},
➜ BradenM-micropy-stubs-e1fd1c1 cd ..
➜ stubs mv BradenM-micropy-stubs-e1fd1c1 esp8266-micropython-1.11.0
➜ Documents cd MicroPython
➜ MicroPython ls
➜ MicroPython micropy init ESP8266
MicroPy Creating New Project
? Choose any Templates to Generate done (4 selections)
? Which stubs would you like to use? [esp8266-micropython-1.11.0]
MicroPy Initiating ESP8266 MicroPy Stubs: esp8266-micropython-1.11.0
MicroPy Rendering Templates MicroPy Populating Stub Info... MicroPy Vscode File Generated! MicroPy Pylint File Generated! MicroPy Vsextensions File Generated! MicroPy Pymakr File Generated! MicroPy Main File Generated! MicroPy Boot File Generated! MicroPy ✔ Stubs Injected! MicroPy ✔ Project Created!
MicroPy Created ESP8266 at ./ESP8266 ➜ ESP8266 tree -a -l -L 2 ./ ./ ├── dev-requirements.txt ├── .micropy │ ├── BradenM-micropy-stubs-d97f63b -> /home/martin/.micropy/stubs/BradenM-micropy-stubs-d97f63b │ ├── ESP8266 │ ├── esp8266-micropython-1.11.0 -> /home/martin/.micropy/stubs/esp8266-micropython-1.11.0 │ └── .gitignore ├── micropy.json ├── .pylintrc ├── pymakr.conf ├── requirements.txt ├── src │ ├── boot.py │ └── main.py └── .vscode ├── extensions.json └── settings.json
6 directories, 10 files
by this way, I solve the problem,then i will try to find the problem in the code.
maybe i install the micropy-cli is error. in my other computer,i can do it without any modify. tomorrow, i will try it
Hi, I want to use micropy-cli as vscode Intellisense.In my configuration process, I have two questions:
micropy init new
raise a exception..micropy
is void.when i read the doc,i find my~/.micropy
is different of the doc show.I very much hope to get yours help.thanks!