Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange caching behaviour when eiditing templates #3

Open
PeterMonsson opened this issue Dec 19, 2023 · 3 comments
Open

Strange caching behaviour when eiditing templates #3

PeterMonsson opened this issue Dec 19, 2023 · 3 comments

Comments

@PeterMonsson
Copy link

Hi,

I do the following:

  1. Create a template
  2. Generate that template
  3. Edit same template
  4. Remove old generated file
  5. Generate again.

I observe that I get the first version of the template and not the newest.

Why is this happening? I can't see any cache that I can remove

@PeterMonsson
Copy link
Author

I have tracked down this error. Emacs creates backup files ending with ~. Other editors do something similar with for example .bak files. The file ending with ~ or .bak will overwrite the main file, so that is what is create the strange caching behaviour.

Is this something that you want a pull request for?

@mballance
Copy link
Member

Hi @PeterMonsson, am I understanding correctly that VTE is creating content from the ~ template that overwrites content from the template? If that's the case, then it seems reasonable to have VTE filter out templates that end with '~'.

@PeterMonsson
Copy link
Author

Yes, this is the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants