-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some .gs are ignored when pushing // Diff 'undefined' #18
Comments
Hi, thanks for the feedback. |
hi, does it only happened when a file is named |
oh, i found the cause. when a .gs file contains a function which function name(eg: so a quickly workaround is to give the file a different name from any of the function's name. i'll continue try to solve this but the the RPC is so weird and without any document, i'm not sure it could be fixed. |
@leonhartX I think it could be helpful to identify when this issue happens, warn the user, and perhaps allow them to have the js filename to be changed automatically. I was thinking of either using https://github.com/ariya/esprima or doing something similar to extract all of the function names in the apps script code. Then I can compare to the script file names. |
@gulliverhan Yes, I agreed that it's better to let user knows what's going wrong. |
I have 4 files in a script, two of them called 'onOpen.gs' and 'onEdit.gs'. This 2 files are ignored by the assistant. Instead of finding the changes in this 2 files, it gets next changes:
I pushed the 2 files with the terminal. When pulling them from the IDE, assistant keep ignoring the existing files in the IDE and suggest me to add them as new. When accepting to add them as new, next error is thrown:
I've been using the assistant for a month, and it's a recurrent bug: ignoring some files and/or detecting diffs in an 'undefined' file.
The text was updated successfully, but these errors were encountered: