This button is a lie - you have to do it twice for...
# sdf
c
This button is a lie - you have to do it twice for your changes to reflect in NetSuite with a script that's already deployed.
First attempt
Second attempt (success)
As you can see, there is no file listed in the logs in the first attempt. This must be a bug in the SDF plugin for WebStorm otherwise something wrong with my setup?
s
are you sure you saved the file prior to clicking deploy?
I wonder if the file hadn't yet autosaved by Webstorm - so then the deploy looked for changed files it found none
then a bit later, file was autosaved, and deploy noticed the change?
c
@stalbert That's a good question, I don't know how long it takes WS to save changes
I'll test that next time I push something, I'll give it 30 secs before deploying
s
I'd try making another change then CTRL+S to save right before triggering the upload
c
will do
I assumed WS saved very quickly.
s
If you look under Settings -> SystemSettings there is an AutoSave section. This is one nice thing about using TS instead of JS for source files - TS automatically compiles quickly in the background, emitting the changed JS file
• so by the time the deploy starts that JS file has been changed/saved by TypeScript