Title
p

panzupa

10/30/2017, 1:26 PM
Anyone else has problem with updating functions via web console? They don't want to save. When you change code and click test run old version of code is executed without recent changes?
a

agartha

10/30/2017, 1:31 PM
That usually happens when you have a syntax error in your function code...
p

panzupa

10/30/2017, 1:46 PM
I will look into the code, thx
I've got situation where adding console.log statement is not reflected in logs. looks like code is not refreshed
a

agartha

10/30/2017, 2:06 PM
If you can succesfully save, the code is updated. If the save hangs, then the code cannot be saved, and the test run will keep running the last succesfully compiled version of your code.
p

panzupa

10/30/2017, 2:09 PM
Or maybe import is the problem?
I can't use es6 language features in graphcool functions?
a

agartha

10/30/2017, 2:12 PM
you have to specify
'use latest'
on the first line to use ES6 features
Unless that has changed...
@nilan Are inline functions in the console in legacy projects still running on the old function runtime, or did they also move to AWS? If so, what's supported in those functions (ES6+ etc.)?
p

panzupa

10/30/2017, 2:20 PM
Hmm I've added 'use latest' and still after adding line
import {fromEvent} from 'graphcool-lib'
code is not updated
Had to change that line to use require
Node 4.8.4?
a

agartha

10/30/2017, 2:21 PM
Really not sure at the moment, hence my question to Nilan. ^^
p

panzupa

10/30/2017, 2:22 PM
That's what console.re is displaying. BTW thanks for that, I've read your post on the forum
lol. I meant yes, they are still running in the old runtime.