You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Debugging a function with a file-based even input does not detect changes to the JSON even file until re-opening Edit Configuration and clicking OK.
Tested with CloudFormation Create event.
To reproduce
Create function and template
Create an event file (instead of the preset text even samples)
Edit Configuration to configure
Click OK
(optional) set breakpoint early in function to be able to see even data
Run/Debug
Look at event data
End run/debug
Change JSON event file with some new/added/changed/deleted event data
Run/Debug
The event data did NOT pick up the changes!
End run/debug
Edit Configuration
Change nothing, simply click OK again
Run/Debug
Now the changes in the event file appear!
Expected behavior
Event data file should be read before every function run/debug to recognise any changes without having go through Edit Configuration/OK (unless, of course, an actual change in other configuration occurs).
Your Environment
OS: MacOS
JetBrains' Product: Pycharm
JetBrains' Product Version: 2019.1.1
Toolkit Version: 1.2
SAM CLI Version: 0.14.2
JVM/Python Version: 1.8.0_201/3.7
The text was updated successfully, but these errors were encountered:
Actually if you don't explicitly hit Save shortcut, it doesn't pick it up. Looks like we are missing a call to save all open documents.
abrooksv
added
bug
We can reproduce the issue and confirmed it is a bug.
and removed
needs-response
Waiting on additional info and feedback from GitHub community. (no auto closure)
labels
May 17, 2019
Can confirm that doing explicit File->Save All also works (without explicit Edit Configuration step), so it does seem that save of docs is the missing step.
Describe the bug
Debugging a function with a file-based even input does not detect changes to the JSON even file until re-opening Edit Configuration and clicking OK.
Tested with CloudFormation Create event.
To reproduce
Expected behavior
Event data file should be read before every function run/debug to recognise any changes without having go through Edit Configuration/OK (unless, of course, an actual change in other configuration occurs).
Your Environment
The text was updated successfully, but these errors were encountered: