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
Bad YAML error in the presence of parse error #9496
Comments
We don't print a stack trace here, not even when
|
This comment was marked as outdated.
This comment was marked as outdated.
I'm not able to repro. I added diff --git a/src/project/project-shared.ts b/src/project/project-shared.ts
index e45739f77..5d17abe6c 100644
--- a/src/project/project-shared.ts
+++ b/src/project/project-shared.ts
@@ -457,10 +457,14 @@ export async function projectResolveFullMarkdownForFile(
flags: {} as RenderFlags,
};
try {
+ console.log('FOOO')
const result = await expandIncludes(markdown, options, file);
cache.fullMarkdown = result;
cache.includeMap = options.state?.include.includes as FileInclusion[];
return result;
+ } catch(xep) {
+ console.log(xep);
+ throw xep;
} finally {
temp.cleanup();
} I see 3
|
I'm debugging that part of project-shared.ts with
(Specifically, I was disentangling await from try..finally to ensure I didn't have some other await bug lurking) |
A-ha! The first two stack traces are not the same, there were two different locations in |
Ok, this is better:
(cc @mine-cetinkaya-rundel, I think this error message should be more actionable now!) |
What is "block"? 😅 |
We use the term block at least once here: https://quarto.org/docs/reference/cells/cells-knitr.html#overview |
|
The text was updated successfully, but these errors were encountered: