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

Workspace not populating #75

Closed aa358736 closed 5 years ago

aa358736 commented 5 years ago

Guys, thanks for the great work on the SPGO library. I have tried all the suggestions related to this issue, but am not able to download the folders. It says "Populating Workspace", but nothing is loaded and the message disappears. There are no errors in the Output window and there is no 'SPGO Enabled' message. Please advise. Here is what I am using:

{ "sourceDirectory": "src", "sharePointSiteUrl": "https://xxx.xx.com/sites/IOC/crew", "publishingScope": "SaveOnly", "authenticationType": "Digest", "storeCredentials" : true, "remoteFolders": [ "/SiteAssets//.", "/SitePages//." ] }

sg-chrishasz commented 5 years ago

Hello @aa358736

Can you try a few things and let me know if they resolve your problem.

  1. Can you change your spgo.json file to look like this:

    {
    "sourceDirectory": "src",
    "sharePointSiteUrl": "https://xxx.xx.com/sites/IOC/crew",
    "publishingScope": "SaveOnly",
    "authenticationType": "Digest",
    "storeCredentials" : true,
    "remoteFolders": [
        "/SiteAssets/**/*", 
        "/SitePages/**/*"
    ]
    }

    It is possible that the Glob notation for "get all files and folders recursively" that you entered was incorrect. I updated the remoteFolders node.

  2. when you are viewing the output window, can you verify that you have selected "SPGo" from the dropdown list to the right of the tabs? It defaults to Tasks I believe, and you will need to change the selected list item to SPGo in order to view SPGo logs and errors,, including the SPGo Enabled message.

Please let me know if you have any further issues and thanks for using SPGo!

aa358736 commented 5 years ago

The SPGO output window displays the following when I enter my userid/password:

================================ ERROR ================================

Invalid argument


From: Chris Hasz notifications@github.com Sent: Tuesday, February 12, 2019 1:38 AM To: readysitego/spgo Cc: Muhammad W. hafeez; Mention Subject: Re: [readysitego/spgo] Workspace not populating (#75)

Hello @aa358736https://github.com/aa358736

Can you try a few things and let me know if they resolve your problem.

  1. Can you change your spgo.json file to look like this:

{ "sourceDirectory": "src", "sharePointSiteUrl": "https://xxx.xx.com/sites/IOC/crew", "publishingScope": "SaveOnly", "authenticationType": "Digest", "storeCredentials" : true, "remoteFolders": [ "/SiteAssets/*/", "/SitePages/*/" ] }

It is possible that the Glob notation for "get all files and folders recursively" that you entered was incorrect. I updated the remoteFolders node.

  1. when you are viewing the output window, can you verify that you have selected "SPGo" from the dropdown list to the right of the tabs? It defaults to Tasks I believe, and you will need to change the selected list item to SPGo in order to view SPGo logs and errors,, including the SPGo Enabled message.

Please let me know if you have any further issues and thanks for using SPGo!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/readysitego/spgo/issues/75#issuecomment-462649919, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOW1D4IHYx8tv7qwMoW4bRhzy4Mlxhm3ks5vMm-PgaJpZM4a0rVE.

Edu-Vaiana commented 5 years ago

Hi man, did you find a solution for this? I have the same problem but my error says: ================================ ERROR ================================

401 - undefined

===============================================================================

It happens on "SPGO: Populate local Workspace" and also on "SPGo: Retrieve folder"... Don't know what to do. It was working a few days ago without any changes to the configuration...

koltyakov commented 5 years ago

A temporary workaround is to disable VSCode proxy setting https://github.com/readysitego/spgo/issues/73#issuecomment-462961401

aa358736 commented 5 years ago

Nope. Still waiting for the SPGo gurus.

On Feb 14, 2019, at 1:47 PM, Eduardo Vaiana notifications@github.com<mailto:notifications@github.com> wrote:

Hi man, did you find a solution for this? I have the same problem but my error says: ================================ ERROR ================================

401 - undefined

It happens on "SPGO: Populate local Workspace" and also on "SPGo: Retrieve folder"... Don't know what to do.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/readysitego/spgo/issues/75#issuecomment-463766662, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOW1DzURoZkYMV8wMMVuHlxSe3zsgt6hks5vNb1jgaJpZM4a0rVE.

sg-chrishasz commented 5 years ago

Hello @aa358736

Are you able to download either of those folders using the Retrieve Folder command? I'm sorry I don't have any direct answer, but I'm curious if the error happens during:

  1. user/password validation
  2. retrieving the SiteAssets folder
  3. retrieving the SitePages folder

Thanks!

Next version will have better error logging, so it should be easier to debug in the future.

aa358736 commented 5 years ago

I never even make it to folder selection. Error comes up as soon as password is entered: below, the first error when I selected SPGO: Retrieve Folder, second when I entered password.

SPGo enabled. ================================ ERROR ================================

C:\Users\8736\AppData\Local\Temp\SPGo\https_xxxx_xx_com_sites_IOCcrew.json: ENOENT: no such file or directory, open 'C:\Users\8736\AppData\Local\Temp\SPGo\httpsxxxx_xx_com_sites_IOC_crew.json'

================================ ERROR ================================

Invalid argument


From: Chris Hasz notifications@github.com Sent: Friday, February 15, 2019 9:57 AM To: readysitego/spgo Cc: Muhammad W. hafeez; Mention Subject: Re: [readysitego/spgo] Workspace not populating (#75)

Hello @aa358736https://github.com/aa358736

Are you able to download either of those folders using the Retrieve Folderhttps://docs.sitego.co/spgo/commands/retrieve-folder command? I'm sorry I don't have any direct answer, but I'm curious if the error happens during:

  1. user/password validation
  2. retrieving the SiteAssets folder
  3. retrieving the SitePages folder

Thanks!

Next version will have better error logging, so it should be easier to debug in the future.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/readysitego/spgo/issues/75#issuecomment-464101049, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOW1D4CTrFrIJlzC8h_CnEbTdjDGFYz0ks5vNtkAgaJpZM4a0rVE.

sg-chrishasz commented 5 years ago

@aa358736 The first error is expected - basically that means the local password storage file does not exist. The second error is the tough one - I've not seen it before.

Two more questions for you:

  1. if you disable storeCredentials, either by deleting the node or setting it to false, does the command work?
  2. Can you confirm that the path C:\Users\8736\AppData\Local\Temp\SPGo\ exists on your local disk?
lbianchin commented 5 years ago

I try populating and retrieving but nothing happens and nothing is in the output... anyone has a similar experience

chrishasz commented 5 years ago

Closing due to inactivity. Please reopen if there are new questions.

@lbianchin can you open another issue if you are still seeing this issue?