Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-3333

Script Editor writing out mixed line endings in certain situations

    Details

      Description

      I'm still seeing files I've edited in the GMAT script editor have mixed line endings, but I haven't been able to duplicate the condition.

      Reassign to me when you start working on this so I can try to track it down.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            tgrubb Thomas Grubb added a comment -

            Tag! You're it!

            I am at a place where I can work on this.

            Show
            tgrubb Thomas Grubb added a comment - Tag! You're it! I am at a place where I can work on this.
            Hide
            jjkparker Joel Parker added a comment -

            I tried for 10 minutes or so and can't reproduce it. Let's sit on it for a while and see if it comes up.

            Show
            jjkparker Joel Parker added a comment - I tried for 10 minutes or so and can't reproduce it. Let's sit on it for a while and see if it comes up.
            Hide
            shughes Steven Hughes added a comment -

            CCB: P2 R2013a. This does not cause a problem in GMAT, but can cause problems when submitting to a repo. Secondly, it happens rarely.

            Try loading a script written on mac, open the script in windows GMAT,edit the script, and save it. -DJC

            Show
            shughes Steven Hughes added a comment - CCB: P2 R2013a. This does not cause a problem in GMAT, but can cause problems when submitting to a repo. Secondly, it happens rarely. Try loading a script written on mac, open the script in windows GMAT,edit the script, and save it. -DJC
            Hide
            gmat_wcs Wendy Shoan added a comment -

            Attaching default file with Unix line endings

            Show
            gmat_wcs Wendy Shoan added a comment - Attaching default file with Unix line endings
            Hide
            gmat_wcs Wendy Shoan added a comment -

            Attaching default script with Mac line endings

            Show
            gmat_wcs Wendy Shoan added a comment - Attaching default script with Mac line endings
            Hide
            tgrubb Thomas Grubb added a comment -

            To consistently reproduce this bug:

            Load the def.script in GMAT, which contains LF line endings
            Load a windows GMAT script
            Copy some lines from the Windows GMAT script and PASTE into the def.script
            Save (mixed line endings)

            Show
            tgrubb Thomas Grubb added a comment - To consistently reproduce this bug: Load the def.script in GMAT, which contains LF line endings Load a windows GMAT script Copy some lines from the Windows GMAT script and PASTE into the def.script Save (mixed line endings)
            Hide
            tgrubb Thomas Grubb added a comment -

            Fix in 2012-12-14
            Note that bug may still be in Mac/Linux builds as they do not use the Editor.cpp (when they do, it will be fixed). For Mac/Linux, the regular wxTextCtrl does not have methods for converting end of line so I didn't fix it.

            Show
            tgrubb Thomas Grubb added a comment - Fix in 2012-12-14 Note that bug may still be in Mac/Linux builds as they do not use the Editor.cpp (when they do, it will be fixed). For Mac/Linux, the regular wxTextCtrl does not have methods for converting end of line so I didn't fix it.
            Hide
            jjkparker Joel Parker added a comment -

            Verified as fixed using 2013-02-12 build. Assigning to Tom for any followup GUI testing.

            Show
            jjkparker Joel Parker added a comment - Verified as fixed using 2013-02-12 build. Assigning to Tom for any followup GUI testing.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: