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

No active workspace selected #180

Open germain-italic opened 6 months ago

germain-italic commented 6 months ago

Hello, the extension is useful, however I am constantly getting this error:

[16/02/2024 06:33:04] Starting Workspace Publish...
[16/02/2024 06:33:05] publishing files:  d:\Sites\project\src\**\*.*
[16/02/2024 06:33:20] ================================     ERROR     ================================
[16/02/2024 06:33:20] Error Detail:
[16/02/2024 06:33:20] ----------------------
[16/02/2024 06:33:20] No active workspace selected
[16/02/2024 06:33:20] ===============================================================================
[16/02/2024 06:33:31] ================================     ERROR     ================================
[16/02/2024 06:33:31] Error Detail:
[16/02/2024 06:33:31] ----------------------
[16/02/2024 06:33:31] No active workspace selected
[16/02/2024 06:33:31] ===============================================================================
[16/02/2024 06:33:39] Configuration file reloaded

My D:\Sites\project\project.code-workspace:

{
    "folders": [
        {
            "path": "."
        }
    ],
    "settings": {}
}

My SPGo.json:

{
    "sourceDirectory": "src",
    "sharePointSiteUrl": "https://tenant.sharepoint.com/sites/project",
    "workspaceRoot": "d:\\Sites\\project",
    "remoteFolders": [
        "/Lists/**/*",
        "/_catalogs/masterpage/project/**/*",
        "/SitePages/**/*",
        "/Style%20Library/**/*"
    ],
    "publishingScope": "SaveOnly",
    "authenticationType": "Digest",
    "storeCredentials": true
}

This is driving me nuts! Happens every 3 minutes or when I launch an action.

I've tried to reconfigure multiple times, with the assistant, and from the examples in the docs at https://www.chrishasz.com/spgo/general/config-options

I don't understand why this error happens from the source at https://github.com/chrishasz/spgo/blob/712c3e1271100639f717dbf86bcf55b57170a252/src/appManager.ts#L34

I'm using the latest version in the latest vscode on the latest Windows 11. Any idea?