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

[BUG] Duplicating files messes with bridge.'s cache #341

Open
Chikorita-Lover opened this issue Apr 27, 2021 · 0 comments
Open

[BUG] Duplicating files messes with bridge.'s cache #341

Chikorita-Lover opened this issue Apr 27, 2021 · 0 comments
Labels
Bug Something isn't working

Comments

@Chikorita-Lover
Copy link
Member

Summary
When a file is duplicated, bridge. saves the new file's identifier or file name twice, overwriting the identifier or file name for the file that was duplicated. This can be seen for auto-completions such as in LANG files, where the file that was the result of duplicating will show up twice. This can be fixed via resetting bridge.'s cache in the behavior pack sidebar.

To Reproduce
Steps to reproduce the behavior:

  1. Create a file (block, entity, etc.)
  2. Give it an identifier, save the file, and close it
  3. Duplicate the file and give the new file a different identifier
  4. Check auto-completions where identifiers or file names are used (such as LANG file)
  5. Observe duplicate identifier, and absence of identifier for the file that was duplicated

Observed behavior
The new file from the duplication has its identifier or file name saved twice, while the original file in the duplication no longer has its identifier or file name saved.

Expected behavior
The identifier/file name for the new file should be saved once, and the original file's identifier/file name should stay saved.

Platform

  • OS: Windows 10
  • App Version: 1.7.18

Additional context
As mentioned above, the cache issue can be solved by refreshing bridge.'s cache, but this will not prevent the bug in the future (unless the cache is refreshed again).

@Chikorita-Lover Chikorita-Lover added the Bug Something isn't working label Apr 27, 2021
Xterionix added a commit to Xterionix/bridge. that referenced this issue Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant