Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-17287

Warn if embedded code does not start with a newline

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Unresourced
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.4.0
    • Fix Version/s: None
    • Component/s: Embedded Languages
    • Labels:
      None
    • Compatibility:
      Minor

      Description

      Some mistakes like

      f := EMBED(R, globalScope(‘myscope’),persist(‘workunit’)))
      return(1)
      ENDEMBED;
      

      can be very difficult to spot, especially for languages where the error messages when parsing are not especially helpful (like R).

      The extra ) at the end of the EMBED line is considered to be part of the embedded code body. A warning if the first line of the embed body is not blank and there is more than one line might be helpful.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              richardkchapman Richard Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: