klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 295 forks source link

Search and replace breaks all link destinations #397

Closed klembot closed 2 years ago

klembot commented 7 years ago

Originally reported by: Academy of Fetishes (Bitbucket: academyoffetishes, GitHub: Unknown)


This is super weird and it makes me suspect that something is corrupt with my install. I'm using 2.1.3 and Harlowe 2. I'll describe the problem in steps.

  1. I do a search and replace of a word like "Lets " and replace it with a word like "Let's ". I don't have passage names checked.
  2. The appropriate passages are modified
  3. If any of those passages had links to other passages, the destination passages all have their names set to "".

This causes numerous problems. Links are broken all over the place. If I try to open up one of the passages and give it a name to fix the problem, twine doesn't let me save or close the dialog. Search and replace becomes dangerous for me to use.

I figure everyone would be reporting this if it were happening so there is probably something wrong with my install. Is there a way to start it in some debug mode to give better information? I'm going to restart my computer to see if it fixes the issue. If that doesn't work I'll reinstall.


klembot commented 7 years ago

Original comment by Academy of Fetishes (Bitbucket: academyoffetishes, GitHub: Unknown):


Yep, sounds like the same thing. I'm really confused why we're the only ones reporting this. Seems super critical to me.

klembot commented 7 years ago

Original comment by TAU CETI (Bitbucket: TAUCXTI, GitHub: Unknown):


I'm having the exact same problem. Twine 2.1.3, but I'm using Sugarcube 2.18.0, so it's likely not because of the story format.

Luckily only a small amount of passages were affected for me. I just went through and renamed them all.

Edit: I want to clarify the problem as specific as I can. All passages that are affected by the find and replace have their passage names removed completely, so they are empty and cannot be linked to.

This is why I mentioned renaming them all. I'm not sure if that's the same situation OP is dealing with, but it does sound the same.

klembot commented 7 years ago

Original comment by Academy of Fetishes (Bitbucket: academyoffetishes, GitHub: Unknown):


Reinstall did not fix it either. I don't know how to work around this problem.

klembot commented 7 years ago

Original comment by Academy of Fetishes (Bitbucket: academyoffetishes, GitHub: Unknown):


A restart did not fix it. It's worth mentioning that none of the link names have the word "Lets " in it.

klembot commented 2 years ago

This looks like a bug with Twine 2.3 or earlier, and because of that I'm closing it. Please re-open or create a new issue if you find this is still a problem in 2.4.