omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Script disappeared

    Pythonista
    10
    18
    9738
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • upwart
      upwart last edited by

      I wonder whether anyone has experienced the same -very annoying- behaviour:
      All of a sudden the complete contents of one of my scripts has disappeared. What's left is an empty script.
      This happened to me already three times!
      I can't reproduce it.

      Maybe a warning to save frequently your scripts with another name, to a different folder or backup to a PC.

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        This is indeed terrible, I'm sorry. May I ask where your script originally came from? Did you create it in Pythonista, or did you import it from somewhere else, and then edited it in Pythonista? This information would really help me to locate the source of the bug.

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          Shake you iOS device like crazy until the "Undo" dialog pops up and tap the Undo button.

          1 Reply Last reply Reply Quote 0
          • Dann239
            Dann239 last edited by

            Are you using a Dropbox script to sync? A bug in the one I'm using will occasionally duplicate a folder and rename it using a lowercase title. The contents of the original folder deleted and its contents placed In that new folder. 'Projects' folder gets duplicated and the contents now placed in the new folder 'projects'. I've seen code disappear in that exchange as well.

            tldr: check all your folders!

            1 Reply Last reply Reply Quote 0
            • upwart
              upwart last edited by

              omz:
              The script was completely created in Pythonista.

              ccc:
              This doesn't seem to work.

              dann:
              No DropBox sync used.

              1 Reply Last reply Reply Quote 0
              • JonB
                JonB last edited by

                Does this happen while you are typing a script? Or you go to a script only to find it is empty?
                If you are typing, and this happens, try the undo button on the keyboard?

                Also, are you using IOS8? I think someone else mentioned a similar problem using a nonstandard keyboard?

                1 Reply Last reply Reply Quote 0
                • smath
                  smath last edited by

                  I've had this happen twice. Both times the text of the most recent file disappeared upon opening the app. Both times were after updating to ios 8. I don't know if that could have anything to do with it. I'm just making sure to back up my work, but it is annoying none the less.

                  1 Reply Last reply Reply Quote 0
                  • JonB
                    JonB last edited by

                    Out of curiosity, are you using a custom keyboard?

                    1 Reply Last reply Reply Quote 0
                    • smath
                      smath last edited by

                      I have a few installed, but I can't remember if I was using one at the time it happened. I wish I'd thought of it at the time. I'll keep an eye out if it happens again.

                      1 Reply Last reply Reply Quote 0
                      • upwart
                        upwart last edited by

                        JonB:
                        It happened when I reopened Pythonista, so not during typing.
                        It happened both in iOS7 and iOS8.
                        I don't use a custom keyboard.

                        1 Reply Last reply Reply Quote 0
                        • iDevy
                          iDevy last edited by

                          The second time this bug has hit me... First time was easily accepted - it was a 20-minute script.
                          This time a script worth a month (in transit/transport) of work has gone =(

                          Just played with a script a little, reorganized some classes/bits on the road to office. On the way home - BAM - empty script. Didn't even use iPad in between. So it was like "type/edit - lock ipad - unlock - empty script".

                          Dropbox sync works pretty weird for me - sometimes deleting scripts and resyncing with DB. So that's not an option.

                          iOS8, no Bluetooth or third-party keyboards...

                          1 Reply Last reply Reply Quote 0
                          • omz
                            omz last edited by

                            I'm really sorry about that. Which version are you using (1.5 from App Store or 1.6 beta)?

                            1 Reply Last reply Reply Quote 0
                            • iDevy
                              iDevy last edited by

                              Still on 1.5

                              Waiting with anticipation for 1.6 release =)

                              1 Reply Last reply Reply Quote 0
                              • Obelisk
                                Obelisk last edited by

                                One time i found that,but its my own fault,if i open one script while another script is still running and i use editor.replace,the script'contents will be replaced.

                                1 Reply Last reply Reply Quote 0
                                • simonh
                                  simonh last edited by

                                  Just as a precaution, I regularly use the export function to mail myself a zip archive of my working folder. I've never needed to use it yet, but it gives me peace of mind.

                                  1 Reply Last reply Reply Quote 0
                                  • Gerzer
                                    Gerzer last edited by

                                    I try to keep backups with my FTP sync script, but, regardless, I've lost some work to bugs like this. It is just so unpredictable that I'm not sure how @omz will be able to exterminate this bug. One thing I've found, at least on the 1.6 beta, is that closing all tabs before quitting Pythonista helps. I've only ever lost code from tabs (even though there's only one tab for 1.5) that are on screen when I quit the app. I think something like this has been mentioned once somewhere regarding the beta, but I can't remember it specifically. I don't know if there are any logs or what to send to @omz, but if there are, I'd be happy to send them in.

                                    1 Reply Last reply Reply Quote 0
                                    • omz
                                      omz last edited by

                                      @Gerzer Have you seen this issue in one of the last three betas? It should really be fixed since build 160018.

                                      1 Reply Last reply Reply Quote 0
                                      • Gerzer
                                        Gerzer last edited by

                                        I don't know, I've just been closing tabs before I quit for a while now. I don't remember exactly when I last lost code, but it was probably before 160018.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Powered by NodeBB Forums | Contributors