Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-67772

Building a module which contains a .soy file fails on Windows

    Details

    • Branch Version/s:
      7.0.x
    • Backported to Branch:
      Committed

      Description

      Example to reproduce the problem:

      1. go to modules\apps\foundation\frontend-image-editor\frontend-image-editor-capability-brightness
      2. rmdir /s .task-cache
      3. be sure that the src/main/resources/*/.soy files have CRLF line endings
      4. ..\..\..\..\..\gradlew jar

      The following error occurs:

      Compiling soy
      
      stream.js:74
            throw er; // Unhandled stream error in pipe.
            ^
       Error: Compile error:
      errors during Soy compilation
      In file BrightnessComponent.soy:1:43: parse error at '
      ': expected eof, {alias, {deltemplate, or {template
      {namespace ImageEditorBrightnessComponent}
                                                ^
      
      In file BrightnessControls.soy:1:42: parse error at '
      ': expected eof, {alias, {deltemplate, or {template
      {namespace ImageEditorBrightnessControls}
                                               ^
      

      Changing the line endings to LF seems to solve the problem. We can enforce the LF encoding for .soy for now, but it is only a temporary workaround until the Soy compiler is fixed.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 46 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP2
                7.0.0 DXP SP1
                7.0.3 CE GA4
                7.1.X
                Master