chrishasz / spgo

SPGo: A Lightweight, Open Source, SharePoint IDE for Visual Studio Code
https://www.chrishasz.com/spgo
MIT License
60 stars 11 forks source link

`Cannot read properties of undefined (reading '0')` #176

Open multimeric opened 1 year ago

multimeric commented 1 year ago

Note: for support questions, please use stackoverflow and tag the post with #spgo.

When I run "SPGo: Configure workspace", I get:

[04/05/2023, 5:33:18 pm] SPGo enabled.
[04/05/2023, 5:33:18 pm] ================================     ERROR     ================================
[04/05/2023, 5:33:18 pm] Cannot read properties of undefined (reading '0')
[04/05/2023, 5:33:18 pm] Error Detail:
[04/05/2023, 5:33:18 pm] ----------------------
[04/05/2023, 5:33:18 pm] TypeError: Cannot read properties of undefined (reading '0')
[04/05/2023, 5:33:18 pm] ===============================================================================
multimeric commented 1 year ago

This happens when the user has no folder open in VS Code! Which is an obvious mistake but still a confusing output by spgo.