Menu

#513 Bad formating for class end label

v1.0_(example)
closed
nobody
None
5
2017-12-08
2017-12-03
No

Hi i have realized that the SVEditor has a wrong format beautifier for different classes inside the same file. If the previous class has an end label name, then the next class will have a wrong indentation.
code example

class first_iompu_basic_test_seq#() extends iompu_test_seq_base#();
endclass : first_iompu_basic_test_seq

class iompu_basic_test_seq#() extends iompu_test_seq_base#();
        endclass : iompu_basic_test_seq

See next picture

1 Attachments

Discussion

  • StevenAZ

    StevenAZ - 2017-12-07

    Hi, I am having trouble replicating the issue in 2.0.7. Which version of SVE are you using?

    Did you get the indent error after running the indenter (Ctrl+I) or some other way?

    I have tried pasting the code and running the indenter on 2.0.7, and get what I would expect

     
  • Jonathan Alvarez

    Hi,
    It is true. On the new 2.0.7 i couldn´t reproduce. Please, close the ticket. Maybe it was my mistake. Sorry!
    Best regards,
    Jonathan

     
  • StevenAZ

    StevenAZ - 2017-12-08
    • status: open --> closed
     
  • StevenAZ

    StevenAZ - 2017-12-08

    No problem, and thanks for the testcase. It made my initial debug much quicker than it could have been otherwise.

    If you see it again we can re-open the ticket.

     

Log in to post a comment.