Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-7760

Rails/Ruby indentation is flawed, constantly shifting by pixels

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.3.1
    • Fix Version/s: None
    • Component/s: Ruby
    • Labels:
    • Environment:

      Aptana Studio 3, build: 3.3.1.201212171919
      Build: jenkins-studio3-rcp-master-250 (origin/master)
      Date: 17 December 2012, 19:21:41

      Have used
      Linux/Ubuntu/Gnome3
      Windows 7
      to reproduce.

      Description

      On any non trivial Rails (haven't tried pure ruby) .rb file, indentation levels appear to shift "randomly". On investigation, scrolling "down" through lines from top to bottom shifts them all back into the proper location, yet scrolling "up" causes defective indentation. It appears that most lines are affected just AFTER an indentation level is added, leading me to believe it's some faulty logic in that code.

      Code sample provided is tiny but this is consistent and pervasive everywhere, regardless of programming style etc. for any ruby code. Reopening files seems to reset these positions.

      Characters appear to be up to 1.5 "character widths" out, leading to confusion given that ruby style indents only 2 spaces.

      The font I am using is "Monospace", which is evidently a monospaced font, so I don't think that could be a cause (especially given that it's driven by behaviour of the IDE).

      Thanks for your time.

        Attachments

        1. aptanabug.png
          aptanabug.png
          21 kB
        2. down.png
          down.png
          346 kB
        3. up.png
          up.png
          346 kB

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              tobypinder Toby Pinder
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration