-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.0.0 DXP FP2, 7.0.0 DXP SP1, 7.0.3 CE GA4, 7.1.X, Master
-
Component/s: Dev Tools
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
Example to reproduce the problem:
- go to modules\apps\foundation\frontend-image-editor\frontend-image-editor-capability-brightness
- rmdir /s .task-cache
- be sure that the src/main/resources/*/.soy files have CRLF line endings
- ..\..\..\..\..\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.