Open Zuroencantador opened 2 years ago
Could you please provide a specific example? e.g. can we reduce this down to a single passage and search/replace?
I have the same issue.
Twine version number: 2.5.1 Version: Desktop App OS: Windows 10
Some passages with the text are highlighted, but not all.
Specifics:
Search string: {=
The String is the first text in all non highlighted passages.
If I copy the content of one of the not found passages into a new one, the new passage with the same text is recognized; the first one still is not. So: this is NOT related to a specific passage context.
if I change the search string to " {=" (put in a space before) and change a so far unfound passage to contain this variant instead, now that passage is found.
-Story size: 300 passages, 35000 words.
It seems that all passages not highlighted in the first place, have the "startup" tag. However, if I remove the tag, the passage is still not highlighted.
Existing vs. "Found" vs. highlighted vs. changed:
Conclusion In the code there seem to be two values: 1) List of highlighted passages 2) List of actually found occurrences List 1) is used in the lower-right-corner message in the Search/Replace dialog List 2) is used, when actually replacing text.
For some reason List 1 is not identical with, or not a clean copy of, List 2.
To me the severity of this bug is very high. A search functionality that does not reliably find all occurrences, is unusable for larger stories.
Debugging in Twine is limited anyway. With this limitation, writing correct code is more or less impossible. I could search in the exported HTML file, but that costs much time because of the extra exporting step and the difficulty to find the corresponding passage.
I also miss the text-list of affected passages. In large stories it is often not possible to see all highlighted passages on one screen. (Edit: I see, there is already an issue for this.)
Could you please provide a specific example? e.g. can we reduce this down to a single passage and search/replace?
As I stated in my above report, it is not related to passage content, because from two passages with identical content it happens, one is highlighted, and the other one not.
@sternfuchs if you're able to attach either of the stories you talk about as examples, that would help me resolve the issue.
@klembot I tried to reduce the story as much as I could. Find the example attached. You have to re-rename it to .html (It comes from the {user}/Documents/Twine/Stories folder, not from export.)
Twine 2.5.1, Windows 10.
Steps to Reproduce Part 1 (Highlighting)
Reproduce Part Two (Replacement)
Remarks:
Let me know, if this was helpful. Otherwise I try to adapt the example.
Describe the bug.
Not always "Find and Replace" finds all words.
Steps to reproduce:
Go to Story -> Find and Replace -> Look for a word that appears often in your game -> Will not be found all
Expected behavior:
Finds all words.
Additional context on this problem.
No response
Twine version number
i.e.2.4.1
Does this problem occur with the web version of Twine or the desktop app?
Web
What operating system does this problem occur on?
Windows
If this problem is occurring with the web version of Twine, what browser does it occur on?
Chrome/Chromium
Presubmission checklist