joedevivo / vscode-circuitpython

VSCode extension for Adafruit's CircuitPython
MIT License
119 stars 34 forks source link

[BUG] Command "CircuitPython: Show Available Libraries" resulted in an error #130

Open Spongman opened 10 months ago

Spongman commented 10 months ago

image

More Info Published 2020-03-03, 16:30:41 Last released 2023-02-13, 06:52:30

2023-12-15 23:13:21.426 [error] TypeError: Cannot read properties of undefined (reading 'name')
    at new LibraryQP (c:\Users\User\.vscode\extensions\joedevivo.vscode-circuitpython-0.1.20-win32-x64\out\librarymanager\libraryManager.js:25:24)
    at c:\Users\User\.vscode\extensions\joedevivo.vscode-circuitpython-0.1.20-win32-x64\out\librarymanager\libraryManager.js:149:26
    at Array.forEach (<anonymous>)
    at LibraryManager.getInstalledChoices (c:\Users\User\.vscode\extensions\joedevivo.vscode-circuitpython-0.1.20-win32-x64\out\librarymanager\libraryManager.js:146:59)
    at LibraryManager.getAllChoices (c:\Users\User\.vscode\extensions\joedevivo.vscode-circuitpython-0.1.20-win32-x64\out\librarymanager\libraryManager.js:140:37)
    at LibraryManager.show (c:\Users\User\.vscode\extensions\joedevivo.vscode-circuitpython-0.1.20-win32-x64\out\librarymanager\libraryManager.js:120:28)
    at c:\Users\User\.vscode\extensions\joedevivo.vscode-circuitpython-0.1.20-win32-x64\out\container.js:39:73
    at d.h (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:141:140094)
    at d.$executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:141:140954)
    at l.S (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:10829)
    at l.Q (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:10595)
    at l.M (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:9685)
    at l.L (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:8764)
    at f.value (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:7567)
    at n.y (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902)
    at n.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2119)
    at o.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:103:14039)
    at f.value (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:171:7903)
    at n.y (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:1902)
    at n.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:80:2119)
    at o.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:103:14039)
    at MessagePortMain.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:171:6183)
    at MessagePortMain.emit (node:events:513:28)
    at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) circuitpython.library.show {"value":"joedevivo.vscode-circuitpython","_lower":"joedevivo.vscode-circuitpython"}

LibraryQP.constructor():

    this.label = b.name;

b is undefined

joedevivo commented 10 months ago

This should be fixed in v0.2.0