To add on the above when i generate the same file to some other location, the changes are displayed. However when i make some new changes, they reflect only in preview not in generate.