Skip to content

Commit 96a9897

Browse files
claude: Initialize engines for quarto create project command
The "quarto create project" command (without dashes) calls projectCreate() which looks up the execution engine, but engines weren't registered before this call. This caused "Invalid execution engine: markdown" errors. Solution: - Added initializeProjectContextAndEngines() at start of action handler - Ensures markdown engine (and all standard engines) are registered - Handles both interactive and JSON modes This is simpler than create-project fix because this command always uses the markdown engine (hardcoded), doesn't accept --engine parameter, and doesn't need external engine support. Fixes: quarto create project [type] [directory]
1 parent a40d030 commit 96a9897

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

src/command/create/cmd.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
isPositWorkbench,
1414
} from "../../core/platform.ts";
1515
import { runningInCI } from "../../core/ci-info.ts";
16+
import { initializeProjectContextAndEngines } from "../command-utils.ts";
1617

1718
import { Command } from "cliffy/command/mod.ts";
1819
import { prompt, Select, SelectValueOptions } from "cliffy/prompt/mod.ts";
@@ -52,6 +53,9 @@ export const createCommand = new Command()
5253
type?: string,
5354
...commands: string[]
5455
) => {
56+
// Initialize engines before any artifact creation
57+
await initializeProjectContextAndEngines();
58+
5559
if (options.json) {
5660
await createFromStdin();
5761
} else {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/.quarto/
22
*_cache/
3+
4+
**/*.quarto_ipynb

tests/docs/project/site/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/.quarto/
22
*_cache/
3+
4+
**/*.quarto_ipynb
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/.quarto/
2+
3+
**/*.quarto_ipynb

0 commit comments

Comments
 (0)