gas-github icon indicating copy to clipboard operation
gas-github copied to clipboard

Initial push does not add all files

Open pxbaker opened this issue 8 years ago • 6 comments

I have a library with around 60 files, all with .gs extensions. My initial push only pushed 26 to bitbucket.

Any further push or pull gave an already up to date message.

Changing the extension in options to '.js' and pushed again another 23 files were added, but I don't have any files with .js extensions?

pxbaker avatar Nov 20 '17 17:11 pxbaker

Thanks for the report, will take some time to look at this. To make sure, did you set some ignore pattern in the config tab? And if it's possible, please list up those file names, that will be a great help for me to debug.

leonhartX avatar Nov 21 '17 01:11 leonhartX

Hi,

Thanks for the quick response. There were no patterns. Out of curiosity I did change to .js extensions and it did try to push other adds, but there are no .js as all are .gs. I changed back to .gs and push returned no changes. I also tried adding comments to a couple of the scripts which had not changed and again they didn’t push.

Regards Pat

Cheery bye!

On 21 Nov 2017, at 01:00, Ke Xu [email protected] wrote:

Thanks for the report, will take some time to look at this. To make sure, did you set some ignore pattern in the config tab? And if it's possible, please list up those file names, that will be a great help for me to debug.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

pxbaker avatar Nov 21 '17 08:11 pxbaker

I'm seeing a similar thing. It's only pushing 15 out of 19 .gs files. If I manually create the files in Github it then tries to get rid of them if I do a push, so it can't seem to see them in the script editor.

I've attached a list. The assistant can't see guides.gs, hotels.gs, transport.gs or travelPlan.gs.

I tried pushing them as .js, but the same ones get ignored.

My workaround was to create a new file and copy the contents in from the ignored file.

screenshot 2018-01-18 at 13 50 08

andrewroberts avatar Jan 18 '18 13:01 andrewroberts

@andrewroberts have you checked about the known issue of #18 ? if you have a method with the same name as the filename(eg: guides.gs contains a method guides), the extension can not see it due to the GAS RPC call.

leonhartX avatar Jan 19 '18 01:01 leonhartX

@leonhartX Thanks, that was it. Will have to keep that one in mind!

andrewroberts avatar Jan 19 '18 08:01 andrewroberts

@pxbaker so is this the same reason with your issue?

leonhartX avatar Jan 19 '18 10:01 leonhartX