Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Potential bug in Dofile editor with comments

    I'm flagging this here in case some special meaning has been applied to C-style comments (/* and */). Up until the 18dec2024 Version 18.0 update, the comments work regardless of the contents between the open and close comment delimiters. Has there been a change to the meaning of such comment delimiters I may be unaware of?

    Now they appear to glitch, where even numbers of asterisks result in the Do-file Editor formatting all text below as a comment block. This is a cosmetic nuisance, as the code below will run as intended as long the comment is legally closed.

    To the see the example, copy and paste the following into the do-file editor.

    Code:
    /*
    Some text
    */
    sysuse auto
    describe
    list in 1/10
    versus

    Code:
    /**
    Some text
    **/
    sysuse auto
    describe
    list in 1/10

  • #2
    That was a bug that was introduced in the last update. It's been fixed and will be available in a future update.
    -Chinh Nguyen

    Comment


    • #3
      Thanks for the quick reply and confirmation, Chinh Nguyen (StataCorp) .

      Comment

      Working...
      X