r/GoogleAppsScript • u/sojohnnysaid • Mar 18 '20
Resolved google apps scripts V8 buggy anyone else having issues with passing event objects?
I've had to keep all my scripts on the DEPRECATED_ES5 setting because scripts in V8 doesn't pass the event on form submit, no logging...just buggy. Anyone else having issues with the change? I really would love to use the modern syntax but...I need the event object from my forms more! If anyone has a workaround i'd appreciate it =)
1
u/catmandx Mar 18 '20
It seems this bug isn't universal, I have experienced no bugs, passing event objects or otherwise. The only thing affects me is the console.log function is noticeably slower.
1
Mar 19 '20
A little birdie told me the new IDE console is near real-time.
2
u/catmandx Mar 19 '20
What does that mean? .... Am I just stupid not understanding?
1
Mar 19 '20
console.log in the IDE they are working on now is near real time.
2
u/catmandx Mar 19 '20
So my console.log calls with the V8 ru time will be faster soon? (As fast as the Rhino runtime?)
3
Mar 19 '20
When the new IDE is released yea. In V8 the logger service now only uses stackdriver logging. SO currently when you logger or console out, it goes to stackdriver then the IDE gets it. In the new IDE the local console gets the log immediately, but it still sent to stackdriver also.
1
1
u/marcomow Jun 30 '20
hey catmandx do you have any news regarding the new IDE? Maybe the little bird told you something new about it? A release date? Or the possibility to join the beta program?
1
Jun 30 '20
COVID pushed everything back. It was going to be announced at NEXT, but they have pushed it back. Look for for an early access program during the NEXT sessions starting in July.
The editor is based on ATOM, so if you are familiar with VSCode its pretty similar in features. There are features not in the new editor (adding libraries and advanced services), that are not available yet, so it is still in active development. Other things such as the debug workflow has changed and completely redone. It is much better now.1
u/marcomow Jul 18 '20 edited Jul 19 '20
@llvihearsevil this sounds awesome! I searched the cloud next schedule, but I couldn't find where something like that could be announced...do you have any suggestion?
1
u/wmaxsen Mar 18 '20
I’ve been experiencing bugs when I try to delete a sheet in Google Sheets, and the bloody script does not delete it. So when the next command is to add a new sheet with the same name, it cancels execution. I tried using a timer to wait for even a few seconds, sometimes it works, most of the times it doesn’t. Frustrating.