Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#16820 closed defect (worksforme)

Missing newline at end of file causes error 307 in build

Reported by: kbenjamin Owned by: Rawld Gill
Priority: undecided Milestone: 1.9
Component: BuildSystem Version: 1.8.2
Keywords: Cc:
Blocked By: Blocking:

Description

If you don't have a newline at the end of your .js file the code runs but won't build:

starting processing resource AST...

error(307) Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions). module: xxx/yyy; error: SyntaxError?: missing } after function body

Also see http://bugs.dojotoolkit.org/ticket/12928#comment:6

Recommend this problem be fixed or a better error message be provided.

Change History (3)

comment:1 Changed 6 years ago by Rawld Gill

Milestone: tbd1.9
Status: newassigned

comment:2 Changed 6 years ago by Rawld Gill

Resolution: worksforme
Status: assignedclosed

I could not duplicate this error. I also tried to duplicate as in #12928 and no luck there either. If you can duplicate, please rattach a file and the build command you are using and reopen and I'll take another look.

comment:3 Changed 6 years ago by NJM-Goals

It's not a missing new line, it's a comment at the end of a file. Created #17485.

Note: See TracTickets for help on using tickets.