Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearer error messages #5

Open
aciccarello opened this issue Sep 5, 2023 · 0 comments
Open

Clearer error messages #5

aciccarello opened this issue Sep 5, 2023 · 0 comments

Comments

@aciccarello
Copy link

The error messages when lighning is unable to parse a file does not indicate the line number that is not parsable. This should be part of any error message to make it easier to debug.

 Problem writing Eleventy templates: (more in DEBUG output)
[11ty] 1. Having trouble rendering css template ./assets/css/common.css (via TemplateContentRenderError)
[11ty] 2. Unexpected token Comma (via SyntaxError)
[11ty] 
[11ty] Original error stack trace: SyntaxError: Unexpected token Comma
[11ty]     at Object.<anonymous> (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11tyrocks/eleventy-plugin-lightningcss/.eleventy.js:85:30)
[11ty]     at Template._render (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/TemplateContent.js:514:28)
[11ty]     at async Template.renderWithoutLayout (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/Template.js:456:27)
[11ty]     at async TemplateMap.populateContentDataInMap (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/TemplateMap.js:589:39)
[11ty]     at async TemplateMap.cache (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/TemplateMap.js:483:5)
[11ty]     at async TemplateWriter._createTemplateMap (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/TemplateWriter.js:330:5)
[11ty]     at async TemplateWriter.generateTemplates (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/TemplateWriter.js:360:5)
[11ty]     at async TemplateWriter.write (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/TemplateWriter.js:407:23)
[11ty]     at async Eleventy.executeBuild (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/Eleventy.js:1191:13)
[11ty]     at async Eleventy._watch (/Users/aciccarello/code/aciccarello/ciccarello.me/node_modules/@11ty/eleventy/src/Eleventy.js:822:24)
[11ty] Benchmark     37ms  18%   278× (Configuration) "slugify" Liquid Filter
[11ty] Wrote 0 files in 0.21 seconds (v2.0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant