BradenM / micropy-cli

Micropython Project Management Tool with VSCode support, Linting, Intellisense, Dependency Management, and more!
https://micropy-cli.readthedocs.io
MIT License
314 stars 25 forks source link

stubs add in VSC on Windows tries to access github but is acting like it is a local file path #555

Open SevenW opened 8 months ago

SevenW commented 8 months ago

I am unable to install stubs. It seems it is taking a local file approach to me while the path is an internet URL. This is part of the error that micropy generates:

│ C:\Users\sevenw\AppData\Local\Programs\Python\Python38\lib\pathlib.py:1191 in stat                │
│                                                                                                  │
│   1188 │   │   Return the result of the stat() system call on this path, like                    │
│   1189 │   │   os.stat() does.                                                                   │
│   1190 │   │   """                                                                               │
│ ❱ 1191 │   │   return self._accessor.stat(self)                                                  │
│   1192 │                                                                                         │
│   1193 │   def owner(self):                                                                      │
│   1194 │   │   """                                                                               │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ self = WindowsPath('https:/codeload.github.com/BradenM/micropy-stubs/legacy.tar.gz/pkg/esp3… │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
OSError: [WinError 123] De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist:
'https:\\codeload.github.com\\BradenM\\micropy-stubs\\legacy.tar.gz\\pkg\\esp32-micropython-1.15.0'