Closed maxi07 closed 1 year ago
@maxi07 Thanks for the report.
But even after a vscode restart, the import cannot be resolved. I tracked your discussion https://github.com/BradenM/micropy-cli/discussions/471, but this also does not work.
In the discussion you linked, I mentioned that opening the project in a vscode workspace causes this issue, but opening it directly works fine. In the video you attached, it appears you are opening in a workspace. Are you implying that you have also tried running code .
from the newly created project directory and that still does not work?
no, when i cd into the folder and open with code .
, i still receive the same result.
https://github.com/BradenM/micropy-cli/assets/7480270/3e5e64c0-7c2f-4d9c-a665-a45cdf3d94c5
@maxi07,
When you ran micropy init esptest
inside the sources\repos\esptest
directory, it created a new directory: sources\repos\esptest\esptest\
Therefore, you are opening the parent directory (sources\repos\esptest
) and not the generated project directory. You should be running code esptest
assuming you are within the sources\repos\esptest
directory.
If it is your intention to create the project within sources\repos\esptest
, then you should run micropy init .
thank you, this solved the issue! perhaps something to mention in your documentation for getting started?
Describe the bug Hey there! I am trying to configure a new project for an esp32. With your tool i have downloaded the stubs and created a new project with the micropy cli. The project is created, but VS code still complains about failing to resolve the
import machine
.Steps to Reproduce
The stubs then are added to the project and linked in the
settings.json
:Please see my demo video here:
https://github.com/BradenM/micropy-cli/assets/7480270/dcba4164-dc32-4997-9552-61a0dbab1e77
But even after a vscode restart, the import cannot be resolved. I tracked your discussion #471, but this also does not work.
Logs micropy.log
Context (Environment)